Home
last modified time | relevance | path

Searched full:shmem (Results 1 – 22 of 22) sorted by relevance

/Zephyr-latest/include/zephyr/drivers/firmware/scmi/
Dshmem.h9 * @brief SCMI SHMEM API
25 * @brief Write a message in the SHMEM area
27 * @param shmem pointer to shmem device
33 int scmi_shmem_write_message(const struct device *shmem,
37 * @brief Read a message from a SHMEM area
39 * @param shmem pointer to shmem device
45 int scmi_shmem_read_message(const struct device *shmem,
51 * @param shmem pointer to shmem device
57 void scmi_shmem_update_flags(const struct device *shmem,
63 * @param shmem pointer to shmem device
[all …]
Dutil.h48 DT_PROP_HAS_IDX(node_id, shmem, idx)
/Zephyr-latest/dts/bindings/firmware/
Darm,scmi.yaml6 and shared memory (SHMEM) transport.
12 compatible = "arm,scmi-shmem";
25 shmem = <&scmi_res0>;
50 shmem:
61 1) tx - 1 mbox / 1 shmem (platform and agent use the same
63 2) tx_reply - 2 mbox / 1 shmem (platform and agent use different
Darm,scmi-shmem.yaml4 description: System Control and Management Interface (SCMI) shared memory (SHMEM)
6 compatible: "arm,scmi-shmem"
Darm,scmi-clock.yaml11 shmem:
/Zephyr-latest/drivers/firmware/scmi/
Dmailbox.h12 #include <zephyr/drivers/firmware/scmi/shmem.h>
20 COND_CODE_1(DT_PROP_HAS_IDX(node_id, shmem, idx), \
21 (DEVICE_DT_GET(DT_PROP_BY_IDX(node_id, shmem, idx))), \
38 .shmem = _SCMI_MBOX_SHMEM_BY_IDX(node_id, 0), \
59 COND_CODE_1(DT_PROP_HAS_IDX(node_id, shmem, idx), \
74 (DT_INST_PROP_HAS_IDX(inst, shmem, 0) && \
83 BUILD_ASSERT(DT_INST_PROP_LEN(inst, shmem) == 1, \
84 "bad SHMEM count"); \
109 /* SHMEM area bound to the channel */
110 const struct device *shmem; member
Dshmem.c7 #include <zephyr/drivers/firmware/scmi/shmem.h>
60 int scmi_shmem_read_message(const struct device *shmem, struct scmi_message *msg) in scmi_shmem_read_message() argument
66 data = shmem->data; in scmi_shmem_read_message()
67 cfg = shmem->config; in scmi_shmem_read_message()
80 LOG_ERR("message doesn't fit in shmem area"); in scmi_shmem_read_message()
107 int scmi_shmem_write_message(const struct device *shmem, struct scmi_message *msg) in scmi_shmem_write_message() argument
113 data = shmem->data; in scmi_shmem_write_message()
114 cfg = shmem->config; in scmi_shmem_write_message()
148 uint32_t scmi_shmem_channel_status(const struct device *shmem) in scmi_shmem_channel_status() argument
153 data = shmem->data; in scmi_shmem_channel_status()
[all …]
DKconfig32 bool "SCMI shared memory (SHMEM) driver"
36 Enable support for SCMI shared memory (SHMEM) driver.
39 int "SCMI shared memory (SHMEM) initialization priority"
42 SCMI SHMEM driver device initialization priority.
Dmailbox.c33 ret = scmi_shmem_write_message(mbox_chan->shmem, msg); in scmi_mbox_send_message()
35 LOG_ERR("failed to write message to shmem: %d", ret); in scmi_mbox_send_message()
56 return scmi_shmem_read_message(mbox_chan->shmem, msg); in scmi_mbox_read_message()
64 return scmi_shmem_channel_status(mbox_chan->shmem) & in scmi_mbox_channel_is_free()
100 scmi_shmem_update_flags(mbox_chan->shmem, in scmi_mbox_setup_chan()
DCMakeLists.txt8 zephyr_library_sources_ifdef(CONFIG_ARM_SCMI_SHMEM shmem.c)
/Zephyr-latest/drivers/ethernet/
Deth_ivshmem_priv.h19 void *shmem; member
33 void *shmem; member
Deth_ivshmem_queue.c47 q->tx.shmem = (void *)tx_shmem; in eth_ivshmem_queue_init()
48 q->rx.shmem = (void *)rx_shmem; in eth_ivshmem_queue_init()
51 vring_init(&q->tx.vring, vring_desc_len, q->tx.shmem, ETH_IVSHMEM_VRING_ALIGNMENT); in eth_ivshmem_queue_init()
52 vring_init(&q->rx.vring, vring_desc_len, q->rx.shmem, ETH_IVSHMEM_VRING_ALIGNMENT); in eth_ivshmem_queue_init()
82 memset(q->tx.shmem, 0, q->vring_header_size); in eth_ivshmem_queue_reset()
119 *data = (uint8_t *)q->tx.shmem + q->vring_header_size + head; in eth_ivshmem_queue_tx_get_buff()
182 *data = (uint8_t *)q->rx.shmem + q->vring_header_size + offset; in eth_ivshmem_queue_rx()
Deth_ivshmem.c313 LOG_INF("shmem queue: desc len 0x%hX, header size 0x%X, data size 0x%X", in eth_ivshmem_initialize()
/Zephyr-latest/tests/drivers/ethernet/eth_ivshmem_queue/src/
Dmain.c63 zassert_equal_ptr(q1.tx.shmem, shmem_buff[0]); in ZTEST()
64 zassert_equal_ptr(q1.rx.shmem, shmem_buff[1]); in ZTEST()
65 zassert_equal_ptr(q2.tx.shmem, shmem_buff[1]); in ZTEST()
66 zassert_equal_ptr(q2.rx.shmem, shmem_buff[0]); in ZTEST()
160 /* Fill queue shmem */ in ZTEST()
/Zephyr-latest/drivers/virtualization/
Dvirt_ivshmem.h49 uintptr_t shmem; member
Dvirt_ivshmem.c186 LOG_INF("SHMEM bar present: %s", shmem_bar_present ? "yes" : "no"); in ivshmem_configure()
277 k_mem_map_phys_bare((uint8_t **)&data->shmem, in ivshmem_configure()
301 data->size, shmem_phys_addr, data->shmem); in ivshmem_configure()
318 *memmap = data->shmem; in ivshmem_api_get_mem()
Dvirt_ivshmem_shell.c203 SHELL_CMD(shmem, NULL,
/Zephyr-latest/doc/hardware/arch/
Darm-scmi.rst112 memory area is performed using a driver (:file:`drivers/firmware/scmi/shmem.c`),
194 compatible = "arm,scmi-shmem";
203 shmem = <&scmi_res0>;
/Zephyr-latest/dts/arm64/nxp/
Dnxp_mimx95_a55.dtsi86 compatible = "arm,scmi-shmem";
94 shmem = <&scmi_shmem0>;
/Zephyr-latest/dts/arm/nxp/
Dnxp_imx95_m7.dtsi37 compatible = "arm,scmi-shmem";
45 shmem = <&scmi_shmem0>;
/Zephyr-latest/include/zephyr/ipc/
Dipc_service.h429 * back to the pool of shmem buffers. This function can be called in the
/Zephyr-latest/doc/releases/
Drelease-notes-3.4.rst1268 * ICMSG: added mutual exclusion access to SHMEM.