Lines Matching refs:tchan_cnt

192 	int tchan_cnt;  member
1498 end = min(ud->tchan_cnt, ud->rchan_cnt); in udma_get_chan_pair()
1781 fd_ring_id = ud->bchan_cnt + ud->tchan_cnt + ud->echan_cnt + in udma_alloc_rx_resources()
4468 ud->tchan_cnt = UDMA_CAP2_TCHAN_CNT(cap2); in udma_get_mmrs()
4474 ud->tchan_cnt = BCDMA_CAP2_TCHAN_CNT(cap2); in udma_get_mmrs()
4480 ud->tchan_cnt = UDMA_CAP2_TCHAN_CNT(cap2); in udma_get_mmrs()
4492 if (i == MMR_TCHANRT && ud->tchan_cnt == 0) in udma_get_mmrs()
4557 ud->tchan_map = devm_kmalloc_array(dev, BITS_TO_LONGS(ud->tchan_cnt), in udma_setup_resources()
4559 ud->tchans = devm_kcalloc(dev, ud->tchan_cnt, sizeof(*ud->tchans), in udma_setup_resources()
4607 bitmap_zero(ud->tchan_map, ud->tchan_cnt); in udma_setup_resources()
4610 bitmap_fill(ud->tchan_map, ud->tchan_cnt); in udma_setup_resources()
4636 irq_res.desc[0].num = ud->tchan_cnt; in udma_setup_resources()
4735 ud->tchan_map = devm_kmalloc_array(dev, BITS_TO_LONGS(ud->tchan_cnt), in bcdma_setup_resources()
4737 ud->tchans = devm_kcalloc(dev, ud->tchan_cnt, sizeof(*ud->tchans), in bcdma_setup_resources()
4761 if (i == RM_RANGE_TCHAN && ud->tchan_cnt == 0) in bcdma_setup_resources()
4791 if (ud->tchan_cnt) { in bcdma_setup_resources()
4794 bitmap_zero(ud->tchan_map, ud->tchan_cnt); in bcdma_setup_resources()
4797 bitmap_fill(ud->tchan_map, ud->tchan_cnt); in bcdma_setup_resources()
4842 if (ud->tchan_cnt) { in bcdma_setup_resources()
4846 irq_res.desc[i].num = ud->tchan_cnt; in bcdma_setup_resources()
4848 irq_res.desc[i + 1].num = ud->tchan_cnt; in bcdma_setup_resources()
4919 ud->tchan_map = devm_kmalloc_array(dev, BITS_TO_LONGS(ud->tchan_cnt), in pktdma_setup_resources()
4921 ud->tchans = devm_kcalloc(dev, ud->tchan_cnt, sizeof(*ud->tchans), in pktdma_setup_resources()
4953 bitmap_zero(ud->tchan_map, ud->tchan_cnt); in pktdma_setup_resources()
4955 bitmap_fill(ud->tchan_map, ud->tchan_cnt); in pktdma_setup_resources()
5058 ch_count = ud->bchan_cnt + ud->tchan_cnt + ud->rchan_cnt; in setup_resources()
5061 ch_count -= bitmap_weight(ud->tchan_map, ud->tchan_cnt); in setup_resources()
5076 ud->tchan_cnt - bitmap_weight(ud->tchan_map, in setup_resources()
5077 ud->tchan_cnt), in setup_resources()
5089 ud->tchan_cnt - bitmap_weight(ud->tchan_map, in setup_resources()
5090 ud->tchan_cnt), in setup_resources()
5098 ud->tchan_cnt - bitmap_weight(ud->tchan_map, in setup_resources()
5099 ud->tchan_cnt), in setup_resources()
5289 else if (ud->tchan_cnt) in udma_get_copy_align()
5398 ud->tchan_cnt + in udma_probe()
5497 for (i = 0; i < ud->tchan_cnt; i++) { in udma_probe()