Lines Matching refs:tchan_cnt
191 int tchan_cnt; member
1494 end = min(ud->tchan_cnt, ud->rchan_cnt); in udma_get_chan_pair()
1777 fd_ring_id = ud->bchan_cnt + ud->tchan_cnt + ud->echan_cnt + in udma_alloc_rx_resources()
4414 ud->tchan_cnt = UDMA_CAP2_TCHAN_CNT(cap2); in udma_get_mmrs()
4420 ud->tchan_cnt = BCDMA_CAP2_TCHAN_CNT(cap2); in udma_get_mmrs()
4426 ud->tchan_cnt = UDMA_CAP2_TCHAN_CNT(cap2); in udma_get_mmrs()
4438 if (i == MMR_TCHANRT && ud->tchan_cnt == 0) in udma_get_mmrs()
4503 ud->tchan_map = devm_kmalloc_array(dev, BITS_TO_LONGS(ud->tchan_cnt), in udma_setup_resources()
4505 ud->tchans = devm_kcalloc(dev, ud->tchan_cnt, sizeof(*ud->tchans), in udma_setup_resources()
4553 bitmap_zero(ud->tchan_map, ud->tchan_cnt); in udma_setup_resources()
4556 bitmap_fill(ud->tchan_map, ud->tchan_cnt); in udma_setup_resources()
4582 irq_res.desc[0].num = ud->tchan_cnt; in udma_setup_resources()
4681 ud->tchan_map = devm_kmalloc_array(dev, BITS_TO_LONGS(ud->tchan_cnt), in bcdma_setup_resources()
4683 ud->tchans = devm_kcalloc(dev, ud->tchan_cnt, sizeof(*ud->tchans), in bcdma_setup_resources()
4707 if (i == RM_RANGE_TCHAN && ud->tchan_cnt == 0) in bcdma_setup_resources()
4737 if (ud->tchan_cnt) { in bcdma_setup_resources()
4740 bitmap_zero(ud->tchan_map, ud->tchan_cnt); in bcdma_setup_resources()
4743 bitmap_fill(ud->tchan_map, ud->tchan_cnt); in bcdma_setup_resources()
4785 if (ud->tchan_cnt) { in bcdma_setup_resources()
4789 irq_res.desc[i].num = ud->tchan_cnt; in bcdma_setup_resources()
4791 irq_res.desc[i + 1].num = ud->tchan_cnt; in bcdma_setup_resources()
4862 ud->tchan_map = devm_kmalloc_array(dev, BITS_TO_LONGS(ud->tchan_cnt), in pktdma_setup_resources()
4864 ud->tchans = devm_kcalloc(dev, ud->tchan_cnt, sizeof(*ud->tchans), in pktdma_setup_resources()
4896 bitmap_zero(ud->tchan_map, ud->tchan_cnt); in pktdma_setup_resources()
4898 bitmap_fill(ud->tchan_map, ud->tchan_cnt); in pktdma_setup_resources()
5001 ch_count = ud->bchan_cnt + ud->tchan_cnt + ud->rchan_cnt; in setup_resources()
5004 ch_count -= bitmap_weight(ud->tchan_map, ud->tchan_cnt); in setup_resources()
5019 ud->tchan_cnt - bitmap_weight(ud->tchan_map, in setup_resources()
5020 ud->tchan_cnt), in setup_resources()
5032 ud->tchan_cnt - bitmap_weight(ud->tchan_map, in setup_resources()
5033 ud->tchan_cnt), in setup_resources()
5041 ud->tchan_cnt - bitmap_weight(ud->tchan_map, in setup_resources()
5042 ud->tchan_cnt), in setup_resources()
5232 else if (ud->tchan_cnt) in udma_get_copy_align()
5343 ud->tchan_cnt + in udma_probe()
5443 for (i = 0; i < ud->tchan_cnt; i++) { in udma_probe()