/freebsd/sys/powerpc/powerpc/ |
H A D | busdma_machdep.c | 89 bus_dma_tag_t dmat; member 102 #define dmat_alignment(dmat) ((dmat)->alignment) argument 103 #define dmat_bounce_flags(dmat) (0) argument 104 #define dmat_boundary(dmat) ((dmat)->boundary) argument 105 #define dmat_flags(dmat) ((dmat)->flags) argument 106 #define dmat_highaddr(dmat) ((dmat) argument 107 dmat_lockfuncarg(dmat) global() argument 116 must_bounce(bus_dma_tag_t dmat,bus_addr_t paddr) must_bounce() argument 139 bus_dma_tag_create(bus_dma_tag_t parent,bus_size_t alignment,bus_addr_t boundary,bus_addr_t lowaddr,bus_addr_t highaddr,bus_dma_filter_t * filter,void * filterarg,bus_size_t maxsize,int nsegments,bus_size_t maxsegsz,int flags,bus_dma_lock_t * lockfunc,void * lockfuncarg,bus_dma_tag_t * dmat) bus_dma_tag_create() argument 240 bus_dma_template_clone(bus_dma_template_t * t,bus_dma_tag_t dmat) bus_dma_template_clone() argument 259 bus_dma_tag_set_domain(bus_dma_tag_t dmat,int domain) bus_dma_tag_set_domain() argument 266 bus_dma_tag_destroy(bus_dma_tag_t dmat) bus_dma_tag_destroy() argument 288 bus_dmamap_create(bus_dma_tag_t dmat,int flags,bus_dmamap_t * mapp) bus_dmamap_create() argument 371 bus_dmamap_destroy(bus_dma_tag_t dmat,bus_dmamap_t map) bus_dmamap_destroy() argument 395 bus_dmamem_alloc(bus_dma_tag_t dmat,void ** vaddr,int flags,bus_dmamap_t * mapp) bus_dmamem_alloc() argument 457 bus_dmamem_free(bus_dma_tag_t dmat,void * vaddr,bus_dmamap_t map) bus_dmamem_free() argument 469 _bus_dmamap_count_phys(bus_dma_tag_t dmat,bus_dmamap_t map,vm_paddr_t buf,bus_size_t buflen,int flags) _bus_dmamap_count_phys() argument 500 _bus_dmamap_count_pages(bus_dma_tag_t dmat,bus_dmamap_t map,pmap_t pmap,void * buf,bus_size_t buflen,int flags) _bus_dmamap_count_pages() argument 542 _bus_dmamap_addseg(bus_dma_tag_t dmat,bus_dmamap_t map,bus_addr_t curaddr,bus_size_t sgsize,bus_dma_segment_t * segs,int * segp) _bus_dmamap_addseg() argument 584 _bus_dmamap_load_phys(bus_dma_tag_t dmat,bus_dmamap_t map,vm_paddr_t buf,bus_size_t buflen,int flags,bus_dma_segment_t * segs,int * segp) _bus_dmamap_load_phys() argument 630 _bus_dmamap_load_ma(bus_dma_tag_t dmat,bus_dmamap_t map,struct vm_page ** ma,bus_size_t tlen,int ma_offs,int flags,bus_dma_segment_t * segs,int * segp) _bus_dmamap_load_ma() argument 644 _bus_dmamap_load_buffer(bus_dma_tag_t dmat,bus_dmamap_t map,void * buf,bus_size_t buflen,pmap_t pmap,int flags,bus_dma_segment_t * segs,int * segp) _bus_dmamap_load_buffer() argument 714 _bus_dmamap_waitok(bus_dma_tag_t dmat,bus_dmamap_t map,struct memdesc * mem,bus_dmamap_callback_t * callback,void * callback_arg) _bus_dmamap_waitok() argument 728 _bus_dmamap_complete(bus_dma_tag_t dmat,bus_dmamap_t map,bus_dma_segment_t * segs,int nsegs,int error) _bus_dmamap_complete() argument 752 bus_dmamap_unload(bus_dma_tag_t dmat,bus_dmamap_t map) bus_dmamap_unload() argument 763 bus_dmamap_sync(bus_dma_tag_t dmat,bus_dmamap_t map,bus_dmasync_op_t op) bus_dmamap_sync() argument [all...] |
/freebsd/sys/x86/x86/ |
H A D | busdma_bounce.c | 88 bus_dma_tag_t dmat; member 101 static bool _bus_dmamap_pagesneeded(bus_dma_tag_t dmat, vm_paddr_t buf, 103 static void _bus_dmamap_count_pages(bus_dma_tag_t dmat, bus_dmamap_t map, 105 static void _bus_dmamap_count_phys(bus_dma_tag_t dmat, bus_dmamap_t map, 110 #define dmat_alignment(dmat) ((dmat)->common.alignment) argument 111 #define dmat_bounce_flags(dmat) ((dmat)->bounce_flags) argument 112 #define dmat_boundary(dmat) ((dmat) argument 113 dmat_highaddr(dmat) global() argument 114 dmat_lowaddr(dmat) global() argument 115 dmat_lockfunc(dmat) global() argument 116 dmat_lockfuncarg(dmat) global() argument 128 must_bounce(bus_dma_tag_t dmat,vm_paddr_t paddr) must_bounce() argument 138 bounce_bus_dma_zone_setup(bus_dma_tag_t dmat) bounce_bus_dma_zone_setup() argument 170 bounce_bus_dma_tag_create(bus_dma_tag_t parent,bus_size_t alignment,bus_addr_t boundary,bus_addr_t lowaddr,bus_addr_t highaddr,bus_size_t maxsize,int nsegments,bus_size_t maxsegsz,int flags,bus_dma_lock_t * lockfunc,void * lockfuncarg,bus_dma_tag_t * dmat) bounce_bus_dma_tag_create() argument 220 bounce_bus_dma_id_mapped(bus_dma_tag_t dmat,vm_paddr_t buf,bus_size_t buflen) bounce_bus_dma_id_mapped() argument 233 bounce_bus_dma_tag_set_domain(bus_dma_tag_t dmat) bounce_bus_dma_tag_set_domain() argument 246 bounce_bus_dma_tag_destroy(bus_dma_tag_t dmat) bounce_bus_dma_tag_destroy() argument 269 bounce_bus_dmamap_create(bus_dma_tag_t dmat,int flags,bus_dmamap_t * mapp) bounce_bus_dmamap_create() argument 359 bounce_bus_dmamap_destroy(bus_dma_tag_t dmat,bus_dmamap_t map) bounce_bus_dmamap_destroy() argument 383 bounce_bus_dmamem_alloc(bus_dma_tag_t dmat,void ** vaddr,int flags,bus_dmamap_t * mapp) bounce_bus_dmamem_alloc() argument 478 bounce_bus_dmamem_free(bus_dma_tag_t dmat,void * vaddr,bus_dmamap_t map) bounce_bus_dmamem_free() argument 496 _bus_dmamap_pagesneeded(bus_dma_tag_t dmat,vm_paddr_t buf,bus_size_t buflen,int * pagesneeded) _bus_dmamap_pagesneeded() argument 528 _bus_dmamap_count_phys(bus_dma_tag_t dmat,bus_dmamap_t map,vm_paddr_t buf,bus_size_t buflen,int flags) _bus_dmamap_count_phys() argument 539 _bus_dmamap_count_pages(bus_dma_tag_t dmat,bus_dmamap_t map,pmap_t pmap,void * buf,bus_size_t buflen,int flags) _bus_dmamap_count_pages() argument 580 _bus_dmamap_count_ma(bus_dma_tag_t dmat,bus_dmamap_t map,struct vm_page ** ma,int ma_offs,bus_size_t buflen,int flags) _bus_dmamap_count_ma() argument 629 _bus_dmamap_addseg(bus_dma_tag_t dmat,bus_dmamap_t map,vm_paddr_t curaddr,bus_size_t sgsize,bus_dma_segment_t * segs,int * segp) _bus_dmamap_addseg() argument 678 bounce_bus_dmamap_load_phys(bus_dma_tag_t dmat,bus_dmamap_t map,vm_paddr_t buf,bus_size_t buflen,int flags,bus_dma_segment_t * segs,int * segp) bounce_bus_dmamap_load_phys() argument 730 bounce_bus_dmamap_load_buffer(bus_dma_tag_t dmat,bus_dmamap_t map,void * buf,bus_size_t buflen,pmap_t pmap,int flags,bus_dma_segment_t * segs,int * segp) bounce_bus_dmamap_load_buffer() argument 797 bounce_bus_dmamap_load_ma(bus_dma_tag_t dmat,bus_dmamap_t map,struct vm_page ** ma,bus_size_t buflen,int ma_offs,int flags,bus_dma_segment_t * segs,int * segp) bounce_bus_dmamap_load_ma() argument 880 bounce_bus_dmamap_waitok(bus_dma_tag_t dmat,bus_dmamap_t map,struct memdesc * mem,bus_dmamap_callback_t * callback,void * callback_arg) bounce_bus_dmamap_waitok() argument 893 bounce_bus_dmamap_complete(bus_dma_tag_t dmat,bus_dmamap_t map,bus_dma_segment_t * segs,int nsegs,int error) bounce_bus_dmamap_complete() argument 906 bounce_bus_dmamap_unload(bus_dma_tag_t dmat,bus_dmamap_t map) bounce_bus_dmamap_unload() argument 915 bounce_bus_dmamap_sync(bus_dma_tag_t dmat,bus_dmamap_t map,bus_dmasync_op_t op) bounce_bus_dmamap_sync() argument [all...] |
H A D | busdma_machdep.c | 61 void **dmat) in common_bus_dma_tag_create() argument 73 *dmat = NULL; in common_bus_dma_tag_create() 116 *dmat = common; in common_bus_dma_tag_create() 121 bus_dma_tag_set_domain(bus_dma_tag_t dmat, int domain) in bus_dma_tag_set_domain() argument 125 tc = (struct bus_dma_tag_common *)dmat; in bus_dma_tag_set_domain() 131 return (tc->impl->tag_set_domain(dmat)); in bus_dma_tag_set_domain() 142 void *lockfuncarg, bus_dma_tag_t *dmat) in bus_dma_tag_create() argument 154 flags, lockfunc, lockfuncarg, dmat); in bus_dma_tag_create() 159 flags, lockfunc, lockfuncarg, dmat); in bus_dma_tag_create() 165 bus_dma_template_clone(bus_dma_template_t *t, bus_dma_tag_t dmat) in bus_dma_template_clone() argument [all …]
|
/freebsd/sys/arm64/arm64/ |
H A D | busdma_bounce.c | 99 bus_dma_tag_t dmat; member 116 static bool _bus_dmamap_pagesneeded(bus_dma_tag_t dmat, bus_dmamap_t map, 118 static void _bus_dmamap_count_pages(bus_dma_tag_t dmat, bus_dmamap_t map, 120 static void _bus_dmamap_count_phys(bus_dma_tag_t dmat, bus_dmamap_t map, 125 #define dmat_alignment(dmat) ((dmat)->common.alignment) argument 126 #define dmat_bounce_flags(dmat) ((dmat)->bounce_flags) argument 127 #define dmat_boundary(dmat) ((dmat)->common.boundary) argument 128 #define dmat_domain(dmat) ((dmat)->common.domain) argument 129 #define dmat_flags(dmat) ((dmat)->common.flags) argument 130 #define dmat_highaddr(dmat) ((dmat)->common.highaddr) argument [all …]
|
H A D | busdma_machdep.c | 57 void *lockfuncarg, size_t sz, void **dmat) in common_bus_dma_tag_create() argument 64 *dmat = NULL; in common_bus_dma_tag_create() 113 *dmat = common; in common_bus_dma_tag_create() 125 void *lockfuncarg, bus_dma_tag_t *dmat) in bus_dma_tag_create() argument 137 flags, lockfunc, lockfuncarg, dmat); in bus_dma_tag_create() 142 flags, lockfunc, lockfuncarg, dmat); in bus_dma_tag_create() 148 bus_dma_template_clone(bus_dma_template_t *t, bus_dma_tag_t dmat) in bus_dma_template_clone() argument 152 if (t == NULL || dmat == NULL) in bus_dma_template_clone() 155 common = (struct bus_dma_tag_common *)dmat; in bus_dma_template_clone() 170 bus_dma_tag_destroy(bus_dma_tag_t dmat) in bus_dma_tag_destroy() argument [all …]
|
/freebsd/sys/riscv/riscv/ |
H A D | busdma_bounce.c | 93 bus_dma_tag_t dmat; member 106 static void _bus_dmamap_count_pages(bus_dma_tag_t dmat, bus_dmamap_t map, 108 static void _bus_dmamap_count_phys(bus_dma_tag_t dmat, bus_dmamap_t map, 113 #define dmat_alignment(dmat) ((dmat)->common.alignment) argument 114 #define dmat_bounce_flags(dmat) ((dmat)->bounce_flags) argument 115 #define dmat_boundary(dmat) ((dmat)->common.boundary) argument 116 #define dmat_flags(dmat) ((dma argument 117 dmat_lockfunc(dmat) global() argument 118 dmat_lockfuncarg(dmat) global() argument 129 bounce_bus_dma_tag_create(bus_dma_tag_t parent,bus_size_t alignment,bus_addr_t boundary,bus_addr_t lowaddr,bus_addr_t highaddr,bus_size_t maxsize,int nsegments,bus_size_t maxsegsz,int flags,bus_dma_lock_t * lockfunc,void * lockfuncarg,bus_dma_tag_t * dmat) bounce_bus_dma_tag_create() argument 197 bounce_bus_dma_tag_destroy(bus_dma_tag_t dmat) bounce_bus_dma_tag_destroy() argument 216 alloc_dmamap(bus_dma_tag_t dmat,int flags) alloc_dmamap() argument 238 bounce_bus_dmamap_create(bus_dma_tag_t dmat,int flags,bus_dmamap_t * mapp) bounce_bus_dmamap_create() argument 321 bounce_bus_dmamap_destroy(bus_dma_tag_t dmat,bus_dmamap_t map) bounce_bus_dmamap_destroy() argument 349 bounce_bus_dmamem_alloc(bus_dma_tag_t dmat,void ** vaddr,int flags,bus_dmamap_t * mapp) bounce_bus_dmamem_alloc() argument 462 bounce_bus_dmamem_free(bus_dma_tag_t dmat,void * vaddr,bus_dmamap_t map) bounce_bus_dmamem_free() argument 483 _bus_dmamap_count_phys(bus_dma_tag_t dmat,bus_dmamap_t map,vm_paddr_t buf,bus_size_t buflen,int flags) _bus_dmamap_count_phys() argument 510 _bus_dmamap_count_pages(bus_dma_tag_t dmat,bus_dmamap_t map,pmap_t pmap,void * buf,bus_size_t buflen,int flags) _bus_dmamap_count_pages() argument 554 _bus_dmamap_addseg(bus_dma_tag_t dmat,bus_dmamap_t map,bus_addr_t curaddr,bus_size_t sgsize,bus_dma_segment_t * segs,int * segp) _bus_dmamap_addseg() argument 596 bounce_bus_dmamap_load_phys(bus_dma_tag_t dmat,bus_dmamap_t map,vm_paddr_t buf,bus_size_t buflen,int flags,bus_dma_segment_t * segs,int * segp) bounce_bus_dmamap_load_phys() argument 666 bounce_bus_dmamap_load_buffer(bus_dma_tag_t dmat,bus_dmamap_t map,void * buf,bus_size_t buflen,pmap_t pmap,int flags,bus_dma_segment_t * segs,int * segp) bounce_bus_dmamap_load_buffer() argument 763 bounce_bus_dmamap_waitok(bus_dma_tag_t dmat,bus_dmamap_t map,struct memdesc * mem,bus_dmamap_callback_t * callback,void * callback_arg) bounce_bus_dmamap_waitok() argument 776 bounce_bus_dmamap_complete(bus_dma_tag_t dmat,bus_dmamap_t map,bus_dma_segment_t * segs,int nsegs,int error) bounce_bus_dmamap_complete() argument 789 bounce_bus_dmamap_unload(bus_dma_tag_t dmat,bus_dmamap_t map) bounce_bus_dmamap_unload() argument 871 bounce_bus_dmamap_sync(bus_dma_tag_t dmat,bus_dmamap_t map,bus_dmasync_op_t op) bounce_bus_dmamap_sync() argument [all...] |
H A D | busdma_machdep.c | 56 void *lockfuncarg, size_t sz, void **dmat) in common_bus_dma_tag_create() argument 63 *dmat = NULL; in common_bus_dma_tag_create() 107 *dmat = common; in common_bus_dma_tag_create() 119 void *lockfuncarg, bus_dma_tag_t *dmat) in bus_dma_tag_create() argument 131 flags, lockfunc, lockfuncarg, dmat); in bus_dma_tag_create() 136 flags, lockfunc, lockfuncarg, dmat); in bus_dma_tag_create() 142 bus_dma_template_clone(bus_dma_template_t *t, bus_dma_tag_t dmat) in bus_dma_template_clone() argument 146 if (t == NULL || dmat == NULL) in bus_dma_template_clone() 149 common = (struct bus_dma_tag_common *)dmat; in bus_dma_template_clone() 164 bus_dma_tag_destroy(bus_dma_tag_t dmat) in bus_dma_tag_destroy() argument [all …]
|
/freebsd/sys/arm/arm/ |
H A D | busdma_machdep.c | 143 bus_dma_tag_t dmat; member 158 static void _bus_dmamap_count_pages(bus_dma_tag_t dmat, pmap_t pmap, 160 static void _bus_dmamap_count_phys(bus_dma_tag_t dmat, bus_dmamap_t map, 170 #define dmat_alignment(dmat) ((dmat)->alignment) argument 171 #define dmat_bounce_flags(dmat) (0) argument 172 #define dmat_boundary(dmat) ((dmat)->boundary) argument 173 #define dmat_flags(dmat) ((dmat) argument 174 dmat_lockfunc(dmat) global() argument 175 dmat_lockfuncarg(dmat) global() argument 262 exclusion_bounce(bus_dma_tag_t dmat) exclusion_bounce() argument 272 alignment_bounce(bus_dma_tag_t dmat,bus_addr_t addr) alignment_bounce() argument 313 might_bounce(bus_dma_tag_t dmat,bus_dmamap_t map,bus_addr_t addr,bus_size_t size) might_bounce() argument 337 must_bounce(bus_dma_tag_t dmat,bus_dmamap_t map,bus_addr_t paddr,bus_size_t size) must_bounce() argument 361 bus_dma_tag_create(bus_dma_tag_t parent,bus_size_t alignment,bus_addr_t boundary,bus_addr_t lowaddr,bus_addr_t highaddr,bus_dma_filter_t * filter,void * filterarg,bus_size_t maxsize,int nsegments,bus_size_t maxsegsz,int flags,bus_dma_lock_t * lockfunc,void * lockfuncarg,bus_dma_tag_t * dmat) bus_dma_tag_create() argument 473 bus_dma_template_clone(bus_dma_template_t * t,bus_dma_tag_t dmat) bus_dma_template_clone() argument 492 bus_dma_tag_set_domain(bus_dma_tag_t dmat,int domain) bus_dma_tag_set_domain() argument 499 bus_dma_tag_destroy(bus_dma_tag_t dmat) bus_dma_tag_destroy() argument 516 allocate_bz_and_pages(bus_dma_tag_t dmat,bus_dmamap_t mapp) allocate_bz_and_pages() argument 557 allocate_map(bus_dma_tag_t dmat,int mflags) allocate_map() argument 587 bus_dmamap_create(bus_dma_tag_t dmat,int flags,bus_dmamap_t * mapp) bus_dmamap_create() argument 624 bus_dmamap_destroy(bus_dma_tag_t dmat,bus_dmamap_t map) bus_dmamap_destroy() argument 649 bus_dmamem_alloc(bus_dma_tag_t dmat,void ** vaddr,int flags,bus_dmamap_t * mapp) bus_dmamem_alloc() argument 749 bus_dmamem_free(bus_dma_tag_t dmat,void * vaddr,bus_dmamap_t map) bus_dmamem_free() argument 778 _bus_dmamap_count_phys(bus_dma_tag_t dmat,bus_dmamap_t map,vm_paddr_t buf,bus_size_t buflen,int flags) _bus_dmamap_count_phys() argument 809 _bus_dmamap_count_pages(bus_dma_tag_t dmat,pmap_t pmap,bus_dmamap_t map,void * buf,bus_size_t buflen,int flags) _bus_dmamap_count_pages() argument 849 _bus_dmamap_addseg(bus_dma_tag_t dmat,bus_dmamap_t map,bus_addr_t curaddr,bus_size_t sgsize,bus_dma_segment_t * segs,int * segp) _bus_dmamap_addseg() argument 891 _bus_dmamap_load_phys(bus_dma_tag_t dmat,bus_dmamap_t map,vm_paddr_t buf,bus_size_t buflen,int flags,bus_dma_segment_t * segs,int * segp) _bus_dmamap_load_phys() argument 967 _bus_dmamap_load_ma(bus_dma_tag_t dmat,bus_dmamap_t map,struct vm_page ** ma,bus_size_t tlen,int ma_offs,int flags,bus_dma_segment_t * segs,int * segp) _bus_dmamap_load_ma() argument 981 _bus_dmamap_load_buffer(bus_dma_tag_t dmat,bus_dmamap_t map,void * buf,bus_size_t buflen,pmap_t pmap,int flags,bus_dma_segment_t * segs,int * segp) _bus_dmamap_load_buffer() argument 1097 _bus_dmamap_waitok(bus_dma_tag_t dmat,bus_dmamap_t map,struct memdesc * mem,bus_dmamap_callback_t * callback,void * callback_arg) _bus_dmamap_waitok() argument 1108 _bus_dmamap_complete(bus_dma_tag_t dmat,bus_dmamap_t map,bus_dma_segment_t * segs,int nsegs,int error) _bus_dmamap_complete() argument 1121 bus_dmamap_unload(bus_dma_tag_t dmat,bus_dmamap_t map) bus_dmamap_unload() argument 1220 bus_dmamap_sync(bus_dma_tag_t dmat,bus_dmamap_t map,bus_dmasync_op_t op) bus_dmamap_sync() argument [all...] |
/freebsd/sys/x86/include/ |
H A D | bus_dma.h | 40 bus_dma_id_mapped(bus_dma_tag_t dmat, vm_paddr_t buf, bus_size_t buflen) in bus_dma_id_mapped() argument 44 tc = (struct bus_dma_tag_common *)dmat; in bus_dma_id_mapped() 45 return (tc->impl->id_mapped(dmat, buf, buflen)); in bus_dma_id_mapped() 53 bus_dmamap_create(bus_dma_tag_t dmat, int flags, bus_dmamap_t *mapp) in bus_dmamap_create() argument 57 tc = (struct bus_dma_tag_common *)dmat; in bus_dmamap_create() 58 return (tc->impl->map_create(dmat, flags, mapp)); in bus_dmamap_create() 66 bus_dmamap_destroy(bus_dma_tag_t dmat, bus_dmamap_t map) in bus_dmamap_destroy() argument 70 tc = (struct bus_dma_tag_common *)dmat; in bus_dmamap_destroy() 71 return (tc->impl->map_destroy(dmat, map)); in bus_dmamap_destroy() 80 bus_dmamem_alloc(bus_dma_tag_t dmat, voi argument 94 bus_dmamem_free(bus_dma_tag_t dmat,void * vaddr,bus_dmamap_t map) bus_dmamem_free() argument 106 bus_dmamap_unload(bus_dma_tag_t dmat,bus_dmamap_t map) bus_dmamap_unload() argument 117 bus_dmamap_sync(bus_dma_tag_t dmat,bus_dmamap_t map,bus_dmasync_op_t op) bus_dmamap_sync() argument 132 _bus_dmamap_load_phys(bus_dma_tag_t dmat,bus_dmamap_t map,vm_paddr_t buf,bus_size_t buflen,int flags,bus_dma_segment_t * segs,int * segp) _bus_dmamap_load_phys() argument 143 _bus_dmamap_load_ma(bus_dma_tag_t dmat,bus_dmamap_t map,struct vm_page ** ma,bus_size_t tlen,int ma_offs,int flags,bus_dma_segment_t * segs,int * segp) _bus_dmamap_load_ma() argument 159 _bus_dmamap_load_buffer(bus_dma_tag_t dmat,bus_dmamap_t map,void * buf,bus_size_t buflen,struct pmap * pmap,int flags,bus_dma_segment_t * segs,int * segp) _bus_dmamap_load_buffer() argument 171 _bus_dmamap_waitok(bus_dma_tag_t dmat,bus_dmamap_t map,struct memdesc * mem,bus_dmamap_callback_t * callback,void * callback_arg) _bus_dmamap_waitok() argument 183 _bus_dmamap_complete(bus_dma_tag_t dmat,bus_dmamap_t map,bus_dma_segment_t * segs,int nsegs,int error) _bus_dmamap_complete() argument 194 _bus_dmamap_load_kmsan(bus_dma_tag_t dmat,bus_dmamap_t map,struct memdesc * mem) _bus_dmamap_load_kmsan() argument [all...] |
H A D | busdma_impl.h | 54 void *lockfuncarg, bus_dma_tag_t *dmat); 55 int (*tag_destroy)(bus_dma_tag_t dmat); 58 int (*map_create)(bus_dma_tag_t dmat, int flags, bus_dmamap_t *mapp); 59 int (*map_destroy)(bus_dma_tag_t dmat, bus_dmamap_t map); 60 int (*mem_alloc)(bus_dma_tag_t dmat, void** vaddr, int flags, 62 void (*mem_free)(bus_dma_tag_t dmat, void *vaddr, bus_dmamap_t map); 63 int (*load_ma)(bus_dma_tag_t dmat, bus_dmamap_t map, 66 int (*load_phys)(bus_dma_tag_t dmat, bus_dmamap_t map, 69 int (*load_buffer)(bus_dma_tag_t dmat, bus_dmamap_t map, 72 void (*map_waitok)(bus_dma_tag_t dmat, bus_dmamap_t map, [all …]
|
/freebsd/sys/riscv/include/ |
H A D | bus_dma.h | 15 bus_dmamap_create(bus_dma_tag_t dmat, int flags, bus_dmamap_t *mapp) in bus_dmamap_create() argument 19 tc = (struct bus_dma_tag_common *)dmat; in bus_dmamap_create() 20 return (tc->impl->map_create(dmat, flags, mapp)); in bus_dmamap_create() 28 bus_dmamap_destroy(bus_dma_tag_t dmat, bus_dmamap_t map) in bus_dmamap_destroy() argument 32 tc = (struct bus_dma_tag_common *)dmat; in bus_dmamap_destroy() 33 return (tc->impl->map_destroy(dmat, map)); in bus_dmamap_destroy() 42 bus_dmamem_alloc(bus_dma_tag_t dmat, void** vaddr, int flags, in bus_dmamem_alloc() argument 47 tc = (struct bus_dma_tag_common *)dmat; in bus_dmamem_alloc() 48 return (tc->impl->mem_alloc(dmat, vaddr, flags, mapp)); in bus_dmamem_alloc() 56 bus_dmamem_free(bus_dma_tag_t dmat, voi argument 68 bus_dmamap_unload(bus_dma_tag_t dmat,bus_dmamap_t map) bus_dmamap_unload() argument 77 bus_dmamap_sync(bus_dma_tag_t dmat,bus_dmamap_t map,bus_dmasync_op_t op) bus_dmamap_sync() argument 86 _bus_dmamap_load_phys(bus_dma_tag_t dmat,bus_dmamap_t map,vm_paddr_t buf,bus_size_t buflen,int flags,bus_dma_segment_t * segs,int * segp) _bus_dmamap_load_phys() argument 97 _bus_dmamap_load_ma(bus_dma_tag_t dmat,bus_dmamap_t map,struct vm_page ** ma,bus_size_t tlen,int ma_offs,int flags,bus_dma_segment_t * segs,int * segp) _bus_dmamap_load_ma() argument 109 _bus_dmamap_load_buffer(bus_dma_tag_t dmat,bus_dmamap_t map,void * buf,bus_size_t buflen,struct pmap * pmap,int flags,bus_dma_segment_t * segs,int * segp) _bus_dmamap_load_buffer() argument 121 _bus_dmamap_waitok(bus_dma_tag_t dmat,bus_dmamap_t map,struct memdesc * mem,bus_dmamap_callback_t * callback,void * callback_arg) _bus_dmamap_waitok() argument 131 _bus_dmamap_complete(bus_dma_tag_t dmat,bus_dmamap_t map,bus_dma_segment_t * segs,int nsegs,int error) _bus_dmamap_complete() argument [all...] |
H A D | bus_dma_impl.h | 51 void *lockfuncarg, bus_dma_tag_t *dmat); 52 int (*tag_destroy)(bus_dma_tag_t dmat); 53 int (*map_create)(bus_dma_tag_t dmat, int flags, bus_dmamap_t *mapp); 54 int (*map_destroy)(bus_dma_tag_t dmat, bus_dmamap_t map); 55 int (*mem_alloc)(bus_dma_tag_t dmat, void** vaddr, int flags, 57 void (*mem_free)(bus_dma_tag_t dmat, void *vaddr, bus_dmamap_t map); 58 int (*load_ma)(bus_dma_tag_t dmat, bus_dmamap_t map, 61 int (*load_phys)(bus_dma_tag_t dmat, bus_dmamap_t map, 64 int (*load_buffer)(bus_dma_tag_t dmat, bus_dmamap_t map, 67 void (*map_waitok)(bus_dma_tag_t dmat, bus_dmamap_t map, [all …]
|
/freebsd/sys/kern/ |
H A D | subr_bus_dma.c | 102 _bus_dmamap_load_vlist(bus_dma_tag_t dmat, bus_dmamap_t map, in _bus_dmamap_load_vlist() argument 122 error = _bus_dmamap_load_buffer(dmat, map, addr, ds_len, pmap, in _bus_dmamap_load_vlist() 134 _bus_dmamap_load_plist(bus_dma_tag_t dmat, bus_dmamap_t map, in _bus_dmamap_load_plist() argument 141 error = _bus_dmamap_load_phys(dmat, map, in _bus_dmamap_load_plist() 154 _bus_dmamap_load_mbuf_epg(bus_dma_tag_t dmat, bus_dmamap_t map, in _bus_dmamap_load_mbuf_epg() argument 176 error = _bus_dmamap_load_buffer(dmat, map, in _bus_dmamap_load_mbuf_epg() 194 error = _bus_dmamap_load_phys(dmat, map, in _bus_dmamap_load_mbuf_epg() 202 error = _bus_dmamap_load_buffer(dmat, map, in _bus_dmamap_load_mbuf_epg() 213 _bus_dmamap_load_single_mbuf(bus_dma_tag_t dmat, bus_dmamap_t map, in _bus_dmamap_load_single_mbuf() argument 220 error = _bus_dmamap_load_mbuf_epg(dmat, map, m, segs, nsegs, in _bus_dmamap_load_single_mbuf() [all …]
|
H A D | subr_busdma_bounce.c | 104 static int reserve_bounce_pages(bus_dma_tag_t dmat, bus_dmamap_t map, 108 _bus_dmamap_reserve_pages(bus_dma_tag_t dmat, bus_dmamap_t map, int flags) in _bus_dmamap_reserve_pages() argument 115 if (reserve_bounce_pages(dmat, map, 0) != 0) { in _bus_dmamap_reserve_pages() 121 if (reserve_bounce_pages(dmat, map, 1) != 0) { in _bus_dmamap_reserve_pages() 123 bz = dmat->bounce_zone; in _bus_dmamap_reserve_pages() 155 addr_needs_bounce(bus_dma_tag_t dmat, bus_addr_t paddr) in addr_needs_bounce() argument 158 if (paddr > dmat_lowaddr(dmat) && paddr <= dmat_highaddr(dmat)) in addr_needs_bounce() 160 if (!vm_addr_align_ok(paddr, dmat_alignment(dmat))) in addr_needs_bounce() 167 alloc_bounce_zone(bus_dma_tag_t dmat) in alloc_bounce_zone() argument 174 if ((dmat_alignment(dmat) <= bz->alignment) && in alloc_bounce_zone() [all …]
|
/freebsd/sys/sys/ |
H A D | bus_dma.h | 183 void *lockfuncarg, bus_dma_tag_t *dmat); 257 int bus_dma_template_tag(bus_dma_template_t *t, bus_dma_tag_t *dmat); 258 void bus_dma_template_clone(bus_dma_template_t *t, bus_dma_tag_t dmat); 268 int bus_dma_tag_set_domain(bus_dma_tag_t dmat, int domain); 270 int bus_dma_tag_destroy(bus_dma_tag_t dmat); 288 int bus_dmamap_load(bus_dma_tag_t dmat, bus_dmamap_t map, void *buf, 296 int bus_dmamap_load_mbuf(bus_dma_tag_t dmat, bus_dmamap_t map, 301 int bus_dmamap_load_mbuf_sg(bus_dma_tag_t dmat, bus_dmamap_t map, 309 int bus_dmamap_load_uio(bus_dma_tag_t dmat, bus_dmamap_t map, 317 int bus_dmamap_load_ccb(bus_dma_tag_t dmat, bus_dmamap_t map, union ccb *ccb, [all …]
|
H A D | bus_dma_internal.h | 38 bus_dma_segment_t *_bus_dmamap_complete(bus_dma_tag_t dmat, 42 int _bus_dmamap_load_buffer(bus_dma_tag_t dmat, bus_dmamap_t map, 46 int _bus_dmamap_load_ma(bus_dma_tag_t dmat, bus_dmamap_t map, 50 int _bus_dmamap_load_phys(bus_dma_tag_t dmat, bus_dmamap_t map, 54 void _bus_dmamap_waitok(bus_dma_tag_t dmat, bus_dmamap_t map,
|
/freebsd/sys/arm64/include/ |
H A D | bus_dma_impl.h | 52 void *lockfuncarg, bus_dma_tag_t *dmat); 53 int (*tag_destroy)(bus_dma_tag_t dmat); 56 int (*map_create)(bus_dma_tag_t dmat, int flags, bus_dmamap_t *mapp); 57 int (*map_destroy)(bus_dma_tag_t dmat, bus_dmamap_t map); 58 int (*mem_alloc)(bus_dma_tag_t dmat, void** vaddr, int flags, 60 void (*mem_free)(bus_dma_tag_t dmat, void *vaddr, bus_dmamap_t map); 61 int (*load_ma)(bus_dma_tag_t dmat, bus_dmamap_t map, 64 int (*load_phys)(bus_dma_tag_t dmat, bus_dmamap_t map, 67 int (*load_buffer)(bus_dma_tag_t dmat, bus_dmamap_t map, 70 void (*map_waitok)(bus_dma_tag_t dmat, bus_dmamap_t map, [all …]
|
/freebsd/sys/dev/iommu/ |
H A D | busdma_iommu.c | 362 bus_dma_lock_t *lockfunc, void *lockfuncarg, bus_dma_tag_t *dmat) in iommu_bus_dma_tag_create() argument 367 *dmat = NULL; in iommu_bus_dma_tag_create() 381 *dmat = (bus_dma_tag_t)newtag; in iommu_bus_dma_tag_create() 390 iommu_bus_dma_tag_set_domain(bus_dma_tag_t dmat) in iommu_bus_dma_tag_set_domain() argument 399 struct bus_dma_tag_iommu *dmat; in iommu_bus_dma_tag_destroy() local 405 dmat = (struct bus_dma_tag_iommu *)dmat1; in iommu_bus_dma_tag_destroy() 407 if (dmat != NULL) { in iommu_bus_dma_tag_destroy() 408 if (dmat->map_count != 0) { in iommu_bus_dma_tag_destroy() 412 ctx = dmat->ctx; in iommu_bus_dma_tag_destroy() 413 if (dmat == ctx->tag) { in iommu_bus_dma_tag_destroy() [all …]
|
/freebsd/sys/dev/firewire/ |
H A D | fwdma.c | 76 /*parent*/ fc->dmat, in fwdma_malloc() 118 fwdma_malloc_size(bus_dma_tag_t dmat, bus_dmamap_t *dmamap, in fwdma_malloc_size() argument 123 if (bus_dmamem_alloc(dmat, &v_addr, flag, dmamap)) { in fwdma_malloc_size() 127 bus_dmamap_load(dmat, *dmamap, v_addr, size, in fwdma_malloc_size() 133 fwdma_free_size(bus_dma_tag_t dmat, bus_dmamap_t dmamap, in fwdma_free_size() argument 136 bus_dmamap_unload(dmat, dmamap); in fwdma_free_size() 137 bus_dmamem_free(dmat, vaddr, dmamap); in fwdma_free_size() 168 /*parent*/ fc->dmat, in fwdma_malloc_multiseg()
|
/freebsd/sys/dev/dpaa2/ |
H A D | dpaa2_buf.h | 44 bus_dma_tag_t dmat; member 58 (__buf)->dmat = (__tag); \ 82 KASSERT((__buf)->dmat != NULL, ("%s: no DMA tag?", __func__)); \ 92 KASSERT((__sgt)->dmat != NULL, ("%s: no S/G DMA tag?", __func__)); \ 106 KASSERT((__buf)->dmat != NULL, ("%s: no DMA tag?", __func__)); \ 116 KASSERT((__sgt)->dmat != NULL, ("%s: no S/G DMA tag?", __func__)); \ 141 KASSERT((__buf)->dmat != NULL, ("%s: no DMA tag?", __func__)); \ 153 KASSERT((__buf)->dmat != NULL, ("%s: no DMA tag?", __func__)); \
|
H A D | dpaa2_buf.c | 145 error = bus_dmamap_create(buf->dmat, 0, &buf->dmap); in dpaa2_buf_seed_rxb() 166 error = bus_dmamap_load_mbuf_sg(buf->dmat, buf->dmap, buf->m, &buf->seg, in dpaa2_buf_seed_rxb() 185 bus_dmamap_sync(buf->dmat, buf->dmap, BUS_DMASYNC_PREREAD); in dpaa2_buf_seed_rxb() 198 (void)bus_dmamap_destroy(buf->dmat, buf->dmap); in dpaa2_buf_seed_rxb() 217 error = bus_dmamap_create(buf->dmat, 0, &buf->dmap); in dpaa2_buf_seed_txb() 227 error = bus_dmamem_alloc(sgt->dmat, (void **)&sgt->vaddr, in dpaa2_buf_seed_txb() 242 (void)bus_dmamap_destroy(buf->dmat, buf->dmap); in dpaa2_buf_seed_txb()
|
H A D | dpaa2_channel.c | 260 bus_dmamem_free(ch->store.dmat, ch->store.vaddr, ch->store.dmap); in dpaa2_chan_setup() 262 if (ch->store.dmat != NULL) { in dpaa2_chan_setup() 263 bus_dma_tag_destroy(ch->store.dmat); in dpaa2_chan_setup() 265 ch->store.dmat = NULL; in dpaa2_chan_setup() 471 &buf->dmat); in dpaa2_chan_alloc_storage() 477 error = bus_dmamem_alloc(buf->dmat, (void **)&buf->vaddr, in dpaa2_chan_alloc_storage() 486 error = bus_dmamap_load(buf->dmat, buf->dmap, buf->vaddr, size, in dpaa2_chan_alloc_storage() 494 bus_dmamap_sync(buf->dmat, buf->dmap, in dpaa2_chan_alloc_storage() 502 bus_dmamem_free(buf->dmat, buf->vaddr, buf->dmap); in dpaa2_chan_alloc_storage() 504 bus_dma_tag_destroy(buf->dmat); in dpaa2_chan_alloc_storage() [all …]
|
/freebsd/sys/compat/linuxkpi/common/src/ |
H A D | linux_pci.c | 139 bus_dma_tag_t dmat; member 154 if (priv->dmat) in linux_pdev_dma_uninit() 155 bus_dma_tag_destroy(priv->dmat); in linux_pdev_dma_uninit() 201 if (priv->dmat) { in linux_dma_tag_init() 205 bus_dma_tag_destroy(priv->dmat); in linux_dma_tag_init() 220 &priv->dmat); in linux_dma_tag_init() 1374 bus_dma_tag_t dmat; member 1424 bus_dma_tag_t dmat) in linux_dma_map_phys_common() argument 1439 if (bus_dma_id_mapped(dmat, phys, len)) in linux_dma_map_phys_common() 1446 obj->dmat = dmat; in linux_dma_map_phys_common() [all …]
|
/freebsd/sys/dev/sound/pci/ |
H A D | hdspe.c | 193 /*dmatag*/&sc->dmat) != 0) { in hdspe_alloc_resources() 201 if (bus_dmamem_alloc(sc->dmat, (void **)&sc->pbuf, BUS_DMA_WAITOK, in hdspe_alloc_resources() 207 if (bus_dmamap_load(sc->dmat, sc->pmap, sc->pbuf, sc->bufsize, in hdspe_alloc_resources() 214 if (bus_dmamem_alloc(sc->dmat, (void **)&sc->rbuf, BUS_DMA_WAITOK, in hdspe_alloc_resources() 220 if (bus_dmamap_load(sc->dmat, sc->rmap, sc->rbuf, sc->bufsize, in hdspe_alloc_resources() 639 bus_dmamap_unload(sc->dmat, sc->rmap); in hdspe_dmafree() 640 bus_dmamap_unload(sc->dmat, sc->pmap); in hdspe_dmafree() 641 bus_dmamem_free(sc->dmat, sc->rbuf, sc->rmap); in hdspe_dmafree() 642 bus_dmamem_free(sc->dmat, sc->pbuf, sc->pmap); in hdspe_dmafree() 666 if (sc->dmat) in hdspe_detach() [all …]
|
/freebsd/stand/kshim/ |
H A D | bsd_kernel.c | 46 void *lockfuncarg, bus_dma_tag_t *dmat) in bus_dma_tag_create() argument 51 if (*dmat == NULL) in bus_dma_tag_create() 56 *dmat = ret; in bus_dma_tag_create() 62 bus_dmamem_alloc(bus_dma_tag_t dmat, void** vaddr, int flags, in bus_dmamem_alloc() argument 67 addr = malloc(dmat->maxsize + dmat->alignment, XXX, XXX); in bus_dmamem_alloc() 72 addr = (void*)(((uintptr_t)addr + dmat->alignment - 1) & ~(dmat->alignment - 1)); in bus_dmamem_alloc() 79 bus_dmamap_load(bus_dma_tag_t dmat, bus_dmamap_t map, void *buf, in bus_dmamap_load() argument 94 bus_dmamap_sync(bus_dma_tag_t dmat, bus_dmamap_t map, int flags) in bus_dmamap_sync() argument 101 bus_dmamem_free(bus_dma_tag_t dmat, void *vaddr, bus_dmamap_t map) in bus_dmamem_free() argument 108 bus_dma_tag_destroy(bus_dma_tag_t dmat) in bus_dma_tag_destroy() argument [all …]
|