Lines Matching refs:tchan_cnt

191 	int tchan_cnt;  member
1478 end = min(ud->tchan_cnt, ud->rchan_cnt); in udma_get_chan_pair()
1761 fd_ring_id = ud->bchan_cnt + ud->tchan_cnt + ud->echan_cnt + in udma_alloc_rx_resources()
4397 ud->tchan_cnt = UDMA_CAP2_TCHAN_CNT(cap2); in udma_get_mmrs()
4403 ud->tchan_cnt = BCDMA_CAP2_TCHAN_CNT(cap2); in udma_get_mmrs()
4409 ud->tchan_cnt = UDMA_CAP2_TCHAN_CNT(cap2); in udma_get_mmrs()
4421 if (i == MMR_TCHANRT && ud->tchan_cnt == 0) in udma_get_mmrs()
4486 ud->tchan_map = devm_kmalloc_array(dev, BITS_TO_LONGS(ud->tchan_cnt), in udma_setup_resources()
4488 ud->tchans = devm_kcalloc(dev, ud->tchan_cnt, sizeof(*ud->tchans), in udma_setup_resources()
4536 bitmap_zero(ud->tchan_map, ud->tchan_cnt); in udma_setup_resources()
4539 bitmap_fill(ud->tchan_map, ud->tchan_cnt); in udma_setup_resources()
4565 irq_res.desc[0].num = ud->tchan_cnt; in udma_setup_resources()
4664 ud->tchan_map = devm_kmalloc_array(dev, BITS_TO_LONGS(ud->tchan_cnt), in bcdma_setup_resources()
4666 ud->tchans = devm_kcalloc(dev, ud->tchan_cnt, sizeof(*ud->tchans), in bcdma_setup_resources()
4690 if (i == RM_RANGE_TCHAN && ud->tchan_cnt == 0) in bcdma_setup_resources()
4720 if (ud->tchan_cnt) { in bcdma_setup_resources()
4723 bitmap_zero(ud->tchan_map, ud->tchan_cnt); in bcdma_setup_resources()
4726 bitmap_fill(ud->tchan_map, ud->tchan_cnt); in bcdma_setup_resources()
4768 if (ud->tchan_cnt) { in bcdma_setup_resources()
4772 irq_res.desc[i].num = ud->tchan_cnt; in bcdma_setup_resources()
4774 irq_res.desc[i + 1].num = ud->tchan_cnt; in bcdma_setup_resources()
4845 ud->tchan_map = devm_kmalloc_array(dev, BITS_TO_LONGS(ud->tchan_cnt), in pktdma_setup_resources()
4847 ud->tchans = devm_kcalloc(dev, ud->tchan_cnt, sizeof(*ud->tchans), in pktdma_setup_resources()
4879 bitmap_zero(ud->tchan_map, ud->tchan_cnt); in pktdma_setup_resources()
4881 bitmap_fill(ud->tchan_map, ud->tchan_cnt); in pktdma_setup_resources()
4984 ch_count = ud->bchan_cnt + ud->tchan_cnt + ud->rchan_cnt; in setup_resources()
4987 ch_count -= bitmap_weight(ud->tchan_map, ud->tchan_cnt); in setup_resources()
5002 ud->tchan_cnt - bitmap_weight(ud->tchan_map, in setup_resources()
5003 ud->tchan_cnt), in setup_resources()
5015 ud->tchan_cnt - bitmap_weight(ud->tchan_map, in setup_resources()
5016 ud->tchan_cnt), in setup_resources()
5024 ud->tchan_cnt - bitmap_weight(ud->tchan_map, in setup_resources()
5025 ud->tchan_cnt), in setup_resources()
5215 else if (ud->tchan_cnt) in udma_get_copy_align()
5326 ud->tchan_cnt + in udma_probe()
5426 for (i = 0; i < ud->tchan_cnt; i++) { in udma_probe()