Lines Matching refs:mchan
76 struct hi3660_chan_info mchan[MBOX_CHAN_MAX]; member
89 struct hi3660_chan_info *mchan = &mbox->mchan[ch]; in hi3660_mbox_check_state() local
107 writel(BIT(mchan->ack_irq), base + MBOX_ICLR_REG); in hi3660_mbox_check_state()
137 struct hi3660_chan_info *mchan = &mbox->mchan[ch]; in hi3660_mbox_acquire_channel() local
144 writel(BIT(mchan->ack_irq), base + MBOX_SRC_REG); in hi3660_mbox_acquire_channel()
148 if (val & BIT(mchan->ack_irq)) in hi3660_mbox_acquire_channel()
178 struct hi3660_chan_info *mchan = &mbox->mchan[ch]; in hi3660_mbox_send_data() local
189 writel_relaxed(~BIT(mchan->dst_irq), base + MBOX_IMASK_REG); in hi3660_mbox_send_data()
192 writel_relaxed(BIT(mchan->dst_irq), base + MBOX_DST_REG); in hi3660_mbox_send_data()
202 writel(BIT(mchan->ack_irq), base + MBOX_SEND_REG); in hi3660_mbox_send_data()
215 struct hi3660_chan_info *mchan; in hi3660_mbox_xlate() local
223 mchan = &mbox->mchan[ch]; in hi3660_mbox_xlate()
224 mchan->dst_irq = spec->args[1]; in hi3660_mbox_xlate()
225 mchan->ack_irq = spec->args[2]; in hi3660_mbox_xlate()