/arm-trusted-firmware-2.8.0/plat/imx/common/sci/svc/rm/ |
A D | rm_rpc_clnt.c | 35 sc_rpc_msg_t msg; in sc_rm_partition_alloc() local 46 RPC_SIZE(&msg) = 3U; in sc_rm_partition_alloc() 60 sc_rpc_msg_t msg; in sc_rm_set_confidential() local 78 sc_rpc_msg_t msg; in sc_rm_partition_free() local 95 sc_rpc_msg_t msg; in sc_rm_get_did() local 111 sc_rpc_msg_t msg; in sc_rm_partition_static() local 129 sc_rpc_msg_t msg; in sc_rm_partition_lock() local 146 sc_rpc_msg_t msg; in sc_rm_get_partition() local 166 sc_rpc_msg_t msg; in sc_rm_set_parent() local 185 sc_rpc_msg_t msg; in sc_rm_move_all() local [all …]
|
/arm-trusted-firmware-2.8.0/plat/imx/common/sci/svc/timer/ |
A D | timer_rpc_clnt.c | 33 sc_rpc_msg_t msg; in sc_timer_set_wdog_timeout() local 40 RPC_SIZE(&msg) = 2U; in sc_timer_set_wdog_timeout() 51 sc_rpc_msg_t msg; in sc_timer_set_wdog_pre_timeout() local 68 sc_rpc_msg_t msg; in sc_timer_start_wdog() local 85 sc_rpc_msg_t msg; in sc_timer_stop_wdog() local 101 sc_rpc_msg_t msg; in sc_timer_ping_wdog() local 120 sc_rpc_msg_t msg; in sc_timer_get_wdog_status() local 148 sc_rpc_msg_t msg; in sc_timer_pt_get_wdog_status() local 175 sc_rpc_msg_t msg; in sc_timer_set_wdog_action() local 195 sc_rpc_msg_t msg; in sc_timer_set_rtc_time() local [all …]
|
/arm-trusted-firmware-2.8.0/plat/imx/common/sci/svc/misc/ |
A D | misc_rpc_clnt.c | 34 sc_rpc_msg_t msg; in sc_misc_set_control() local 43 RPC_SIZE(&msg) = 4U; in sc_misc_set_control() 54 sc_rpc_msg_t msg; in sc_misc_get_control() local 76 sc_rpc_msg_t msg; in sc_misc_set_max_dma_group() local 95 sc_rpc_msg_t msg; in sc_misc_set_dma_group() local 115 sc_rpc_msg_t msg; in sc_misc_seco_image_load() local 138 sc_rpc_msg_t msg; in sc_misc_seco_authenticate() local 157 sc_rpc_msg_t msg; in sc_misc_seco_fuse_write() local 175 sc_rpc_msg_t msg; in sc_misc_seco_enable_debug() local 193 sc_rpc_msg_t msg; in sc_misc_seco_forward_lifecycle() local [all …]
|
/arm-trusted-firmware-2.8.0/plat/imx/common/sci/svc/pm/ |
A D | pm_rpc_clnt.c | 34 sc_rpc_msg_t msg; in sc_pm_set_sys_power_mode() local 41 RPC_SIZE(&msg) = 2U; in sc_pm_set_sys_power_mode() 52 sc_rpc_msg_t msg; in sc_pm_set_partition_power_mode() local 71 sc_rpc_msg_t msg; in sc_pm_get_sys_power_mode() local 93 sc_rpc_msg_t msg; in sc_pm_set_resource_power_mode() local 112 sc_rpc_msg_t msg; in sc_pm_get_resource_power_mode() local 134 sc_rpc_msg_t msg; in sc_pm_req_low_power_mode() local 154 sc_rpc_msg_t msg; in sc_pm_req_cpu_low_power_mode() local 174 sc_rpc_msg_t msg; in sc_pm_set_cpu_resume_addr() local 194 sc_rpc_msg_t msg; in sc_pm_set_cpu_resume() local [all …]
|
/arm-trusted-firmware-2.8.0/plat/imx/common/sci/svc/pad/ |
A D | pad_rpc_clnt.c | 34 sc_rpc_msg_t msg; in sc_pad_set_mux() local 44 RPC_SIZE(&msg) = 3U; in sc_pad_set_mux() 56 sc_rpc_msg_t msg; in sc_pad_get_mux() local 85 sc_rpc_msg_t msg; in sc_pad_set_gp() local 103 sc_rpc_msg_t msg; in sc_pad_get_gp() local 124 sc_rpc_msg_t msg; in sc_pad_set_wakeup() local 142 sc_rpc_msg_t msg; in sc_pad_get_wakeup() local 165 sc_rpc_msg_t msg; in sc_pad_set_all() local 189 sc_rpc_msg_t msg; in sc_pad_get_all() local 226 sc_rpc_msg_t msg; in sc_pad_set() local [all …]
|
/arm-trusted-firmware-2.8.0/drivers/scmi-msg/ |
A D | entry.c | 41 assert(msg->out && msg->out_size >= sizeof(int32_t)); in scmi_status_response() 43 memcpy(msg->out, &status, sizeof(int32_t)); in scmi_status_response() 44 msg->out_size_out = sizeof(int32_t); in scmi_status_response() 55 msg->out && msg->out_size >= sizeof(int32_t)); in scmi_write_response() 57 memcpy(msg->out, payload, size); in scmi_write_response() 58 msg->out_size_out = size; in scmi_write_response() 65 switch (msg->protocol_id) { in scmi_process_message() 67 handler = scmi_msg_get_base_handler(msg); in scmi_process_message() 76 handler = scmi_msg_get_pd_handler(msg); in scmi_process_message() 83 handler(msg); in scmi_process_message() [all …]
|
A D | base.c | 18 static void report_version(struct scmi_msg *msg) in report_version() argument 25 if (msg->in_size != 0U) { in report_version() 42 if (msg->in_size != 0U) { in report_attributes() 59 if (msg->in_size != sizeof(*in_args)) { in report_message_attributes() 65 scmi_status_response(msg, SCMI_NOT_FOUND); in report_message_attributes() 79 if (msg->in_size != 0U) { in discover_vendor() 96 if (msg->in_size != 0U) { in discover_sub_vendor() 113 if (msg->in_size != 0U) { in discover_implementation_version() 143 if (msg->in_size != sizeof(*a2p)) { in discover_list_protocols() 148 a2p = (void *)msg->in; in discover_list_protocols() [all …]
|
A D | power_domain.c | 61 static void report_version(struct scmi_msg *msg) in report_version() argument 68 if (msg->in_size != 0) { in report_version() 69 scmi_status_response(msg, SCMI_PROTOCOL_ERROR); in report_version() 85 if (msg->in_size != 0) { in report_attributes() 110 if (msg->in_size != sizeof(*in_args)) { in report_message_attributes() 116 scmi_status_response(msg, SCMI_NOT_FOUND); in report_message_attributes() 132 if (msg->in_size != sizeof(*in_args)) { in scmi_pd_attributes() 146 scmi_status_response(msg, SCMI_NOT_FOUND); in scmi_pd_attributes() 166 if (msg->in_size != sizeof(*in_args)) { in scmi_pd_state_get() 193 if (msg->in_size != sizeof(*in_args)) { in scmi_pd_state_set() [all …]
|
A D | clock.c | 85 if (msg->in_size != 0) { in report_version() 101 if (msg->in_size != 0) { in report_attributes() 118 if (msg->in_size != sizeof(*in_args)) { in report_message_attributes() 140 if (msg->in_size != sizeof(*in_args)) { in scmi_clock_attributes() 176 if (msg->in_size != sizeof(*in_args)) { in scmi_clock_rate_get() 203 if (msg->in_size != sizeof(*in_args)) { in scmi_clock_rate_set() 220 scmi_status_response(msg, status); in scmi_clock_rate_set() 246 scmi_status_response(msg, status); in scmi_clock_config_set() 319 memcpy(msg->out, &p2a, sizeof(p2a)); in scmi_clock_describe_rates() 320 msg->out_size_out = sizeof(p2a) + in scmi_clock_describe_rates() [all …]
|
A D | reset_domain.c | 48 static void report_version(struct scmi_msg *msg) in report_version() argument 55 if (msg->in_size != 0U) { in report_version() 56 scmi_status_response(msg, SCMI_PROTOCOL_ERROR); in report_version() 70 if (msg->in_size != 0U) { in report_attributes() 87 if (msg->in_size != sizeof(*in_args)) { in report_message_attributes() 93 scmi_status_response(msg, SCMI_NOT_FOUND); in report_message_attributes() 107 if (msg->in_size != sizeof(*in_args)) { in reset_domain_attributes() 121 scmi_status_response(msg, SCMI_NOT_FOUND); in reset_domain_attributes() 142 if (msg->in_size != sizeof(*in_args)) { in reset_request() 150 scmi_status_response(msg, SCMI_NOT_FOUND); in reset_request() [all …]
|
A D | common.h | 91 typedef void (*scmi_msg_handler_t)(struct scmi_msg *msg); 98 scmi_msg_handler_t scmi_msg_get_base_handler(struct scmi_msg *msg); 105 scmi_msg_handler_t scmi_msg_get_clock_handler(struct scmi_msg *msg); 112 scmi_msg_handler_t scmi_msg_get_rstd_handler(struct scmi_msg *msg); 119 scmi_msg_handler_t scmi_msg_get_pd_handler(struct scmi_msg *msg); 126 void scmi_process_message(struct scmi_msg *msg); 135 void scmi_write_response(struct scmi_msg *msg, void *payload, size_t size); 143 void scmi_status_response(struct scmi_msg *msg, int32_t status);
|
A D | smt.c | 114 struct scmi_msg msg; in scmi_proccess_smt() local 147 zeromem(&msg, sizeof(msg)); in scmi_proccess_smt() 148 msg.in = (char *)payload_buf; in scmi_proccess_smt() 149 msg.in_size = in_payload_size; in scmi_proccess_smt() 150 msg.out = (char *)smt_hdr->payload; in scmi_proccess_smt() 151 msg.out_size = chan->shm_size - sizeof(*smt_hdr); in scmi_proccess_smt() 153 assert((msg.out != NULL) && (msg.out_size >= sizeof(int32_t))); in scmi_proccess_smt() 156 memcpy(msg.in, smt_hdr->payload, in_payload_size); in scmi_proccess_smt() 159 msg.message_id = SMT_HDR_MSG_ID(smt_hdr->message_header); in scmi_proccess_smt() 160 msg.agent_id = agent_id; in scmi_proccess_smt() [all …]
|
/arm-trusted-firmware-2.8.0/plat/imx/common/sci/ |
A D | ipc.c | 27 sc_ipc_write(ipc, msg); in sc_call_rpc() 29 sc_ipc_read(ipc, msg); in sc_call_rpc() 74 if ((base == 0) || (msg == NULL)) in sc_ipc_read() 82 if (msg->size > SC_RPC_MAX_MSG) { in sc_ipc_read() 83 *((uint32_t *) msg) = 0; in sc_ipc_read() 88 while (count < msg->size) { in sc_ipc_read() 90 &(msg->DATA.u32[count - 1])); in sc_ipc_read() 102 if ((base == 0) || (msg == NULL)) in sc_ipc_write() 106 if (msg->size > SC_RPC_MAX_MSG) in sc_ipc_write() 114 while (count < msg->size) { in sc_ipc_write() [all …]
|
A D | imx8_mu.c | 44 void MU_SendMessage(uint32_t base, uint32_t regIndex, uint32_t msg) in MU_SendMessage() argument 51 mmio_write_32(base + MU_ATR0_OFFSET1 + (regIndex * 4), msg); in MU_SendMessage() 54 void MU_ReceiveMsg(uint32_t base, uint32_t regIndex, uint32_t *msg) in MU_ReceiveMsg() argument 61 *msg = mmio_read_32(base + MU_ARR0_OFFSET1 + (regIndex * 4)); in MU_ReceiveMsg()
|
/arm-trusted-firmware-2.8.0/drivers/arm/rss/ |
A D | rss_comms_protocol_pointer_access.c | 29 struct rss_pointer_access_msg_t *msg, in rss_protocol_pointer_access_serialize_msg() argument 34 assert(msg != NULL); in rss_protocol_pointer_access_serialize_msg() 38 msg->ctrl_param = PARAM_PACK(type, in_len, out_len); in rss_protocol_pointer_access_serialize_msg() 39 msg->handle = handle; in rss_protocol_pointer_access_serialize_msg() 43 msg->io_sizes[i] = in_vec[i].len; in rss_protocol_pointer_access_serialize_msg() 44 msg->host_ptrs[i] = (uint64_t)in_vec[i].base; in rss_protocol_pointer_access_serialize_msg() 47 msg->io_sizes[in_len + i] = out_vec[i].len; in rss_protocol_pointer_access_serialize_msg() 48 msg->host_ptrs[in_len + i] = (uint64_t)out_vec[i].base; in rss_protocol_pointer_access_serialize_msg() 51 *msg_len = sizeof(*msg); in rss_protocol_pointer_access_serialize_msg()
|
A D | rss_comms_protocol_embed.c | 32 struct rss_embed_msg_t *msg, in rss_protocol_embed_serialize_msg() argument 38 assert(msg != NULL); in rss_protocol_embed_serialize_msg() 42 msg->ctrl_param = PARAM_PACK(type, in_len, out_len); in rss_protocol_embed_serialize_msg() 43 msg->handle = handle; in rss_protocol_embed_serialize_msg() 47 msg->io_size[i] = in_vec[i].len; in rss_protocol_embed_serialize_msg() 50 msg->io_size[in_len + i] = out_vec[i].len; in rss_protocol_embed_serialize_msg() 54 if (in_vec[i].len > sizeof(msg->trailer) - payload_size) { in rss_protocol_embed_serialize_msg() 57 memcpy(msg->trailer + payload_size, in_vec[i].base, in_vec[i].len); in rss_protocol_embed_serialize_msg() 62 *msg_len = sizeof(*msg) - sizeof(msg->trailer) + payload_size; in rss_protocol_embed_serialize_msg()
|
A D | rss_comms_protocol.c | 18 struct serialized_rss_comms_msg_t *msg, in rss_protocol_serialize_msg() argument 23 assert(msg != NULL); in rss_protocol_serialize_msg() 27 switch (msg->header.protocol_ver) { in rss_protocol_serialize_msg() 30 out_len, &msg->msg.embed, msg_len); in rss_protocol_serialize_msg() 38 &msg->msg.pointer_access, in rss_protocol_serialize_msg()
|
A D | rss_comms.c | 20 struct serialized_rss_comms_msg_t msg; member 90 io_buf.msg.header.seq_num = seq_num, in psa_call() 92 io_buf.msg.header.client_id = 1U, in psa_call() 93 io_buf.msg.header.protocol_ver = select_protocol_version(in_vec, in_len, out_vec, out_len); in psa_call() 96 out_len, &io_buf.msg, &msg_size); in psa_call() 102 VERBOSE("protocol_ver=%u\n", io_buf.msg.header.protocol_ver); in psa_call() 103 VERBOSE("seq_num=%u\n", io_buf.msg.header.seq_num); in psa_call() 104 VERBOSE("client_id=%u\n", io_buf.msg.header.client_id); in psa_call() 110 err = mhu_send_data((uint8_t *)&io_buf.msg, msg_size); in psa_call() 120 memset(&io_buf.msg, 0xA5, msg_size); in psa_call()
|
/arm-trusted-firmware-2.8.0/plat/ti/k3/common/drivers/sec_proxy/ |
A D | sec_proxy.c | 231 if (msg->len + sizeof(secure_header) > spm.desc.max_msg_size) { in k3_sec_proxy_send() 233 spt->name, msg->len); in k3_sec_proxy_send() 246 num_words = msg->len / sizeof(uint32_t); in k3_sec_proxy_send() 248 mmio_write_32(spt->data + data_reg, ((uint32_t *)msg->buf)[i]); in k3_sec_proxy_send() 253 trail_bytes = msg->len % sizeof(uint32_t); in k3_sec_proxy_send() 257 i = msg->len - trail_bytes; in k3_sec_proxy_send() 260 data_trail |= msg->buf[i++]; in k3_sec_proxy_send() 309 num_words = msg->len / sizeof(uint32_t); in k3_sec_proxy_recv() 316 trail_bytes = msg->len % sizeof(uint32_t); in k3_sec_proxy_recv() 321 i = msg->len - trail_bytes; in k3_sec_proxy_recv() [all …]
|
A D | sec_proxy.h | 71 int k3_sec_proxy_send(enum k3_sec_proxy_chan_id id, const struct k3_sec_proxy_msg *msg); 80 int k3_sec_proxy_recv(enum k3_sec_proxy_chan_id id, struct k3_sec_proxy_msg *msg);
|
/arm-trusted-firmware-2.8.0/lib/cpus/ |
A D | errata_report.c | 75 const char *msg __unused; in errata_print_msg() 82 msg = errata_status_str[status]; in errata_print_msg() 86 VERBOSE(ERRATA_FORMAT, bl_str, cpu, id, msg); in errata_print_msg() 90 INFO(ERRATA_FORMAT, bl_str, cpu, id, msg); in errata_print_msg() 94 WARN(ERRATA_FORMAT, bl_str, cpu, id, msg); in errata_print_msg()
|
/arm-trusted-firmware-2.8.0/plat/st/stm32mp1/sp_min/ |
A D | sp_min-stm32mp1.mk | 41 BL32_SOURCES += drivers/scmi-msg/base.c \ 42 drivers/scmi-msg/clock.c \ 43 drivers/scmi-msg/entry.c \ 44 drivers/scmi-msg/reset_domain.c \ 45 drivers/scmi-msg/smt.c
|
/arm-trusted-firmware-2.8.0/include/lib/ |
A D | cassert.h | 20 #define CASSERT(cond, msg) \ argument 21 typedef char msg[(cond) ? 1 : -1] __unused
|
/arm-trusted-firmware-2.8.0/plat/renesas/common/ |
A D | bl2_interrupt_error.c | 64 char msg[128]; in bl2_interrupt_error_type() local 77 snprintf(msg, sizeof(msg), " Exception type = %s\n", in bl2_interrupt_error_type() 79 ERROR("%s", msg); in bl2_interrupt_error_type()
|
/arm-trusted-firmware-2.8.0/drivers/marvell/ |
A D | cache_llc.c | 158 int llc_sram_test(int ap_index, int size, char *msg) in llc_sram_test() argument 166 INFO("=== LLC SRAM WRITE test %s\n", msg); in llc_sram_test() 172 INFO("=== LLC SRAM WRITE test %s PASSED\n", msg); in llc_sram_test() 173 INFO("=== LLC SRAM READ test %s\n", msg); in llc_sram_test() 180 msg, addr); in llc_sram_test() 185 msg, data); in llc_sram_test()
|