Lines Matching defs:xdma_channel_t

192 typedef struct xdma_channel xdma_channel_t;
243 xdma_channel_t * xdma_channel_alloc(xdma_controller_t *, uint32_t caps);
244 int xdma_channel_free(xdma_channel_t *);
245 int xdma_request(xdma_channel_t *xchan, struct xdma_request *r);
246 void xchan_set_memory(xdma_channel_t *xchan, vmem_t *vmem);
249 int xdma_prep_sg(xdma_channel_t *, uint32_t,
251 void xdma_channel_free_sg(xdma_channel_t *xchan);
252 int xdma_queue_submit_sg(xdma_channel_t *xchan);
253 void xchan_seg_done(xdma_channel_t *xchan, xdma_transfer_status_t *);
256 int xdma_dequeue_mbuf(xdma_channel_t *xchan, struct mbuf **m,
258 int xdma_enqueue_mbuf(xdma_channel_t *xchan, struct mbuf **m, uintptr_t addr,
260 int xdma_dequeue_bio(xdma_channel_t *xchan, struct bio **bp,
262 int xdma_enqueue_bio(xdma_channel_t *xchan, struct bio **bp, bus_addr_t addr,
264 int xdma_dequeue(xdma_channel_t *xchan, void **user,
266 int xdma_enqueue(xdma_channel_t *xchan, uintptr_t src, uintptr_t dst,
268 int xdma_queue_submit(xdma_channel_t *xchan);
271 uint32_t xdma_mbuf_defrag(xdma_channel_t *xchan, struct xdma_request *xr);
275 int xdma_control(xdma_channel_t *xchan, enum xdma_command cmd);
278 int xdma_setup_intr(xdma_channel_t *xchan, int flags, int (*cb)(void *,
280 int xdma_teardown_intr(xdma_channel_t *xchan, struct xdma_intr_handler *ih);
281 int xdma_teardown_all_intr(xdma_channel_t *xchan);
285 int xchan_sglist_alloc(xdma_channel_t *xchan);
286 void xchan_sglist_free(xdma_channel_t *xchan);
291 void xchan_bank_init(xdma_channel_t *xchan);
292 int xchan_bank_free(xdma_channel_t *xchan);
293 struct xdma_request * xchan_bank_get(xdma_channel_t *xchan);
294 int xchan_bank_put(xdma_channel_t *xchan, struct xdma_request *xr);
297 void xdma_iommu_add_entry(xdma_channel_t *xchan, vm_offset_t *va,
299 void xdma_iommu_remove_entry(xdma_channel_t *xchan, vm_offset_t va);