Home
last modified time | relevance | path

Searched refs:mbox (Results 1 – 8 of 8) sorted by relevance

/trusted-firmware-a-3.7.0/plat/hisilicon/hikey960/drivers/ipc/
Dhisi_ipc.c80 hisi_ipc_clear_ack(enum src_id source, enum lpm3_mbox_id mbox) in hisi_ipc_clear_ack() argument
85 int_status = mmio_read_32(IPC_MBX_MODE_REG(mbox)); in hisi_ipc_clear_ack()
90 mmio_write_32(IPC_MBX_ICLR_REG(mbox), source); in hisi_ipc_clear_ack()
94 hisi_ipc_send_cmd_with_ack(enum src_id source, enum lpm3_mbox_id mbox, in hisi_ipc_send_cmd_with_ack() argument
104 state = mmio_read_32(IPC_MBX_MODE_REG(mbox)); in hisi_ipc_send_cmd_with_ack()
106 mmio_write_32(IPC_MBX_SOURCE_REG(mbox), source); in hisi_ipc_send_cmd_with_ack()
107 regval = mmio_read_32(IPC_MBX_SOURCE_REG(mbox)); in hisi_ipc_send_cmd_with_ack()
116 mmio_write_32(IPC_MBX_MODE_REG(mbox), 0x1); in hisi_ipc_send_cmd_with_ack()
120 mmio_write_32(IPC_MBX_IMASK_REG(mbox), mask); in hisi_ipc_send_cmd_with_ack()
122 mmio_write_32(IPC_MBX_DATA_REG(mbox, 0), cmdtype); in hisi_ipc_send_cmd_with_ack()
[all …]
/trusted-firmware-a-3.7.0/services/std_svc/spm/el3_spmc/
Dspmc_main.c686 struct mailbox *mbox; in rxtx_map_handler() local
728 mbox = spmc_get_mbox_desc(secure_origin); in rxtx_map_handler()
730 spin_lock(&mbox->lock); in rxtx_map_handler()
733 if (mbox->rx_buffer != 0 || mbox->tx_buffer != 0) { in rxtx_map_handler()
735 (void *) mbox->rx_buffer, (void *)mbox->tx_buffer); in rxtx_map_handler()
768 mbox->tx_buffer = (void *) tx_address; in rxtx_map_handler()
769 mbox->rx_buffer = (void *) rx_address; in rxtx_map_handler()
770 mbox->rxtx_page_count = page_count; in rxtx_map_handler()
771 spin_unlock(&mbox->lock); in rxtx_map_handler()
776 spin_unlock(&mbox->lock); in rxtx_map_handler()
[all …]
Dspmc_shared_mem.c1001 static long spmc_ffa_fill_desc(struct mailbox *mbox, in spmc_ffa_fill_desc() argument
1012 if (mbox->rxtx_page_count == 0U) { in spmc_ffa_fill_desc()
1018 CASSERT(sizeof(mbox->rxtx_page_count) == 4, assert_bogus_page_count); in spmc_ffa_fill_desc()
1019 if (fragment_length > (uint64_t)mbox->rxtx_page_count * PAGE_SIZE_4KB) { in spmc_ffa_fill_desc()
1021 fragment_length, (uint64_t)mbox->rxtx_page_count * PAGE_SIZE_4KB); in spmc_ffa_fill_desc()
1034 (uint8_t *) mbox->tx_buffer, fragment_length); in spmc_ffa_fill_desc()
1195 struct mailbox *mbox = spmc_get_mbox_desc(secure_origin); in spmc_ffa_mem_send() local
1248 spin_lock(&mbox->lock); in spmc_ffa_mem_send()
1249 ret = spmc_ffa_fill_desc(mbox, obj, fragment_length, mtd_flag, in spmc_ffa_mem_send()
1251 spin_unlock(&mbox->lock); in spmc_ffa_mem_send()
[all …]
/trusted-firmware-a-3.7.0/fdts/
Dcorstone700.dtsi121 #mbox-cells = <1>;
122 mbox-name = "arm-es0-mhu0";
133 #mbox-cells = <1>;
134 mbox-name = "arm-es0-mhu1";
145 #mbox-cells = <1>;
146 mbox-name = "arm-se-mhu1";
152 mbox-names = "es0mhu0", "es0mhu1", "semhu1";
Dmorello.dtsi59 #mbox-cells = <2>;
60 mbox-name = "ARM-MHU";
Dtc.dts246 #mbox-cells = <2>;
258 #mbox-cells = <2>;
272 mbox-names = "tx", "rx";
Dmorello-fvp.dts172 mbox-names = "tx", "rx";
Dmorello-soc.dts311 mbox-names = "tx", "rx";