Home
last modified time | relevance | path

Searched refs:handle (Results 1 – 25 of 232) sorted by relevance

12345678910

/rk3399_ARM-atf/drivers/brcm/emmc/
H A Demmc_csl_sdcard.c51 static int set_card_data_width(struct sd_handle *handle, int width);
52 static int abort_err(struct sd_handle *handle);
53 static int err_recovery(struct sd_handle *handle, uint32_t errors);
54 static int xfer_data(struct sd_handle *handle, uint32_t mode, uint32_t addr,
57 int set_boot_config(struct sd_handle *handle, uint32_t config) in set_boot_config() argument
59 return mmc_cmd6(handle, SDIO_HW_EMMC_EXT_CSD_BOOT_CNF | config); in set_boot_config()
62 void process_csd_mmc_speed(struct sd_handle *handle, uint32_t csd_mmc_speed) in process_csd_mmc_speed() argument
109 chal_sd_set_clock((CHAL_HANDLE *) handle->device, div_ctrl_setting, 0); in process_csd_mmc_speed()
111 chal_sd_set_clock((CHAL_HANDLE *) handle->device, div_ctrl_setting, 1); in process_csd_mmc_speed()
122 int set_card_data_width(struct sd_handle *handle, int width) in set_card_data_width() argument
[all …]
H A Demmc_chal_sd.c66 static int32_t chal_sd_set_power(struct sd_dev *handle,
69 static void chal_sd_set_dma_boundary(struct sd_dev *handle, uint32_t boundary);
71 static int32_t chal_sd_setup_handler(struct sd_dev *handle,
78 static int32_t chal_sd_set_power(struct sd_dev *handle, in chal_sd_set_power() argument
84 if (handle == NULL) in chal_sd_set_power()
87 mmio_clrsetbits_32(handle->ctrl.sdRegBaseAddr + in chal_sd_set_power()
101 rc = mmio_read_32(handle->ctrl.sdRegBaseAddr + in chal_sd_set_power()
119 mmio_setbits_32(handle->ctrl.sdRegBaseAddr + SD4_EMMC_TOP_CTRL_OFFSET, in chal_sd_set_power()
123 mmio_write_32(handle->ctrl.sdRegBaseAddr + SD4_EMMC_TOP_ARG_OFFSET, 0); in chal_sd_set_power()
124 mmio_write_32(handle->ctrl.sdRegBaseAddr + SD4_EMMC_TOP_CMD_OFFSET, 0); in chal_sd_set_power()
[all …]
H A Demmc_csl_sdcmd.c19 int sd_cmd0(struct sd_handle *handle) in sd_cmd0() argument
25 res = send_cmd(handle, SD_CMD_GO_IDLE_STATE, argument, 0, NULL); in sd_cmd0()
29 chal_sd_clear_irq((void *)handle->device, 0xffffffff); in sd_cmd0()
35 int sd_cmd1(struct sd_handle *handle, uint32_t ocr, uint32_t *ocr_output) in sd_cmd1() argument
49 res = send_cmd(handle, SD_CMD_SEND_OPCOND, ocr, options, &resp); in sd_cmd1()
57 int sd_cmd2(struct sd_handle *handle) in sd_cmd2() argument
65 return send_cmd(handle, SD_CMD_ALL_SEND_CID, 0, options, &resp); in sd_cmd2()
68 int sd_cmd3(struct sd_handle *handle) in sd_cmd3() argument
76 handle->device->ctrl.rca = 0x5; in sd_cmd3()
77 argument = handle->device->ctrl.rca << SD_CMD7_ARG_RCA_SHIFT; in sd_cmd3()
[all …]
/rk3399_ARM-atf/services/std_svc/trng/
H A Dtrng_main.c23 static uintptr_t trng_rnd32(uint32_t nbits, void *handle) in trng_rnd32() argument
29 SMC_RET1(handle, TRNG_E_INVALID_PARAMS); in trng_rnd32()
33 SMC_RET1(handle, TRNG_E_NO_ENTROPY); in trng_rnd32()
42 SMC_RET4(handle, TRNG_E_SUCCESS, 0, 0, ent[0] & mask); in trng_rnd32()
45 SMC_RET4(handle, TRNG_E_SUCCESS, 0, (ent[0] >> 32) & mask, in trng_rnd32()
49 SMC_RET4(handle, TRNG_E_SUCCESS, ent[1] & mask, in trng_rnd32()
53 SMC_RET1(handle, TRNG_E_INVALID_PARAMS); in trng_rnd32()
59 static uintptr_t trng_rnd64(uint32_t nbits, void *handle) in trng_rnd64() argument
65 SMC_RET1(handle, TRNG_E_INVALID_PARAMS); in trng_rnd64()
69 SMC_RET1(handle, TRNG_E_NO_ENTROPY); in trng_rnd64()
[all …]
/rk3399_ARM-atf/plat/imx/common/
H A Dimx_sip_svc.c30 void *handle, in imx_sip_handler() argument
35 SMC_RET1(handle, imx_kernel_entry_handler(smc_fid, x1, x2, x3, x4)); in imx_sip_handler()
40 SMC_RET1(handle, 0); in imx_sip_handler()
43 SMC_RET1(handle, imx_hifi_xrdc(smc_fid)); in imx_sip_handler()
46 return dram_dvfs_handler(smc_fid, handle, x1, x2, x3); in imx_sip_handler()
50 SMC_RET1(handle, imx_soc_info_handler(smc_fid, x1, x2, x3)); in imx_sip_handler()
53 SMC_RET1(handle, imx_gpc_handler(smc_fid, x1, x2, x3)); in imx_sip_handler()
56 return dram_dvfs_handler(smc_fid, handle, x1, x2, x3); in imx_sip_handler()
60 return dram_dvfs_handler(smc_fid, handle, x1, x2, x3); in imx_sip_handler()
62 SMC_RET1(handle, imx_gpc_handler(smc_fid, x1, x2, x3)); in imx_sip_handler()
[all …]
/rk3399_ARM-atf/services/spd/pncd/
H A Dpncd_main.c66 void *handle; in context_restore() local
71 handle = cm_get_context((uint32_t) security_state); in context_restore()
72 assert(handle); in context_restore()
83 return handle; in context_restore()
87 uint32_t flags, void *handle, void *cookie);
178 void *handle, in pncd_sel1_interrupt_handler() argument
185 assert(handle == cm_get_context(NON_SECURE)); in pncd_sel1_interrupt_handler()
188 handle = pncd_context_switch_to(SECURE); in pncd_sel1_interrupt_handler()
190 assert(handle != NULL); in pncd_sel1_interrupt_handler()
192 SMC_RET0(handle); in pncd_sel1_interrupt_handler()
[all …]
/rk3399_ARM-atf/plat/nxp/common/sip_svc/
H A Dsip_svc.c32 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()
97 SMC_RET2(handle, SMC_OK, ret); in nxp_sip_handler()
99 SMC_RET1(handle, SMC_UNK); in nxp_sip_handler()
105 SMC_RET1(handle, SMC_UNK); in nxp_sip_handler()
110 SMC_RET1(handle, SMC_OK); in nxp_sip_handler()
112 SMC_RET1(handle, SMC_UNK); in nxp_sip_handler()
120 SMC_RET2(handle, SMC_OK, in nxp_sip_handler()
[all …]
/rk3399_ARM-atf/include/drivers/brcm/emmc/
H A Demmc_csl_sd.h64 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);
70 int write_buffer(struct sd_handle *handle, uint32_t len, uint8_t *buffer);
71 int read_buffer(struct sd_handle *handle, uint32_t len, uint8_t *buffer);
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,
[all …]
H A Demmc_csl_sdcmd.h140 int sd_cmd0(struct sd_handle *handle);
141 int sd_cmd1(struct sd_handle *handle, uint32_t initOcr, uint32_t *ocr);
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);
145 int sd_cmd9(struct sd_handle *handle, struct sd_card_data *card);
146 int sd_cmd13(struct sd_handle *handle, uint32_t *status);
147 int sd_cmd16(struct sd_handle *handle, uint32_t blockLen);
148 int sd_cmd17(struct sd_handle *handle,
150 int sd_cmd18(struct sd_handle *handle,
[all …]
/rk3399_ARM-atf/plat/intel/soc/common/
H A Dsocfpga_sip_svc.c54 void *handle, in socfpga_sip_handler() argument
58 SMC_RET1(handle, SMC_UNK); in socfpga_sip_handler()
960 static uintptr_t smc_ret(void *handle, uint64_t *ret_args, uint32_t ret_args_len) argument
966 SMC_RET1(handle, ret_args[0]);
971 SMC_RET2(handle, ret_args[0], ret_args[1]);
977 SMC_RET3(handle, ret_args[0], ret_args[1], ret_args[2]);
983 SMC_RET4(handle, ret_args[0], ret_args[1], ret_args[2], ret_args[3]);
989 SMC_RET5(handle, ret_args[0], ret_args[1], ret_args[2], ret_args[3], ret_args[4]);
996 SMC_RET6(handle, ret_args[0], ret_args[1], ret_args[2], ret_args[3], ret_args[4],
1005 SMC_RET7(handle, ret_args[0], ret_args[1], ret_args[2], ret_args[3], ret_args[4],
[all …]
/rk3399_ARM-atf/plat/marvell/armada/common/
H A Dmrvl_sip_svc.c79 void *handle, in mrvl_sip_smc_handler() argument
93 SMC_RET1(handle, SMC_UNK); in mrvl_sip_smc_handler()
102 SMC_RET1(handle, SMC_UNK); in mrvl_sip_smc_handler()
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()
[all …]
/rk3399_ARM-atf/plat/st/common/
H A Dstm32cubeprogrammer_uart.c63 } handle; variable
69 if (handle.phase != PHASE_RESET) { \
70 snprintf((char *)&handle.error, sizeof(handle.error), __VA_ARGS__); \
71 handle.phase = PHASE_RESET; \
72 handle.addr = (uint8_t *)UNDEFINED_DOWN_ADDR; \
73 handle.len = 0U; \
74 handle.packet = 0U; \
81 if (stm32_uart_putc(&handle.uart, *addr) != 0) { in uart_write()
93 return stm32_uart_putc(&handle.uart, byte); in uart_write_8()
107 ret = stm32_uart_getc(&handle.uart); in uart_read_8()
[all …]
/rk3399_ARM-atf/plat/arm/common/
H A Dplat_arm_sip_svc.c29 void *handle) in plat_protect_memory() argument
35 SMC_RET1(handle, SMC_UNK); in plat_protect_memory()
42 SMC_RET1(handle, SMC_INVALID_PARAM); in plat_protect_memory()
48 SMC_RET1(handle, SMC_INVALID_PARAM); in plat_protect_memory()
68 SMC_RET2(handle, SMC_INVALID_PARAM, last_updated); in plat_protect_memory()
71 SMC_RET2(handle, SMC_DENIED, last_updated); in plat_protect_memory()
79 SMC_RET1(handle, SMC_OK); in plat_protect_memory()
89 void *handle, in plat_arm_sip_handler() argument
102 SMC_RET1(handle, SMC_UNK); in plat_arm_sip_handler()
108 SMC_RET1(handle, SMC_OK); in plat_arm_sip_handler()
[all …]
H A Darm_sip_svc.c59 void *handle, in arm_sip_handler() argument
73 handle, flags); in arm_sip_handler()
83 handle, flags); in arm_sip_handler()
92 handle, flags); in arm_sip_handler()
103 SMC_RET1(handle, STATE_SW_E_DENIED); in arm_sip_handler()
110 (uint32_t) x4, handle); in arm_sip_handler()
113 SMC_RET1(handle, STATE_SW_E_DENIED); in arm_sip_handler()
129 SMC_RET1(handle, call_count); in arm_sip_handler()
133 SMC_UUID_RET(handle, arm_sip_svc_uid); in arm_sip_handler()
137 SMC_RET2(handle, ARM_SIP_SVC_VERSION_MAJOR, ARM_SIP_SVC_VERSION_MINOR); in arm_sip_handler()
[all …]
/rk3399_ARM-atf/services/std_svc/spmd/
H A Dspmd_main.c102 void *handle,
238 void *handle, in spmd_secure_interrupt_handler() argument
249 assert(handle == cm_get_context(NON_SECURE)); in spmd_secure_interrupt_handler()
312 void *handle, in spmd_group0_interrupt_handler_nwd() argument
321 assert(handle == cm_get_context(NON_SECURE)); in spmd_group0_interrupt_handler_nwd()
353 static uint64_t spmd_handle_group0_intr_swd(void *handle) in spmd_handle_group0_intr_swd() argument
358 assert(handle == cm_get_context(SECURE)); in spmd_handle_group0_intr_swd()
384 SMC_RET8(handle, FFA_SUCCESS_SMC32, FFA_PARAM_MBZ, FFA_PARAM_MBZ, in spmd_handle_group0_intr_swd()
728 void *handle, in spmd_smc_switch_state() argument
779 SMC_GET_GP(handle, CTX_GPREG_X5), in spmd_smc_switch_state()
[all …]
/rk3399_ARM-atf/plat/qemu/qemu_sbsa/
H A Dsbsa_sip_svc.c45 void *handle, in sbsa_sip_smc_handler() argument
55 SMC_RET1(handle, SMC_UNK); in sbsa_sip_smc_handler()
61 SMC_RET3(handle, NULL, sbsa_platform_version_major(), in sbsa_sip_smc_handler()
65 SMC_RET3(handle, NULL, sbsa_get_gicd(), sbsa_get_gicr()); in sbsa_sip_smc_handler()
68 SMC_RET2(handle, NULL, sbsa_platform_gic_its_addr()); in sbsa_sip_smc_handler()
71 SMC_RET2(handle, NULL, sbsa_platform_num_cpus()); in sbsa_sip_smc_handler()
80 SMC_RET3(handle, NULL, data.nodeid, data.mpidr); in sbsa_sip_smc_handler()
82 SMC_RET1(handle, SMC_ARCH_CALL_INVAL_PARAM); in sbsa_sip_smc_handler()
91 SMC_RET5(handle, NULL, topology.sockets, in sbsa_sip_smc_handler()
96 SMC_RET1(handle, SMC_UNK); in sbsa_sip_smc_handler()
[all …]
/rk3399_ARM-atf/plat/nvidia/tegra/common/
H A Dtegra_sip_calls.c38 void *handle, in tegra_sip_handler() argument
45 err = plat_sip_handler(smc_fid, x1, x2, x3, x4, cookie, handle, flags); in tegra_sip_handler()
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()
[all …]
/rk3399_ARM-atf/services/std_svc/
H A Dpci_svc.c47 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()
80 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()
[all …]
H A Dstd_svc_setup.c112 void *handle, in std_svc_smc_handler() argument
149 cookie, handle, flags); in std_svc_smc_handler()
157 SMC_RET1(handle, ret); in std_svc_smc_handler()
167 handle, flags); in std_svc_smc_handler()
178 handle, flags); in std_svc_smc_handler()
184 return sdei_smc_handler(smc_fid, x1, x2, x3, x4, cookie, handle, in std_svc_smc_handler()
191 return trng_smc_handler(smc_fid, x1, x2, x3, x4, cookie, handle, in std_svc_smc_handler()
199 handle, flags); in std_svc_smc_handler()
207 handle, flags); in std_svc_smc_handler()
212 handle, flags); in std_svc_smc_handler()
[all …]
/rk3399_ARM-atf/drivers/st/usb/
H A Dstm32mp1_usb.c223 static enum usb_status usb_dwc2_flush_tx_fifo(void *handle, uint32_t num) in usb_dwc2_flush_tx_fifo() argument
225 uintptr_t usb_base_addr = (uintptr_t)handle; in usb_dwc2_flush_tx_fifo()
246 static enum usb_status usb_dwc2_flush_rx_fifo(void *handle) in usb_dwc2_flush_rx_fifo() argument
248 uintptr_t usb_base_addr = (uintptr_t)handle; in usb_dwc2_flush_rx_fifo()
268 static uint32_t usb_dwc2_read_int(void *handle) in usb_dwc2_read_int() argument
270 uintptr_t usb_base_addr = (uintptr_t)handle; in usb_dwc2_read_int()
281 static uint32_t usb_dwc2_all_out_ep_int(void *handle) in usb_dwc2_all_out_ep_int() argument
283 uintptr_t usb_base_addr = (uintptr_t)handle; in usb_dwc2_all_out_ep_int()
295 static uint32_t usb_dwc2_all_in_ep_int(void *handle) in usb_dwc2_all_in_ep_int() argument
297 uintptr_t usb_base_addr = (uintptr_t)handle; in usb_dwc2_all_in_ep_int()
[all …]
/rk3399_ARM-atf/services/std_svc/rmmd/
H A Drmmd_main.c236 uint64_t x4, void *handle) in rmmd_smc_forward() argument
257 SMC_GET_GP(handle, CTX_GPREG_X5), in rmmd_smc_forward()
258 SMC_GET_GP(handle, CTX_GPREG_X6), in rmmd_smc_forward()
259 SMC_GET_GP(handle, CTX_GPREG_X7)); in rmmd_smc_forward()
271 void *handle, uint64_t flags) in rmmd_rmi_handler() argument
278 SMC_RET1(handle, SMC_UNK); in rmmd_rmi_handler()
287 SMC_RET1(handle, SMC_UNK); in rmmd_rmi_handler()
305 x1, x2, x3, x4, handle); in rmmd_rmi_handler()
309 SMC_RET1(handle, SMC_UNK); in rmmd_rmi_handler()
314 uint64_t x5 = SMC_GET_GP(handle, CTX_GPREG_X5); in rmmd_rmi_handler()
[all …]
/rk3399_ARM-atf/plat/xilinx/zynqmp/pm_service/
H A Dzynqmp_pm_svc_main.c112 static uint64_t ttc_fiq_handler(uint32_t id, uint32_t flags, void *handle, in ttc_fiq_handler() argument
148 void *handle, void *cookie) in zynqmp_sgi7_irq() argument
286 uint64_t x4, const void *cookie, void *handle, uint64_t flags) in pm_smc_handler() argument
301 SMC_RET1(handle, SMC_UNK); in pm_smc_handler()
327 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
332 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
343 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
348 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
352 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
356 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
[all …]
/rk3399_ARM-atf/services/spd/tlkd/
H A Dtlkd_main.c58 void *handle, in tlkd_interrupt_handler() argument
76 assert(handle == cm_get_context(NON_SECURE)); in tlkd_interrupt_handler()
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()
233 assert(handle == cm_get_context(SECURE)); in tlkd_smc_handler()
280 SMC_RET1(handle, SMC_UNK); in tlkd_smc_handler()
288 assert(handle == cm_get_context(NON_SECURE)); in tlkd_smc_handler()
297 SMC_RET1(handle, SMC_UNK); in tlkd_smc_handler()
[all …]
/rk3399_ARM-atf/drivers/io/
H A Dio_storage.c52 static bool is_valid_entity(const uintptr_t handle) in is_valid_entity() argument
54 const io_entity_t *entity = (io_entity_t *)handle; in is_valid_entity()
84 static void set_handle(uintptr_t *handle, io_entity_t *entity) in set_handle() argument
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()
165 return io_storage_dev_open(dev_con, dev_spec, (io_dev_info_t **)handle); in io_dev_open()
209 int io_open(uintptr_t dev_handle, const uintptr_t spec, uintptr_t *handle) in io_open() argument
212 assert((spec != (uintptr_t)NULL) && (handle != NULL)); in io_open()
[all …]
/rk3399_ARM-atf/plat/mediatek/common/
H A Dmtk_sip_svc.c31 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 …]

12345678910