Lines Matching refs:instance
82 unsigned int instance; member
90 unsigned int instance = chan_info->instance; in sti_mbox_channel_is_enabled() local
93 return mdev->enabled[instance] & BIT(channel); in sti_mbox_channel_is_enabled()
98 unsigned int instance, in sti_mbox_to_channel() argument
107 chan_info->instance == instance && in sti_mbox_to_channel()
114 instance, channel); in sti_mbox_to_channel()
123 unsigned int instance = chan_info->instance; in sti_mbox_enable_channel() local
126 void __iomem *base = MBOX_BASE(mdev, instance); in sti_mbox_enable_channel()
129 mdev->enabled[instance] |= BIT(channel); in sti_mbox_enable_channel()
138 unsigned int instance = chan_info->instance; in sti_mbox_disable_channel() local
141 void __iomem *base = MBOX_BASE(mdev, instance); in sti_mbox_disable_channel()
144 mdev->enabled[instance] &= ~BIT(channel); in sti_mbox_disable_channel()
153 unsigned int instance = chan_info->instance; in sti_mbox_clear_irq() local
155 void __iomem *base = MBOX_BASE(mdev, instance); in sti_mbox_clear_irq()
161 unsigned int instance) in sti_mbox_irq_to_channel() argument
167 void __iomem *base = MBOX_BASE(mdev, instance); in sti_mbox_irq_to_channel()
179 chan = sti_mbox_to_channel(mbox, instance, channel); in sti_mbox_irq_to_channel()
183 instance, channel); in sti_mbox_irq_to_channel()
196 unsigned int instance; in sti_mbox_thread_handler() local
198 for (instance = 0; instance < pdata->num_inst; instance++) { in sti_mbox_thread_handler()
200 chan = sti_mbox_irq_to_channel(mdev, instance); in sti_mbox_thread_handler()
219 unsigned int instance; in sti_mbox_irq_handler() local
222 for (instance = 0; instance < pdata->num_inst; instance++) { in sti_mbox_irq_handler()
223 chan = sti_mbox_irq_to_channel(mdev, instance); in sti_mbox_irq_handler()
232 mdev->name, chan_info->instance, in sti_mbox_irq_handler()
233 chan_info->channel, mdev->enabled[instance]); in sti_mbox_irq_handler()
255 unsigned int instance = chan_info->instance; in sti_mbox_tx_is_ready() local
257 void __iomem *base = MBOX_BASE(mdev, instance); in sti_mbox_tx_is_ready()
261 mdev->name, instance, channel); in sti_mbox_tx_is_ready()
267 mdev->name, instance, channel); in sti_mbox_tx_is_ready()
278 unsigned int instance = chan_info->instance; in sti_mbox_send_data() local
280 void __iomem *base = MBOX_BASE(mdev, instance); in sti_mbox_send_data()
287 mdev->name, instance, channel); in sti_mbox_send_data()
328 unsigned int instance = spec->args[0]; in sti_mbox_xlate() local
333 if (instance >= pdata->num_inst || channel >= pdata->num_chan) { in sti_mbox_xlate()
336 instance, channel); in sti_mbox_xlate()
346 instance == chan_info->instance && in sti_mbox_xlate()
371 chan_info->instance = instance; in sti_mbox_xlate()
378 mdev->name, instance, channel); in sti_mbox_xlate()