Home
last modified time | relevance | path

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

123456789

/SCP-firmware-master/module/apcontext/src/
A Dmod_apcontext.c27 const struct mod_apcontext_config *config; in apcontext_zero() local
29 config = fwk_module_get_data(fwk_module_id_apcontext); in apcontext_zero()
34 config->base, in apcontext_zero()
35 config->base + config->size); in apcontext_zero()
37 memset((void *)config->base, 0, config->size); in apcontext_zero()
47 const struct mod_apcontext_config *config = data; in apcontext_init() local
53 if (config->base == 0) in apcontext_init()
56 if (config->size == 0) in apcontext_init()
64 const struct mod_apcontext_config *config = in apcontext_start() local
67 if (fwk_id_is_equal(config->clock_id, FWK_ID_NONE)) { in apcontext_start()
[all …]
/SCP-firmware-master/module/armv8m_mpu/src/
A Dmod_armv8m_mpu.c22 const struct mod_armv8m_mpu_config *config; in armv8m_mpu_init() local
29 config = data; in armv8m_mpu_init()
31 if (config->attributes_count <= (uint8_t)MPU_MAX_ATTR_COUNT) { in armv8m_mpu_init()
34 for (attr_index = 0U; attr_index < config->attributes_count; in armv8m_mpu_init()
36 ARM_MPU_SetMemAttr(attr_index, config->attributes[attr_index]); in armv8m_mpu_init()
39 config->first_region_number, config->regions, config->region_count); in armv8m_mpu_init()
/SCP-firmware-master/module/thermal_mgmt/src/
A Dmod_thermal_mgmt.c54 k_i = dev_ctx->config->pi_controller.k_integral; in pi_control()
82 pi_power + (uint32_t)dev_ctx->config->tdp; in pi_control()
245 struct mod_thermal_mgmt_dev_config *config; in thermal_mgmt_dev_init() local
258 dev_ctx->config = config; in thermal_mgmt_dev_init()
261 if (dev_ctx->config->thermal_actors_count > 0) { in thermal_mgmt_dev_init()
266 dev_ctx->config->thermal_actors_count, in thermal_mgmt_dev_init()
276 actor_ctx->config = &config->thermal_actors_table[actor]; in thermal_mgmt_dev_init()
288 sum_weights = actor_ctx->config->weight * config->tdp * config->tdp; in thermal_mgmt_dev_init()
319 dev_ctx->config->sensor_id, in thermal_mgmt_bind()
326 if (dev_ctx->config->temp_protection != NULL) { in thermal_mgmt_bind()
[all …]
/SCP-firmware-master/module/reg_sensor/src/
A Dmod_reg_sensor.c27 struct mod_reg_sensor_dev_config *config; in get_value() local
29 config = config_table[fwk_id_get_element_idx(id)]; in get_value()
30 fwk_assert(config != NULL); in get_value()
36 *value = *(mod_sensor_value_t *)config->reg; in get_value()
43 struct mod_reg_sensor_dev_config *config; in get_info() local
45 config = config_table[fwk_id_get_element_idx(id)]; in get_info()
46 fwk_assert(config != NULL); in get_info()
52 *info = *(config->info); in get_info()
78 struct mod_reg_sensor_dev_config *config = in reg_sensor_element_init() local
81 if (config->reg == 0) { in reg_sensor_element_init()
[all …]
/SCP-firmware-master/module/css_clock/src/
A Dmod_css_clock.c26 const struct mod_css_clock_dev_config *config; member
61 ctx->config->rate_table, ctx->config->rate_count, in get_rate_entry()
99 if (ctx->config->modulation_supported) { in set_rate_indexed()
202 if (rate_index >= ctx->config->rate_count) in css_clock_get_rate_from_index()
240 range->max = ctx->config->rate_table[ctx->config->rate_count - 1].rate; in css_clock_get_range()
257 dev_config = ctx->config; in css_clock_power_state_change()
299 dev_config = ctx->config; in css_clock_pending_power_state_change()
372 ctx->config = dev_config; in css_clock_element_init()
392 config = ctx->config; in css_clock_bind()
395 if (config->member_count == 0) in css_clock_bind()
[all …]
/SCP-firmware-master/product/juno/module/juno_hdlcd/src/
A Dmod_juno_hdlcd.c48 const struct mod_juno_hdlcd_config *config; member
322 range->min = ctx->config->min_rate; in juno_hdlcd_get_range()
323 range->max = ctx->config->max_rate; in juno_hdlcd_get_range()
324 range->step = ctx->config->min_step; in juno_hdlcd_get_range()
359 fwk_assert(config->min_rate != 0); in juno_hdlcd_dev_init()
360 fwk_assert(config->max_rate != 0); in juno_hdlcd_dev_init()
363 min_rate = config->min_rate; in juno_hdlcd_dev_init()
366 max_rate = config->max_rate; in juno_hdlcd_dev_init()
373 fwk_assert(min_rate == config->min_rate); in juno_hdlcd_dev_init()
374 fwk_assert(max_rate == config->max_rate); in juno_hdlcd_dev_init()
[all …]
/SCP-firmware-master/product/rcar/module/rcar_sd_clock/src/
A Dmod_rcar_sd_clock.c56 if (cnt >= ctx->config->rate_count) in get_rate_entry()
76 switch (ctx->config->type) { in do_sd_clock_set_rate()
165 if (!ctx->config->stop_clk) in sd_clock_set_state()
199 if (ctx->config->rate_count > 0) { in sd_clock_get_range()
225 switch (ctx->config->type) { in sd_clock_hw_initial_set_state()
228 div_value = ctx->config->div; in sd_clock_hw_initial_set_state()
233 if (ctx->config->stop_clk) { in sd_clock_hw_initial_set_state()
259 if (ctx->config->need_hardware_init) { in sd_clock_hw_initial_set_state()
260 rate = module_ctx.parent_clk[ctx->config->parent] / ctx->config->div; in sd_clock_hw_initial_set_state()
369 ctx->config = dev_config; in sd_clock_element_init()
[all …]
/SCP-firmware-master/module/sp805/src/
A Dmod_sp805.c20 const struct mod_sp805_config *config; member
35 fwk_interrupt_clear_pending(ctx.config->sp805_irq); in sp805_isr()
46 if (ctx.config->sp805_irq == FWK_INTERRUPT_NONE) { in enable_sp805_interrupt()
54 ctx.reg_base->LOAD = ctx.config->wdt_load_value; in enable_sp805_interrupt()
60 ctx.config->sp805_irq, sp805_isr, (uintptr_t)NULL); in enable_sp805_interrupt()
62 fwk_interrupt_clear_pending(ctx.config->sp805_irq); in enable_sp805_interrupt()
63 fwk_interrupt_enable(ctx.config->sp805_irq); in enable_sp805_interrupt()
78 ctx.config = (struct mod_sp805_config *)data; in mod_sp805_init()
79 fwk_assert(ctx.config != NULL); in mod_sp805_init()
81 ctx.reg_base = (struct sp805_reg *)ctx.config->reg_base; in mod_sp805_init()
[all …]
/SCP-firmware-master/module/pcie_integ_ctrl/src/
A Dmod_pcie_integ_ctrl.c34 const struct mod_pcie_integ_ctrl_config *config; member
68 const struct mod_pcie_integ_ctrl_config *config) in configure_pcie_ecam_mmio_space() argument
82 cfg = &config->x4_0_ecam_mmio_mmap; in configure_pcie_ecam_mmio_space()
90 cfg = &config->x4_1_ecam_mmio_mmap; in configure_pcie_ecam_mmio_space()
98 cfg = &config->x8_ecam_mmio_mmap; in configure_pcie_ecam_mmio_space()
106 cfg = &config->x16_ecam_mmio_mmap; in configure_pcie_ecam_mmio_space()
139 const struct mod_pcie_integ_ctrl_config *config; in pcie_integ_ctrl_element_init() local
143 if ((config == NULL) || (config->reg_base == 0)) { in pcie_integ_ctrl_element_init()
149 ctx->config = config; in pcie_integ_ctrl_element_init()
156 const struct mod_pcie_integ_ctrl_config *config; in pcie_integ_ctrl_start() local
[all …]
/SCP-firmware-master/module/cmn_booker/src/
A Dmod_cmn_booker.c52 const struct mod_cmn_booker_config *config = ctx->config; in process_node_hnf() local
137 const struct mod_cmn_booker_config *config = ctx->config; in cmn_booker_discovery() local
240 const struct mod_cmn_booker_config *config = ctx->config; in cmn_booker_configure() local
313 const struct mod_cmn_booker_config *config = ctx->config; in cmn_booker_setup_sam() local
389 if (config->hnf_cal_mode) in cmn_booker_setup_sam()
531 if (config->base == 0) in cmn_booker_init()
548 config->base, in cmn_booker_init()
549 config->hnd_node_id, in cmn_booker_init()
550 config->mesh_size_x, in cmn_booker_init()
551 config->mesh_size_y, in cmn_booker_init()
[all …]
/SCP-firmware-master/module/system_power/src/
A Dmod_system_power.c38 const struct mod_system_power_dev_config *config; member
74 const struct mod_system_power_config *config; member
162 ppu_id = dev_ctx->config->sys_ppu_id; in shutdown_system_power_ppus()
408 const struct mod_system_power_config *config; in system_power_mod_init() local
413 system_power_ctx.config = config = data; in system_power_mod_init()
445 dev_ctx->config = data; in system_power_mod_element_init()
459 const struct mod_system_power_config *config; in system_power_bind() local
482 config = system_power_ctx.config; in system_power_bind()
486 config->ext_ppus[i].ppu_id, in system_power_bind()
487 config->ext_ppus[i].api_id, in system_power_bind()
[all …]
/SCP-firmware-master/module/cmn_skeena/src/
A Dmod_cmn_skeena.c56 const struct mod_cmn_skeena_config *config = ctx->config; in process_node_hnf() local
193 const struct mod_cmn_skeena_config *config = ctx->config; in cmn_skeena_discovery() local
360 const struct mod_cmn_skeena_config *config = ctx->config; in cmn_skeena_configure() local
435 const struct mod_cmn_skeena_config *config = ctx->config; in cmn_skeena_setup_sam() local
771 (void *)config, in cmn_skeena_ccix_config_get()
836 if (config->base == 0) in cmn_skeena_init()
851 config->base, in cmn_skeena_init()
852 config->hnd_node_id, in cmn_skeena_init()
853 config->mesh_size_x, in cmn_skeena_init()
854 config->mesh_size_y); in cmn_skeena_init()
[all …]
/SCP-firmware-master/product/n1sdp/module/n1sdp_scp2pcc/src/
A Dmod_n1sdp_scp2pcc.c27 struct mem_msg_config_st *config; member
54 for (index = 0; index < scp2pcc_ctx.config->shared_num_rx; index++) { in reset_shared_memory()
56 (scp2pcc_ctx.config->shared_rx_buffer + in reset_shared_memory()
62 for (index = 0; index < scp2pcc_ctx.config->shared_num_tx; index++) { in reset_shared_memory()
64 (scp2pcc_ctx.config->shared_tx_buffer + in reset_shared_memory()
88 if (*(scp2pcc_ctx.config->shared_alive_address) != MSG_ALIVE_VALUE) { in mem_msg_send_message()
91 *(scp2pcc_ctx.config->shared_alive_address) = MSG_ALIVE_VALUE; in mem_msg_send_message()
101 for (index = 0; index < scp2pcc_ctx.config->shared_num_tx; index++) { in mem_msg_send_message()
104 (scp2pcc_ctx.config->shared_tx_buffer + in mem_msg_send_message()
142 scp2pcc_ctx.config = (struct mem_msg_config_st *)data; in n1sdp_scp2pcc_init()
[all …]
/SCP-firmware-master/module/mock_sensor/src/
A Dmod_mock_sensor.c23 struct mod_mock_sensor_dev_config *config; member
44 if (ctx->config->axis_count > 1) { in mock_sensor_callback()
45 for (i = 0; i < ctx->config->axis_count; i++) { in mock_sensor_callback()
49 response.value = *ctx->config->read_value; in mock_sensor_callback()
52 response.value = *ctx->config->read_value; in mock_sensor_callback()
73 ctx->config->alarm_id, in get_value()
96 *info = *ctx->config->info; in get_info()
107 return ctx->config->axis_count; in get_axis_count()
118 *info = ctx->config->axis_info[axis]; in get_axis_info()
174 ctx->config->alarm_id, in mock_sensor_bind()
[all …]
/SCP-firmware-master/product/synquacer/module/synquacer_pik_clock/src/
A Dmod_synquacer_pik_clock.c141 ctx->config->rate_table, in get_rate_entry()
142 ctx->config->rate_count, in get_rate_entry()
173 *ctx->config->control_reg = in ssclock_set_div()
238 *ctx->config->control_reg = in msclock_set_source()
275 *ctx->config->modulator_reg = in cluster_set_modulator()
309 switch (ctx->config->type) { in do_pik_clock_set_rate()
489 range->max = ctx->config->rate_table[ctx->config->rate_count - 1].rate; in pik_clock_get_range()
501 if (ctx->config->is_group_member) in pik_clock_power_state_change()
551 switch (ctx->config->type) { in pik_clock_direct_set_div()
683 ctx->config = dev_config; in pik_clock_element_init()
[all …]
/SCP-firmware-master/module/pik_clock/src/
A Dmod_pik_clock.c141 ctx->config->rate_table, ctx->config->rate_count, in get_rate_entry()
169 *ctx->config->control_reg = in ssclock_set_div()
232 *ctx->config->control_reg = in msclock_set_source()
268 *ctx->config->modulator_reg = ((*ctx->config->modulator_reg & in cluster_set_modulator()
299 switch (ctx->config->type) { in do_pik_clock_set_rate()
477 range->max = ctx->config->rate_table[ctx->config->rate_count - 1].rate; in pik_clock_get_range()
491 if (ctx->config->is_group_member) in pik_clock_power_state_change()
539 switch (ctx->config->type) { in pik_clock_direct_set_div()
628 config->divider_max); in pik_clock_init()
660 ctx->config = dev_config; in pik_clock_element_init()
[all …]
/SCP-firmware-master/module/sensor/src/
A Dsensor_extended.c27 return sensor_set_timestamp_config(id, &ctx->config->timestamp); in sensor_timestamp_dev_init()
34 const struct mod_sensor_timestamp_info *config) in sensor_set_timestamp_config() argument
39 if (config == NULL) { in sensor_set_timestamp_config()
49 ctx->timestamp.enabled = config->enabled; in sensor_set_timestamp_config()
50 ctx->timestamp.exponent = config->exponent; in sensor_set_timestamp_config()
57 struct mod_sensor_timestamp_info *config) in sensor_get_timestamp_config() argument
62 if (config == NULL) { in sensor_get_timestamp_config()
72 config->timestamp_support = ctx->timestamp.timestamp_support; in sensor_get_timestamp_config()
73 config->enabled = ctx->timestamp.enabled; in sensor_get_timestamp_config()
74 config->exponent = ctx->timestamp.exponent; in sensor_get_timestamp_config()
[all …]
/SCP-firmware-master/module/transport/src/
A Dmod_transport.c45 struct mod_transport_channel_config *config; member
141 channel_ctx->config->transport_type != in transport_get_message_header()
169 channel_ctx->config->transport_type != in transport_get_payload()
195 channel_ctx->config->transport_type != in transport_write_payload()
294 channel_ctx->config->driver_id); in transport_respond()
379 channel_ctx->config->driver_id); in transport_transmit()
410 channel_ctx->config->transport_type == in transport_trigger_interrupt()
414 channel_ctx->config->driver_id); in transport_trigger_interrupt()
461 channel_ctx->config->driver_id, fch); in transport_get_fch()
742 if ((channel_ctx->config->channel_type >= in transport_channel_init()
[all …]
/SCP-firmware-master/module/system_pll/src/
A Dmod_system_pll.c103 if ((rate % ctx->config->min_step) > 0) { in system_pll_set_rate()
127 if (rounded_rate < ctx->config->min_rate) in system_pll_set_rate()
137 *ctx->config->control_reg = picoseconds; in system_pll_set_rate()
139 if (ctx->config->status_reg != NULL) { in system_pll_set_rate()
141 while ((*ctx->config->status_reg & ctx->config->lock_flag_mask) == 0) in system_pll_set_rate()
209 range->min = ctx->config->min_rate; in system_pll_get_range()
210 range->max = ctx->config->max_rate; in system_pll_get_range()
211 range->step = ctx->config->min_step; in system_pll_get_range()
236 rate = ctx->config->initial_rate; in system_pll_power_state_change()
295 ctx->config = dev_config; in system_pll_element_init()
[all …]
/SCP-firmware-master/module/dwt_pmi/src/
A Dmod_dwt_pmi.c55 const struct mod_dwt_pmi_config *config; member
64 uint32_t val = *(ctx.config->dwt_ctrl_addr); in check_cyccnt_supported()
77 *(ctx.config->debug_sys_demcr_addr) |= DEBUG_SYSTEM_DEMCR_TRCENA; in enable_dwt()
93 *(ctx.config->dwt_ctrl_addr) |= DWT_CTRL_CYCCNTENA; in enable_cycle_count()
103 *(ctx.config->dwt_ctrl_addr) &= ~DWT_CTRL_CYCCNTENA; in disable_cycle_count()
116 *cycle_count = (uint64_t)(*(ctx.config->dwt_cyccnt)); in get_dwt_cycle_count()
128 *(ctx.config->dwt_cyccnt) = (uint32_t)cycle_count; in set_dwt_cycle_count()
165 counter_high = ctx.config->hw_timer->PCTH; in get_current_time()
166 counter_low = ctx.config->hw_timer->PCTL; in get_current_time()
167 } while (counter_high != ctx.config->hw_timer->PCTH); in get_current_time()
[all …]
/SCP-firmware-master/module/armv7m_mpu/src/
A Dmod_armv7m_mpu.c22 const struct mod_armv7m_mpu_config *config; in armv7m_mpu_init() local
27 config = data; in armv7m_mpu_init()
30 ARM_MPU_Load(config->regions, config->region_count); in armv7m_mpu_init()
/SCP-firmware-master/module/thermal_mgmt/test/
A Dmod_thermal_mgmt_unit_test.c31 struct mod_thermal_mgmt_dev_config *config; in setUp() local
47 config = (struct mod_thermal_mgmt_dev_config *) in setUp()
52 dev_ctx->config = config; in setUp()
65 actor_ctx->config = &(config->thermal_actors_table[actor_idx]); in setUp()
155 struct mod_thermal_mgmt_dev_config *config; in test_thermal_mgmt_dev_init_success() local
161 config = &dev_config_table[dev_idx]; in test_thermal_mgmt_dev_init_success()
167 config->thermal_actors_count, in test_thermal_mgmt_dev_init_success()
245 dev_ctx->config->sensor_id, in test_thermal_mgmt_bind_success()
250 dev_ctx->config->temp_protection->driver_id, in test_thermal_mgmt_bind_success()
258 dev_ctx->config->driver_api_id, in test_thermal_mgmt_bind_success()
[all …]
/SCP-firmware-master/product/n1sdp/module/n1sdp_timer_sync/src/
A Dmod_n1sdp_timer_sync.c46 const struct mod_n1sdp_tsync_config *config; member
130 device_ctx->reg->GCNT_TIMEOUT = device_ctx->config->sync_timeout; in n1sdp_sync_primary_timer()
164 irq = device_ctx->config->irq; in n1sdp_sync_secondary_timer()
171 device_ctx->config->sync_interval; in n1sdp_sync_secondary_timer()
173 device_ctx->config->off_threshold; in n1sdp_sync_secondary_timer()
204 struct mod_n1sdp_tsync_config *config = in n1sdp_timer_sync_device_init() local
208 if (config->reg == 0) { in n1sdp_timer_sync_device_init()
215 device_ctx->config = config; in n1sdp_timer_sync_device_init()
216 device_ctx->reg = (struct timer_sync_reg *)config->reg; in n1sdp_timer_sync_device_init()
219 device_ctx->local_cnt_addr = config->target_cnt_base + in n1sdp_timer_sync_device_init()
[all …]
/SCP-firmware-master/product/morello/module/morello_pll/src/
A Dmod_morello_pll.c29 const struct mod_morello_pll_dev_config *config; member
74 config = ctx->config; in pll_set_rate()
90 if ((rate % config->ref_rate) == 0) { in pll_set_rate()
91 fbdiv_d = rate / config->ref_rate; in pll_set_rate()
117 (float)config->ref_rate; in pll_set_rate()
156 *config->control_reg0 = in pll_set_rate()
158 *config->control_reg1 = in pll_set_rate()
284 rate = ctx->config->initial_rate; in morello_pll_power_state_change()
358 if ((ctx->config->control_reg0 == NULL) || in morello_pll_element_init()
359 (ctx->config->control_reg1 == NULL) || (ctx->config->ref_rate == 0)) { in morello_pll_element_init()
[all …]
/SCP-firmware-master/module/ssc/src/
A Dmod_ssc.c45 const struct mod_ssc_config *config = data; in ssc_init() local
48 if ((config == NULL) || (config->ssc_base == 0)) in ssc_init()
51 ssc_reg = (struct ssc_reg *)config->ssc_base; in ssc_init()
63 if (config->ssc_debug_cfg_set != 0) in ssc_init()
64 ssc_reg->SSC_DBGCFG_SET = config->ssc_debug_cfg_set; in ssc_init()
71 sys_info.name = config->product_name; in ssc_init()

Completed in 54 milliseconds

123456789