Lines Matching defs:rflow
271 /* PKTDMA default tflow or rflow for mapped channel */
290 struct udma_rflow *rflow;
659 ring = uc->rflow->fd_ring;
699 ring = uc->rflow->r_ring;
734 ring1 = uc->rflow->fd_ring;
735 ring2 = uc->rflow->r_ring;
1299 * Attempt to request rflow by ID can be made for any rflow
1312 /* GP rflow has to be allocated first */
1318 dev_dbg(ud->dev, "get rflow%d\n", id);
1323 static void __udma_put_rflow(struct udma_dev *ud, struct udma_rflow *rflow)
1325 if (!test_bit(rflow->id, ud->rflow_in_use)) {
1326 dev_err(ud->dev, "attempt to put unused rflow%d\n", rflow->id);
1330 dev_dbg(ud->dev, "put rflow%d\n", rflow->id);
1331 clear_bit(rflow->id, ud->rflow_in_use);
1534 if (uc->rflow) {
1535 dev_dbg(ud->dev, "chan%d: already have rflow%d allocated\n",
1536 uc->id, uc->rflow->id);
1540 uc->rflow = __udma_get_rflow(ud, flow_id);
1541 if (IS_ERR(uc->rflow)) {
1542 ret = PTR_ERR(uc->rflow);
1543 uc->rflow = NULL;
1595 if (uc->rflow) {
1596 dev_dbg(ud->dev, "chan%d: put rflow%d\n", uc->id,
1597 uc->rflow->id);
1598 __udma_put_rflow(ud, uc->rflow);
1599 uc->rflow = NULL;
1737 if (uc->rflow) {
1738 struct udma_rflow *rflow = uc->rflow;
1740 k3_ringacc_ring_free(rflow->fd_ring);
1741 k3_ringacc_ring_free(rflow->r_ring);
1742 rflow->fd_ring = NULL;
1743 rflow->r_ring = NULL;
1755 struct udma_rflow *rflow;
1763 /* For MEM_TO_MEM we don't need rflow or rings */
1777 rflow = uc->rflow;
1779 fd_ring_id = ud->tflow_cnt + rflow->id;
1785 &rflow->fd_ring, &rflow->r_ring);
1810 ret = k3_ringacc_ring_cfg(rflow->fd_ring, &ring_cfg);
1813 ret |= k3_ringacc_ring_cfg(rflow->r_ring, &ring_cfg);
1821 k3_ringacc_ring_free(rflow->r_ring);
1822 rflow->r_ring = NULL;
1823 k3_ringacc_ring_free(rflow->fd_ring);
1824 rflow->fd_ring = NULL;
2035 int fd_ring = k3_ringacc_get_ring_id(uc->rflow->fd_ring);
2036 int rx_ring = k3_ringacc_get_ring_id(uc->rflow->r_ring);
2155 flow_req.flow_index = uc->rflow->id;
2170 dev_err(ud->dev, "flow%d config failed: %d\n", uc->rflow->id,
2281 irq_ring = uc->rflow->r_ring;
2644 irq_ring_idx = uc->rflow->id + oes->pktdma_rchan_flow;
2722 "chan%d: rchan%d, rflow%d, Remote thread: 0x%04x\n",
2723 uc->id, uc->rchan->id, uc->rflow->id,
2818 ring_id = k3_ringacc_get_ring_id(uc->rflow->r_ring);
3232 ring_id = k3_ringacc_get_ring_id(uc->rflow->r_ring);
3561 ring_id = k3_ringacc_get_ring_id(uc->rflow->r_ring);
4520 [RM_RANGE_RFLOW] = "ti,sci-rm-range-rflow",
4671 /* GP rflow ranges */
4680 &rm_res->desc[i], "gp-rflow");
4972 /* rflow ranges */
4982 &rm_res->desc[i], "rflow");
5074 "Channels: %d (tchan: %u, rchan: %u, gp-rflow: %u)\n",
5234 seq_printf(s, "rflow%d, ", uc->rflow->id);
5512 struct udma_rflow *rflow = &ud->rflows[i];
5514 rflow->id = i;