Lines Matching refs:rchan_cnt
193 int rchan_cnt; member
1241 tmp_from = ud->rchan_cnt; in __udma_alloc_gp_rflow_range()
1243 if (tmp_from < ud->rchan_cnt) in __udma_alloc_gp_rflow_range()
1267 if (from < ud->rchan_cnt) in __udma_free_gp_rflow_range()
1478 end = min(ud->tchan_cnt, ud->rchan_cnt); in udma_get_chan_pair()
4399 ud->rchan_cnt = UDMA_CAP2_RCHAN_CNT(cap2); in udma_get_mmrs()
4404 ud->rchan_cnt = BCDMA_CAP2_RCHAN_CNT(cap2); in udma_get_mmrs()
4405 ud->rflow_cnt = ud->rchan_cnt; in udma_get_mmrs()
4410 ud->rchan_cnt = UDMA_CAP2_RCHAN_CNT(cap2); in udma_get_mmrs()
4423 if (i == MMR_RCHANRT && ud->rchan_cnt == 0) in udma_get_mmrs()
4490 ud->rchan_map = devm_kmalloc_array(dev, BITS_TO_LONGS(ud->rchan_cnt), in udma_setup_resources()
4492 ud->rchans = devm_kcalloc(dev, ud->rchan_cnt, sizeof(*ud->rchans), in udma_setup_resources()
4517 bitmap_set(ud->rflow_gp_map_allocated, 0, ud->rchan_cnt); in udma_setup_resources()
4549 bitmap_zero(ud->rchan_map, ud->rchan_cnt); in udma_setup_resources()
4552 bitmap_fill(ud->rchan_map, ud->rchan_cnt); in udma_setup_resources()
4578 irq_res.desc[i].num = ud->rchan_cnt; in udma_setup_resources()
4604 bitmap_clear(ud->rflow_gp_map, ud->rchan_cnt, in udma_setup_resources()
4605 ud->rflow_cnt - ud->rchan_cnt); in udma_setup_resources()
4668 ud->rchan_map = devm_kmalloc_array(dev, BITS_TO_LONGS(ud->rchan_cnt), in bcdma_setup_resources()
4670 ud->rchans = devm_kcalloc(dev, ud->rchan_cnt, sizeof(*ud->rchans), in bcdma_setup_resources()
4673 ud->rflow_in_use = devm_kcalloc(dev, BITS_TO_LONGS(ud->rchan_cnt), in bcdma_setup_resources()
4676 ud->rflows = devm_kcalloc(dev, ud->rchan_cnt, sizeof(*ud->rflows), in bcdma_setup_resources()
4692 if (i == RM_RANGE_RCHAN && ud->rchan_cnt == 0) in bcdma_setup_resources()
4736 if (ud->rchan_cnt) { in bcdma_setup_resources()
4739 bitmap_zero(ud->rchan_map, ud->rchan_cnt); in bcdma_setup_resources()
4742 bitmap_fill(ud->rchan_map, ud->rchan_cnt); in bcdma_setup_resources()
4788 if (ud->rchan_cnt) { in bcdma_setup_resources()
4792 irq_res.desc[i].num = ud->rchan_cnt; in bcdma_setup_resources()
4794 irq_res.desc[i + 1].num = ud->rchan_cnt; in bcdma_setup_resources()
4849 ud->rchan_map = devm_kmalloc_array(dev, BITS_TO_LONGS(ud->rchan_cnt), in pktdma_setup_resources()
4851 ud->rchans = devm_kcalloc(dev, ud->rchan_cnt, sizeof(*ud->rchans), in pktdma_setup_resources()
4890 bitmap_zero(ud->rchan_map, ud->rchan_cnt); in pktdma_setup_resources()
4892 bitmap_fill(ud->rchan_map, ud->rchan_cnt); in pktdma_setup_resources()
4984 ch_count = ud->bchan_cnt + ud->tchan_cnt + ud->rchan_cnt; in setup_resources()
4988 ch_count -= bitmap_weight(ud->rchan_map, ud->rchan_cnt); in setup_resources()
5004 ud->rchan_cnt - bitmap_weight(ud->rchan_map, in setup_resources()
5005 ud->rchan_cnt), in setup_resources()
5017 ud->rchan_cnt - bitmap_weight(ud->rchan_map, in setup_resources()
5018 ud->rchan_cnt)); in setup_resources()
5026 ud->rchan_cnt - bitmap_weight(ud->rchan_map, in setup_resources()
5027 ud->rchan_cnt)); in setup_resources()
5327 ud->rchan_cnt; in udma_probe()
5433 for (i = 0; i < ud->rchan_cnt; i++) { in udma_probe()