Lines Matching defs:smbox
37 struct scmi_mailbox *smbox = client_to_scmi_mailbox(cl);
39 shmem_tx_prepare(smbox->shmem, m);
44 struct scmi_mailbox *smbox = client_to_scmi_mailbox(cl);
46 scmi_rx_callback(smbox->cinfo, shmem_read_header(smbox->shmem));
93 struct scmi_mailbox *smbox;
104 smbox = devm_kzalloc(dev, sizeof(*smbox), GFP_KERNEL);
105 if (!smbox)
117 smbox->shmem = devm_ioremap(dev, res.start, size);
118 if (!smbox->shmem) {
123 cl = &smbox->cl;
130 smbox->chan = mbox_request_channel(cl, tx ? 0 : 1);
131 if (IS_ERR(smbox->chan)) {
132 ret = PTR_ERR(smbox->chan);
139 cinfo->transport_info = smbox;
140 smbox->cinfo = cinfo;
148 struct scmi_mailbox *smbox = cinfo->transport_info;
150 if (smbox && !IS_ERR(smbox->chan)) {
151 mbox_free_channel(smbox->chan);
153 smbox->chan = NULL;
154 smbox->cinfo = NULL;
165 struct scmi_mailbox *smbox = cinfo->transport_info;
168 ret = mbox_send_message(smbox->chan, xfer);
179 struct scmi_mailbox *smbox = cinfo->transport_info;
187 mbox_client_txdone(smbox->chan, ret);
193 struct scmi_mailbox *smbox = cinfo->transport_info;
195 shmem_fetch_response(smbox->shmem, xfer);
201 struct scmi_mailbox *smbox = cinfo->transport_info;
203 shmem_fetch_notification(smbox->shmem, max_len, xfer);
208 struct scmi_mailbox *smbox = cinfo->transport_info;
210 shmem_clear_channel(smbox->shmem);
216 struct scmi_mailbox *smbox = cinfo->transport_info;
218 return shmem_poll_done(smbox->shmem, xfer);