Lines Matching full: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()
1172 * Attempt to request rflow by ID can be made for any rflow in __udma_get_rflow()
1184 /* GP rflow has to be allocated first */ in __udma_get_rflow()
1189 dev_dbg(ud->dev, "get rflow%d\n", id); in __udma_get_rflow()
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()
1319 dev_dbg(ud->dev, "chan%d: already have rflow%d allocated\n", 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()
1358 dev_dbg(ud->dev, "chan%d: put rflow%d\n", uc->id, 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
1451 /* For MEM_TO_MEM we don't need rflow or rings */ in udma_alloc_rx_resources()
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()
3181 "ti,sci-rm-range-rflow" }; in udma_setup_resources()
3307 /* GP rflow ranges */ in udma_setup_resources()
3318 dev_dbg(dev, "ti-sci-res: rflow: %d:%d\n", in udma_setup_resources()
3333 dev_info(dev, "Channels: %d (tchan: %u, rchan: %u, gp-rflow: %u)\n", in udma_setup_resources()
3647 struct udma_rflow *rflow = &ud->rflows[i]; in udma_probe() local
3649 rflow->id = i; in udma_probe()