Lines Matching refs:ch_idx
258 * @ch_idx: channel index
262 static void service_done_flag(struct dim2_hdm *dev, int ch_idx)
264 struct hdm_channel *hdm_ch = dev->hch + ch_idx;
337 int ch_idx;
339 for (ch_idx = 0; ch_idx < DMA_CHANNELS; ch_idx++) {
340 if (dev->hch[ch_idx].is_initialized)
341 buffer[idx++] = &dev->hch[ch_idx].ch;
368 int ch_idx;
370 for (ch_idx = 0; ch_idx < DMA_CHANNELS; ch_idx++) {
371 if (!dev->hch[ch_idx].is_initialized)
375 dim_service_channel(&dev->hch[ch_idx].ch);
378 service_done_flag(dev, ch_idx);
379 while (!try_start_dim_transfer(dev->hch + ch_idx))
439 * @ch_idx: channel index to be configured
445 static int configure_channel(struct most_interface *most_iface, int ch_idx,
455 int const ch_addr = ch_idx * 2 + 2;
456 struct hdm_channel *const hdm_ch = dev->hch + ch_idx;
458 BUG_ON(ch_idx < 0 || ch_idx >= DMA_CHANNELS);
546 dev->atx_idx = ch_idx;
557 * @ch_idx: ID of the channel the buffer is intended for
563 static int enqueue(struct most_interface *most_iface, int ch_idx,
567 struct hdm_channel *hdm_ch = dev->hch + ch_idx;
570 BUG_ON(ch_idx < 0 || ch_idx >= DMA_CHANNELS);
590 * @ch_idx: corresponding channel ID
596 static void request_netinfo(struct most_interface *most_iface, int ch_idx,
633 * @ch_idx: corresponding channel ID
638 static int poison_channel(struct most_interface *most_iface, int ch_idx)
641 struct hdm_channel *hdm_ch = dev->hch + ch_idx;
646 BUG_ON(ch_idx < 0 || ch_idx >= DMA_CHANNELS);
654 if (ch_idx == dev->atx_idx)