Lines Matching refs:xchan

204 #define	XCHAN_LOCK(xchan)		mtx_lock(&(xchan)->mtx_lock)  argument
205 #define XCHAN_UNLOCK(xchan) mtx_unlock(&(xchan)->mtx_lock) argument
206 #define XCHAN_ASSERT_LOCKED(xchan) \ argument
207 mtx_assert(&(xchan)->mtx_lock, MA_OWNED)
209 #define QUEUE_IN_LOCK(xchan) mtx_lock(&(xchan)->mtx_qin_lock) argument
210 #define QUEUE_IN_UNLOCK(xchan) mtx_unlock(&(xchan)->mtx_qin_lock) argument
211 #define QUEUE_IN_ASSERT_LOCKED(xchan) \ argument
212 mtx_assert(&(xchan)->mtx_qin_lock, MA_OWNED)
214 #define QUEUE_OUT_LOCK(xchan) mtx_lock(&(xchan)->mtx_qout_lock) argument
215 #define QUEUE_OUT_UNLOCK(xchan) mtx_unlock(&(xchan)->mtx_qout_lock) argument
216 #define QUEUE_OUT_ASSERT_LOCKED(xchan) \ argument
217 mtx_assert(&(xchan)->mtx_qout_lock, MA_OWNED)
219 #define QUEUE_BANK_LOCK(xchan) mtx_lock(&(xchan)->mtx_bank_lock) argument
220 #define QUEUE_BANK_UNLOCK(xchan) mtx_unlock(&(xchan)->mtx_bank_lock) argument
221 #define QUEUE_BANK_ASSERT_LOCKED(xchan) \ argument
222 mtx_assert(&(xchan)->mtx_bank_lock, MA_OWNED)
224 #define QUEUE_PROC_LOCK(xchan) mtx_lock(&(xchan)->mtx_proc_lock) argument
225 #define QUEUE_PROC_UNLOCK(xchan) mtx_unlock(&(xchan)->mtx_proc_lock) argument
226 #define QUEUE_PROC_ASSERT_LOCKED(xchan) \ argument
227 mtx_assert(&(xchan)->mtx_proc_lock, MA_OWNED)
245 int xdma_request(xdma_channel_t *xchan, struct xdma_request *r);
246 void xchan_set_memory(xdma_channel_t *xchan, vmem_t *vmem);
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);
282 void xdma_callback(struct xdma_channel *xchan, xdma_transfer_status_t *status);
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);