| /u-boot/lib/ |
| A D | aes.c | 333 state[0] = sbox[state[0]]; in shift_rows() 334 state[4] = sbox[state[4]]; in shift_rows() 335 state[8] = sbox[state[8]]; in shift_rows() 336 state[12] = sbox[state[12]]; in shift_rows() 340 state[1] = sbox[state[5]]; in shift_rows() 341 state[5] = sbox[state[9]]; in shift_rows() 342 state[9] = sbox[state[13]]; in shift_rows() 347 state[2] = sbox[state[10]]; in shift_rows() 350 state[6] = sbox[state[14]]; in shift_rows() 356 state[11] = sbox[state[7]]; in shift_rows() [all …]
|
| A D | xxhash.c | 217 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 D | sha512.c | 150 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 D | inflate.c | 13 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 D | inffast.c | 99 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 D | bouncebuf.c | 28 if (state->len != state->len_aligned) { in addr_aligned() 42 state->user_buffer = data; in bounce_buffer_start_extalign() 44 state->len = len; in bounce_buffer_start_extalign() 46 state->flags = flags; in bounce_buffer_start_extalign() 50 state->len_aligned); in bounce_buffer_start_extalign() 51 if (!state->bounce_buffer) in bounce_buffer_start_extalign() 55 memcpy(state->bounce_buffer, state->user_buffer, in bounce_buffer_start_extalign() 56 state->len); in bounce_buffer_start_extalign() 83 state->len_aligned, in bounce_buffer_stop() 87 if (state->bounce_buffer == state->user_buffer) in bounce_buffer_stop() [all …]
|
| /u-boot/arch/sandbox/cpu/ |
| A D | state.c | 47 state->state_fdt = buf; in state_ensure_space() 63 if (!state->state_fdt) { in state_read_file() 346 assert(state); in state_get_current() 347 return state; in state_get_current() 373 memset(&state->wdt, '\0', sizeof(state->wdt)); in state_reset_for_test() 374 memset(state->spi, '\0', sizeof(state->spi)); in state_reset_for_test() 382 state->next_tag = state->ram_size; in state_reset_for_test() 483 state->ram_buf = os_malloc(state->ram_size); in state_init() 503 if (state->write_ram_buf || state->write_state) in state_uninit() 519 if (sandbox_write_state(state, state->state_fname)) { in state_uninit() [all …]
|
| A D | start.c | 71 if (!state->parse_err) in sandbox_early_getopt_check() 77 state->parse_err); in sandbox_early_getopt_check() 142 if (state->cmd || state->run_distro_boot) { in sandbox_main_loop_init() 148 if (state->cmd) in sandbox_main_loop_init() 174 state->cmd = arg; in sandbox_cmdline_cb_command() 181 state->fdt_fname = arg; in sandbox_cmdline_cb_fdt() 372 state->term_raw = i; in sandbox_cmdline_cb_terminal() 446 memset(state->ram_buf, '\0', state->ram_size); in setup_ram_buf() 521 if (state->ram_buf_rm && state->ram_buf_fname) { in sandbox_main() 527 ret = sandbox_read_state(state, state->state_fname); in sandbox_main() [all …]
|
| A D | cpu.c | 49 struct sandbox_state *state = state_get_current(); in __udelay() local 51 if (!state->skip_delays) in __udelay() 100 struct sandbox_state *state; in phys_to_virt() local 110 state = state_get_current(); in phys_to_virt() 130 struct sandbox_state *state = state_get_current(); in find_tag() local 219 mentry->tag = state->next_tag++; in map_to_sysmem() 237 if (!state->allow_memio) in sandbox_read() 258 if (!state->allow_memio) in sandbox_write() 281 state->allow_memio = enable; in sandbox_set_enable_memio() 325 const char *fname = state->fdt_fname; in board_fdt_blob_setup() [all …]
|
| /u-boot/fs/btrfs/ |
| A D | extent-io.c | 28 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 D | sysreset_sandbox.c | 17 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() 69 if (!state->sysreset_allowed[type]) in sandbox_sysreset_request() [all …]
|
| /u-boot/drivers/misc/ |
| A D | gdsys_rxaui_ctrl.c | 32 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 D | status_led.c | 23 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/test/dm/ |
| A D | sysreset.c | 18 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 …]
|
| A D | wdt.c | 22 struct sandbox_state *state = state_get_current(); in dm_test_wdt_base() local 29 ut_asserteq(0, state->wdt.counter); in dm_test_wdt_base() 30 ut_asserteq(false, state->wdt.running); in dm_test_wdt_base() 33 ut_asserteq(timeout, state->wdt.counter); in dm_test_wdt_base() 34 ut_asserteq(true, state->wdt.running); in dm_test_wdt_base() 36 uint reset_count = state->wdt.reset_count; in dm_test_wdt_base() 39 ut_asserteq(true, state->wdt.running); in dm_test_wdt_base() 42 ut_asserteq(false, state->wdt.running); in dm_test_wdt_base() 132 reset_count = state->wdt.reset_count; in dm_test_wdt_watchdog_reset() 135 ut_asserteq(reset_count, state->wdt.reset_count); in dm_test_wdt_watchdog_reset() [all …]
|
| /u-boot/arch/microblaze/cpu/ |
| A D | exception.c | 15 int state = 0; in _hw_exception_handler() local 20 MFS(state, resr); in _hw_exception_handler() 25 (state & 0x1000)) { in _hw_exception_handler() 35 switch (state & 0x1f) { /* mask on exception cause */ in _hw_exception_handler() 39 printf("Unaligned %sword access\n", ((state & 0x800) ? "" : "half")); in _hw_exception_handler() 40 printf("Unaligned %s access\n", ((state & 0x400) ? "store" : "load")); in _hw_exception_handler() 41 printf("Register R%x\n", (state & 0x3E0) >> 5); in _hw_exception_handler()
|
| /u-boot/test/common/ |
| A D | event.c | 33 struct test_state state; in test_event_base() local 36 state.val = 12; in test_event_base() 37 ut_assertok(event_register("wibble", EVT_TEST, h_adder, &state)); in test_event_base() 43 ut_asserteq(12 + 17, state.val); in test_event_base() 70 struct test_state state; in test_event_probe() local 73 state.val = 0; in test_event_probe() 74 ut_assertok(event_register("pre", EVT_DM_PRE_PROBE, h_probe, &state)); in test_event_probe() 75 ut_assertok(event_register("post", EVT_DM_POST_PROBE, h_probe, &state)); in test_event_probe() 81 ut_asserteq(3, state.val); in test_event_probe()
|
| /u-boot/doc/sphinx/ |
| A D | kernel_feat.py | 82 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 …]
|
| /u-boot/board/ti/beagle/ |
| A D | led.c | 43 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 D | sandbox_wdt.c | 13 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/drivers/hwspinlock/ |
| A D | sandbox_hwspinlock.c | 13 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 D | speedstep.h | 51 #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 D | sandbox.c | 435 if (!state->ta || state->session != session) in sandbox_tee_close_session() 438 state->session = 0; in sandbox_tee_close_session() 439 state->ta = NULL; in sandbox_tee_close_session() 465 if (state->ta) { in sandbox_tee_open_session() 483 state->ta = (void *)ta; in sandbox_tee_open_session() 484 state->session = 1; in sandbox_tee_open_session() 485 arg->session = state->session; in sandbox_tee_open_session() 498 struct ta_entry *ta = state->ta; in sandbox_tee_invoke_func() 525 state->num_shms++; in sandbox_tee_shm_register() 534 state->num_shms--; in sandbox_tee_shm_unregister() [all …]
|
| /u-boot/cmd/ti/ |
| A D | pd.c | 40 u8 state; in dump_lpsc() local 50 state = lpsc_get_state(lpsc); in dump_lpsc() 51 if (state > ARRAY_SIZE(lpsc_states)) in dump_lpsc() 52 state = ARRAY_SIZE(lpsc_states) - 1; in dump_lpsc() 54 lpsc->id, lpsc_states[state], lpsc->usecount); in dump_lpsc() 62 u8 state; in dump_pd() local 71 state = ti_pd_state(pd); in dump_pd() 72 if (state > ARRAY_SIZE(pd_states)) in dump_pd() 73 state = ARRAY_SIZE(pd_states) - 1; in dump_pd() 75 pd->id, pd_states[state], pd->usecount); in dump_pd() [all …]
|
| /u-boot/tools/binman/etype/ |
| A D | files.py | 17 state = None variable 35 global state 36 from binman import state 61 subnode = state.AddSubnode(self._node, name) 62 state.AddString(subnode, 'type', 'blob') 63 state.AddString(subnode, 'filename', fname) 64 state.AddString(subnode, 'compress', self._files_compress) 66 state.AddInt(subnode, 'align', self._files_align)
|