Lines Matching full:shmem

25  * @shmem: Transmit/Receive shared memory area
33 struct scmi_shared_mem __iomem *shmem; member
43 shmem_tx_prepare(smbox->shmem, m, smbox->cinfo); in tx_prepare()
59 if (cl->knows_txdone && !shmem_channel_free(smbox->shmem)) { in rx_callback()
64 scmi_rx_callback(smbox->cinfo, shmem_read_header(smbox->shmem), NULL); in rx_callback()
95 * 'mboxes' and 'shmem', then determin which mailbox channel indexes are
107 num_sh = of_count_phandle_with_args(np, "shmem", NULL); in mailbox_chan_validate()
110 /* Bail out if mboxes and shmem descriptors are inconsistent */ in mailbox_chan_validate()
119 /* Bail out if provided shmem descriptors do not refer distinct areas */ in mailbox_chan_validate()
123 np_tx = of_parse_phandle(np, "shmem", 0); in mailbox_chan_validate()
124 np_rx = of_parse_phandle(np, "shmem", 1); in mailbox_chan_validate()
126 dev_warn(cdev, "Invalid shmem descriptor for '%s'\n", in mailbox_chan_validate()
135 /* Calculate channels IDs to use depending on mboxes/shmem layout */ in mailbox_chan_validate()
167 struct device_node *shmem; in mailbox_chan_setup() local
184 shmem = of_parse_phandle(cdev->of_node, "shmem", idx); in mailbox_chan_setup()
185 if (!of_device_is_compatible(shmem, "arm,scmi-shmem")) { in mailbox_chan_setup()
186 of_node_put(shmem); in mailbox_chan_setup()
190 ret = of_address_to_resource(shmem, 0, &res); in mailbox_chan_setup()
191 of_node_put(shmem); in mailbox_chan_setup()
198 smbox->shmem = devm_ioremap(dev, res.start, size); in mailbox_chan_setup()
199 if (!smbox->shmem) { in mailbox_chan_setup()
296 shmem_fetch_response(smbox->shmem, xfer); in mailbox_fetch_response()
304 shmem_fetch_notification(smbox->shmem, max_len, xfer); in mailbox_fetch_notification()
311 shmem_clear_channel(smbox->shmem); in mailbox_clear_channel()
319 return shmem_poll_done(smbox->shmem, xfer); in mailbox_poll_done()