Lines Matching +full:udma +full:- +full:p
1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com
30 pr_err("UDMA node is not found\n"); in of_xudma_dev_get()
31 return ERR_PTR(-ENODEV); in of_xudma_dev_get()
40 pr_debug("UDMA device not found\n"); in of_xudma_dev_get()
41 return ERR_PTR(-EPROBE_DEFER); in of_xudma_dev_get()
46 pr_debug("UDMA has not been probed\n"); in of_xudma_dev_get()
47 put_device(&pdev->dev); in of_xudma_dev_get()
48 return ERR_PTR(-EPROBE_DEFER); in of_xudma_dev_get()
57 return ud->dev; in xudma_get_device()
63 return ud->ringacc; in xudma_get_ringacc()
69 return ud->psil_base; in xudma_dev_get_psil_base()
75 return &ud->tisci_rm; in xudma_dev_get_tisci_rm()
93 if (!ud->rflow_gp_map) in xudma_rflow_is_gp()
96 return !test_bit(id, ud->rflow_gp_map); in xudma_rflow_is_gp()
107 void xudma_##res##_put(struct udma_dev *ud, struct udma_##res *p) \
109 clear_bit(p->id, ud->res##_map); \
121 void xudma_rflow_put(struct udma_dev *ud, struct udma_rflow *p) in xudma_rflow_put() argument
123 __udma_put_rflow(ud, p); in xudma_rflow_put()
129 return ud->tflow_cnt; in xudma_get_rflow_ring_offset()
134 int xudma_##res##_get_id(struct udma_##res *p) \
136 return p->id; \
145 u32 xudma_##res##rt_read(struct udma_##res *p, int reg) \
147 if (!p) \
149 return udma_read(p->reg_rt, reg); \
153 void xudma_##res##rt_write(struct udma_##res *p, int reg, u32 val) \
155 if (!p) \
157 udma_write(p->reg_rt, reg, val); \
165 return ud->match_data->type == DMA_TYPE_PKTDMA; in xudma_is_pktdma()
171 const struct udma_oes_offsets *oes = &ud->soc_data->oes; in xudma_pktdma_tflow_get_irq()
173 return msi_get_virq(ud->dev, udma_tflow_id + oes->pktdma_tchan_flow); in xudma_pktdma_tflow_get_irq()
179 const struct udma_oes_offsets *oes = &ud->soc_data->oes; in xudma_pktdma_rflow_get_irq()
181 return msi_get_virq(ud->dev, udma_rflow_id + oes->pktdma_rchan_flow); in xudma_pktdma_rflow_get_irq()