Lines Matching refs:cl
77 if (chan->cl->tx_prepare) in msg_submit()
78 chan->cl->tx_prepare(chan->cl, data); in msg_submit()
108 if (mssg && chan->cl->tx_done) in tx_tick()
109 chan->cl->tx_done(chan->cl, mssg, r); in tx_tick()
111 if (chan->cl->tx_block) in tx_tick()
125 if (chan->active_req && chan->cl) { in txdone_hrtimer()
154 if (chan->cl->rx_callback) in mbox_chan_received_data()
155 chan->cl->rx_callback(chan->cl, mssg); in mbox_chan_received_data()
253 if (!chan || !chan->cl) in mbox_send_message()
264 if (chan->cl->tx_block && chan->active_req) { in mbox_send_message()
268 if (!chan->cl->tx_tout) /* wait forever */ in mbox_send_message()
271 wait = msecs_to_jiffies(chan->cl->tx_tout); in mbox_send_message()
301 struct mbox_chan *mbox_request_channel(struct mbox_client *cl, int index) in mbox_request_channel() argument
303 struct device *dev = cl->dev; in mbox_request_channel()
338 if (chan->cl || !try_module_get(mbox->dev->driver->owner)) { in mbox_request_channel()
348 chan->cl = cl; in mbox_request_channel()
351 if (chan->txdone_method == TXDONE_BY_POLL && cl->knows_txdone) in mbox_request_channel()
368 struct mbox_chan *mbox_request_channel_byname(struct mbox_client *cl, in mbox_request_channel_byname() argument
371 struct device_node *np = cl->dev->of_node; in mbox_request_channel_byname()
377 dev_err(cl->dev, "%s() currently only supports DT\n", __func__); in mbox_request_channel_byname()
382 dev_err(cl->dev, in mbox_request_channel_byname()
393 return mbox_request_channel(cl, index); in mbox_request_channel_byname()
406 if (!chan || !chan->cl) in mbox_free_channel()
413 chan->cl = NULL; in mbox_free_channel()
465 chan->cl = NULL; in mbox_controller_register()