Lines Matching refs:smbox

37 	struct scmi_mailbox *smbox = client_to_scmi_mailbox(cl);  in tx_prepare()  local
39 shmem_tx_prepare(smbox->shmem, m); in tx_prepare()
44 struct scmi_mailbox *smbox = client_to_scmi_mailbox(cl); in rx_callback() local
46 scmi_rx_callback(smbox->cinfo, shmem_read_header(smbox->shmem)); in rx_callback()
60 struct scmi_mailbox *smbox; in mailbox_chan_setup() local
67 smbox = devm_kzalloc(dev, sizeof(*smbox), GFP_KERNEL); in mailbox_chan_setup()
68 if (!smbox) in mailbox_chan_setup()
80 smbox->shmem = devm_ioremap(dev, res.start, size); in mailbox_chan_setup()
81 if (!smbox->shmem) { in mailbox_chan_setup()
86 cl = &smbox->cl; in mailbox_chan_setup()
93 smbox->chan = mbox_request_channel(cl, tx ? 0 : 1); in mailbox_chan_setup()
94 if (IS_ERR(smbox->chan)) { in mailbox_chan_setup()
95 ret = PTR_ERR(smbox->chan); in mailbox_chan_setup()
102 cinfo->transport_info = smbox; in mailbox_chan_setup()
103 smbox->cinfo = cinfo; in mailbox_chan_setup()
111 struct scmi_mailbox *smbox = cinfo->transport_info; in mailbox_chan_free() local
113 if (smbox && !IS_ERR(smbox->chan)) { in mailbox_chan_free()
114 mbox_free_channel(smbox->chan); in mailbox_chan_free()
116 smbox->chan = NULL; in mailbox_chan_free()
117 smbox->cinfo = NULL; in mailbox_chan_free()
128 struct scmi_mailbox *smbox = cinfo->transport_info; in mailbox_send_message() local
131 ret = mbox_send_message(smbox->chan, xfer); in mailbox_send_message()
142 struct scmi_mailbox *smbox = cinfo->transport_info; in mailbox_mark_txdone() local
150 mbox_client_txdone(smbox->chan, ret); in mailbox_mark_txdone()
156 struct scmi_mailbox *smbox = cinfo->transport_info; in mailbox_fetch_response() local
158 shmem_fetch_response(smbox->shmem, xfer); in mailbox_fetch_response()
164 struct scmi_mailbox *smbox = cinfo->transport_info; in mailbox_fetch_notification() local
166 shmem_fetch_notification(smbox->shmem, max_len, xfer); in mailbox_fetch_notification()
171 struct scmi_mailbox *smbox = cinfo->transport_info; in mailbox_clear_channel() local
173 shmem_clear_channel(smbox->shmem); in mailbox_clear_channel()
179 struct scmi_mailbox *smbox = cinfo->transport_info; in mailbox_poll_done() local
181 return shmem_poll_done(smbox->shmem, xfer); in mailbox_poll_done()