Lines Matching full:rflow

271 	/* PKTDMA default tflow or rflow for mapped channel */
290 struct udma_rflow *rflow; member
659 ring = uc->rflow->fd_ring; in udma_push_to_ring()
699 ring = uc->rflow->r_ring; in udma_pop_from_ring()
734 ring1 = uc->rflow->fd_ring; in udma_reset_rings()
735 ring2 = uc->rflow->r_ring; in udma_reset_rings()
1299 * Attempt to request rflow by ID can be made for any rflow in __udma_get_rflow()
1312 /* GP rflow has to be allocated first */ in __udma_get_rflow()
1318 dev_dbg(ud->dev, "get rflow%d\n", id); in __udma_get_rflow()
1323 static void __udma_put_rflow(struct udma_dev *ud, struct udma_rflow *rflow) in __udma_put_rflow() argument
1325 if (!test_bit(rflow->id, ud->rflow_in_use)) { in __udma_put_rflow()
1326 dev_err(ud->dev, "attempt to put unused rflow%d\n", rflow->id); in __udma_put_rflow()
1330 dev_dbg(ud->dev, "put rflow%d\n", rflow->id); in __udma_put_rflow()
1331 clear_bit(rflow->id, ud->rflow_in_use); in __udma_put_rflow()
1534 if (uc->rflow) { in udma_get_rflow()
1535 dev_dbg(ud->dev, "chan%d: already have rflow%d allocated\n", in udma_get_rflow()
1536 uc->id, uc->rflow->id); in udma_get_rflow()
1540 uc->rflow = __udma_get_rflow(ud, flow_id); in udma_get_rflow()
1541 if (IS_ERR(uc->rflow)) { in udma_get_rflow()
1542 ret = PTR_ERR(uc->rflow); in udma_get_rflow()
1543 uc->rflow = NULL; in udma_get_rflow()
1595 if (uc->rflow) { in udma_put_rflow()
1596 dev_dbg(ud->dev, "chan%d: put rflow%d\n", uc->id, in udma_put_rflow()
1597 uc->rflow->id); in udma_put_rflow()
1598 __udma_put_rflow(ud, uc->rflow); in udma_put_rflow()
1599 uc->rflow = NULL; in udma_put_rflow()
1737 if (uc->rflow) { in udma_free_rx_resources()
1738 struct udma_rflow *rflow = uc->rflow; in udma_free_rx_resources() local
1740 k3_ringacc_ring_free(rflow->fd_ring); in udma_free_rx_resources()
1741 k3_ringacc_ring_free(rflow->r_ring); in udma_free_rx_resources()
1742 rflow->fd_ring = NULL; in udma_free_rx_resources()
1743 rflow->r_ring = NULL; in udma_free_rx_resources()
1755 struct udma_rflow *rflow; in udma_alloc_rx_resources() local
1763 /* For MEM_TO_MEM we don't need rflow or rings */ in udma_alloc_rx_resources()
1777 rflow = uc->rflow; in udma_alloc_rx_resources()
1779 fd_ring_id = ud->tflow_cnt + rflow->id; in udma_alloc_rx_resources()
1785 &rflow->fd_ring, &rflow->r_ring); in udma_alloc_rx_resources()
1810 ret = k3_ringacc_ring_cfg(rflow->fd_ring, &ring_cfg); in udma_alloc_rx_resources()
1813 ret |= k3_ringacc_ring_cfg(rflow->r_ring, &ring_cfg); in udma_alloc_rx_resources()
1821 k3_ringacc_ring_free(rflow->r_ring); in udma_alloc_rx_resources()
1822 rflow->r_ring = NULL; in udma_alloc_rx_resources()
1823 k3_ringacc_ring_free(rflow->fd_ring); in udma_alloc_rx_resources()
1824 rflow->fd_ring = NULL; in udma_alloc_rx_resources()
2035 int fd_ring = k3_ringacc_get_ring_id(uc->rflow->fd_ring); in udma_tisci_rx_channel_config()
2036 int rx_ring = k3_ringacc_get_ring_id(uc->rflow->r_ring); in udma_tisci_rx_channel_config()
2155 flow_req.flow_index = uc->rflow->id; in pktdma_tisci_rx_channel_config()
2170 dev_err(ud->dev, "flow%d config failed: %d\n", uc->rflow->id, in pktdma_tisci_rx_channel_config()
2281 irq_ring = uc->rflow->r_ring; in udma_alloc_chan_resources()
2644 irq_ring_idx = uc->rflow->id + oes->pktdma_rchan_flow; in pktdma_alloc_chan_resources()
2722 "chan%d: rchan%d, rflow%d, Remote thread: 0x%04x\n", in pktdma_alloc_chan_resources()
2723 uc->id, uc->rchan->id, uc->rflow->id, in pktdma_alloc_chan_resources()
2818 ring_id = k3_ringacc_get_ring_id(uc->rflow->r_ring); in udma_alloc_tr_desc()
3245 ring_id = k3_ringacc_get_ring_id(uc->rflow->r_ring); in udma_prep_slave_sg_pkt()
3592 ring_id = k3_ringacc_get_ring_id(uc->rflow->r_ring); in udma_prep_dma_cyclic_pkt()
4573 [RM_RANGE_RFLOW] = "ti,sci-rm-range-rflow",
4724 /* GP rflow ranges */ in udma_setup_resources()
4733 &rm_res->desc[i], "gp-rflow"); in udma_setup_resources()
5025 /* rflow ranges */ in pktdma_setup_resources()
5035 &rm_res->desc[i], "rflow"); in pktdma_setup_resources()
5127 "Channels: %d (tchan: %u, rchan: %u, gp-rflow: %u)\n", in setup_resources()
5287 seq_printf(s, "rflow%d, ", uc->rflow->id); in udma_dbg_summary_show_chan()
5565 struct udma_rflow *rflow = &ud->rflows[i]; in udma_probe() local
5567 rflow->id = i; in udma_probe()