Lines Matching refs:rflow
223 struct udma_rflow *rflow; member
556 ring = uc->rflow->fd_ring; in udma_push_to_ring()
596 ring = uc->rflow->r_ring; in udma_pop_from_ring()
631 ring1 = uc->rflow->fd_ring; in udma_reset_rings()
632 ring2 = uc->rflow->r_ring; in udma_reset_rings()
1194 static void __udma_put_rflow(struct udma_dev *ud, struct udma_rflow *rflow) in __udma_put_rflow() argument
1196 if (!test_bit(rflow->id, ud->rflow_in_use)) { in __udma_put_rflow()
1197 dev_err(ud->dev, "attempt to put unused rflow%d\n", rflow->id); in __udma_put_rflow()
1201 dev_dbg(ud->dev, "put rflow%d\n", rflow->id); in __udma_put_rflow()
1202 clear_bit(rflow->id, ud->rflow_in_use); in __udma_put_rflow()
1318 if (uc->rflow) { in udma_get_rflow()
1320 uc->id, uc->rflow->id); in udma_get_rflow()
1324 uc->rflow = __udma_get_rflow(ud, flow_id); in udma_get_rflow()
1326 return PTR_ERR_OR_ZERO(uc->rflow); in udma_get_rflow()
1357 if (uc->rflow) { in udma_put_rflow()
1359 uc->rflow->id); in udma_put_rflow()
1360 __udma_put_rflow(ud, uc->rflow); in udma_put_rflow()
1361 uc->rflow = NULL; in udma_put_rflow()
1425 if (uc->rflow) { in udma_free_rx_resources()
1426 struct udma_rflow *rflow = uc->rflow; in udma_free_rx_resources() local
1428 k3_ringacc_ring_free(rflow->fd_ring); in udma_free_rx_resources()
1429 k3_ringacc_ring_free(rflow->r_ring); in udma_free_rx_resources()
1430 rflow->fd_ring = NULL; in udma_free_rx_resources()
1431 rflow->r_ring = NULL; in udma_free_rx_resources()
1443 struct udma_rflow *rflow; in udma_alloc_rx_resources() local
1461 rflow = uc->rflow; in udma_alloc_rx_resources()
1464 &rflow->fd_ring, &rflow->r_ring); in udma_alloc_rx_resources()
1480 ret = k3_ringacc_ring_cfg(rflow->fd_ring, &ring_cfg); in udma_alloc_rx_resources()
1482 ret |= k3_ringacc_ring_cfg(rflow->r_ring, &ring_cfg); in udma_alloc_rx_resources()
1490 k3_ringacc_ring_free(rflow->r_ring); in udma_alloc_rx_resources()
1491 rflow->r_ring = NULL; in udma_alloc_rx_resources()
1492 k3_ringacc_ring_free(rflow->fd_ring); in udma_alloc_rx_resources()
1493 rflow->fd_ring = NULL; in udma_alloc_rx_resources()
1608 int fd_ring = k3_ringacc_get_ring_id(uc->rflow->fd_ring); in udma_tisci_rx_channel_config()
1609 int rx_ring = k3_ringacc_get_ring_id(uc->rflow->r_ring); in udma_tisci_rx_channel_config()
1786 irq_ring = uc->rflow->r_ring; in udma_alloc_chan_resources()
1961 ring_id = k3_ringacc_get_ring_id(uc->rflow->r_ring); in udma_alloc_tr_desc()
2168 ring_id = k3_ringacc_get_ring_id(uc->rflow->r_ring); in udma_prep_slave_sg_pkt()
2479 ring_id = k3_ringacc_get_ring_id(uc->rflow->r_ring); in udma_prep_dma_cyclic_pkt()
3646 struct udma_rflow *rflow = &ud->rflows[i]; in udma_probe() local
3648 rflow->id = i; in udma_probe()