Lines Matching refs:ma
554 struct bus_dmamap_iommu *map, vm_page_t *ma, int offset, bus_size_t buflen, in iommu_bus_dmamap_load_something1() argument
592 offset, e_flags, gas_flags, ma + idx, &entry); in iommu_bus_dmamap_load_something1()
641 struct bus_dmamap_iommu *map, vm_page_t *ma, int offset, bus_size_t buflen, in iommu_bus_dmamap_load_something() argument
654 error = iommu_bus_dmamap_load_something1(tag, map, ma, offset, in iommu_bus_dmamap_load_something()
683 struct vm_page **ma, bus_size_t tlen, int ma_offs, int flags, in iommu_bus_dmamap_load_ma() argument
691 return (iommu_bus_dmamap_load_something(tag, map, ma, ma_offs, tlen, in iommu_bus_dmamap_load_ma()
702 vm_page_t *ma, fma; in iommu_bus_dmamap_load_phys() local
713 ma = malloc(sizeof(vm_page_t) * ma_cnt, M_DEVBUF, mflags); in iommu_bus_dmamap_load_phys()
714 if (ma == NULL) in iommu_bus_dmamap_load_phys()
719 ma[i] = PHYS_TO_VM_PAGE(paddr); in iommu_bus_dmamap_load_phys()
720 if (ma[i] == NULL || VM_PAGE_TO_PHYS(ma[i]) != paddr) { in iommu_bus_dmamap_load_phys()
730 free(ma, M_DEVBUF); in iommu_bus_dmamap_load_phys()
736 ma[i] = &fma[i]; in iommu_bus_dmamap_load_phys()
739 error = iommu_bus_dmamap_load_something(tag, map, ma, offset, buflen, in iommu_bus_dmamap_load_phys()
742 free(ma, M_DEVBUF); in iommu_bus_dmamap_load_phys()
753 vm_page_t *ma, fma; in iommu_bus_dmamap_load_buffer() local
764 ma = malloc(sizeof(vm_page_t) * ma_cnt, M_DEVBUF, mflags); in iommu_bus_dmamap_load_buffer()
765 if (ma == NULL) in iommu_bus_dmamap_load_buffer()
773 ma[i] = PHYS_TO_VM_PAGE(paddr); in iommu_bus_dmamap_load_buffer()
774 if (ma[i] == NULL || VM_PAGE_TO_PHYS(ma[i]) != paddr) { in iommu_bus_dmamap_load_buffer()
784 free(ma, M_DEVBUF); in iommu_bus_dmamap_load_buffer()
789 ma[i] = &fma[i]; in iommu_bus_dmamap_load_buffer()
792 error = iommu_bus_dmamap_load_something(tag, map, ma, offset, buflen, in iommu_bus_dmamap_load_buffer()
794 free(ma, M_DEVBUF); in iommu_bus_dmamap_load_buffer()
1013 vm_page_t *ma; in bus_dma_iommu_load_ident() local
1039 ma = malloc(sizeof(vm_page_t) * atop(length), M_TEMP, waitok ? in bus_dma_iommu_load_ident()
1041 if (ma == NULL) { in bus_dma_iommu_load_ident()
1046 ma[i] = vm_page_getfake(entry->start + PAGE_SIZE * i, in bus_dma_iommu_load_ident()
1051 IOMMU_MAP_ENTRY_MAP, waitok ? IOMMU_MF_CANWAIT : 0, ma); in bus_dma_iommu_load_ident()
1060 vm_page_putfake(ma[i]); in bus_dma_iommu_load_ident()
1061 free(ma, M_TEMP); in bus_dma_iommu_load_ident()