Lines Matching refs:bd_num
63 static int tsi721_bdma_ch_init(struct tsi721_bdma_chan *bdma_chan, int bd_num)
82 (bd_num + 1) * sizeof(struct tsi721_dma_desc),
87 bdma_chan->bd_num = bd_num;
96 sts_size = ((bd_num + 1) >= TSI721_DMA_MINSTSSZ) ?
97 (bd_num + 1) : TSI721_DMA_MINSTSSZ;
105 (bd_num + 1) * sizeof(struct tsi721_dma_desc),
120 bd_ptr[bd_num].type_id = cpu_to_le32(DTYPE3 << 29);
121 bd_ptr[bd_num].next_lo = cpu_to_le32((u64)bd_phys &
123 bd_ptr[bd_num].next_hi = cpu_to_le32((u64)bd_phys >> 32);
181 (bd_num + 1) * sizeof(struct tsi721_dma_desc),
235 (bdma_chan->bd_num + 1) * sizeof(struct tsi721_dma_desc),
443 rd_idx %= (bdma_chan->bd_num + 1);
445 idx = bdma_chan->wr_count_next % (bdma_chan->bd_num + 1);
446 if (idx == bdma_chan->bd_num) {
509 if (++idx == bdma_chan->bd_num) {