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