Lines Matching refs:dmat
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()
416 iommu_free_ctx_locked(iommu, dmat->ctx); in iommu_bus_dma_tag_destroy()
418 free(dmat->segments, M_IOMMU_DMAMAP); in iommu_bus_dma_tag_destroy()
419 free(dmat, M_DEVBUF); in iommu_bus_dma_tag_destroy()
422 CTR3(KTR_BUSDMA, "%s tag %p error %d", __func__, dmat, error); in iommu_bus_dma_tag_destroy()
427 iommu_bus_dma_id_mapped(bus_dma_tag_t dmat, vm_paddr_t buf, bus_size_t buflen) in iommu_bus_dma_id_mapped() argument
434 iommu_bus_dmamap_create(bus_dma_tag_t dmat, int flags, bus_dmamap_t *mapp) in iommu_bus_dmamap_create() argument
439 tag = (struct bus_dma_tag_iommu *)dmat; in iommu_bus_dmamap_create()
468 iommu_bus_dmamap_destroy(bus_dma_tag_t dmat, bus_dmamap_t map1) in iommu_bus_dmamap_destroy() argument
473 tag = (struct bus_dma_tag_iommu *)dmat; in iommu_bus_dmamap_destroy()
490 iommu_bus_dmamem_alloc(bus_dma_tag_t dmat, void** vaddr, int flags, in iommu_bus_dmamem_alloc() argument
498 error = iommu_bus_dmamap_create(dmat, flags, mapp); in iommu_bus_dmamem_alloc()
507 tag = (struct bus_dma_tag_iommu *)dmat; in iommu_bus_dmamem_alloc()
523 iommu_bus_dmamap_destroy(dmat, *mapp); in iommu_bus_dmamem_alloc()
531 iommu_bus_dmamem_free(bus_dma_tag_t dmat, void *vaddr, bus_dmamap_t map1) in iommu_bus_dmamem_free() argument
536 tag = (struct bus_dma_tag_iommu *)dmat; in iommu_bus_dmamem_free()
549 iommu_bus_dmamap_destroy(dmat, map1); in iommu_bus_dmamem_free()
682 iommu_bus_dmamap_load_ma(bus_dma_tag_t dmat, bus_dmamap_t map1, in iommu_bus_dmamap_load_ma() argument
689 tag = (struct bus_dma_tag_iommu *)dmat; in iommu_bus_dmamap_load_ma()
696 iommu_bus_dmamap_load_phys(bus_dma_tag_t dmat, bus_dmamap_t map1, in iommu_bus_dmamap_load_phys() argument
706 tag = (struct bus_dma_tag_iommu *)dmat; in iommu_bus_dmamap_load_phys()
747 iommu_bus_dmamap_load_buffer(bus_dma_tag_t dmat, bus_dmamap_t map1, void *buf, in iommu_bus_dmamap_load_buffer() argument
757 tag = (struct bus_dma_tag_iommu *)dmat; in iommu_bus_dmamap_load_buffer()
800 iommu_bus_dmamap_waitok(bus_dma_tag_t dmat, bus_dmamap_t map1, in iommu_bus_dmamap_waitok() argument
809 map->tag = (struct bus_dma_tag_iommu *)dmat; in iommu_bus_dmamap_waitok()
815 iommu_bus_dmamap_complete(bus_dma_tag_t dmat, bus_dmamap_t map1, in iommu_bus_dmamap_complete() argument
821 tag = (struct bus_dma_tag_iommu *)dmat; in iommu_bus_dmamap_complete()
852 iommu_bus_dmamap_unload(bus_dma_tag_t dmat, bus_dmamap_t map1) in iommu_bus_dmamap_unload() argument
860 tag = (struct bus_dma_tag_iommu *)dmat; in iommu_bus_dmamap_unload()
885 iommu_bus_dmamap_sync(bus_dma_tag_t dmat, bus_dmamap_t map1, in iommu_bus_dmamap_sync() argument
1004 bus_dma_iommu_load_ident(bus_dma_tag_t dmat, bus_dmamap_t map1, in bus_dma_iommu_load_ident() argument
1024 tc = (struct bus_dma_tag_common *)dmat; in bus_dma_iommu_load_ident()
1028 tag = (struct bus_dma_tag_iommu *)dmat; in bus_dma_iommu_load_ident()