Lines Matching refs:rflow
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()
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()
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()
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
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()
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()
3232 ring_id = k3_ringacc_get_ring_id(uc->rflow->r_ring); in udma_prep_slave_sg_pkt()
3561 ring_id = k3_ringacc_get_ring_id(uc->rflow->r_ring); in udma_prep_dma_cyclic_pkt()
5236 seq_printf(s, "rflow%d, ", uc->rflow->id); in udma_dbg_summary_show_chan()
5514 struct udma_rflow *rflow = &ud->rflows[i]; in udma_probe() local
5516 rflow->id = i; in udma_probe()