Lines Matching refs:chans
49 struct rockchip_mbox_chan *chans; member
56 struct rockchip_mbox_chan *chans = mb->chans; in rockchip_mbox_send_data() local
68 chans->idx, msg->cmd); in rockchip_mbox_send_data()
70 mb->chans[chans->idx].msg = msg; in rockchip_mbox_send_data()
72 writel_relaxed(msg->cmd, mb->mbox_base + MAILBOX_A2B_CMD(chans->idx)); in rockchip_mbox_send_data()
74 MAILBOX_A2B_DAT(chans->idx)); in rockchip_mbox_send_data()
93 struct rockchip_mbox_chan *chans = mb->chans; in rockchip_mbox_shutdown() local
98 mb->chans[chans->idx].msg = NULL; in rockchip_mbox_shutdown()
114 if ((status & (1 << idx)) && (irq == mb->chans[idx].irq)) { in rockchip_mbox_irq()
132 if (irq != mb->chans[idx].irq) in rockchip_mbox_isr()
135 msg = mb->chans[idx].msg; in rockchip_mbox_isr()
142 mbox_chan_received_data(&mb->mbox.chans[idx], msg); in rockchip_mbox_isr()
143 mb->chans[idx].msg = NULL; in rockchip_mbox_isr()
180 mb->chans = devm_kcalloc(&pdev->dev, drv_data->num_chans, in rockchip_mbox_probe()
181 sizeof(*mb->chans), GFP_KERNEL); in rockchip_mbox_probe()
182 if (!mb->chans) in rockchip_mbox_probe()
185 mb->mbox.chans = devm_kcalloc(&pdev->dev, drv_data->num_chans, in rockchip_mbox_probe()
186 sizeof(*mb->mbox.chans), GFP_KERNEL); in rockchip_mbox_probe()
187 if (!mb->mbox.chans) in rockchip_mbox_probe()
230 mb->chans[i].idx = i; in rockchip_mbox_probe()
231 mb->chans[i].irq = irq; in rockchip_mbox_probe()
232 mb->chans[i].mb = mb; in rockchip_mbox_probe()
233 mb->chans[i].msg = NULL; in rockchip_mbox_probe()