Lines Matching refs:chan_info
88 struct sti_channel *chan_info = chan->con_priv; in sti_mbox_channel_is_enabled() local
89 struct sti_mbox_device *mdev = chan_info->mdev; in sti_mbox_channel_is_enabled()
90 unsigned int instance = chan_info->instance; in sti_mbox_channel_is_enabled()
91 unsigned int channel = chan_info->channel; in sti_mbox_channel_is_enabled()
101 struct sti_channel *chan_info; in sti_mbox_to_channel() local
105 chan_info = mbox->chans[i].con_priv; in sti_mbox_to_channel()
106 if (chan_info && in sti_mbox_to_channel()
107 chan_info->instance == instance && in sti_mbox_to_channel()
108 chan_info->channel == channel) in sti_mbox_to_channel()
121 struct sti_channel *chan_info = chan->con_priv; in sti_mbox_enable_channel() local
122 struct sti_mbox_device *mdev = chan_info->mdev; in sti_mbox_enable_channel()
123 unsigned int instance = chan_info->instance; in sti_mbox_enable_channel()
124 unsigned int channel = chan_info->channel; in sti_mbox_enable_channel()
136 struct sti_channel *chan_info = chan->con_priv; in sti_mbox_disable_channel() local
137 struct sti_mbox_device *mdev = chan_info->mdev; in sti_mbox_disable_channel()
138 unsigned int instance = chan_info->instance; in sti_mbox_disable_channel()
139 unsigned int channel = chan_info->channel; in sti_mbox_disable_channel()
151 struct sti_channel *chan_info = chan->con_priv; in sti_mbox_clear_irq() local
152 struct sti_mbox_device *mdev = chan_info->mdev; in sti_mbox_clear_irq()
153 unsigned int instance = chan_info->instance; in sti_mbox_clear_irq()
154 unsigned int channel = chan_info->channel; in sti_mbox_clear_irq()
217 struct sti_channel *chan_info; in sti_mbox_irq_handler() local
226 chan_info = chan->con_priv; 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()
253 struct sti_channel *chan_info = chan->con_priv; in sti_mbox_tx_is_ready() local
254 struct sti_mbox_device *mdev = chan_info->mdev; in sti_mbox_tx_is_ready()
255 unsigned int instance = chan_info->instance; in sti_mbox_tx_is_ready()
256 unsigned int channel = chan_info->channel; in sti_mbox_tx_is_ready()
276 struct sti_channel *chan_info = chan->con_priv; in sti_mbox_send_data() local
277 struct sti_mbox_device *mdev = chan_info->mdev; in sti_mbox_send_data()
278 unsigned int instance = chan_info->instance; in sti_mbox_send_data()
279 unsigned int channel = chan_info->channel; in sti_mbox_send_data()
302 struct sti_channel *chan_info = chan->con_priv; in sti_mbox_shutdown_chan() local
303 struct mbox_controller *mbox = chan_info->mdev->mbox; in sti_mbox_shutdown_chan()
326 struct sti_channel *chan_info; in sti_mbox_xlate() local
341 chan_info = mbox->chans[i].con_priv; in sti_mbox_xlate()
344 if (chan_info && in sti_mbox_xlate()
345 mbox->dev == chan_info->mdev->dev && in sti_mbox_xlate()
346 instance == chan_info->instance && in sti_mbox_xlate()
347 channel == chan_info->channel) { in sti_mbox_xlate()
357 if (!chan && !chan_info) in sti_mbox_xlate()
366 chan_info = devm_kzalloc(mbox->dev, sizeof(*chan_info), GFP_KERNEL); in sti_mbox_xlate()
367 if (!chan_info) in sti_mbox_xlate()
370 chan_info->mdev = mdev; in sti_mbox_xlate()
371 chan_info->instance = instance; in sti_mbox_xlate()
372 chan_info->channel = channel; in sti_mbox_xlate()
374 chan->con_priv = chan_info; in sti_mbox_xlate()