Lines Matching defs:ud
7 int xudma_navss_psil_pair(struct udma_dev *ud, u32 src_thread, u32 dst_thread)
9 return navss_psil_pair(ud, src_thread, dst_thread);
13 int xudma_navss_psil_unpair(struct udma_dev *ud, u32 src_thread, u32 dst_thread)
15 return navss_psil_unpair(ud, src_thread, dst_thread);
23 struct udma_dev *ud;
42 ud = platform_get_drvdata(pdev);
43 if (!ud) {
49 return ud;
53 u32 xudma_dev_get_psil_base(struct udma_dev *ud)
55 return ud->psil_base;
59 struct udma_tisci_rm *xudma_dev_get_tisci_rm(struct udma_dev *ud)
61 return &ud->tisci_rm;
65 int xudma_alloc_gp_rflow_range(struct udma_dev *ud, int from, int cnt)
67 return __udma_alloc_gp_rflow_range(ud, from, cnt);
71 int xudma_free_gp_rflow_range(struct udma_dev *ud, int from, int cnt)
73 return __udma_free_gp_rflow_range(ud, from, cnt);
77 bool xudma_rflow_is_gp(struct udma_dev *ud, int id)
79 return !test_bit(id, ud->rflow_gp_map);
84 struct udma_##res *xudma_##res##_get(struct udma_dev *ud, int id) \
86 return __udma_reserve_##res(ud, UDMA_TP_NORMAL, id); \
90 void xudma_##res##_put(struct udma_dev *ud, struct udma_##res *p) \
92 clear_bit(p->id, ud->res##_map); \
98 struct udma_rflow *xudma_rflow_get(struct udma_dev *ud, int id)
100 return __udma_get_rflow(ud, id);
104 void xudma_rflow_put(struct udma_dev *ud, struct udma_rflow *p)
106 __udma_put_rflow(ud, p);