Lines Matching full:shmem
25 * @shmem: Transmit/Receive shared memory area
32 struct scmi_shared_mem __iomem *shmem; member
41 shmem_tx_prepare(smbox->shmem, m, smbox->cinfo); in tx_prepare()
48 scmi_rx_callback(smbox->cinfo, shmem_read_header(smbox->shmem), NULL); in rx_callback()
79 * 'mboxes' and 'shmem', then determin which mailbox channel indexes are
91 num_sh = of_count_phandle_with_args(np, "shmem", NULL); in mailbox_chan_validate()
94 /* Bail out if mboxes and shmem descriptors are inconsistent */ in mailbox_chan_validate()
103 /* Bail out if provided shmem descriptors do not refer distinct areas */ in mailbox_chan_validate()
107 np_tx = of_parse_phandle(np, "shmem", 0); in mailbox_chan_validate()
108 np_rx = of_parse_phandle(np, "shmem", 1); in mailbox_chan_validate()
110 dev_warn(cdev, "Invalid shmem descriptor for '%s'\n", in mailbox_chan_validate()
119 /* Calculate channels IDs to use depending on mboxes/shmem layout */ in mailbox_chan_validate()
151 struct device_node *shmem; in mailbox_chan_setup() local
168 shmem = of_parse_phandle(cdev->of_node, "shmem", idx); in mailbox_chan_setup()
169 if (!of_device_is_compatible(shmem, "arm,scmi-shmem")) { in mailbox_chan_setup()
170 of_node_put(shmem); in mailbox_chan_setup()
174 ret = of_address_to_resource(shmem, 0, &res); in mailbox_chan_setup()
175 of_node_put(shmem); in mailbox_chan_setup()
182 smbox->shmem = devm_ioremap(dev, res.start, size); in mailbox_chan_setup()
183 if (!smbox->shmem) { in mailbox_chan_setup()
272 shmem_fetch_response(smbox->shmem, xfer); in mailbox_fetch_response()
280 shmem_fetch_notification(smbox->shmem, max_len, xfer); in mailbox_fetch_notification()
287 shmem_clear_channel(smbox->shmem); in mailbox_clear_channel()
295 return shmem_poll_done(smbox->shmem, xfer); in mailbox_poll_done()