Home
last modified time | relevance | path

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

1234

/SCP-firmware-master/product/rcar/module/rcar_system/src/
A Drcar_iic_dvfs.c141 *state = DVFS_START; in IIC_DVFS_FUNC()
168 *state = DVFS_START; in IIC_DVFS_FUNC()
223 DVFS_STATE_T *state, in IIC_DVFS_FUNC() argument
291 *state = DVFS_STOP; in IIC_DVFS_FUNC()
314 *state = DVFS_DONE; in IIC_DVFS_FUNC()
338 DVFS_STATE_T *state, in IIC_DVFS_FUNC() argument
391 DVFS_STATE_T *state, in IIC_DVFS_FUNC() argument
462 *state = DVFS_READ; in IIC_DVFS_FUNC()
479 *state = DVFS_DONE; in IIC_DVFS_FUNC()
494 switch (state) { in RCAR_DVFS_API()
[all …]
/SCP-firmware-master/module/power_domain/src/
A Dmod_power_domain.c50 unsigned int state; member
62 unsigned int state; member
177 unsigned int state; member
252 uint32_t state; member
318 return state; in normalize_state()
409 uint32_t state; in get_highest_level_from_composite_state() local
668 pd->power_state_pre_transition_notification_ctx.state = state; in initiate_power_state_pre_transition_notification()
1298 mod_pd_ctx.system_suspend.state = req_params->state; in process_system_suspend_request()
1584 req_params->state = state; in pd_system_suspend()
1644 report_params->state = state; in report_power_state_transition()
[all …]
/SCP-firmware-master/unit_test/unity_mocks/mocks/internal/
A DMockfwk_module_internal.h49 …dule_get_state_ExpectAndReturn(id, state, cmock_retval) fwk_module_get_state_CMockExpectAndReturn(… argument
50 …AndReturn(UNITY_LINE_TYPE cmock_line, fwk_id_t id, enum fwk_module_state* state, int cmock_to_retu…
51 typedef int (* CMOCK_fwk_module_get_state_CALLBACK)(fwk_id_t id, enum fwk_module_state* state, int …
55 …fwk_module_get_state_ReturnThruPtr_state(state) fwk_module_get_state_CMockReturnMemThruPtr_state(_… argument
56 …urnArrayThruPtr_state(state, cmock_len) fwk_module_get_state_CMockReturnMemThruPtr_state(__LINE__,… argument
57 …e_get_state_ReturnMemThruPtr_state(state, cmock_size) fwk_module_get_state_CMockReturnMemThruPtr_s… argument
58 …ReturnMemThruPtr_state(UNITY_LINE_TYPE cmock_line, enum fwk_module_state* state, size_t cmock_size…
/SCP-firmware-master/product/rcar/module/rcar_system_power/src/
A Dmod_rcar_system_power.c50 unsigned int state; member
67 static int system_power_set_state(fwk_id_t pd_id, unsigned int state) in system_power_set_state() argument
72 static int system_power_get_state(fwk_id_t pd_id, unsigned int *state) in system_power_get_state() argument
74 *state = system_power_ctx.state; in system_power_get_state()
101 uint32_t state = MOD_PD_COMPOSITE_STATE( in soc_wakeup_handler() local
105 system_power_ctx.mod_pd_restricted_api->set_state(pd_id, false, state); in soc_wakeup_handler()
123 unsigned int state) in system_power_report_power_state_transition() argument
134 system_power_ctx.state = MOD_PD_STATE_ON; in system_power_report_power_state_transition()
137 system_power_ctx.state = MOD_SYSTEM_POWER_POWER_STATE_SLEEP0; in system_power_report_power_state_transition()
139 system_power_ctx.state = MOD_PD_STATE_OFF; in system_power_report_power_state_transition()
[all …]
/SCP-firmware-master/module/system_power/src/
A Dmod_system_power.c68 unsigned int state; member
155 unsigned int state; in shutdown_system_power_ppus() local
169 status = api->set_state(ppu_id, state); in shutdown_system_power_ppus()
241 system_power_ctx.requested_state = state; in system_power_set_state()
243 switch (state) { in system_power_set_state()
250 status = set_system_power_state(state); in system_power_set_state()
276 status = set_system_power_state(state); in system_power_set_state()
311 status = set_system_power_state(state); in system_power_set_state()
327 *state = system_power_ctx.state; in system_power_get_state()
377 unsigned int state) in system_power_report_power_state_transition() argument
[all …]
/SCP-firmware-master/module/scmi_system_power_req/src/
A Dmod_scmi_system_power_req.c49 uint32_t state; member
111 uint32_t state; member
201 mod_ctx.state = mod_ctx.state_requested; in scmi_system_power_req_state_set_handler()
225 uint32_t state, in scmi_system_power_req_set_state() argument
234 mod_ctx.state_requested = state; in scmi_system_power_req_set_state()
243 req_params->state = state; in scmi_system_power_req_set_state()
263 .system_state = state, in process_set_state()
278 if (state != NULL) { in scmi_system_power_req_get_state()
280 *state = mod_ctx.state; in scmi_system_power_req_get_state()
301 mod_ctx.state = MOD_PD_STATE_ON; in scmi_system_power_req_init()
[all …]
/SCP-firmware-master/product/juno/module/juno_ppu/src/
A Dmod_juno_ppu.c241 unsigned int state = 0; in juno_ppu_alarm_callback() local
248 if (state == MOD_PD_STATE_OFF) { in juno_ppu_alarm_callback()
293 state); in pd_set_state()
366 if (state != MOD_PD_STATE_ON) { in dbgsys_set_state()
376 state); in dbgsys_set_state()
411 switch (state) { in css_set_state()
463 state); in css_set_state()
473 *state = juno_ppu_ctx.css_state; in css_get_state()
542 state); in cluster_set_state()
559 if (state != MOD_PD_STATE_OFF) { in cluster_deny()
[all …]
/SCP-firmware-master/framework/include/internal/
A Dfwk_module.h30 enum fwk_module_state state; member
61 enum fwk_module_state state; member
125 int fwk_module_get_state(fwk_id_t id, enum fwk_module_state *state);
/SCP-firmware-master/product/synquacer/module/ppu_v0_synquacer/src/
A Dmod_ppu_v0.c75 static int get_state(struct ppu_v0_reg *ppu, unsigned int *state) in get_state() argument
87 *state = ppu_mode_to_power_state[ppu_mode]; in get_state()
88 if (*state == MODE_UNSUPPORTED) { in get_state()
93 FWK_LOG_INFO("[PPUV0] get state reg=0x%p (0x%x)", (void *)ppu, *state); in get_state()
105 static int pd_set_state(fwk_id_t pd_id, unsigned int state) in pd_set_state() argument
115 state); in pd_set_state()
117 switch (state) { in pd_set_state()
126 state); in pd_set_state()
145 state); in pd_set_state()
160 static int pd_get_state(fwk_id_t pd_id, unsigned int *state) in pd_get_state() argument
[all …]
/SCP-firmware-master/module/mock_clock/src/
A Dmod_mock_clock.c25 enum mod_clock_state state; member
78 if (ctx->state == MOD_CLOCK_STATE_STOPPED) { in mod_mock_clock_set_rate()
135 enum mod_clock_state state) in mod_mock_clock_set_state() argument
141 ctx->state = state; in mod_mock_clock_set_state()
148 enum mod_clock_state *state) in mod_mock_clock_get_state() argument
154 *state = ctx->state; in mod_mock_clock_get_state()
181 unsigned int state) in mod_mock_clock_process_power_transition() argument
198 if (ctx->state == MOD_CLOCK_STATE_STOPPED || !ctx->rate_initialized) { in mod_mock_clock_update_input_rate()
271 ctx->state = MOD_CLOCK_STATE_RUNNING; in mod_mock_clock_element_init()
/SCP-firmware-master/product/rcar/module/rcar_pd_core/src/
A Dmod_rcar_pd_core.c36 static int rcar_pd_set_state(fwk_id_t pd_id, unsigned int state) in rcar_pd_set_state() argument
44 switch (state) { in rcar_pd_set_state()
47 pd_ctx->current_state = state; in rcar_pd_set_state()
54 pd_ctx->current_state = state; in rcar_pd_set_state()
67 static int rcar_pd_get_state(fwk_id_t pd_id, unsigned int *state) in rcar_pd_get_state() argument
73 *state = pd_ctx->current_state; in rcar_pd_get_state()
96 static int rcar_core_pd_set_state(fwk_id_t core_pd_id, unsigned int state) in rcar_core_pd_set_state() argument
104 switch (state) { in rcar_core_pd_set_state()
107 pd_ctx->current_state = state; in rcar_core_pd_set_state()
114 pd_ctx->current_state = state; in rcar_core_pd_set_state()
[all …]
/SCP-firmware-master/product/rcar/module/rcar_pd_pmic_bd9571/src/
A Dmod_rcar_pd_pmic_bd9571.c36 static int pd_set_state(fwk_id_t pd_id, unsigned int state) in pd_set_state() argument
43 ret = pd_ctx->api->set_pmic(pd_ctx->config->psu_id, state); in pd_set_state()
45 switch (state) { in pd_set_state()
58 state); in pd_set_state()
62 pd_ctx->current_state = state; in pd_set_state()
67 static int pd_get_state(fwk_id_t pd_id, unsigned int *state) in pd_get_state() argument
72 *state = pd_ctx->current_state; in pd_get_state()
/SCP-firmware-master/module/power_domain/include/
A Dmod_power_domain.h303 int (*set_state)(fwk_id_t dev_id, unsigned int state);
319 int (*get_state)(fwk_id_t dev_id, unsigned int *state);
357 bool (*deny)(fwk_id_t dev_id, unsigned int state);
511 int (*set_state)(fwk_id_t pd_id, bool resp_requested, uint32_t state);
524 int (*get_state)(fwk_id_t pd_id, unsigned int *state);
568 int (*system_suspend)(unsigned int state);
659 int (*report_power_state_transition)(fwk_id_t pd_id, unsigned int state);
711 unsigned int state; member
/SCP-firmware-master/module/clock/include/
A Dmod_clock.h317 int (*set_state)(fwk_id_t clock_id, enum mod_clock_state state);
331 int (*get_state)(fwk_id_t clock_id, enum mod_clock_state *state);
395 int (*process_power_transition)(fwk_id_t clock_id, unsigned int state);
506 int (*set_state)(fwk_id_t clock_id, enum mod_clock_state state);
525 int (*get_state)(fwk_id_t clock_id, enum mod_clock_state *state);
551 enum mod_clock_state state; member
/SCP-firmware-master/product/n1sdp/module/n1sdp_remote_pd/src/
A Dmod_n1sdp_remote_pd.c60 static int remote_pd_get_state(fwk_id_t pd_id, unsigned int *state) in remote_pd_get_state() argument
72 *state = remote_pd_ctx.logical_systop_state; in remote_pd_get_state()
78 state); in remote_pd_get_state()
81 static int remote_pd_set_state(fwk_id_t pd_id, unsigned int state) in remote_pd_set_state() argument
97 remote_pd_ctx.logical_systop_state = state; in remote_pd_set_state()
99 dev_ctx->bound_id, state); in remote_pd_set_state()
102 switch (state) { in remote_pd_set_state()
131 "[C2C] Requested CPU power state (%i) is not supported!", state); in remote_pd_set_state()
/SCP-firmware-master/module/optee/clock/src/
A Dmod_optee_clock.c83 static int set_state(fwk_id_t dev_id, enum mod_clock_state state) in set_state() argument
91 switch (state) { in set_state()
100 if (state == MOD_CLOCK_STATE_STOPPED) { in set_state()
107 if (state == MOD_CLOCK_STATE_STOPPED) { in set_state()
142 static int get_state(fwk_id_t dev_id, enum mod_clock_state *state) in get_state() argument
146 if ((ctx == NULL) || (state == NULL)) { in get_state()
151 *state = MOD_CLOCK_STATE_STOPPED; in get_state()
156 *state = MOD_CLOCK_STATE_RUNNING; in get_state()
158 *state = MOD_CLOCK_STATE_STOPPED; in get_state()
165 *state == MOD_CLOCK_STATE_STOPPED ? "off" : "on"); in get_state()
[all …]
/SCP-firmware-master/framework/test/
A Dtest_fwk_interrupt.c57 static int is_enabled(unsigned int interrupt, bool *state) in is_enabled() argument
72 static int is_pending(unsigned int interrupt, bool *state) in is_pending() argument
164 bool state; in test_fwk_interrupt_before_init() local
166 result = fwk_interrupt_is_enabled(interrupt, &state); in test_fwk_interrupt_before_init()
175 result = fwk_interrupt_is_pending(interrupt, &state); in test_fwk_interrupt_before_init()
196 state = fwk_is_interrupt_context(); in test_fwk_interrupt_before_init()
197 assert(state == false); in test_fwk_interrupt_before_init()
228 bool state; in test_fwk_interrupt_is_enabled() local
235 result = fwk_interrupt_is_enabled(INTERRUPT_ID, &state); in test_fwk_interrupt_is_enabled()
260 bool state; in test_fwk_interrupt_is_pending() local
[all …]
/SCP-firmware-master/module/i2c/src/
A Dmod_i2c.c34 enum mod_i2c_dev_state state; member
324 ctx->state = MOD_I2C_DEV_TX; in process_request()
330 ctx->state = MOD_I2C_DEV_TX_RX; in process_request()
341 ctx->state = MOD_I2C_DEV_RX; in process_request()
365 ctx->state = MOD_I2C_DEV_IDLE; in reload()
367 ctx->state = MOD_I2C_DEV_RELOAD; in reload()
392 ctx->state = MOD_I2C_DEV_IDLE; in process_next_request()
460 ctx->state = MOD_I2C_DEV_IDLE; in mod_i2c_process_event()
473 if ((ctx->state == MOD_I2C_DEV_TX) || (ctx->state == MOD_I2C_DEV_RX)) { in mod_i2c_process_event()
484 ctx->state = MOD_I2C_DEV_RX; in mod_i2c_process_event()
[all …]
/SCP-firmware-master/product/juno/module/juno_ppu/include/
A Dmod_juno_ppu.h132 int (*set_state_and_wait)(fwk_id_t ppu_id, unsigned int state);
145 int (*get_state)(fwk_id_t ppu_id, unsigned int *state);
/SCP-firmware-master/module/psu/src/
A Dmod_psu.c26 enum mod_psu_state state; member
87 if (ctx->op.state != MOD_PSU_STATE_IDLE) { in mod_psu_get_enabled()
104 ctx->op.state = MOD_PSU_STATE_BUSY; in mod_psu_get_enabled()
130 if (ctx->op.state != MOD_PSU_STATE_IDLE) { in mod_psu_set_enabled()
147 ctx->op.state = MOD_PSU_STATE_BUSY; in mod_psu_set_enabled()
173 if (ctx->op.state != MOD_PSU_STATE_IDLE) { in mod_psu_get_voltage()
190 ctx->op.state = MOD_PSU_STATE_BUSY; in mod_psu_get_voltage()
216 if (ctx->op.state != MOD_PSU_STATE_IDLE) { in mod_psu_set_voltage()
281 ctx->op.state = MOD_PSU_STATE_IDLE; in mod_psu_respond()
315 .state = MOD_PSU_STATE_IDLE, in mod_psu_element_init()
[all …]
/SCP-firmware-master/module/scmi_system_power_req/include/
A Dmod_scmi_system_power_req.h63 uint32_t state,
79 int (*get_req_state)(uint32_t *state);
/SCP-firmware-master/module/mock_psu/src/
A Dmod_mock_psu.c46 } state; member
108 response.enabled = ctx->state.enabled; in mod_mock_psu_alarm_callback()
113 ctx->state.enabled = ctx->op.enabled; in mod_mock_psu_alarm_callback()
118 response.voltage = ctx->state.voltage; in mod_mock_psu_alarm_callback()
123 ctx->state.voltage = ctx->op.voltage; in mod_mock_psu_alarm_callback()
186 *enabled = ctx->state.enabled; in mod_mock_psu_get_enabled()
220 ctx->state.enabled = enabled; in mod_mock_psu_set_enabled()
253 *voltage = ctx->state.voltage; in mod_mock_psu_get_voltage()
285 ctx->state.voltage = voltage; in mod_mock_psu_set_voltage()
338 .state = { in mod_mock_psu_element_init()
/SCP-firmware-master/module/ppu_v1/src/
A Dmod_ppu_v1.c124 *state = MOD_PD_STATE_SLEEP; in get_state()
126 if (*state == MODE_UNSUPPORTED) { in get_state()
141 switch (state) { in ppu_v1_pd_set_state()
210 unsigned int state; in ppu_v1_core_pd_init() local
214 status = get_state(ppu, &state); in ppu_v1_core_pd_init()
218 if (state == MOD_PD_STATE_ON) { in ppu_v1_core_pd_init()
236 switch (state) { in ppu_v1_core_pd_set_state()
481 unsigned int state; in ppu_v1_cluster_pd_init() local
485 status = get_state(ppu, &state); in ppu_v1_cluster_pd_init()
493 if (state == MOD_PD_STATE_ON) { in ppu_v1_cluster_pd_init()
[all …]
/SCP-firmware-master/module/ppu_v0/src/
A Dmod_ppu_v0.c79 static int get_state(struct ppu_v0_reg *ppu, unsigned int *state) in get_state() argument
90 *state = ppu_mode_to_power_state[ppu_mode]; in get_state()
91 if (*state == MODE_UNSUPPORTED) { in get_state()
106 static int pd_set_state(fwk_id_t pd_id, unsigned int state) in pd_set_state() argument
115 switch (state) { in pd_set_state()
131 FWK_LOG_ERR("[PD] Requested power state (%i) is not supported.", state); in pd_set_state()
138 static int pd_get_state(fwk_id_t pd_id, unsigned int *state) in pd_get_state() argument
144 return get_state(pd_ctx->ppu, state); in pd_get_state()
/SCP-firmware-master/product/juno/module/juno_soc_clock_ram/src/
A Dmod_juno_soc_clock_ram.c51 enum mod_clock_state state; member
364 if (ctx->state == MOD_CLOCK_STATE_STOPPED) { in juno_soc_clock_set_rate()
425 enum mod_clock_state state) in juno_soc_clock_set_state() argument
432 if (ctx->state == state) { in juno_soc_clock_set_state()
436 if (state == MOD_CLOCK_STATE_RUNNING) { in juno_soc_clock_set_state()
453 ctx->state = state; in juno_soc_clock_set_state()
465 *state = ctx->state; in juno_soc_clock_get_state()
496 ctx->pd_state = state; in juno_soc_clock_process_power_transition()
554 ctx->state = MOD_CLOCK_STATE_RUNNING; in juno_soc_clock_element_init()
649 fwk_assert(params->state != MOD_PD_STATE_OFF); in process_debug_notification()
[all …]

Completed in 45 milliseconds

1234