/optee_os-3.20.0/core/include/drivers/ |
A D | scmi-msg.h | 82 void scmi_smt_fastcall_smc_entry(unsigned int channel_id); 98 void scmi_smt_interrupt_entry(unsigned int channel_id); 114 void scmi_smt_threaded_entry(unsigned int channel_id); 135 TEE_Result scmi_msg_threaded_entry(unsigned int channel_id, 161 assert(plat_scmi_get_channel(channel_id)); in scmi_smt_channel_handle() 163 return channel_id; in scmi_smt_channel_handle() 194 size_t plat_scmi_clock_count(unsigned int channel_id); 256 int32_t plat_scmi_clock_get_state(unsigned int channel_id, 276 size_t plat_scmi_rd_count(unsigned int channel_id); 284 const char *plat_scmi_rd_get_name(unsigned int channel_id, [all …]
|
/optee_os-3.20.0/core/drivers/scmi-msg/ |
A D | entry.c | 101 msg->channel_id, msg->protocol_id, msg->message_id); in scmi_process_message() 107 void scmi_smt_fastcall_smc_entry(unsigned int channel_id) in scmi_smt_fastcall_smc_entry() argument 109 assert(!plat_scmi_get_channel(channel_id)->threaded); in scmi_smt_fastcall_smc_entry() 111 scmi_entry_smt(channel_id, fastcall_payload[get_core_pos()]); in scmi_smt_fastcall_smc_entry() 116 void scmi_smt_interrupt_entry(unsigned int channel_id) in scmi_smt_interrupt_entry() argument 118 assert(!plat_scmi_get_channel(channel_id)->threaded); in scmi_smt_interrupt_entry() 120 scmi_entry_smt(channel_id, interrupt_payload[get_core_pos()]); in scmi_smt_interrupt_entry() 125 void scmi_smt_threaded_entry(unsigned int channel_id) in scmi_smt_threaded_entry() argument 127 assert(plat_scmi_get_channel(channel_id)->threaded); in scmi_smt_threaded_entry() 134 TEE_Result scmi_msg_threaded_entry(unsigned int channel_id, in scmi_msg_threaded_entry() argument [all …]
|
A D | clock.c | 18 size_t __weak plat_scmi_clock_count(unsigned int channel_id __unused) in plat_scmi_clock_count() 88 size_t clk_count = plat_scmi_clock_count(msg->channel_id); in report_attributes() 144 plat_scmi_clock_count(msg->channel_id)); in scmi_clock_attributes() 146 name = plat_scmi_clock_get_name(msg->channel_id, clock_id); in scmi_clock_attributes() 178 plat_scmi_clock_count(msg->channel_id)); in scmi_clock_rate_get() 180 rate = plat_scmi_clock_get_rate(msg->channel_id, clock_id); in scmi_clock_rate_get() 206 plat_scmi_clock_count(msg->channel_id)); in scmi_clock_rate_set() 234 plat_scmi_clock_count(msg->channel_id)); in scmi_clock_config_set() 290 plat_scmi_clock_count(msg->channel_id)); in scmi_clock_describe_rates() 310 status = plat_scmi_clock_rates_array(msg->channel_id, in scmi_clock_describe_rates() [all …]
|
A D | voltage_domain.c | 91 size_t domain_count = plat_scmi_voltd_count(msg->channel_id); in report_attributes() 149 plat_scmi_voltd_count(msg->channel_id)); in scmi_voltd_domain_attributes() 151 name = plat_scmi_voltd_get_name(msg->channel_id, domain_id); in scmi_voltd_domain_attributes() 200 plat_scmi_voltd_count(msg->channel_id)); in scmi_voltd_describe_levels() 219 status = plat_scmi_voltd_levels_array(msg->channel_id, in scmi_voltd_describe_levels() 246 status = plat_scmi_voltd_levels_by_step(msg->channel_id, in scmi_voltd_describe_levels() 288 plat_scmi_voltd_count(msg->channel_id)); in scmi_voltd_config_set() 314 plat_scmi_voltd_count(msg->channel_id)); in scmi_voltd_config_get() 316 if (plat_scmi_voltd_get_config(msg->channel_id, domain_id, in scmi_voltd_config_get() 342 plat_scmi_voltd_count(msg->channel_id)); in scmi_voltd_level_set() [all …]
|
A D | reset_domain.c | 18 size_t __weak plat_scmi_rd_count(unsigned int channel_id __unused) in plat_scmi_rd_count() 36 int32_t __weak plat_scmi_rd_set_state(unsigned int channel_id __unused, in plat_scmi_rd_set_state() 62 .attributes = plat_scmi_rd_count(msg->channel_id), in report_attributes() 107 if (in_args->domain_id >= plat_scmi_rd_count(msg->channel_id)) { in reset_domain_attributes() 113 plat_scmi_rd_count(msg->channel_id)); in reset_domain_attributes() 115 name = plat_scmi_rd_get_name(msg->channel_id, domain_id); in reset_domain_attributes() 138 plat_scmi_rd_count(msg->channel_id)); in reset_request() 145 if (in_args->domain_id >= plat_scmi_rd_count(msg->channel_id)) { in reset_request() 151 out_args.status = plat_scmi_rd_autonomous(msg->channel_id, in reset_request() 155 out_args.status = plat_scmi_rd_set_state(msg->channel_id, in reset_request() [all …]
|
A D | shm_msg.c | 44 TEE_Result scmi_entry_msg(unsigned int channel_id, void *in_buf, size_t in_size, in scmi_entry_msg() argument 47 struct scmi_msg_channel *channel = plat_scmi_get_channel(channel_id); in scmi_entry_msg() 53 DMSG("Invalid channel ID %u", channel_id); in scmi_entry_msg() 70 DMSG("SCMI channel %u busy", channel_id); in scmi_entry_msg() 80 msg.channel_id = channel_id; in scmi_entry_msg()
|
A D | smt.c | 68 void scmi_entry_smt(unsigned int channel_id, uint32_t *payload_buf) in scmi_entry_smt() argument 77 channel = plat_scmi_get_channel(channel_id); in scmi_entry_smt() 79 DMSG("Invalid channel ID %u", channel_id); in scmi_entry_smt() 85 DMSG("No shared buffer for channel ID %u", channel_id); in scmi_entry_smt() 90 DMSG("SCMI channel %u busy", channel_id); in scmi_entry_smt() 123 msg.channel_id = channel_id; in scmi_entry_smt()
|
A D | common.h | 77 unsigned int channel_id; member 135 void scmi_entry_smt(unsigned int channel_id, uint32_t *payload_buf); 148 TEE_Result scmi_entry_msg(unsigned int channel_id, void *in_buf, size_t in_size,
|
A D | base.c | 149 list = plat_scmi_protocol_list(msg->channel_id); in discover_list_protocols()
|
/optee_os-3.20.0/core/arch/arm/include/scmi/ |
A D | scmi_server.h | 18 TEE_Result scmi_server_smt_process_thread(unsigned int channel_id); 30 TEE_Result scmi_server_msg_process_thread(unsigned int channel_id, void *in_buf, 40 TEE_Result scmi_server_get_channel(unsigned int channel_id, int *handle); 47 TEE_Result scmi_server_smt_process_thread(unsigned int channel_id __unused) in scmi_server_smt_process_thread() 53 TEE_Result scmi_server_msg_process_thread(unsigned int channel_id __unused, in scmi_server_msg_process_thread()
|
/optee_os-3.20.0/core/pta/ |
A D | scmi.c | 52 unsigned int channel_id = params[0].value.a; in cmd_process_smt_channel() local 60 channel = plat_scmi_get_channel(channel_id); in cmd_process_smt_channel() 64 scmi_smt_threaded_entry(channel_id); in cmd_process_smt_channel() 70 return scmi_server_smt_process_thread(channel_id); in cmd_process_smt_channel() 82 unsigned int channel_id = params[0].value.a; in cmd_process_smt_message() local 94 channel = plat_scmi_get_channel(channel_id); in cmd_process_smt_message() 104 scmi_smt_threaded_entry(channel_id); in cmd_process_smt_message() 121 unsigned int channel_id = params[0].value.a; in cmd_process_msg_channel() local 136 channel = plat_scmi_get_channel(channel_id); in cmd_process_msg_channel() 173 unsigned int channel_id = params[0].value.a; in cmd_get_channel_handle() local [all …]
|
/optee_os-3.20.0/core/lib/scmi-server/ |
A D | scmi_server.c | 33 TEE_Result scmi_server_get_channel(unsigned int channel_id, int *handle) in scmi_server_get_channel() argument 37 fwk_id = scmi_get_device(channel_id); in scmi_server_get_channel() 47 TEE_Result scmi_server_smt_process_thread(unsigned int channel_id) in scmi_server_smt_process_thread() argument 52 res = scmi_server_get_channel(channel_id, &fwk_id); in scmi_server_smt_process_thread() 59 TEE_Result scmi_server_msg_process_thread(unsigned int channel_id, in scmi_server_msg_process_thread() argument 66 res = scmi_server_get_channel(channel_id, &fwk_id); in scmi_server_msg_process_thread()
|
/optee_os-3.20.0/core/arch/arm/plat-stm32mp1/ |
A D | scmi_server.c | 281 assert(channel_id < ARRAY_SIZE(scmi_channel)); in find_resource() 283 return scmi_channel + channel_id; in find_resource() 291 if (channel_id >= max_id) in plat_scmi_get_channel() 380 size_t plat_scmi_clock_count(unsigned int channel_id) in plat_scmi_clock_count() argument 390 const char *plat_scmi_clock_get_name(unsigned int channel_id, in plat_scmi_clock_get_name() argument 401 int32_t plat_scmi_clock_rates_array(unsigned int channel_id, in plat_scmi_clock_rates_array() argument 479 static struct stm32_scmi_rd *find_rd(unsigned int channel_id, in find_rd() argument 504 size_t plat_scmi_rd_count(unsigned int channel_id) in plat_scmi_rd_count() argument 591 size_t plat_scmi_voltd_count(unsigned int channel_id) in plat_scmi_voltd_count() argument 856 int32_t plat_scmi_voltd_get_config(unsigned int channel_id, in plat_scmi_voltd_get_config() argument [all …]
|