Lines Matching defs:cl
21 * @cl: Mailbox Client
28 struct mbox_client cl;
35 #define client_to_scmi_mailbox(c) container_of(c, struct scmi_mailbox, cl)
37 static void tx_prepare(struct mbox_client *cl, void *m)
39 struct scmi_mailbox *smbox = client_to_scmi_mailbox(cl);
44 static void rx_callback(struct mbox_client *cl, void *m)
46 struct scmi_mailbox *smbox = client_to_scmi_mailbox(cl);
57 if (cl->knows_txdone && !shmem_channel_free(smbox->shmem)) {
170 struct mbox_client *cl;
205 cl = &smbox->cl;
206 cl->dev = cdev;
207 cl->tx_prepare = tx ? tx_prepare : NULL;
208 cl->rx_callback = rx_callback;
209 cl->tx_block = false;
210 cl->knows_txdone = tx;
212 smbox->chan = mbox_request_channel(cl, tx ? 0 : p2a_chan);
223 smbox->chan_receiver = mbox_request_channel(cl, a2p_rx_chan);