Lines Matching refs:mchan
77 struct hi3660_chan_info mchan[MBOX_CHAN_MAX]; member
90 struct hi3660_chan_info *mchan = &mbox->mchan[ch]; in hi3660_mbox_check_state() local
108 writel(BIT(mchan->ack_irq), base + MBOX_ICLR_REG); in hi3660_mbox_check_state()
138 struct hi3660_chan_info *mchan = &mbox->mchan[ch]; in hi3660_mbox_acquire_channel() local
145 writel(BIT(mchan->ack_irq), base + MBOX_SRC_REG); in hi3660_mbox_acquire_channel()
149 if (val & BIT(mchan->ack_irq)) in hi3660_mbox_acquire_channel()
179 struct hi3660_chan_info *mchan = &mbox->mchan[ch]; in hi3660_mbox_send_data() local
190 writel_relaxed(~BIT(mchan->dst_irq), base + MBOX_IMASK_REG); in hi3660_mbox_send_data()
193 writel_relaxed(BIT(mchan->dst_irq), base + MBOX_DST_REG); in hi3660_mbox_send_data()
203 writel(BIT(mchan->ack_irq), base + MBOX_SEND_REG); in hi3660_mbox_send_data()
216 struct hi3660_chan_info *mchan; in hi3660_mbox_xlate() local
224 mchan = &mbox->mchan[ch]; in hi3660_mbox_xlate()
225 mchan->dst_irq = spec->args[1]; in hi3660_mbox_xlate()
226 mchan->ack_irq = spec->args[2]; in hi3660_mbox_xlate()