/u-boot/common/ |
H A D | bouncebuf.c | 17 static int addr_aligned(struct bounce_buffer *state) argument 22 if ((ulong)state->user_buffer & align_mask) { 23 debug("Unaligned buffer address %p\n", state->user_buffer); 28 if (state->len != state->len_aligned) { 29 debug("Unaligned buffer length %zu\n", state->len); 37 int bounce_buffer_start_extalign(struct bounce_buffer *state, void *data, argument 40 int (*addr_is_aligned)(struct bounce_buffer *state)) 42 state->user_buffer = data; 43 state 70 bounce_buffer_start(struct bounce_buffer *state, void *data, size_t len, unsigned int flags) argument 78 bounce_buffer_stop(struct bounce_buffer *state) argument [all...] |
/u-boot/lib/zlib/ |
H A D | inflate.c | 5 local void fixedtables OF((struct inflate_state FAR *state)); 10 struct inflate_state FAR *state; local 12 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR; 13 state = (struct inflate_state FAR *)strm->state; 14 strm->total_in = strm->total_out = state->total = 0; 17 state->mode = HEAD; 18 state->last = 0; 19 state->havedict = 0; 20 state 36 struct inflate_state FAR *state; local 75 fixedtables(struct inflate_state FAR *state) argument 99 struct inflate_state FAR *state; local 327 struct inflate_state FAR *state; local [all...] |
/u-boot/arch/sandbox/cpu/ |
H A D | cache.c | 7 #include <asm/state.h> 17 struct sandbox_state *state = state_get_current(); local 20 __builtin___clear_cache((void *)state->ram_buf, 21 (void *)(state->ram_buf + state->ram_size));
|
H A D | start.c | 22 #include <asm/state.h> 62 struct sandbox_state *state = state_get_current(); local 72 if (!state->parse_err) 75 if (strcmp(state->parse_err, "help")) { 78 state->parse_err); 125 static int sandbox_cmdline_cb_help(struct sandbox_state *state, const char *arg) argument 135 struct sandbox_state *state = state_get_current(); local 138 if (state->cmd || state->run_distro_boot) { 144 if (state 159 sandbox_cmdline_cb_boot(struct sandbox_state *state, const char *arg) argument 167 sandbox_cmdline_cb_command(struct sandbox_state *state, const char *arg) argument 175 sandbox_cmdline_cb_fdt(struct sandbox_state *state, const char *arg) argument 182 sandbox_cmdline_cb_default_fdt(struct sandbox_state *state, const char *arg) argument 201 sandbox_cmdline_cb_test_fdt(struct sandbox_state *state, const char *arg) argument 228 sandbox_cmdline_cb_interactive(struct sandbox_state *state, const char *arg) argument 237 sandbox_cmdline_cb_jump(struct sandbox_state *state, const char *arg) argument 247 sandbox_cmdline_cb_program(struct sandbox_state *state, const char *arg) argument 277 sandbox_cmdline_cb_memory(struct sandbox_state *state, const char *arg) argument 290 sandbox_cmdline_cb_rm_memory(struct sandbox_state *state, const char *arg) argument 299 sandbox_cmdline_cb_state(struct sandbox_state *state, const char *arg) argument 307 sandbox_cmdline_cb_read(struct sandbox_state *state, const char *arg) argument 315 sandbox_cmdline_cb_write(struct sandbox_state *state, const char *arg) argument 323 sandbox_cmdline_cb_ignore_missing(struct sandbox_state *state, const char *arg) argument 332 sandbox_cmdline_cb_show_lcd(struct sandbox_state *state, const char *arg) argument 341 sandbox_cmdline_cb_double_lcd(struct sandbox_state *state, const char *arg) argument 357 sandbox_cmdline_cb_terminal(struct sandbox_state *state, const char *arg) argument 379 sandbox_cmdline_cb_verbose(struct sandbox_state *state, const char *arg) argument 387 sandbox_cmdline_cb_log_level(struct sandbox_state *state, const char *arg) argument 397 sandbox_cmdline_cb_unittests(struct sandbox_state *state, const char *arg) argument 406 sandbox_cmdline_cb_select_unittests(struct sandbox_state *state, const char *arg) argument 415 sandbox_cmdline_cb_signals(struct sandbox_state *state, const char *arg) argument 425 sandbox_cmdline_cb_autoboot_keyed(struct sandbox_state *state, const char *arg) argument 434 setup_ram_buf(struct sandbox_state *state) argument 444 state_show(struct sandbox_state *state) argument 478 struct sandbox_state *state; local [all...] |
H A D | state.c | 14 #include <asm/state.h> 17 /* Main state record for the sandbox */ 19 static struct sandbox_state *state; /* Pointer to current state record */ variable in typeref:struct:sandbox_state 23 void *blob = state->state_fdt; 46 state->state_fdt = buf; 50 static int state_read_file(struct sandbox_state *state, const char *fname) argument 58 printf("Cannot find sandbox state file '%s'\n", fname); 61 state->state_fdt = os_malloc(size); 62 if (!state 107 sandbox_read_state_nodes(struct sandbox_state *state, struct sandbox_state_io *io, const void *blob) argument 150 sandbox_read_state(struct sandbox_state *state, const char *fname) argument 197 sandbox_write_state_node(struct sandbox_state *state, struct sandbox_state_io *io) argument 243 sandbox_write_state(struct sandbox_state *state, const char *fname) argument 351 struct sandbox_state *state = state_get_current(); local 358 struct sandbox_state *state = state_get_current(); local 363 state_reset_for_test(struct sandbox_state *state) argument 386 struct sandbox_state *state = state_get_current(); local 393 struct sandbox_state *state = state_get_current(); local 403 struct sandbox_state *state = state_get_current(); local 425 struct sandbox_state *state = state_get_current(); local 451 struct sandbox_state *state = state_get_current(); local 458 struct sandbox_state *state = state_get_current(); local 465 struct sandbox_state *state = state_get_current(); local 472 struct sandbox_state *state = state_get_current(); local [all...] |
/u-boot/drivers/hwspinlock/ |
H A D | sandbox_hwspinlock.c | 9 #include <asm/state.h> 13 struct sandbox_state *state = state_get_current(); local 18 if (state->hwspinlock) 21 state->hwspinlock = true; 28 struct sandbox_state *state = state_get_current(); local 33 if (!state->hwspinlock) 36 state->hwspinlock = false;
|
/u-boot/fs/btrfs/ |
H A D | extent-io.c | 19 cache_tree_init(&tree->state); 26 struct extent_state *state; local 28 state = malloc(sizeof(*state)); 29 if (!state) 31 state->cache_node.objectid = 0; 32 state->refs = 1; 33 state->state = 0; 34 state 38 btrfs_free_extent_state(struct extent_state *state) argument 60 update_extent_state(struct extent_state *state) argument 72 merge_state(struct extent_io_tree *tree, struct extent_state *state) argument 112 insert_state(struct extent_io_tree *tree, struct extent_state *state, u64 start, u64 end, int bits) argument 152 clear_state_bit(struct extent_io_tree *tree, struct extent_state *state, int bits) argument 228 struct extent_state *state; local 322 struct extent_state *state; local 457 struct extent_state *state; local 487 struct extent_state *state = NULL; local 525 struct extent_state *state; local 546 struct extent_state *state; local [all...] |
/u-boot/drivers/watchdog/ |
H A D | sandbox_wdt.c | 9 #include <asm/state.h> 13 struct sandbox_state *state = state_get_current(); local 15 state->wdt.counter = timeout; 16 state->wdt.running = true; 23 struct sandbox_state *state = state_get_current(); local 25 state->wdt.running = false; 32 struct sandbox_state *state = state_get_current(); local 34 state->wdt.reset_count++;
|
/u-boot/include/ |
H A D | bouncebuf.h | 23 * The source buffer starts in an undefined state upon start() call, then the 58 * state: stores state passed between bounce_buffer_{start,stop} 63 int bounce_buffer_start(struct bounce_buffer *state, void *data, 68 * state: stores state passed between bounce_buffer_{start,stop} 75 int bounce_buffer_start_extalign(struct bounce_buffer *state, void *data, 78 int (*addr_is_aligned)(struct bounce_buffer *state)); 82 * state: stores state passe [all...] |
/u-boot/arch/microblaze/cpu/ |
H A D | exception.c | 15 int state = 0; local 19 /* loading exception state register ESR */ 20 MFS(state, resr); 25 (state & 0x1000)) { 35 switch (state & 0x1f) { /* mask on exception cause */ 39 printf("Unaligned %sword access\n", ((state & 0x800) ? "" : "half")); 40 printf("Unaligned %s access\n", ((state & 0x400) ? "store" : "load")); 41 printf("Register R%x\n", (state & 0x3E0) >> 5);
|
/u-boot/board/beagle/beagle/ |
H A D | led.c | 43 void __led_init (led_id_t mask, int state) argument 50 __led_set(mask, state); 55 int state, toggle_gpio; local 59 state = gpio_get_value(toggle_gpio); 60 gpio_direction_output(toggle_gpio, !state); 64 void __led_set (led_id_t mask, int state) argument 70 gpio_direction_output(toggle_gpio, state);
|
/u-boot/drivers/sysreset/ |
H A D | sysreset_sandbox.c | 11 #include <asm/state.h> 17 struct sandbox_state *state = state_get_current(); local 21 state->last_sysreset = type; 26 if (!state->sysreset_allowed[type]) 46 struct sandbox_state *state = state_get_current(); local 53 if (state->fdt_fname && !dev_has_ofnode(dev)) 58 state->last_sysreset = type; 59 if (!state->sysreset_allowed[type]) 64 state->last_sysreset = type; 65 if (!state 90 struct sandbox_state *state = state_get_current(); local [all...] |
/u-boot/lib/ |
H A D | xxhash.c | 214 /* use a local state for memcpy() to avoid strict-aliasing warnings */ 215 struct xxh32_state state; local 217 memset(&state, 0, sizeof(state)); 218 state.v1 = seed + PRIME32_1 + PRIME32_2; 219 state.v2 = seed + PRIME32_2; 220 state.v3 = seed + 0; 221 state.v4 = seed - PRIME32_1; 222 memcpy(statePtr, &state, sizeof(state)); 229 struct xxh64_state state; local 240 xxh32_update(struct xxh32_state *state, const void *input, const size_t len) argument 309 xxh32_digest(const struct xxh32_state *state) argument 347 xxh64_update(struct xxh64_state *state, const void *input, const size_t len) argument 414 xxh64_digest(const struct xxh64_state *state) argument [all...] |
/u-boot/drivers/misc/ |
H A D | gdsys_rxaui_ctrl.c | 32 bool state; member in struct:gdsys_rxaui_ctrl_priv 38 u16 state; local 40 priv->state = !priv->state; 42 rxaui_ctrl_get(priv->map, ctrl_1, &state); 45 state |= ~0x7800; 47 state &= ~0x7800; 49 rxaui_ctrl_set(priv->map, ctrl_1, state); 51 return !priv->state; 64 priv->state [all...] |
H A D | status_led.c | 23 int state; member in struct:__anon270 81 __led_init (ld->mask, ld->state); 95 if (ld->state != CONFIG_LED_STATUS_BLINKING) 106 void status_led_set(int led, int state) argument 118 ld->state = state; 119 if (state == CONFIG_LED_STATUS_BLINKING) { 121 state = CONFIG_LED_STATUS_ON; /* always start with LED _ON_ */ 123 __led_set (ld->mask, state);
|
/u-boot/include/power/ |
H A D | battery.h | 17 unsigned int state; member in struct:battery
|
/u-boot/board/gdsys/mpc8308/ |
H A D | mpc8308.h | 9 void mpc8308_set_fpga_reset(unsigned state);
|
/u-boot/arch/x86/include/asm/ |
H A D | lpss.h | 27 * lpss_set_power_state() - Change power state of a device 32 * @state: New power state to set 34 void lpss_set_power_state(struct udevice *dev, enum lpss_pwr_state state);
|
H A D | speedstep.h | 20 /* PMB1: I/O port that triggers SMI once cores are in the same state. 51 #define SPEEDSTEP_ENCODE_STATE(state) ( \ 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) ( \ 57 ((uint8_t)(state).ratio * 2) + (state).nonint)
|
/u-boot/tools/binman/etype/ |
H A D | files.py | 17 state = None variable 35 global state 36 from binman import state namespace 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)
|
/u-boot/arch/arm/cpu/armv8/ |
H A D | sha256_ce_glue.c | 11 extern void sha256_armv8_ce_process(uint32_t state[8], uint8_t const *src, 20 sha256_armv8_ce_process(ctx->state, data, blocks);
|
H A D | sha1_ce_glue.c | 11 extern void sha1_armv8_ce_process(uint32_t state[5], uint8_t const *src, 20 sha1_armv8_ce_process(ctx->state, data, blocks);
|
/u-boot/arch/x86/cpu/intel_common/ |
H A D | lpss.c | 31 /* Bit 1:0 Powerstate, controls D0 and D3 state */ 41 void lpss_set_power_state(struct udevice *dev, enum lpss_pwr_state state) argument 43 dm_pci_clrset_config8(dev, PME_CTRL_STATUS, POWER_STATE_MASK, state);
|
/u-boot/cmd/ |
H A D | sb.c | 12 #include <asm/state.h> 34 struct sandbox_state *state; local 36 state = state_get_current(); 37 state_show(state); 44 U_BOOT_CMD_MKENT(state, 1, 0, do_sb_state, "", ""), 66 "sb state - Show sandbox state"
|
/u-boot/test/dm/ |
H A D | hwspinlock.c | 9 #include <asm/state.h> 18 struct sandbox_state *state = state_get_current(); local 23 ut_asserteq(false, state->hwspinlock); 27 ut_asserteq(true, state->hwspinlock); 30 ut_asserteq(false, state->hwspinlock);
|