/tf-a-ffa_el3_spmc/drivers/brcm/emmc/ |
A D | emmc_csl_sdcard.c | 221 process_cmd_response(handle, handle->device->ctrl.cmdIndex, in abort_err() 271 check_error(handle, handle->device->ctrl.cmdStatus); in process_data_xfer() 300 check_error(handle, handle->device->ctrl.cmdStatus); in process_data_xfer() 426 rc = sd_cmd2(handle); in init_mmc_card() 432 rc = sd_cmd3(handle); in init_mmc_card() 451 rc = sd_cmd7(handle, handle->device->ctrl.rca); in init_mmc_card() 670 check_error(handle, handle->device->ctrl.cmdStatus); in write_buffer() 698 check_error(handle, handle->device->ctrl.cmdStatus); in write_buffer() 733 check_error(handle, handle->device->ctrl.cmdStatus); in read_buffer() 762 check_error(handle, handle->device->ctrl.cmdStatus); in read_buffer() [all …]
|
A D | emmc_chal_sd.c | 84 if (handle == NULL) in chal_sd_set_power() 161 if (handle == NULL) in chal_sd_set_dma_boundary() 172 if (handle == NULL) in chal_sd_setup_handler() 178 handle->ctrl.rca = 0; in chal_sd_setup_handler() 193 struct sd_dev *handle; in chal_sd_init() local 300 struct sd_dev *handle; in chal_sd_set_speed() local 342 struct sd_dev *handle; in chal_sd_check_cap() local 360 struct sd_dev *handle; in chal_sd_start() local 491 handle->cfg.dma = 0; in chal_sd_set_dma() 701 handle->ctrl.blkReg = length | handle->cfg.dmaBoundary; in chal_sd_setup_xfer() [all …]
|
A D | emmc_csl_sdcmd.c | 19 int sd_cmd0(struct sd_handle *handle) in sd_cmd0() argument 76 handle->device->ctrl.rca = 0x5; in sd_cmd3() 87 handle->device->ctrl.rca = 0; in sd_cmd3() 212 handle->card->size = in sd_cmd9() 239 handle->device->cfg.blockSize = handle->card->maxRdBlkLen; in sd_cmd9() 670 wait_for_event(handle, in mmc_cmd6() 708 if (handle == NULL) { in send_cmd() 759 handle->device); in send_cmd() 762 check_error(handle, in send_cmd() 768 handle->device)); in send_cmd() [all …]
|
/tf-a-ffa_el3_spmc/services/std_svc/trng/ |
A D | trng_main.c | 29 SMC_RET1(handle, TRNG_E_INVALID_PARAMS); in trng_rnd32() 33 SMC_RET1(handle, TRNG_E_NO_ENTROPY); in trng_rnd32() 53 SMC_RET1(handle, TRNG_E_INVALID_PARAMS); in trng_rnd32() 65 SMC_RET1(handle, TRNG_E_INVALID_PARAMS); in trng_rnd64() 69 SMC_RET1(handle, TRNG_E_NO_ENTROPY); in trng_rnd64() 88 SMC_RET1(handle, TRNG_E_INVALID_PARAMS); in trng_rnd64() 111 void *handle, u_register_t flags) in trng_smc_handler() argument 119 SMC_RET1(handle, MAKE_SMCCC_VERSION( in trng_smc_handler() 125 SMC_RET1(handle, TRNG_E_SUCCESS); in trng_smc_handler() 127 SMC_RET1(handle, TRNG_E_NOT_SUPPORTED); in trng_smc_handler() [all …]
|
/tf-a-ffa_el3_spmc/plat/xilinx/zynqmp/pm_service/ |
A D | pm_svc_main.c | 270 SMC_RET1(handle, SMC_UNK); in pm_smc_handler() 282 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler() 287 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler() 298 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler() 303 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler() 307 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler() 311 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler() 315 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler() 438 SMC_RET2(handle, in pm_smc_handler() 639 SMC_RET1(handle, SMC_UNK); in pm_smc_handler() [all …]
|
/tf-a-ffa_el3_spmc/plat/xilinx/versal/pm_service/ |
A D | pm_svc_main.c | 142 SMC_RET1(handle, SMC_UNK); in pm_smc_handler() 162 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler() 166 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler() 171 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler() 175 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler() 179 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler() 184 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler() 189 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler() 194 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler() 246 SMC_RET2(handle, in pm_smc_handler() [all …]
|
/tf-a-ffa_el3_spmc/include/drivers/brcm/emmc/ |
A D | emmc_csl_sd.h | 64 void data_xfer_setup(struct sd_handle *handle, uint8_t *data, 66 int reset_card(struct sd_handle *handle); 67 int reset_host_ctrl(struct sd_handle *handle); 68 int init_card(struct sd_handle *handle, int detection); 69 int init_mmc_card(struct sd_handle *handle); 72 int select_blk_sz(struct sd_handle *handle, uint16_t size); 73 int check_error(struct sd_handle *handle, uint32_t ints); 75 int process_data_xfer(struct sd_handle *handle, uint8_t *buffer, 87 int32_t set_config(struct sd_handle *handle, uint32_t speed, 93 int set_boot_config(struct sd_handle *handle, uint32_t config); [all …]
|
A D | emmc_csl_sdcmd.h | 140 int sd_cmd0(struct sd_handle *handle); 142 int sd_cmd2(struct sd_handle *handle); 143 int sd_cmd3(struct sd_handle *handle); 144 int sd_cmd7(struct sd_handle *handle, uint32_t rca); 148 int sd_cmd17(struct sd_handle *handle, 150 int sd_cmd18(struct sd_handle *handle, 153 int sd_cmd24(struct sd_handle *handle, 155 int sd_cmd25(struct sd_handle *handle, 159 int sd_cmd35(struct sd_handle *handle, uint32_t start); 160 int sd_cmd36(struct sd_handle *handle, uint32_t end); [all …]
|
/tf-a-ffa_el3_spmc/plat/nxp/common/sip_svc/ |
A D | sip_svc.c | 32 void *handle, in nxp_plat_sip_handler() argument 36 SMC_RET1(handle, SMC_UNK); in nxp_plat_sip_handler() 67 void *handle, in nxp_sip_handler() argument 91 SMC_RET1(handle, SMC_UNK); in nxp_sip_handler() 110 SMC_RET1(handle, SMC_OK); in nxp_sip_handler() 120 SMC_RET2(handle, SMC_OK, in nxp_sip_handler() 125 SMC_RET3(handle, SMC_OK, in nxp_sip_handler() 134 SMC_RET1(handle, SMC_OK); in nxp_sip_handler() 144 SMC_RET1(handle, SMC_UNK); in nxp_sip_handler() 152 cookie, handle, flags); in nxp_sip_handler() [all …]
|
/tf-a-ffa_el3_spmc/plat/imx/common/ |
A D | imx_sip_svc.c | 25 void *handle, in imx_sip_handler() argument 30 SMC_RET1(handle, imx_kernel_entry_handler(smc_fid, x1, x2, x3, x4)); in imx_sip_handler() 34 SMC_RET1(handle, imx_soc_info_handler(smc_fid, x1, x2, x3)); in imx_sip_handler() 39 return imx_srtc_handler(smc_fid, handle, x1, x2, x3, x4); in imx_sip_handler() 41 SMC_RET1(handle, imx_cpufreq_handler(smc_fid, x1, x2, x3)); in imx_sip_handler() 44 SMC_RET1(handle, imx_wakeup_src_handler(smc_fid, x1, x2, x3)); in imx_sip_handler() 47 return imx_otp_handler(smc_fid, handle, x1, x2); in imx_sip_handler() 49 SMC_RET1(handle, imx_misc_set_temp_handler(smc_fid, x1, x2, x3, x4)); in imx_sip_handler() 53 SMC_RET1(handle, imx_src_handler(smc_fid, x1, x2, x3, handle)); in imx_sip_handler() 57 SMC_RET1(handle, imx_buildinfo_handler(smc_fid, x1, x2, x3, x4)); in imx_sip_handler() [all …]
|
/tf-a-ffa_el3_spmc/services/std_svc/spm/common/ |
A D | logical_mm_sp.c | 88 SMC_RET8(handle, FFA_ERROR, in spmc_ffa_error_return() 102 void *handle) in spmc_mm_interface_handler() argument 138 return spmc_ffa_error_return(handle, in spmc_mm_interface_handler() 144 void *cookie, void *handle, in direct_req_secure_smc_handler() argument 169 return spmc_ffa_error_return(handle, in direct_req_secure_smc_handler() 197 SMC_GET_GP(handle, CTX_GPREG_X5), in direct_req_secure_smc_handler() 211 return spmc_ffa_error_return(handle, in direct_req_secure_smc_handler() 220 void *handle, in direct_req_non_secure_smc_handler() argument 236 SMC_GET_GP(handle, CTX_GPREG_X5), in direct_req_non_secure_smc_handler() 237 SMC_GET_GP(handle, CTX_GPREG_X6), handle); in direct_req_non_secure_smc_handler() [all …]
|
/tf-a-ffa_el3_spmc/plat/marvell/armada/common/ |
A D | mrvl_sip_svc.c | 79 void *handle, in mrvl_sip_smc_handler() argument 112 SMC_RET1(handle, ret); in mrvl_sip_smc_handler() 116 SMC_RET1(handle, ret); in mrvl_sip_smc_handler() 120 SMC_RET1(handle, ret); in mrvl_sip_smc_handler() 124 SMC_RET1(handle, ret); in mrvl_sip_smc_handler() 128 SMC_RET1(handle, ret); in mrvl_sip_smc_handler() 133 SMC_RET1(handle, ret); in mrvl_sip_smc_handler() 138 SMC_RET1(handle, 0); in mrvl_sip_smc_handler() 142 SMC_RET1(handle, 0); in mrvl_sip_smc_handler() 145 SMC_RET1(handle, 0); in mrvl_sip_smc_handler() [all …]
|
/tf-a-ffa_el3_spmc/plat/nvidia/tegra/common/ |
A D | tegra_sip_calls.c | 38 void *handle, in tegra_sip_handler() argument 48 SMC_RET1(handle, (uint64_t)err); in tegra_sip_handler() 59 SMC_RET1(handle, (uint64_t)-ENOTSUP); in tegra_sip_handler() 68 SMC_RET1(handle, (uint64_t)err); in tegra_sip_handler() 76 SMC_RET1(handle, (uint64_t)-ENOTSUP); in tegra_sip_handler() 88 SMC_RET1(handle, (uint64_t)-ENOTSUP); in tegra_sip_handler() 104 SMC_RET1(handle, 0); in tegra_sip_handler() 115 SMC_RET1(handle, SMC_UNK); in tegra_sip_handler() 125 SMC_RET1(handle, 0); in tegra_sip_handler() 138 SMC_RET0(handle); in tegra_sip_handler() [all …]
|
/tf-a-ffa_el3_spmc/plat/arm/common/ |
A D | arm_sip_svc.c | 49 void *handle, in arm_sip_handler() argument 62 handle, flags); in arm_sip_handler() 71 handle, flags); in arm_sip_handler() 80 handle, flags); in arm_sip_handler() 91 SMC_RET1(handle, STATE_SW_E_DENIED); in arm_sip_handler() 98 (uint32_t) x4, handle); in arm_sip_handler() 101 SMC_RET1(handle, STATE_SW_E_DENIED); in arm_sip_handler() 117 SMC_RET1(handle, call_count); in arm_sip_handler() 121 SMC_UUID_RET(handle, arm_sip_svc_uid); in arm_sip_handler() 125 SMC_RET2(handle, ARM_SIP_SVC_VERSION_MAJOR, ARM_SIP_SVC_VERSION_MINOR); in arm_sip_handler() [all …]
|
/tf-a-ffa_el3_spmc/services/std_svc/ |
A D | pci_svc.c | 47 void *handle, in pci_smc_handler() argument 56 SMC_RET4(handle, ver.val, 0U, 0U, 0U); in pci_smc_handler() 65 SMC_RET1(handle, SMC_PCI_CALL_SUCCESS); in pci_smc_handler() 67 SMC_RET1(handle, SMC_PCI_CALL_NOT_SUPPORTED); in pci_smc_handler() 74 SMC_RET2(handle, SMC_PCI_CALL_INVAL_PARAM, 0U); in pci_smc_handler() 77 SMC_RET2(handle, SMC_PCI_CALL_INVAL_PARAM, 0U); in pci_smc_handler() 82 SMC_RET2(handle, SMC_PCI_CALL_SUCCESS, ret); in pci_smc_handler() 90 SMC_RET1(handle, SMC_PCI_CALL_INVAL_PARAM); in pci_smc_handler() 93 SMC_RET1(handle, ret); in pci_smc_handler() 105 SMC_RET3(handle, ret, start_end_bus, nseg); in pci_smc_handler() [all …]
|
A D | std_svc_setup.c | 84 void *handle, in std_svc_smc_handler() argument 116 cookie, handle, flags); in std_svc_smc_handler() 124 SMC_RET1(handle, ret); in std_svc_smc_handler() 134 handle, flags); in std_svc_smc_handler() 153 handle, flags); in std_svc_smc_handler() 159 return sdei_smc_handler(smc_fid, x1, x2, x3, x4, cookie, handle, in std_svc_smc_handler() 173 return pci_smc_handler(smc_fid, x1, x2, x3, x4, cookie, handle, in std_svc_smc_handler() 184 SMC_RET1(handle, PSCI_NUM_CALLS); in std_svc_smc_handler() 188 SMC_UUID_RET(handle, arm_svc_uid); in std_svc_smc_handler() 192 SMC_RET2(handle, STD_SVC_VERSION_MAJOR, STD_SVC_VERSION_MINOR); in std_svc_smc_handler() [all …]
|
/tf-a-ffa_el3_spmc/plat/mediatek/common/ |
A D | mtk_sip_svc.c | 31 void *handle, in mediatek_plat_sip_handler() argument 35 SMC_RET1(handle, SMC_UNK); in mediatek_plat_sip_handler() 46 void *handle, in mediatek_sip_handler() argument 69 SMC_RET1(handle, ret); in mediatek_sip_handler() 75 SMC_RET0(handle); in mediatek_sip_handler() 84 cookie, handle, flags); in mediatek_sip_handler() 97 void *handle, in sip_smc_handler() argument 103 SMC_RET1(handle, in sip_smc_handler() 108 SMC_UUID_RET(handle, mtk_sip_svc_uid); in sip_smc_handler() 112 SMC_RET2(handle, MTK_SIP_SVC_VERSION_MAJOR, in sip_smc_handler() [all …]
|
/tf-a-ffa_el3_spmc/plat/mediatek/common/custom/ |
A D | oem_svc.c | 43 void *handle, in oem_smc_handler() argument 47 SMC_RET1(handle, SMC_UNK); in oem_smc_handler() 60 void *handle, in oem_svc_smc_handler() argument 68 handle, flags); in oem_svc_smc_handler() 76 SMC_RET1(handle, OEM_SVC_NUM_CALLS); in oem_svc_smc_handler() 80 SMC_UUID_RET(handle, oem_svc_uid); in oem_svc_smc_handler() 84 SMC_RET2(handle, OEM_VERSION_MAJOR, OEM_VERSION_MINOR); in oem_svc_smc_handler() 88 SMC_RET1(handle, SMC_UNK); in oem_svc_smc_handler()
|
/tf-a-ffa_el3_spmc/services/std_svc/spmd/ |
A D | spmd_main.c | 108 void *handle, 372 void *handle, in ffa_smc_forward() argument 414 void *handle, in spmd_smc_forward() argument 485 void *handle, in spmd_smc_handler() argument 500 SMC_GET_GP(handle, CTX_GPREG_X5), in spmd_smc_handler() 516 x1, x2, x3, x4, handle, in spmd_smc_handler() 563 x1, x2, x3, x4, handle, in spmd_smc_handler() 660 x1, x2, x3, x4, handle, in spmd_smc_handler() 671 x1, x2, x3, x4, handle, in spmd_smc_handler() 721 x1, x2, x3, x4, handle, in spmd_smc_handler() [all …]
|
/tf-a-ffa_el3_spmc/plat/amlogic/common/ |
A D | aml_sip_svc.c | 51 void *cookie, void *handle, in aml_sip_handler() argument 57 SMC_RET1(handle, AML_SHARE_MEM_INPUT_BASE); in aml_sip_handler() 60 SMC_RET1(handle, AML_SHARE_MEM_OUTPUT_BASE); in aml_sip_handler() 67 SMC_RET1(handle, ret); in aml_sip_handler() 70 SMC_RET1(handle, aml_efuse_user_max()); in aml_sip_handler() 74 SMC_RET1(handle, 0); in aml_sip_handler() 78 SMC_RET1(handle, 0); in aml_sip_handler() 81 SMC_RET1(handle, aml_sip_get_chip_id(x1)); in aml_sip_handler() 88 SMC_RET1(handle, SMC_UNK); in aml_sip_handler()
|
/tf-a-ffa_el3_spmc/plat/rockchip/common/ |
A D | rockchip_sip_svc.c | 29 void *handle, in rockchip_plat_sip_handler() argument 33 SMC_RET1(handle, SMC_UNK); in rockchip_plat_sip_handler() 45 void *handle, in sip_smc_handler() argument 53 SMC_RET1(handle, SMC_UNK); in sip_smc_handler() 58 SMC_RET1(handle, in sip_smc_handler() 63 SMC_UUID_RET(handle, rk_sip_svc_uid); in sip_smc_handler() 67 SMC_RET2(handle, RK_SIP_SVC_VERSION_MAJOR, in sip_smc_handler() 72 cookie, handle, flags); in sip_smc_handler()
|
/tf-a-ffa_el3_spmc/plat/xilinx/common/ipi_mailbox_service/ |
A D | ipi_mailbox_svc.c | 68 void *handle, uint64_t flags) in ipi_smc_handler() argument 86 SMC_RET1(handle, ret); in ipi_smc_handler() 91 SMC_RET1(handle, 0); in ipi_smc_handler() 94 SMC_RET1(handle, 0); in ipi_smc_handler() 103 SMC_RET1(handle, ret); in ipi_smc_handler() 111 SMC_RET1(handle, 0); in ipi_smc_handler() 121 SMC_RET1(handle, 0); in ipi_smc_handler() 125 SMC_RET1(handle, 0); in ipi_smc_handler() 128 SMC_RET1(handle, 0); in ipi_smc_handler() 131 SMC_RET1(handle, SMC_UNK); in ipi_smc_handler()
|
/tf-a-ffa_el3_spmc/services/spd/tlkd/ |
A D | tlkd_main.c | 58 void *handle, in tlkd_interrupt_handler() argument 204 void *handle, in tlkd_smc_handler() argument 213 assert(handle); in tlkd_smc_handler() 217 SMC_RET1(handle, SMC_UNK); in tlkd_smc_handler() 231 SMC_RET1(handle, SMC_UNK); in tlkd_smc_handler() 280 SMC_RET1(handle, SMC_UNK); in tlkd_smc_handler() 350 SMC_RET1(handle, SMC_UNK); in tlkd_smc_handler() 357 SMC_RET1(handle, SMC_UNK); in tlkd_smc_handler() 376 SMC_RET1(handle, SMC_UNK); in tlkd_smc_handler() 407 SMC_RET1(handle, SMC_UNK); in tlkd_smc_handler() [all …]
|
/tf-a-ffa_el3_spmc/drivers/io/ |
A D | io_storage.c | 86 assert(handle != NULL); in set_handle() 87 *handle = (uintptr_t)entity; in set_handle() 162 uintptr_t *handle) in io_dev_open() argument 164 assert(handle != NULL); in io_dev_open() 226 set_handle(handle, entity); in io_open() 269 int io_read(uintptr_t handle, in io_read() argument 275 assert(is_valid_entity(handle)); in io_read() 289 int io_write(uintptr_t handle, in io_write() argument 295 assert(is_valid_entity(handle)); in io_write() 311 int io_close(uintptr_t handle) in io_close() argument [all …]
|
/tf-a-ffa_el3_spmc/services/spd/tspd/ |
A D | tspd_main.c | 110 void *handle, in tspd_sel1_interrupt_handler() argument 226 void *handle, in tspd_ns_interrupt_handler() argument 347 void *handle, in tspd_smc_handler() argument 370 SMC_RET1(handle, SMC_UNK); in tspd_smc_handler() 382 SMC_RET1(handle, SMC_UNK); in tspd_smc_handler() 440 SMC_RET1(handle, SMC_UNK); in tspd_smc_handler() 548 SMC_RET1(handle, SMC_UNK); in tspd_smc_handler() 705 SMC_RET1(handle, SMC_OK); in tspd_smc_handler() 727 SMC_RET1(handle, SMC_UNK); in tspd_smc_handler() 770 SMC_RET2(handle, x1, x2); in tspd_smc_handler() [all …]
|