Lines Matching defs:smbox

39 	struct scmi_mailbox *smbox = client_to_scmi_mailbox(cl);
41 shmem_tx_prepare(smbox->shmem, m, smbox->cinfo);
46 struct scmi_mailbox *smbox = client_to_scmi_mailbox(cl);
57 if (cl->knows_txdone && !shmem_channel_free(smbox->shmem)) {
58 dev_warn(smbox->cinfo->dev, "Ignoring spurious A2P IRQ !\n");
62 scmi_rx_callback(smbox->cinfo, shmem_read_header(smbox->shmem), NULL);
164 struct scmi_mailbox *smbox;
178 smbox = devm_kzalloc(dev, sizeof(*smbox), GFP_KERNEL);
179 if (!smbox)
196 smbox->shmem = devm_ioremap(dev, res.start, size);
197 if (!smbox->shmem) {
202 cl = &smbox->cl;
209 smbox->chan = mbox_request_channel(cl, tx ? 0 : p2a_chan);
210 if (IS_ERR(smbox->chan)) {
211 ret = PTR_ERR(smbox->chan);
220 smbox->chan_receiver = mbox_request_channel(cl, a2p_rx_chan);
221 if (IS_ERR(smbox->chan_receiver)) {
222 ret = PTR_ERR(smbox->chan_receiver);
229 cinfo->transport_info = smbox;
230 smbox->cinfo = cinfo;
238 struct scmi_mailbox *smbox = cinfo->transport_info;
240 if (smbox && !IS_ERR(smbox->chan)) {
241 mbox_free_channel(smbox->chan);
242 mbox_free_channel(smbox->chan_receiver);
244 smbox->chan = NULL;
245 smbox->chan_receiver = NULL;
246 smbox->cinfo = NULL;
255 struct scmi_mailbox *smbox = cinfo->transport_info;
258 ret = mbox_send_message(smbox->chan, xfer);
270 struct scmi_mailbox *smbox = cinfo->transport_info;
278 mbox_client_txdone(smbox->chan, ret);
284 struct scmi_mailbox *smbox = cinfo->transport_info;
286 shmem_fetch_response(smbox->shmem, xfer);
292 struct scmi_mailbox *smbox = cinfo->transport_info;
294 shmem_fetch_notification(smbox->shmem, max_len, xfer);
299 struct scmi_mailbox *smbox = cinfo->transport_info;
301 shmem_clear_channel(smbox->shmem);
307 struct scmi_mailbox *smbox = cinfo->transport_info;
309 return shmem_poll_done(smbox->shmem, xfer);