Lines Matching refs:cl
73 #define to_xgene_hwmon_dev(cl) \
74 container_of(cl, struct xgene_hwmon_dev, mbox_client)
473 static void xgene_hwmon_rx_cb(struct mbox_client *cl, void *msg)
475 struct xgene_hwmon_dev *ctx = to_xgene_hwmon_dev(cl);
523 static void xgene_hwmon_pcc_rx_cb(struct mbox_client *cl, void *msg)
525 struct xgene_hwmon_dev *ctx = to_xgene_hwmon_dev(cl);
589 static void xgene_hwmon_tx_done(struct mbox_client *cl, void *msg, int ret)
592 dev_dbg(cl->dev, "TX did not complete: CMD sent:%x, ret:%d\n",
595 dev_dbg(cl->dev, "TX completed. CMD sent:%x, ret:%d\n",
612 struct mbox_client *cl;
621 cl = &ctx->mbox_client;
635 cl->dev = &pdev->dev;
636 cl->tx_done = xgene_hwmon_tx_done;
637 cl->tx_block = false;
638 cl->tx_tout = MBOX_OP_TIMEOUTMS;
639 cl->knows_txdone = false;
641 cl->rx_callback = xgene_hwmon_rx_cb;
642 ctx->mbox_chan = mbox_request_channel(cl, 0);
670 cl->rx_callback = xgene_hwmon_pcc_rx_cb;
671 pcc_chan = pcc_mbox_request_channel(cl, ctx->mbox_idx);