Home
last modified time | relevance | path

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

/SCP-firmware-master/product/rcar/module/rcar_sd_clock/src/
A Dmod_rcar_sd_clock.c26 static struct rcar_sd_clock_ctx module_ctx; variable
327 module_ctx.dev_count = element_count; in sd_clock_init()
332 module_ctx.dev_ctx_table = in sd_clock_init()
334 if (module_ctx.dev_ctx_table == NULL) in sd_clock_init()
342 module_ctx.parent_clk[CLK_PLL1_DIV2] = module_ctx.parent_clk[CLK_PLL1] / 2; in sd_clock_init()
343 module_ctx.parent_clk[CLK_PLL1_DIV4] = module_ctx.parent_clk[CLK_PLL1] / 4; in sd_clock_init()
345 module_ctx.parent_clk[CLK_S0] = module_ctx.parent_clk[CLK_PLL1_DIV2] / 2; in sd_clock_init()
346 module_ctx.parent_clk[CLK_S1] = module_ctx.parent_clk[CLK_PLL1_DIV2] / 3; in sd_clock_init()
347 module_ctx.parent_clk[CLK_S2] = module_ctx.parent_clk[CLK_PLL1_DIV2] / 4; in sd_clock_init()
348 module_ctx.parent_clk[CLK_S3] = module_ctx.parent_clk[CLK_PLL1_DIV2] / 6; in sd_clock_init()
[all …]
/SCP-firmware-master/product/juno/module/juno_xrp7724/src/
A Dmod_juno_xrp7724.c170 static struct juno_xrp7724_ctx module_ctx; variable
186 module_ctx.config->i2c_hal_id, in set_gpio()
187 module_ctx.config->target_address, in set_gpio()
527 module_ctx.driver_skipped = true; in juno_xrp7724_init()
576 &module_ctx.i2c_api); in juno_xrp7724_bind()
583 &module_ctx.timer_api); in juno_xrp7724_bind()
596 &module_ctx.sensor_driver_response_api); in juno_xrp7724_bind()
605 &module_ctx.psu_driver_response_api); in juno_xrp7724_bind()
657 switch (module_ctx.gpio_request) { in juno_xrp7724_gpio_process_request()
761 switch (module_ctx.sensor_request) { in juno_xrp7724_sensor_process_request()
[all …]
/SCP-firmware-master/product/rcar/module/rcar_reset/src/
A Dmod_rcar_reset.c24 static struct rcar_reset_ctx module_ctx; variable
41 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in rcar_auto_domain()
60 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in rcar_assert_domain()
72 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in rcar_deassert_domain()
117 module_ctx.dev_count = element_count; in reset_init()
122 module_ctx.dev_ctx_table = fwk_mm_calloc(element_count, in reset_init()
124 if (module_ctx.dev_ctx_table == NULL) in reset_init()
140 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(element_id); in reset_element_init()
/SCP-firmware-master/product/rcar/module/rcar_ext_clock/src/
A Dmod_rcar_ext_clock.c24 static struct rcar_ext_clock_ctx module_ctx; variable
41 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in ext_clock_get_rate()
57 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in ext_clock_get_state()
91 module_ctx.dev_count = element_count; in ext_clock_init()
96 module_ctx.dev_ctx_table = fwk_mm_calloc(element_count, in ext_clock_init()
98 if (module_ctx.dev_ctx_table == NULL) in ext_clock_init()
114 ext_clock_ctx = module_ctx.dev_ctx_table + in ext_clock_element_init()
/SCP-firmware-master/product/rcar/module/rcar_system/src/
A Dmod_rcar_system.c52 static struct rcar_system_ctx module_ctx; variable
91 return module_ctx.sds_api->struct_write(sds_structure_desc->id, in messaging_stack_ready()
149 for (i = 0; i < module_ctx.dev_count; i++) { in vApplicationIdleHook()
151 ctx = module_ctx.dev_ctx_table + in vApplicationIdleHook()
207 module_ctx.dev_count = element_count; in rcar_system_init()
212 module_ctx.dev_ctx_table = in rcar_system_init()
214 if (module_ctx.dev_ctx_table == NULL) in rcar_system_init()
227 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(element_id); in rcar_system_element()
244 &module_ctx.sds_api); in rcar_system_bind()
247 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(id); in rcar_system_bind()
/SCP-firmware-master/product/optee-stm32mp1/module/stm32_pwr_regu/src/
A Dmod_stm32_pwr_regu.c43 static struct stm32_pwr_regu_ctx module_ctx; variable
69 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in pwr_regu_get_config()
103 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in pwr_regu_set_config()
129 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in pwr_regu_get_level()
154 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in pwr_regu_set_level()
181 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in pwr_regu_get_info()
211 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in pwr_regu_level_from_index()
248 module_ctx.dev_count = element_count; in stm32_pwr_regu_init()
251 module_ctx.dev_ctx_table = in stm32_pwr_regu_init()
252 fwk_mm_calloc(element_count, sizeof(*module_ctx.dev_ctx_table)); in stm32_pwr_regu_init()
[all …]
/SCP-firmware-master/product/rcar/module/rcar_mstp_clock/src/
A Dmod_rcar_mstp_clock.c27 static struct rcar_mstp_clock_ctx module_ctx; variable
40 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in mstp_clock_set_state()
69 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in mstp_clock_get_state()
79 if (module_ctx.mstp_init->smstpcr_init[ctx->config->control_reg] & in mstp_clock_hw_initial_set_state()
112 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(element_id); in mstp_clock_resume()
168 module_ctx.dev_count = element_count; in mstp_clock_init()
176 module_ctx.mstp_init = mstp_init; in mstp_clock_init()
177 module_ctx.dev_ctx_table = in mstp_clock_init()
179 if (module_ctx.dev_ctx_table == NULL) in mstp_clock_init()
196 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(element_id); in mstp_clock_element_init()
/SCP-firmware-master/module/system_pll/src/
A Dmod_system_pll.c35 static struct system_pll_ctx module_ctx; variable
97 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in system_pll_set_rate()
159 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in system_pll_get_rate()
191 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in system_pll_get_state()
206 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in system_pll_get_range()
223 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in system_pll_power_state_change()
249 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in system_pll_power_state_pending_change()
277 module_ctx.dev_count = element_count; in system_pll_init()
282 module_ctx.dev_ctx_table = fwk_mm_calloc(element_count, in system_pll_init()
293 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(element_id); in system_pll_element_init()
/SCP-firmware-master/module/optee/reset/src/
A Dmod_optee_reset.c41 static struct optee_reset_ctx module_ctx; variable
61 ctx = &module_ctx.dev_ctx_table[fwk_id_get_element_idx(dev_id)]; in reset_set_state()
125 module_ctx.dev_count = element_count; in optee_reset_init()
131 module_ctx.dev_ctx_table = fwk_mm_calloc(element_count, in optee_reset_init()
148 ctx = &module_ctx.dev_ctx_table[fwk_id_get_element_idx(element_id)]; in optee_reset_element_init()
/SCP-firmware-master/product/optee-stm32mp1/module/stm32_pmic_regu/src/
A Dmod_stm32_pmic_regu.c46 static struct stm32_pmic_regu_ctx module_ctx; variable
125 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in pmic_regu_get_config()
155 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in pmic_regu_set_config()
182 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in pmic_regu_get_level()
203 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in pmic_regu_set_level()
256 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in pmic_regu_get_info()
288 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in pmic_regu_level_from_index()
322 module_ctx.dev_count = element_count; in stm32_pmic_regu_init()
325 module_ctx.dev_ctx_table = in stm32_pmic_regu_init()
326 fwk_mm_calloc(element_count, sizeof(*module_ctx.dev_ctx_table)); in stm32_pmic_regu_init()
[all …]
/SCP-firmware-master/product/synquacer/module/synquacer_pik_clock/src/
A Dmod_synquacer_pik_clock.c112 static struct pik_clock_ctx module_ctx; variable
162 if (divider > module_ctx.divider_max) in ssclock_set_div()
199 if (divider > module_ctx.divider_max) in msclock_set_div()
302 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in do_pik_clock_set_rate()
356 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in pik_clock_set_rate()
374 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in pik_clock_get_rate()
396 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in pik_clock_get_rate_from_index()
413 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in pik_clock_set_state()
640 module_ctx.dev_count = element_count; in pik_clock_init()
645 module_ctx.divider_max = in pik_clock_init()
[all …]
/SCP-firmware-master/module/pik_clock/src/
A Dmod_pik_clock.c115 static struct pik_clock_ctx module_ctx; variable
158 if (divider > module_ctx.divider_max) in ssclock_set_div()
194 if (divider > module_ctx.divider_max) in msclock_set_div()
292 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in do_pik_clock_set_rate()
344 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in pik_clock_set_rate()
362 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in pik_clock_get_rate()
383 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in pik_clock_get_rate_from_index()
401 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in pik_clock_set_state()
621 module_ctx.dev_count = element_count; in pik_clock_init()
626 module_ctx.divider_max = ((config == NULL) ? in pik_clock_init()
[all …]
/SCP-firmware-master/product/morello/module/morello_pll/src/
A Dmod_morello_pll.c53 static struct morello_pll_ctx module_ctx; variable
195 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in morello_pll_set_rate()
208 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in morello_pll_get_rate()
241 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in morello_pll_get_state()
270 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in morello_pll_power_state_change()
301 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in morello_pll_power_state_pending_change()
335 module_ctx.dev_count = element_count; in morello_pll_init()
337 module_ctx.dev_ctx_table = in morello_pll_init()
339 if (module_ctx.dev_ctx_table == NULL) { in morello_pll_init()
353 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(element_id); in morello_pll_element_init()
/SCP-firmware-master/product/n1sdp/module/n1sdp_pll/src/
A Dmod_n1sdp_pll.c53 static struct n1sdp_pll_ctx module_ctx; variable
176 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in n1sdp_pll_set_rate()
189 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in n1sdp_pll_get_rate()
221 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in n1sdp_pll_get_state()
250 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in n1sdp_pll_power_state_change()
281 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in n1sdp_pll_power_state_pending_change()
315 module_ctx.dev_count = element_count; in n1sdp_pll_init()
317 module_ctx.dev_ctx_table = fwk_mm_calloc(element_count, in n1sdp_pll_init()
328 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(element_id); in n1sdp_pll_element_init()
/SCP-firmware-master/product/juno/module/juno_hdlcd/src/
A Dmod_juno_hdlcd.c60 static struct juno_hdlcd_ctx module_ctx; variable
142 ctx = ctx_table + fwk_id_get_element_idx(module_ctx.request_clock_id); in juno_hdlcd_request_complete()
145 enable_pll(module_ctx.request_clock_id, ctx); in juno_hdlcd_request_complete()
151 module_ctx.request_clock_id = FWK_ID_NONE; in juno_hdlcd_request_complete()
187 if (!fwk_id_is_equal(module_ctx.request_clock_id, FWK_ID_NONE)) { in juno_hdlcd_set_rate()
217 if (clock_rate == module_ctx.current_pll_rate) { in juno_hdlcd_set_rate()
249 module_ctx.current_pll_rate = clock_rate; in juno_hdlcd_set_rate()
259 module_ctx.request_clock_id = clock_id; in juno_hdlcd_set_rate()
281 *rate = module_ctx.current_pll_rate; in juno_hdlcd_get_rate()
454 module_ctx.current_pll_rate = in juno_hdlcd_start()
[all …]
/SCP-firmware-master/module/css_clock/src/
A Dmod_css_clock.c35 static struct css_clock_ctx module_ctx; variable
173 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in css_clock_set_rate()
185 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in css_clock_get_rate()
200 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in css_clock_get_rate_from_index()
235 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in css_clock_get_range()
256 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in css_clock_power_state_change()
298 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in css_clock_pending_power_state_change()
336 module_ctx.dev_count = element_count; in css_clock_init()
341 module_ctx.dev_ctx_table = fwk_mm_calloc(element_count, in css_clock_init()
356 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(element_id); in css_clock_element_init()
[all …]
/SCP-firmware-master/module/voltage_domain/src/
A Dmod_voltage_domain.c36 static struct voltd_ctx module_ctx; variable
46 *ctx = &module_ctx.dev_ctx_table[fwk_id_get_element_idx(voltd_id)]; in get_ctx()
165 module_ctx.dev_ctx_table = fwk_mm_calloc(element_count, in voltd_init()
176 ctx = &module_ctx.dev_ctx_table[fwk_id_get_element_idx(element_id)]; in voltd_dev_init()
194 ctx = &module_ctx.dev_ctx_table[fwk_id_get_element_idx(id)]; in voltd_bind()
/SCP-firmware-master/product/juno/module/juno_soc_clock_ram/src/
A Dmod_juno_soc_clock_ram.c67 static struct juno_soc_clock_ctx module_ctx; variable
134 status = module_ctx.timer_api->wait( in cluster_clock_divsys_set()
165 status = module_ctx.timer_api->wait( in cluster_clock_divext_set()
190 status = module_ctx.timer_api->wait( in cluster_clock_sel_set()
211 status = module_ctx.timer_api->wait( in clock_sel_set()
232 status = module_ctx.timer_api->wait( in clock_div_set()
261 if (module_ctx.debug_pd_state == MOD_PD_STATE_ON) { in init_juno_soc_clock()
524 module_ctx.config = data; in juno_soc_clock_init()
576 MOD_TIMER_API_ID_TIMER, &module_ctx.timer_api); in juno_soc_clock_bind()
610 module_ctx.config->systop_pd_id, in juno_soc_clock_start()
[all …]
/SCP-firmware-master/product/rcar/module/rcar_clock/src/
A Dmod_rcar_clock.c26 static struct rcar_clock_ctx module_ctx; variable
1012 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in do_rcar_clock_set_rate()
1040 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in rcar_clock_set_rate()
1058 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(dev_id); in rcar_clock_get_rate()
1079 module_ctx.dev_count = element_count; in rcar_clock_init()
1084 module_ctx.dev_ctx_table = in rcar_clock_init()
1086 if (module_ctx.dev_ctx_table == NULL) in rcar_clock_init()
1090 module_ctx.extal_clk = ext->ext_clk_rate; in rcar_clock_init()
1109 ctx = module_ctx.dev_ctx_table + fwk_id_get_element_idx(element_id); in rcar_clock_element_init()
/SCP-firmware-master/module/optee/clock/src/
A Dmod_optee_clock.c40 static struct optee_clock_module_ctx module_ctx; variable
48 return module_ctx.dev_ctx + fwk_id_get_element_idx(dev_id); in elt_id_to_ctx()
331 module_ctx.dev_count = count; in optee_clock_init()
332 module_ctx.dev_ctx = fwk_mm_calloc(count, sizeof(*module_ctx.dev_ctx)); in optee_clock_init()
/SCP-firmware-master/product/juno/module/juno_ppu/src/
A Djuno_ppu.h53 struct module_ctx { struct
A Dmod_juno_ppu.c75 static struct module_ctx juno_ppu_ctx;
/SCP-firmware-master/module/clock/src/
A Dclock_tree_management.c315 int clock_connect_tree(struct clock_ctx *module_ctx) in clock_connect_tree() argument
322 for (clk_idx = 0; clk_idx < module_ctx->dev_count; clk_idx++) { in clock_connect_tree()
323 clk = &(module_ctx->dev_ctx_table[clk_idx]); in clock_connect_tree()
333 parent = &(module_ctx->dev_ctx_table[parent_idx]); in clock_connect_tree()
A Dclock.h132 int clock_connect_tree(struct clock_ctx *module_ctx);
/SCP-firmware-master/product/juno/module/juno_cdcel937/src/
A Dmod_juno_cdcel937.c30 static struct juno_cdcel937_module_ctx module_ctx; variable
124 status = module_ctx.i2c_api->transmit_as_controller( in set_block_access_length()
157 status = module_ctx.i2c_api->transmit_as_controller( in write_configuration()
184 status = module_ctx.i2c_api->transmit_then_receive_as_controller( in read_configuration()
210 status = module_ctx.i2c_api->transmit_then_receive_as_controller( in read_configuration_y1()
918 &module_ctx.i2c_api); in juno_cdcel937_bind()

Completed in 43 milliseconds