Home
last modified time | relevance | path

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

12345678910>>...18

/rk3399_rockchip-uboot/lib/
H A Daes.c327 static void shift_rows(u8 *state) in shift_rows() argument
332 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()
338 tmp = sbox[state[1]]; 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()
342 state[13] = tmp; in shift_rows()
[all …]
H A Dsha512.c82 ctx->state[0] = UL64(0x6A09E667F3BCC908); in __sha512_starts()
83 ctx->state[1] = UL64(0xBB67AE8584CAA73B); in __sha512_starts()
84 ctx->state[2] = UL64(0x3C6EF372FE94F82B); in __sha512_starts()
85 ctx->state[3] = UL64(0xA54FF53A5F1D36F1); in __sha512_starts()
86 ctx->state[4] = UL64(0x510E527FADE682D1); in __sha512_starts()
87 ctx->state[5] = UL64(0x9B05688C2B3E6C1F); in __sha512_starts()
88 ctx->state[6] = UL64(0x1F83D9ABFB41BD6B); in __sha512_starts()
89 ctx->state[7] = UL64(0x5BE0CD19137E2179); in __sha512_starts()
92 ctx->state[0] = UL64(0xCBBB9D5DC1059ED8); in __sha512_starts()
93 ctx->state[1] = UL64(0x629A292A367CD507); in __sha512_starts()
[all …]
/rk3399_rockchip-uboot/lib/zlib/
H A Dinflate.c5 local void fixedtables OF((struct inflate_state FAR *state));
10 struct inflate_state FAR *state; in inflateReset() local
12 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR; in inflateReset()
13 state = (struct inflate_state FAR *)strm->state; in inflateReset()
14 strm->total_in = strm->total_out = state->total = 0; in inflateReset()
17 state->mode = HEAD; in inflateReset()
18 state->last = 0; in inflateReset()
19 state->havedict = 0; in inflateReset()
20 state->dmax = 32768U; in inflateReset()
21 state->head = Z_NULL; in inflateReset()
[all …]
H A Dinffast.c72 struct inflate_state FAR *state; in inflate_fast() local
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()
[all …]
/rk3399_rockchip-uboot/common/
H A Dbouncebuf.c14 static int addr_aligned(struct bounce_buffer *state) in addr_aligned() argument
19 if ((ulong)state->user_buffer & align_mask) { in addr_aligned()
20 debug("Unaligned buffer address %p\n", state->user_buffer); in addr_aligned()
25 if (state->len != state->len_aligned) { in addr_aligned()
26 debug("Unaligned buffer length %zu\n", state->len); in addr_aligned()
34 int bounce_buffer_start(struct bounce_buffer *state, void *data, in bounce_buffer_start() argument
37 state->user_buffer = data; in bounce_buffer_start()
38 state->bounce_buffer = data; in bounce_buffer_start()
39 state->len = len; in bounce_buffer_start()
40 state->len_aligned = roundup(len, ARCH_DMA_MINALIGN); in bounce_buffer_start()
[all …]
/rk3399_rockchip-uboot/arch/sandbox/cpu/
H A Dstart.c20 struct sandbox_state *state = state_get_current(); in sandbox_early_getopt_check() local
27 if (!state->parse_err) in sandbox_early_getopt_check()
30 if (strcmp(state->parse_err, "help")) { in sandbox_early_getopt_check()
33 state->parse_err); in sandbox_early_getopt_check()
74 static int sandbox_cmdline_cb_help(struct sandbox_state *state, const char *arg) in sandbox_cmdline_cb_help() argument
84 struct sandbox_state *state = state_get_current(); in sandbox_main_loop_init() local
87 if (state->cmd || state->run_distro_boot) { in sandbox_main_loop_init()
93 if (state->cmd) in sandbox_main_loop_init()
94 retval = run_command_list(state->cmd, -1, 0); in sandbox_main_loop_init()
96 if (state->run_distro_boot) in sandbox_main_loop_init()
[all …]
H A Dstate.c14 static struct sandbox_state *state; /* Pointer to current state record */ variable
18 void *blob = state->state_fdt; in state_ensure_space()
41 state->state_fdt = buf; in state_ensure_space()
45 static int state_read_file(struct sandbox_state *state, const char *fname) in state_read_file() argument
56 state->state_fdt = os_malloc(size); in state_read_file()
57 if (!state->state_fdt) { in state_read_file()
67 if (os_read(fd, state->state_fdt, size) != size) { in state_read_file()
78 os_free(state->state_fdt); in state_read_file()
79 state->state_fdt = NULL; in state_read_file()
98 int sandbox_read_state_nodes(struct sandbox_state *state, in sandbox_read_state_nodes() argument
[all …]
/rk3399_rockchip-uboot/drivers/video/drm/
H A Drockchip_connector.c58 int rockchip_connector_pre_init(struct display_state *state) in rockchip_connector_pre_init() argument
63 conn = state->conn_state.connector; in rockchip_connector_pre_init()
65 ret = conn->funcs->pre_init(conn, state); in rockchip_connector_pre_init()
68 if (state->conn_state.secondary) { in rockchip_connector_pre_init()
69 conn = state->conn_state.connector; in rockchip_connector_pre_init()
70 ret = conn->funcs->pre_init(conn, state); in rockchip_connector_pre_init()
80 struct display_state *state) in rockchip_connector_path_init() argument
85 rockchip_panel_init(conn->panel, conn, state); in rockchip_connector_path_init()
88 rockchip_bridge_init(conn->bridge, conn, state); in rockchip_connector_path_init()
91 ret = conn->funcs->init(conn, state); in rockchip_connector_path_init()
[all …]
H A Drockchip_connector.h157 int (*pre_init)(struct rockchip_connector *connector, struct display_state *state);
163 int (*init)(struct rockchip_connector *connector, struct display_state *state);
165 void (*deinit)(struct rockchip_connector *connector, struct display_state *state);
171 int (*detect)(struct rockchip_connector *connector, struct display_state *state);
179 int (*get_timing)(struct rockchip_connector *connector, struct display_state *state);
186 int (*get_edid)(struct rockchip_connector *connector, struct display_state *state);
190 int (*prepare)(struct rockchip_connector *connector, struct display_state *state);
194 int (*enable)(struct rockchip_connector *connector, struct display_state *state);
195 int (*disable)(struct rockchip_connector *connector, struct display_state *state);
196 void (*unprepare)(struct rockchip_connector *connector, struct display_state *state);
[all …]
H A Drockchip_spl_display.c26 struct display_state *state = malloc(sizeof(struct display_state)); in rockchip_spl_display_drv_probe() local
27 if (!state) in rockchip_spl_display_drv_probe()
30 memset(state, 0, sizeof(*state)); in rockchip_spl_display_drv_probe()
32 rockchip_spl_vop_probe(&state->crtc_state); in rockchip_spl_display_drv_probe()
33 rockchip_spl_dw_hdmi_probe(&state->conn_state); in rockchip_spl_display_drv_probe()
34 inno_spl_hdmi_phy_probe(state); in rockchip_spl_display_drv_probe()
36 return state; in rockchip_spl_display_drv_probe()
39 static int rockchip_spl_display_init(struct display_state *state) in rockchip_spl_display_init() argument
41 struct crtc_state *crtc_state = &state->crtc_state; in rockchip_spl_display_init()
42 struct connector_state *conn_state = &state->conn_state; in rockchip_spl_display_init()
[all …]
H A Drockchip_crtc.h38 int (*preinit)(struct display_state *state);
39 int (*init)(struct display_state *state);
40 void (*deinit)(struct display_state *state);
41 int (*set_plane)(struct display_state *state);
42 int (*prepare)(struct display_state *state);
43 int (*enable)(struct display_state *state);
44 int (*post_enable)(struct display_state *state);
45 int (*disable)(struct display_state *state);
46 void (*unprepare)(struct display_state *state);
47 int (*fixup_dts)(struct display_state *state, void *blob);
[all …]
H A Drockchip_dw_hdmi_qp.h12 int rockchip_dw_hdmi_qp_init(struct rockchip_connector *conn, struct display_state *state);
13 void rockchip_dw_hdmi_qp_deinit(struct rockchip_connector *conn, struct display_state *state);
14 int rockchip_dw_hdmi_qp_prepare(struct rockchip_connector *conn, struct display_state *state);
15 int rockchip_dw_hdmi_qp_enable(struct rockchip_connector *conn, struct display_state *state);
16 int rockchip_dw_hdmi_qp_disable(struct rockchip_connector *conn, struct display_state *state);
17 int rockchip_dw_hdmi_qp_get_timing(struct rockchip_connector *conn, struct display_state *state);
18 int rockchip_dw_hdmi_qp_detect(struct rockchip_connector *conn, struct display_state *state);
19 int rockchip_dw_hdmi_qp_get_edid(struct rockchip_connector *conn, struct display_state *state);
20 int rockchip_dw_hdmi_qp_check(struct rockchip_connector *conn, struct display_state *state);
H A Drockchip_dw_hdmi.h12 int rockchip_dw_hdmi_init(struct rockchip_connector *conn, struct display_state *state);
13 void rockchip_dw_hdmi_deinit(struct rockchip_connector *conn, struct display_state *state);
14 int rockchip_dw_hdmi_prepare(struct rockchip_connector *conn, struct display_state *state);
15 int rockchip_dw_hdmi_enable(struct rockchip_connector *conn, struct display_state *state);
16 int rockchip_dw_hdmi_disable(struct rockchip_connector *conn, struct display_state *state);
17 int rockchip_dw_hdmi_get_timing(struct rockchip_connector *conn, struct display_state *state);
18 int rockchip_dw_hdmi_detect(struct rockchip_connector *conn, struct display_state *state);
19 int rockchip_dw_hdmi_get_edid(struct rockchip_connector *conn, struct display_state *state);
/rk3399_rockchip-uboot/arch/arm/lib/
H A Dstacktrace.c182 static bool unwind_exec_read_byte(struct unwind_state_arm32 *state, in unwind_exec_read_byte() argument
187 if (!copy_in(&insn, (void *)state->insn, sizeof(insn), kernel_stack)) in unwind_exec_read_byte()
191 *ret_insn = (insn >> (state->byte * 8)) & 0xff; in unwind_exec_read_byte()
194 if (state->byte == 0) { in unwind_exec_read_byte()
195 state->byte = 3; in unwind_exec_read_byte()
196 state->insn += sizeof(uint32_t); in unwind_exec_read_byte()
197 state->entries--; in unwind_exec_read_byte()
199 state->byte--; in unwind_exec_read_byte()
221 static bool unwind_exec_insn(struct unwind_state_arm32 *state, in unwind_exec_insn() argument
226 ulong vsp = state->registers[SP]; in unwind_exec_insn()
[all …]
/rk3399_rockchip-uboot/test/dm/
H 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()
H 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()
41 state->sysreset_allowed[SYSRESET_POWER] = false; in dm_test_sysreset_base()
43 state->sysreset_allowed[SYSRESET_POWER] = true; in dm_test_sysreset_base()
52 struct sandbox_state *state = state_get_current(); in dm_test_sysreset_walk() local
55 state->sysreset_allowed[SYSRESET_POWER] = false; in dm_test_sysreset_walk()
65 state->sysreset_allowed[SYSRESET_COLD] = true; in dm_test_sysreset_walk()
69 state->sysreset_allowed[SYSRESET_COLD] = false; in dm_test_sysreset_walk()
70 state->sysreset_allowed[SYSRESET_POWER] = true; in dm_test_sysreset_walk()
/rk3399_rockchip-uboot/drivers/sysreset/
H A Dsysreset_sandbox.c20 struct sandbox_state *state = state_get_current(); in sandbox_warm_sysreset_request() local
24 state->last_sysreset = type; in sandbox_warm_sysreset_request()
29 if (!state->sysreset_allowed[type]) in sandbox_warm_sysreset_request()
37 struct sandbox_state *state = state_get_current(); in sandbox_sysreset_request() local
44 if (state->fdt_fname && !dev_of_valid(dev)) in sandbox_sysreset_request()
49 state->last_sysreset = type; in sandbox_sysreset_request()
52 state->last_sysreset = type; in sandbox_sysreset_request()
53 if (!state->sysreset_allowed[type]) in sandbox_sysreset_request()
60 if (!state->sysreset_allowed[type]) in sandbox_sysreset_request()
/rk3399_rockchip-uboot/board/corscience/tricorder/
H A Dled.c18 void __led_init(led_id_t mask, int state) in __led_init() argument
20 __led_set(mask, state); in __led_init()
45 int state; in __led_toggle() local
47 state = gpio_get_value(toggle_gpio); in __led_toggle()
48 gpio_set_value(toggle_gpio, !state); in __led_toggle()
52 void __led_set(led_id_t mask, int state) in __led_set() argument
58 gpio_set_value(TRICORDER_STATUS_LED_GREEN, state); in __led_set()
65 gpio_set_value(TRICORDER_STATUS_LED_YELLOW, state); in __led_set()
70 if (CONFIG_LED_STATUS_OFF == state) in __led_set()
/rk3399_rockchip-uboot/arch/x86/cpu/
H A Dmtrr.c23 void mtrr_open(struct mtrr_state *state) in mtrr_open() argument
28 state->enable_cache = dcache_status(); in mtrr_open()
30 if (state->enable_cache) in mtrr_open()
32 state->deftype = native_read_msr(MTRR_DEF_TYPE_MSR); in mtrr_open()
33 wrmsrl(MTRR_DEF_TYPE_MSR, state->deftype & ~MTRR_DEF_TYPE_EN); in mtrr_open()
37 void mtrr_close(struct mtrr_state *state) in mtrr_close() argument
42 wrmsrl(MTRR_DEF_TYPE_MSR, state->deftype | MTRR_DEF_TYPE_EN); in mtrr_close()
43 if (state->enable_cache) in mtrr_close()
50 struct mtrr_state state; in mtrr_commit() local
57 mtrr_open(&state); in mtrr_commit()
[all …]
/rk3399_rockchip-uboot/drivers/misc/
H A Dstatus_led.c24 int state; member
82 __led_init (ld->mask, ld->state); in status_led_init()
96 if (ld->state != CONFIG_LED_STATUS_BLINKING) in status_led_tick()
107 void status_led_set (int led, int state) in status_led_set() argument
119 ld->state = state; in status_led_set()
120 if (state == CONFIG_LED_STATUS_BLINKING) { in status_led_set()
122 state = CONFIG_LED_STATUS_ON; /* always start with LED _ON_ */ in status_led_set()
124 __led_set (ld->mask, state); in status_led_set()
/rk3399_rockchip-uboot/board/ti/beagle/
H A Dled.c44 void __led_init (led_id_t mask, int state) in __led_init() argument
51 __led_set(mask, state); in __led_init()
56 int state, toggle_gpio; in __led_toggle() local
60 state = gpio_get_value(toggle_gpio); in __led_toggle()
61 gpio_direction_output(toggle_gpio, !state); in __led_toggle()
65 void __led_set (led_id_t mask, int state) in __led_set() argument
71 gpio_direction_output(toggle_gpio, state); in __led_set()
/rk3399_rockchip-uboot/arch/microblaze/cpu/
H 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()
/rk3399_rockchip-uboot/drivers/watchdog/
H A Dsandbox_wdt.c16 struct sandbox_state *state = state_get_current(); in sandbox_wdt_start() local
18 state->wdt.counter = timeout; in sandbox_wdt_start()
19 state->wdt.running = true; in sandbox_wdt_start()
26 struct sandbox_state *state = state_get_current(); in sandbox_wdt_stop() local
28 state->wdt.running = false; in sandbox_wdt_stop()
35 struct sandbox_state *state = state_get_current(); in sandbox_wdt_reset() local
37 state->wdt.reset_count++; in sandbox_wdt_reset()
/rk3399_rockchip-uboot/arch/x86/include/asm/
H A Dspeedstep.h52 #define SPEEDSTEP_ENCODE_STATE(state) ( \ argument
53 ((uint16_t)(state).dynfsb << SPEEDSTEP_RATIO_DYNFSB_SHIFT) | \
54 ((uint16_t)(state).nonint << SPEEDSTEP_RATIO_NONINT_SHIFT) | \
55 ((uint16_t)(state).ratio << SPEEDSTEP_RATIO_SHIFT) | \
56 ((uint16_t)(state).vid & SPEEDSTEP_VID_MASK))
57 #define SPEEDSTEP_DOUBLE_RATIO(state) ( \ argument
58 ((uint8_t)(state).ratio * 2) + (state).nonint)
/rk3399_rockchip-uboot/net/
H A Dlink_local.c50 } state = DISABLED; variable
120 state = PROBE; in link_local_start()
132 switch (state) { in link_local_timeout()
147 state = ANNOUNCE; in link_local_timeout()
159 state = ANNOUNCE; in link_local_timeout()
178 state = MONITOR; in link_local_timeout()
194 state = MONITOR; in link_local_timeout()
200 state = PROBE; in link_local_timeout()
216 if (state == DISABLED) in link_local_receive_arp()
289 "%d\n", state, source_ip_conflict, target_ip_conflict); in link_local_receive_arp()
[all …]

12345678910>>...18