/SCP-firmware-master/module/dvfs/src/ |
A D | mod_dvfs.c | 264 ctx->request.cookie = cookie, ctx->request.new_opp = *new_opp; in dvfs_set_level_start() 286 ctx, in dvfs_flush_pending_request() 393 if (ctx->config->sustained_idx >= ctx->opp_count) { in dvfs_get_sustained_opp() 397 *opp = ctx->config->opps[ctx->config->sustained_idx]; in dvfs_get_sustained_opp() 611 ctx->domain_id, ctx->cookie, &read_req_event); in dvfs_complete_respond() 669 ctx->domain_id, ctx->request.cookie, ctx->current_opp.level); in dvfs_complete() 780 ctx->current_opp = ctx->request.new_opp; in dvfs_handle_set_opp() 865 ctx->current_opp = ctx->request.new_opp; in dvfs_handle_psu_set_voltage_resp() 908 ctx->current_opp = ctx->request.new_opp; in dvfs_handle_clk_set_freq_resp() 987 ctx, in mod_dvfs_process_event() [all …]
|
/SCP-firmware-master/module/sensor/src/ |
A D | sensor_extended.c | 25 ctx->timestamp.timestamp_support = ctx->config->timestamp.timestamp_support; in sensor_timestamp_dev_init() 36 struct sensor_dev_ctx *ctx; in sensor_set_timestamp_config() local 43 ctx = sensor_get_ctx(id); in sensor_set_timestamp_config() 66 ctx = sensor_get_ctx(id); in sensor_get_timestamp_config() 95 ctx = sensor_get_ctx(id); in sensor_get_timestamp() 127 ctx = sensor_get_ctx(id); in sensor_axis_start() 130 ctx->axis_count = in sensor_axis_start() 131 ctx->driver_api->get_axis_count(ctx->config->driver_id); in sensor_axis_start() 133 ctx->axis_count = 1; in sensor_axis_start() 137 ctx->last_read.axis_count = ctx->axis_count; in sensor_axis_start() [all …]
|
A D | mod_sensor.c | 41 fwk_assert(ctx != NULL); in get_ctx_if_valid_call() 84 switch (ctx->params.mode) { in trip_point_evaluate() 113 struct sensor_dev_ctx *ctx; in trip_point_process() local 140 struct sensor_dev_ctx *ctx; in get_data() local 160 ctx->config->driver_id, &ctx->last_read.value); in get_data() 215 status = ctx->driver_api->get_info(ctx->config->driver_id, &info->hal_info); in get_info() 230 if (ctx->axis_count > 1) { in get_info() 384 ctx->config = config; in sensor_dev_init() 398 ctx->axis_count = 1; in sensor_dev_init() 452 ctx->driver_api = driver; in sensor_bind() [all …]
|
/SCP-firmware-master/module/cmn600/src/ |
A D | cmn600_ccix.c | 40 struct cmn600_ctx *ctx = wait_data->ctx; in cxg_link_wait_condition() local 155 ctx->raid_value++; in program_cxg_ra_rnf_ldid_to_raid_reg() 178 ctx->raid_value++; in program_cxg_ra_rni_ldid_to_raid_reg() 201 ctx->raid_value++; in program_cxg_ra_rnd_ldid_to_raid_reg() 235 ctx->cxg_ha_id = ctx->chip_id; in program_cxg_ha_id() 239 ctx->cxg_ha_reg->CXG_HA_ID = ctx->cxg_ha_id; in program_cxg_ha_id() 323 wait_data.ctx = ctx; in enable_and_start_ccix_link_up_sequence() 481 local_ra_cnt = ctx->internal_rnsam_count + ctx->external_rnsam_count; in ccix_setup() 490 ctx->raid_value = 0; in ccix_setup() 611 wait_data.ctx = ctx; in ccix_enter_system_coherency() [all …]
|
A D | mod_cmn600.c | 53 struct cmn600_ctx *ctx; variable 89 ctx->hnf_count--; in process_node_hnf() 224 ctx->hnf_offset[ctx->hnf_count++] = (uint32_t)node; in cmn600_discovery() 239 ctx->rnd_ldid[ctx->rnd_count++] = get_node_logical_id(node); in cmn600_discovery() 250 ctx->rni_ldid[ctx->rni_count++] = get_node_logical_id(node); in cmn600_discovery() 281 ctx->rnf_count = ctx->internal_rnsam_count + ctx->external_rnsam_count - in cmn600_discovery() 282 (ctx->rnd_count + ctx->rni_count + ctx->ccix_host_info.host_ha_count); in cmn600_discovery() 631 ctx->internal_rnsam_count, sizeof(*ctx->internal_rnsam_table)); in cmn600_setup() 719 ctx->internal_rnsam_count + ctx->external_rnsam_count; in cmn600_ccix_config_get() 720 ctx->ccix_host_info.host_sa_count = ctx->config->sa_count; in cmn600_ccix_config_get() [all …]
|
/SCP-firmware-master/module/cmn_skeena/src/ |
A D | cmn_skeena_ccix.c | 40 struct cmn_skeena_ctx *ctx = wait_data->ctx; in cxg_link_wait_condition() local 165 ctx->raid_value++; in program_cxg_ra_rnf_ldid_to_raid_reg() 189 ctx->raid_value++; in program_cxg_ra_rni_ldid_to_raid_reg() 213 ctx->raid_value++; in program_cxg_ra_rnd_ldid_to_raid_reg() 249 ctx->cxg_ha_id = ctx->chip_id; in program_cxg_ha_id() 253 ctx->cxg_ha_reg->CXG_HA_ID = ctx->cxg_ha_id; in program_cxg_ha_id() 347 wait_data.ctx = ctx; in enable_and_start_ccix_link_up_sequence() 508 local_ra_cnt = ctx->internal_rnsam_count + ctx->external_rnsam_count; in ccix_setup() 570 ctx, in ccix_setup() 639 wait_data.ctx = ctx; in ccix_enter_system_coherency() [all …]
|
A D | mod_cmn_skeena.c | 42 struct cmn_skeena_ctx *ctx; variable 77 ctx->hnf_count--; in process_node_hnf() 103 base_offset = ((uint64_t)(ctx->config->chip_addr_space * ctx->chip_id)); in process_node_hnf() 251 ctx->hnf_offset[ctx->hnf_count++] = (uint32_t)node; in cmn_skeena_discovery() 266 ctx->rnd_ldid[ctx->rnd_count++] = get_node_logical_id(node); in cmn_skeena_discovery() 309 ctx->rnf_count = ctx->internal_rnsam_count + ctx->external_rnsam_count - in cmn_skeena_discovery() 310 (ctx->rnd_count + ctx->rni_count + ctx->ccix_host_info.host_ha_count); in cmn_skeena_discovery() 459 ((uint64_t)(ctx->config->chip_addr_space * ctx->chip_id) + in cmn_skeena_setup_sam() 765 ctx->internal_rnsam_count + ctx->external_rnsam_count; in cmn_skeena_ccix_config_get() 766 ctx->ccix_host_info.host_sa_count = ctx->config->sa_count; in cmn_skeena_ccix_config_get() [all …]
|
/SCP-firmware-master/product/synquacer/module/synquacer_pik_clock/src/ |
A D | mod_synquacer_pik_clock.c | 133 if (ctx == NULL) in get_rate_entry() 164 if (ctx == NULL) in ssclock_set_div() 195 if (ctx == NULL) in msclock_set_div() 232 if (ctx == NULL) in msclock_set_source() 259 if (ctx == NULL) in cluster_set_modulator() 358 if (!ctx->initialized) in pik_clock_set_rate() 419 if (!ctx->initialized) in pik_clock_set_state() 439 status = get_rate_entry(ctx, ctx->current_rate, &rate_entry); in pik_clock_set_state() 489 range->max = ctx->config->rate_table[ctx->config->rate_count - 1].rate; in pik_clock_get_range() 558 ctx, in pik_clock_direct_set_div() [all …]
|
/SCP-firmware-master/module/pik_clock/src/ |
A D | mod_pik_clock.c | 134 if (ctx == NULL) in get_rate_entry() 141 ctx->config->rate_table, ctx->config->rate_count, in get_rate_entry() 160 if (ctx == NULL) in ssclock_set_div() 190 if (ctx == NULL) in msclock_set_div() 226 if (ctx == NULL) in msclock_set_source() 251 if (ctx == NULL) in cluster_set_modulator() 268 *ctx->config->modulator_reg = ((*ctx->config->modulator_reg & in cluster_set_modulator() 346 if (!ctx->initialized) in pik_clock_set_rate() 407 if (!ctx->initialized) in pik_clock_set_state() 427 status = get_rate_entry(ctx, ctx->current_rate, &rate_entry); in pik_clock_set_state() [all …]
|
/SCP-firmware-master/product/rcar/module/rcar_sd_clock/src/ |
A D | mod_rcar_sd_clock.c | 38 if (ctx == NULL) in get_rate_entry() 96 ctx->current_rate = rate; in do_sd_clock_set_rate() 113 if (!ctx->initialized) in sd_clock_set_rate() 131 *rate = ctx->current_rate; in sd_clock_get_rate() 208 range->max = ctx->rate_table[ctx->config->rate_count - 1]; in sd_clock_get_range() 257 ctx->current_rate = module_ctx.parent_clk[ctx->config->parent] / div_value; 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() 372 ctx->rate_table = in sd_clock_element_init() 378 ctx->rate_table[i] = module_ctx.parent_clk[ctx->config->parent] / in sd_clock_element_init() 384 if (ctx->rate_table[0] > ctx->rate_table[1]) in sd_clock_element_init() [all …]
|
/SCP-firmware-master/module/gtimer/src/ |
A D | mod_gtimer.c | 71 struct gtimer_dev_ctx *ctx; in enable() local 83 struct gtimer_dev_ctx *ctx; in disable() local 106 struct gtimer_dev_ctx *ctx; in set_timer() local 197 ctx->config = data; in gtimer_device_init() 207 ctx->hw_timer = (struct cntbase_reg *)ctx->config->hw_timer; in gtimer_device_init() 208 ctx->hw_counter = (struct cntctl_reg *)ctx->config->hw_counter; in gtimer_device_init() 209 ctx->control = (struct cntcontrol_reg *)ctx->config->control; in gtimer_device_init() 219 ctx->hw_counter->FRQ = ctx->config->frequency; in gtimer_device_init() 243 ctx->control->FID0 = ctx->config->frequency; in gtimer_control_init() 325 const void **ctx, in mod_gtimer_driver() argument [all …]
|
/SCP-firmware-master/module/css_clock/src/ |
A D | mod_css_clock.c | 54 if (ctx == NULL) in get_rate_entry() 61 ctx->config->rate_table, ctx->config->rate_count, in get_rate_entry() 78 if (ctx == NULL) in set_rate_indexed() 88 status = ctx->clock_api->set_source(ctx->config->member_table[i], in set_rate_indexed() 93 status = ctx->clock_api->set_div(ctx->config->member_table[i], in set_rate_indexed() 100 status = ctx->clock_api->set_mod(ctx->config->member_table[i], in set_rate_indexed() 116 status = ctx->clock_api->set_source(ctx->config->member_table[i], in set_rate_indexed() 134 if (ctx == NULL) in set_rate_non_indexed() 139 status = ctx->clock_api->set_source(ctx->config->member_table[i], in set_rate_non_indexed() 244 return ctx->pll_api->get_range(ctx->config->pll_id, range); in css_clock_get_range() [all …]
|
/SCP-firmware-master/module/voltage_domain/src/ |
A D | mod_voltage_domain.c | 57 get_ctx(voltd_id, &ctx); in voltd_set_level() 59 if (!ctx->api->set_level) in voltd_set_level() 62 return ctx->api->set_level(ctx->config->driver_id, level_uv); in voltd_set_level() 69 get_ctx(voltd_id, &ctx); in voltd_get_level() 77 return ctx->api->get_level(ctx->config->driver_id, level_uv); in voltd_get_level() 87 get_ctx(voltd_id, &ctx); in voltd_set_config() 92 return ctx->api->set_config(ctx->config->driver_id, mode_type, mode_id); in voltd_set_config() 110 return ctx->api->get_config(ctx->config->driver_id, mode_type, mode_id); in voltd_get_config() 122 status = ctx->api->get_info(ctx->config->driver_id, info); in voltd_get_info() 137 get_ctx(dev_id, &ctx); in voltd_get_level_from_index() [all …]
|
/SCP-firmware-master/module/timer/src/ |
A D | mod_timer.c | 115 status = ctx->driver->get_counter(ctx->driver_dev_id, &counter); in _timestamp_from_now() 168 status = ctx->driver->enable(ctx->driver_dev_id); in _configure_timer_with_next_alarm() 249 return ctx->driver->get_counter(ctx->driver_dev_id, counter); in get_counter() 351 status = ctx->driver->disable(ctx->driver_dev_id); in get_next_alarm_remaining() 368 status = ctx->driver->enable(ctx->driver_dev_id); in get_next_alarm_remaining() 426 status = ctx->driver->disable(ctx->driver_dev_id); in alarm_stop() 432 status = ctx->driver->enable(ctx->driver_dev_id); in alarm_stop() 519 status = ctx->driver->disable(ctx->driver_dev_id); in alarm_start() 546 status = ctx->driver->disable(ctx->driver_dev_id); in timer_isr() 635 ctx->driver_dev_id = ctx->config->id; in timer_bind() [all …]
|
/SCP-firmware-master/module/mock_clock/src/ |
A D | mod_mock_clock.c | 49 fwk_assert(ctx != NULL); in get_rate_entry() 92 ctx->current_rate_index = in mod_mock_clock_set_rate() 95 ctx->rate_initialized = true; in mod_mock_clock_set_rate() 106 if (!ctx->rate_initialized) { in mod_mock_clock_get_rate() 110 *rate = ctx->config->rate_table[ctx->current_rate_index].rate; in mod_mock_clock_get_rate() 141 ctx->state = state; in mod_mock_clock_set_state() 154 *state = ctx->state; in mod_mock_clock_get_state() 169 range->max = ctx->config->rate_table[ctx->config->rate_count - 1].rate; in mod_mock_clock_get_range() 198 if (ctx->state == MOD_CLOCK_STATE_STOPPED || !ctx->rate_initialized) { in mod_mock_clock_update_input_rate() 209 ctx->current_rate_index = in mod_mock_clock_update_input_rate() [all …]
|
/SCP-firmware-master/product/rcar/module/rcar_pmic/src/ |
A D | mod_rcar_pmic_device_api.c | 21 const struct mod_rcar_pmic_device_ctx *ctx; in api_get_enabled() local 32 if (ctx == NULL) in api_get_enabled() 36 status = ctx->apis.driver->get_enabled(ctx->config->driver_id, enabled); in api_get_enabled() 57 if (ctx == NULL) in api_set_enabled() 61 status = ctx->apis.driver->set_enabled(ctx->config->driver_id, enable); in api_set_enabled() 82 if (ctx == NULL) in api_get_voltage() 86 status = ctx->apis.driver->get_voltage(ctx->config->driver_id, voltage); in api_get_voltage() 107 if (ctx == NULL) in api_set_voltage() 111 status = ctx->apis.driver->set_voltage(ctx->config->driver_id, voltage); in api_set_voltage() 132 if (ctx == NULL) in api_set_pmic() [all …]
|
/SCP-firmware-master/product/juno/module/juno_cdcel937/src/ |
A D | mod_juno_cdcel937.c | 343 status = read_configuration(ctx, base_address, &ctx->pll_config); in set_rate_read_pll_config() 371 status = search_preset(ctx, ctx->rate, &preset); in set_rate_write_pll_config() 377 preset = ctx->config->lookup_table[ctx->index].preset; in set_rate_write_pll_config() 499 ctx->rate = rate; in create_set_rate_request() 530 status = read_configuration_y1(ctx, &ctx->y1_config); in get_rate_y1_read_y1_config() 557 ctx->rate = (ctx->config->xin_mhz / pdiv) * FWK_MHZ; in get_rate_y1_check_pdiv() 568 status = read_configuration(ctx, base_address, &ctx->pll_config); in get_rate_y1_read_pll_config() 635 status = read_configuration(ctx, base_address, &ctx->pll_config); in get_rate_read_pll_config() 1016 ctx->rate_hz = ctx->rate; in juno_cdcel937_process_event() 1100 ctx->rate_hz = ctx->rate; in juno_cdcel937_process_event() [all …]
|
/SCP-firmware-master/module/sp805/src/ |
A D | mod_sp805.c | 24 static struct mod_sp805_dev_ctx ctx; variable 31 ctx.reg_base->LOCK = ENABLE_WR_ACCESS; in sp805_isr() 32 ctx.reg_base->INTCLR = 0; in sp805_isr() 33 ctx.reg_base->LOCK = DISABLE_WR_ACCESS; in sp805_isr() 53 ctx.reg_base->LOCK = ENABLE_WR_ACCESS; in enable_sp805_interrupt() 54 ctx.reg_base->LOAD = ctx.config->wdt_load_value; in enable_sp805_interrupt() 58 ctx.reg_base->LOCK = DISABLE_WR_ACCESS; in enable_sp805_interrupt() 67 (unsigned int)ctx.reg_base->LOAD); in enable_sp805_interrupt() 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/mock_sensor/src/ |
A D | mod_mock_sensor.c | 33 struct mock_sensor_dev_ctx *ctx; in mock_sensor_callback() local 44 if (ctx->config->axis_count > 1) { in mock_sensor_callback() 67 struct mock_sensor_dev_ctx *ctx; in get_value() local 72 status = ctx->alarm_api->start( in get_value() 73 ctx->config->alarm_id, in get_value() 77 (uintptr_t)ctx); in get_value() 88 struct mock_sensor_dev_ctx *ctx; in get_info() local 96 *info = *ctx->config->info; in get_info() 107 return ctx->config->axis_count; in get_axis_count() 174 ctx->config->alarm_id, in mock_sensor_bind() [all …]
|
/SCP-firmware-master/module/system_pll/src/ |
A D | mod_system_pll.c | 92 struct system_pll_dev_ctx *ctx; in system_pll_set_rate() local 141 while ((*ctx->config->status_reg & ctx->config->lock_flag_mask) == 0) in system_pll_set_rate() 152 struct system_pll_dev_ctx *ctx; in system_pll_get_rate() local 160 *rate = ctx->current_rate; in system_pll_get_rate() 184 struct system_pll_dev_ctx *ctx; in system_pll_get_state() local 192 *state = ctx->current_state; in system_pll_get_state() 230 if (ctx->initialized) { in system_pll_power_state_change() 232 rate = ctx->current_rate; in system_pll_power_state_change() 235 ctx->initialized = true; in system_pll_power_state_change() 295 ctx->config = dev_config; in system_pll_element_init() [all …]
|
/SCP-firmware-master/product/rcar/module/rcar_mock_pmic_bd9571/src/ |
A D | mod_rcar_mock_pmic_bd9571_driver_api.c | 23 struct mod_rcar_mock_pmic_device_ctx *ctx; in api_set_enabled() local 26 if (ctx == NULL) in api_set_enabled() 29 ctx->enabled = enable; in api_set_enabled() 36 struct mod_rcar_mock_pmic_device_ctx *ctx; in api_get_enabled() local 39 if (ctx == NULL) in api_get_enabled() 42 *enabled = ctx->enabled; in api_get_enabled() 53 if (ctx == NULL) { in api_set_voltage() 69 ctx->voltage = voltage; in api_set_voltage() 78 if (ctx == NULL) in api_get_voltage() 81 *voltage = ctx->voltage; in api_get_voltage() [all …]
|
/SCP-firmware-master/module/clock/src/ |
A D | mod_clock.c | 43 ctx = in process_response_event() 64 ctx = in process_request_event() 192 ctx, in clock_set_rate() 216 status = ctx->api->get_rate(ctx->config->driver_id, rate); in clock_get_rate() 219 ctx, in clock_get_rate() 264 status = ctx->api->set_state(ctx->config->driver_id, state); in clock_set_state() 291 status = ctx->api->set_state(ctx->config->driver_id, state); in clock_set_state() 316 status = ctx->api->get_state(ctx->config->driver_id, state); in clock_get_state() 319 ctx, in clock_get_state() 338 status = ctx->api->get_range(ctx->config->driver_id, &info->range); in clock_get_info() [all …]
|
/SCP-firmware-master/product/synquacer/module/nor/src/ |
A D | mod_nor.c | 93 struct nor_dev_ctx *ctx, in is_command_not_supported() argument 101 struct nor_dev_ctx *ctx, in set_read_command() argument 114 struct nor_dev_ctx *ctx, in set_write_command() argument 181 struct nor_dev_ctx *ctx, in set_4byte_address_mode() argument 237 struct nor_dev_ctx *ctx, in check_program_result() argument 254 struct nor_dev_ctx *ctx, in check_erase_result() argument 271 struct nor_dev_ctx *ctx, in program_erase_sequence() argument 421 struct nor_dev_ctx *ctx, in get_erase_size() argument 814 ctx->config = data; in nor_element_init() 819 ctx->config->command_table == NULL || ctx->config->operation == NULL) { in nor_element_init() [all …]
|
/SCP-firmware-master/module/optee/clock/src/ |
A D | mod_optee_clock.c | 53 return ctx->clk != NULL; in is_exposed() 67 if (!is_exposed(ctx)) { in get_rate() 87 if (ctx == NULL) { in set_state() 99 if (!is_exposed(ctx)) { in set_state() 108 if (ctx->enabled) { in set_state() 123 if (!ctx->enabled) { in set_state() 150 if (!is_exposed(ctx)) { in get_state() 155 if (ctx->enabled) { in get_state() 184 if (!is_exposed(ctx)) { in get_range() 228 if (ctx == NULL) { in set_rate() [all …]
|
/SCP-firmware-master/product/juno/module/juno_xrp7724/src/ |
A D | mod_juno_xrp7724.c | 188 ctx->transmit_data, in set_gpio() 556 ctx->alarm_hal_id = ctx->config->alarm_hal_id; in juno_xrp7724_element_init() 618 ctx->alarm_hal_id, MOD_TIMER_API_ID_ALARM, &ctx->alarm_api); in juno_xrp7724_bind() 767 ctx->transmit_data, in juno_xrp7724_sensor_process_request() 768 ctx->receive_data, in juno_xrp7724_sensor_process_request() 790 ((uint16_t)ctx->receive_data[0] << 8) | ctx->receive_data[1]); in juno_xrp7724_sensor_process_request() 828 ctx->transmit_data[0] = in juno_xrp7724_psu_process_request() 835 ctx->receive_data, in juno_xrp7724_psu_process_request() 854 (((uint16_t)ctx->receive_data[0] << 8) | ctx->receive_data[1]) * in juno_xrp7724_psu_process_request() 906 status = ctx->alarm_api->start(ctx->alarm_hal_id, in juno_xrp7724_psu_process_request() [all …]
|