Lines Matching refs:chans
57 struct rockchip_mbox_chan *chans; member
64 struct rockchip_mbox_chan *chans = mb->chans; in rockchip_mbox_send_data() local
76 chans->idx, msg->cmd); in rockchip_mbox_send_data()
78 mb->chans[chans->idx].msg = msg; in rockchip_mbox_send_data()
80 writel_relaxed(msg->cmd, mb->mbox_base + MAILBOX_A2B_CMD(chans->idx)); in rockchip_mbox_send_data()
82 MAILBOX_A2B_DAT(chans->idx)); in rockchip_mbox_send_data()
101 struct rockchip_mbox_chan *chans = mb->chans; in rockchip_mbox_shutdown() local
106 mb->chans[chans->idx].msg = NULL; in rockchip_mbox_shutdown()
122 if ((status & (1 << idx)) && (irq == mb->chans[idx].irq)) { in rockchip_mbox_irq()
140 if (irq != mb->chans[idx].irq) in rockchip_mbox_isr()
143 msg = mb->chans[idx].msg; in rockchip_mbox_isr()
150 mbox_chan_received_data(&mb->mbox.chans[idx], msg); in rockchip_mbox_isr()
151 mb->chans[idx].msg = NULL; in rockchip_mbox_isr()
190 mb->chans = devm_kcalloc(&pdev->dev, drv_data->num_chans, in rockchip_mbox_probe()
191 sizeof(*mb->chans), GFP_KERNEL); in rockchip_mbox_probe()
192 if (!mb->chans) in rockchip_mbox_probe()
195 mb->mbox.chans = devm_kcalloc(&pdev->dev, drv_data->num_chans, in rockchip_mbox_probe()
196 sizeof(*mb->mbox.chans), GFP_KERNEL); in rockchip_mbox_probe()
197 if (!mb->mbox.chans) in rockchip_mbox_probe()
244 mb->chans[i].idx = i; in rockchip_mbox_probe()
245 mb->chans[i].irq = irq; in rockchip_mbox_probe()
246 mb->chans[i].mb = mb; in rockchip_mbox_probe()
247 mb->chans[i].msg = NULL; in rockchip_mbox_probe()