Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 599) sorted by relevance

12345678910>>...24

/u-boot/lib/
A Daes.c332 state[0] = sbox[state[0]]; in shift_rows()
333 state[4] = sbox[state[4]]; in shift_rows()
334 state[8] = sbox[state[8]]; in shift_rows()
335 state[12] = sbox[state[12]]; in shift_rows()
339 state[1] = sbox[state[5]]; in shift_rows()
340 state[5] = sbox[state[9]]; in shift_rows()
341 state[9] = sbox[state[13]]; in shift_rows()
346 state[2] = sbox[state[10]]; in shift_rows()
349 state[6] = sbox[state[14]]; in shift_rows()
355 state[11] = sbox[state[7]]; in shift_rows()
[all …]
A Dxxhash.c217 memset(&state, 0, sizeof(state)); in xxh32_reset()
222 memcpy(statePtr, &state, sizeof(state)); in xxh32_reset()
231 memset(&state, 0, sizeof(state)); in xxh64_reset()
236 memcpy(statePtr, &state, sizeof(state)); in xxh64_reset()
260 memcpy((uint8_t *)(state->mem32) + state->memsize, input, in xxh32_update()
263 state->v1 = xxh32_round(state->v1, get_unaligned_le32(p32)); in xxh32_update()
265 state->v2 = xxh32_round(state->v2, get_unaligned_le32(p32)); in xxh32_update()
267 state->v3 = xxh32_round(state->v3, get_unaligned_le32(p32)); in xxh32_update()
269 state->v4 = xxh32_round(state->v4, get_unaligned_le32(p32)); in xxh32_update()
317 h32 = xxh_rotl32(state->v1, 1) + xxh_rotl32(state->v2, 7) + in xxh32_digest()
[all …]
A Dsha512.c150 a=state[0]; b=state[1]; c=state[2]; d=state[3]; in sha512_transform()
151 e=state[4]; f=state[5]; g=state[6]; h=state[7]; in sha512_transform()
187 state[0] += a; state[1] += b; state[2] += c; state[3] += d; in sha512_transform()
188 state[4] += e; state[5] += f; state[6] += g; state[7] += h; in sha512_transform()
262 ctx->state[0] = SHA384_H0; in sha384_starts()
263 ctx->state[1] = SHA384_H1; in sha384_starts()
264 ctx->state[2] = SHA384_H2; in sha384_starts()
265 ctx->state[3] = SHA384_H3; in sha384_starts()
266 ctx->state[4] = SHA384_H4; in sha384_starts()
267 ctx->state[5] = SHA384_H5; in sha384_starts()
[all …]
/u-boot/lib/zlib/
A Dinflate.c13 state = (struct inflate_state FAR *)strm->state; in inflateReset()
27 state->lencode = state->distcode = state->next = state->codes; in inflateReset()
117 state->wsize = 1U << state->wbits; in updatewindow()
125 zmemcpy(state->window, strm->next_out - state->wsize, state->wsize); in updatewindow()
127 state->whave = state->wsize; in updatewindow()
130 dist = state->wsize - state->write; in updatewindow()
137 state->whave = state->wsize; in updatewindow()
141 if (state->write == state->wsize) state->write = 0; in updatewindow()
142 if (state->whave < state->wsize) state->whave += dist; in updatewindow()
636 state->next = state->codes; in inflate()
[all …]
A Dinffast.c99 state = (struct inflate_state FAR *)strm->state; in inflate_fast()
114 dmax = state->dmax; in inflate_fast()
116 wsize = state->wsize; in inflate_fast()
117 whave = state->whave; in inflate_fast()
118 write = state->write; in inflate_fast()
119 window = state->window; in inflate_fast()
120 hold = state->hold; in inflate_fast()
121 bits = state->bits; in inflate_fast()
122 lcode = state->lencode; in inflate_fast()
337 state->hold = hold; in inflate_fast()
[all …]
/u-boot/common/
A Dbouncebuf.c27 if (state->len != state->len_aligned) { in addr_aligned()
41 state->user_buffer = data; in bounce_buffer_start_extalign()
43 state->len = len; in bounce_buffer_start_extalign()
45 state->flags = flags; in bounce_buffer_start_extalign()
49 state->len_aligned); in bounce_buffer_start_extalign()
54 memcpy(state->bounce_buffer, state->user_buffer, in bounce_buffer_start_extalign()
55 state->len); in bounce_buffer_start_extalign()
64 state->len_aligned); in bounce_buffer_start_extalign()
83 state->len_aligned); in bounce_buffer_stop()
86 if (state->bounce_buffer == state->user_buffer) in bounce_buffer_stop()
[all …]
/u-boot/arch/sandbox/cpu/
A Dstart.c69 if (!state->parse_err) in sandbox_early_getopt_check()
75 state->parse_err); in sandbox_early_getopt_check()
139 if (state->cmd || state->run_distro_boot) { in sandbox_main_loop_init()
145 if (state->cmd) in sandbox_main_loop_init()
171 state->cmd = arg; in sandbox_cmdline_cb_command()
178 state->fdt_fname = arg; in sandbox_cmdline_cb_fdt()
341 state->term_raw = i; in sandbox_cmdline_cb_terminal()
396 memset(state->ram_buf, '\0', state->ram_size); in setup_ram_buf()
463 if (state->ram_buf_rm && state->ram_buf_fname) { in main()
469 ret = sandbox_read_state(state, state->state_fname); in main()
[all …]
A Dstate.c43 state->state_fdt = buf; in state_ensure_space()
80 free(state->state_fdt); in state_read_file()
338 assert(state); in state_get_current()
339 return state; in state_get_current()
364 memset(&state->wdt, '\0', sizeof(state->wdt)); in state_reset_for_test()
365 memset(state->spi, '\0', sizeof(state->spi)); in state_reset_for_test()
373 state->next_tag = state->ram_size; in state_reset_for_test()
378 state = &main_state; in state_init()
381 state->ram_buf = os_malloc(state->ram_size); in state_init()
412 if (sandbox_write_state(state, state->state_fname)) { in state_uninit()
[all …]
A Dcpu.c50 struct sandbox_state *state = state_get_current(); in __udelay() local
52 if (!state->skip_delays) in __udelay()
101 struct sandbox_state *state; in phys_to_virt() local
111 state = state_get_current(); in phys_to_virt()
131 struct sandbox_state *state = state_get_current(); in find_tag() local
220 mentry->tag = state->next_tag++; in map_to_sysmem()
238 if (!state->allow_memio) in sandbox_read()
259 if (!state->allow_memio) in sandbox_write()
282 state->allow_memio = enable; in sandbox_set_enable_memio()
301 const char *fname = state->fdt_fname; in sandbox_read_fdt_from_file()
[all …]
/u-boot/fs/btrfs/
A Dextent-io.c28 state = malloc(sizeof(*state)); in alloc_extent_state()
33 state->state = 0; in alloc_extent_state()
63 state->cache_node.size = state->end + 1 - state->start; in update_extent_state()
86 other->state == state->state) { in merge_state()
98 other->state == state->state) { in merge_state()
119 state->state |= bits; in insert_state()
157 state->state &= ~bits; in clear_state_bit()
158 if (state->state == 0) { in clear_state_bit()
358 state->state |= bits; in set_extent_bits()
388 state->state |= bits; in set_extent_bits()
[all …]
/u-boot/drivers/sysreset/
A Dsysreset_sandbox.c17 struct sandbox_state *state = state_get_current(); in sandbox_warm_sysreset_request() local
21 state->last_sysreset = type; in sandbox_warm_sysreset_request()
26 if (!state->sysreset_allowed[type]) in sandbox_warm_sysreset_request()
46 struct sandbox_state *state = state_get_current(); in sandbox_sysreset_request() local
53 if (state->fdt_fname && !dev_has_ofnode(dev)) in sandbox_sysreset_request()
58 state->last_sysreset = type; in sandbox_sysreset_request()
59 if (!state->sysreset_allowed[type]) in sandbox_sysreset_request()
64 state->last_sysreset = type; in sandbox_sysreset_request()
65 if (!state->sysreset_allowed[type]) in sandbox_sysreset_request()
70 if (!state->sysreset_allowed[type]) in sandbox_sysreset_request()
[all …]
/u-boot/test/dm/
A Dwdt.c18 struct sandbox_state *state = state_get_current(); in dm_test_wdt_base() local
24 ut_asserteq(0, state->wdt.counter); in dm_test_wdt_base()
25 ut_asserteq(false, state->wdt.running); in dm_test_wdt_base()
28 ut_asserteq(timeout, state->wdt.counter); in dm_test_wdt_base()
29 ut_asserteq(true, state->wdt.running); in dm_test_wdt_base()
31 uint reset_count = state->wdt.reset_count; in dm_test_wdt_base()
33 ut_asserteq(reset_count + 1, state->wdt.reset_count); in dm_test_wdt_base()
34 ut_asserteq(true, state->wdt.running); in dm_test_wdt_base()
37 ut_asserteq(false, state->wdt.running); in dm_test_wdt_base()
A Dsysreset.c18 struct sandbox_state *state = state_get_current(); in dm_test_sysreset_base() local
33 state->sysreset_allowed[SYSRESET_WARM] = true; in dm_test_sysreset_base()
35 state->sysreset_allowed[SYSRESET_WARM] = false; in dm_test_sysreset_base()
40 state->sysreset_allowed[SYSRESET_COLD] = false; in dm_test_sysreset_base()
42 state->sysreset_allowed[SYSRESET_COLD] = true; in dm_test_sysreset_base()
43 state->sysreset_allowed[SYSRESET_POWER] = false; in dm_test_sysreset_base()
45 state->sysreset_allowed[SYSRESET_POWER] = true; in dm_test_sysreset_base()
76 state->sysreset_allowed[SYSRESET_WARM] = false; in dm_test_sysreset_walk()
77 state->sysreset_allowed[SYSRESET_COLD] = false; in dm_test_sysreset_walk()
90 state->sysreset_allowed[SYSRESET_WARM] = true; in dm_test_sysreset_walk()
[all …]
/u-boot/drivers/misc/
A Dgdsys_rxaui_ctrl.c32 bool state; member
38 u16 state; in gdsys_rxaui_set_polarity_inversion() local
40 priv->state = !priv->state; in gdsys_rxaui_set_polarity_inversion()
42 rxaui_ctrl_get(priv->map, ctrl_1, &state); in gdsys_rxaui_set_polarity_inversion()
45 state |= ~0x7800; in gdsys_rxaui_set_polarity_inversion()
47 state &= ~0x7800; in gdsys_rxaui_set_polarity_inversion()
49 rxaui_ctrl_set(priv->map, ctrl_1, state); in gdsys_rxaui_set_polarity_inversion()
51 return !priv->state; in gdsys_rxaui_set_polarity_inversion()
64 priv->state = false; in gdsys_rxaui_ctrl_probe()
A Dstatus_led.c23 int state; member
81 __led_init (ld->mask, ld->state); in status_led_init()
95 if (ld->state != CONFIG_LED_STATUS_BLINKING) in status_led_tick()
106 void status_led_set(int led, int state) in status_led_set() argument
118 ld->state = state; in status_led_set()
119 if (state == CONFIG_LED_STATUS_BLINKING) { in status_led_set()
121 state = CONFIG_LED_STATUS_ON; /* always start with LED _ON_ */ in status_led_set()
123 __led_set (ld->mask, state); in status_led_set()
/u-boot/board/corscience/tricorder/
A Dled.c17 void __led_init(led_id_t mask, int state) in __led_init() argument
19 __led_set(mask, state); in __led_init()
44 int state; in __led_toggle() local
46 state = gpio_get_value(toggle_gpio); in __led_toggle()
47 gpio_set_value(toggle_gpio, !state); in __led_toggle()
51 void __led_set(led_id_t mask, int state) in __led_set() argument
57 gpio_set_value(TRICORDER_STATUS_LED_GREEN, state); in __led_set()
64 gpio_set_value(TRICORDER_STATUS_LED_YELLOW, state); in __led_set()
69 if (CONFIG_LED_STATUS_OFF == state) in __led_set()
/u-boot/arch/microblaze/cpu/
A Dexception.c15 int state = 0; in _hw_exception_handler() local
20 MFS(state, resr); in _hw_exception_handler()
24 switch (state & 0x1f) { /* mask on exception cause */ in _hw_exception_handler()
52 printf("Unaligned %sword access\n", ((state & 0x800) ? "" : "half")); in _hw_exception_handler()
53 printf("Unaligned %s access\n", ((state & 0x400) ? "store" : "load")); in _hw_exception_handler()
54 printf("Register R%x\n", (state & 0x3E) >> 5); in _hw_exception_handler()
/u-boot/board/ti/beagle/
A Dled.c43 void __led_init (led_id_t mask, int state) in __led_init() argument
50 __led_set(mask, state); in __led_init()
55 int state, toggle_gpio; in __led_toggle() local
59 state = gpio_get_value(toggle_gpio); in __led_toggle()
60 gpio_direction_output(toggle_gpio, !state); in __led_toggle()
64 void __led_set (led_id_t mask, int state) in __led_set() argument
70 gpio_direction_output(toggle_gpio, state); in __led_set()
/u-boot/drivers/watchdog/
A Dsandbox_wdt.c13 struct sandbox_state *state = state_get_current(); in sandbox_wdt_start() local
15 state->wdt.counter = timeout; in sandbox_wdt_start()
16 state->wdt.running = true; in sandbox_wdt_start()
23 struct sandbox_state *state = state_get_current(); in sandbox_wdt_stop() local
25 state->wdt.running = false; in sandbox_wdt_stop()
32 struct sandbox_state *state = state_get_current(); in sandbox_wdt_reset() local
34 state->wdt.reset_count++; in sandbox_wdt_reset()
/u-boot/doc/sphinx/
A Dkernel_feat.py82 replace["fname"] = self.state.document.current_source
85 self.state.document.settings.env.app.warn(message, prefix="")
89 doc = self.state.document
155 buf = self.state.memo.title_styles, self.state.memo.section_level, self.state.memo.reporter
158 with switch_source_input(self.state, content):
159 self.state.nested_parse(content, 0, node, match_titles=1)
161 self.state.memo.title_styles = []
162 self.state.memo.section_level = 0
163 self.state.memo.reporter = AutodocReporter(content, self.state.memo.reporter)
165 self.state.nested_parse(content, 0, node, match_titles=1)
[all …]
A Dkernel_abi.py87 doc = self.state.document
174 kernellog.info(self.state.document.settings.env.app, "%s: parsed %i lines" % (fname, n))
183 with switch_source_input(self.state, content):
184 self.state.nested_parse(content, 0, node, match_titles=1)
186 … buf = self.state.memo.title_styles, self.state.memo.section_level, self.state.memo.reporter
188 self.state.memo.title_styles = []
189 self.state.memo.section_level = 0
190 self.state.memo.reporter = AutodocReporter(content, self.state.memo.reporter)
192 self.state.nested_parse(content, 0, node, match_titles=1)
194 … self.state.memo.title_styles, self.state.memo.section_level, self.state.memo.reporter = buf
/u-boot/drivers/hwspinlock/
A Dsandbox_hwspinlock.c13 struct sandbox_state *state = state_get_current(); in sandbox_lock() local
18 if (state->hwspinlock) in sandbox_lock()
21 state->hwspinlock = true; in sandbox_lock()
28 struct sandbox_state *state = state_get_current(); in sandbox_unlock() local
33 if (!state->hwspinlock) in sandbox_unlock()
36 state->hwspinlock = false; in sandbox_unlock()
/u-boot/arch/x86/include/asm/
A Dspeedstep.h51 #define SPEEDSTEP_ENCODE_STATE(state) ( \ argument
52 ((uint16_t)(state).dynfsb << SPEEDSTEP_RATIO_DYNFSB_SHIFT) | \
53 ((uint16_t)(state).nonint << SPEEDSTEP_RATIO_NONINT_SHIFT) | \
54 ((uint16_t)(state).ratio << SPEEDSTEP_RATIO_SHIFT) | \
55 ((uint16_t)(state).vid & SPEEDSTEP_VID_MASK))
56 #define SPEEDSTEP_DOUBLE_RATIO(state) ( \ argument
57 ((uint8_t)(state).ratio * 2) + (state).nonint)
/u-boot/drivers/tee/
A Dsandbox.c376 if (!state->ta || state->session != session) in sandbox_tee_close_session()
379 state->session = 0; in sandbox_tee_close_session()
380 state->ta = NULL; in sandbox_tee_close_session()
406 if (state->ta) { in sandbox_tee_open_session()
424 state->ta = (void *)ta; in sandbox_tee_open_session()
425 state->session = 1; in sandbox_tee_open_session()
426 arg->session = state->session; in sandbox_tee_open_session()
439 struct ta_entry *ta = state->ta; in sandbox_tee_invoke_func()
466 state->num_shms++; in sandbox_tee_shm_register()
475 state->num_shms--; in sandbox_tee_shm_unregister()
[all …]
/u-boot/net/
A Dlink_local.c53 } state = DISABLED; variable
123 state = PROBE; in link_local_start()
135 switch (state) { in link_local_timeout()
162 state = ANNOUNCE; in link_local_timeout()
181 state = MONITOR; in link_local_timeout()
197 state = MONITOR; in link_local_timeout()
203 state = PROBE; in link_local_timeout()
293 switch (state) { in link_local_receive_arp()
300 state = PROBE; in link_local_receive_arp()
326 state = PROBE; in link_local_receive_arp()
[all …]

Completed in 59 milliseconds

12345678910>>...24