Lines Matching defs:ud
9 int xudma_navss_psil_pair(struct udma_dev *ud, u32 src_thread, u32 dst_thread)
11 return navss_psil_pair(ud, src_thread, dst_thread);
15 int xudma_navss_psil_unpair(struct udma_dev *ud, u32 src_thread, u32 dst_thread)
17 return navss_psil_unpair(ud, src_thread, dst_thread);
25 struct udma_dev *ud;
44 ud = platform_get_drvdata(pdev);
45 if (!ud) {
51 return ud;
55 struct device *xudma_get_device(struct udma_dev *ud)
57 return ud->dev;
61 struct k3_ringacc *xudma_get_ringacc(struct udma_dev *ud)
63 return ud->ringacc;
67 u32 xudma_dev_get_psil_base(struct udma_dev *ud)
69 return ud->psil_base;
73 struct udma_tisci_rm *xudma_dev_get_tisci_rm(struct udma_dev *ud)
75 return &ud->tisci_rm;
79 int xudma_alloc_gp_rflow_range(struct udma_dev *ud, int from, int cnt)
81 return __udma_alloc_gp_rflow_range(ud, from, cnt);
85 int xudma_free_gp_rflow_range(struct udma_dev *ud, int from, int cnt)
87 return __udma_free_gp_rflow_range(ud, from, cnt);
91 bool xudma_rflow_is_gp(struct udma_dev *ud, int id)
93 if (!ud->rflow_gp_map)
96 return !test_bit(id, ud->rflow_gp_map);
101 struct udma_##res *xudma_##res##_get(struct udma_dev *ud, int id) \
103 return __udma_reserve_##res(ud, UDMA_TP_NORMAL, id); \
107 void xudma_##res##_put(struct udma_dev *ud, struct udma_##res *p) \
109 clear_bit(p->id, ud->res##_map); \
115 struct udma_rflow *xudma_rflow_get(struct udma_dev *ud, int id)
117 return __udma_get_rflow(ud, id);
121 void xudma_rflow_put(struct udma_dev *ud, struct udma_rflow *p)
123 __udma_put_rflow(ud, p);
127 int xudma_get_rflow_ring_offset(struct udma_dev *ud)
129 return ud->tflow_cnt;
163 int xudma_is_pktdma(struct udma_dev *ud)
165 return ud->match_data->type == DMA_TYPE_PKTDMA;
169 int xudma_pktdma_tflow_get_irq(struct udma_dev *ud, int udma_tflow_id)
171 const struct udma_oes_offsets *oes = &ud->soc_data->oes;
173 return msi_get_virq(ud->dev, udma_tflow_id + oes->pktdma_tchan_flow);
177 int xudma_pktdma_rflow_get_irq(struct udma_dev *ud, int udma_rflow_id)
179 const struct udma_oes_offsets *oes = &ud->soc_data->oes;
181 return msi_get_virq(ud->dev, udma_rflow_id + oes->pktdma_rchan_flow);