Lines Matching refs:sz
179 unsigned long i, order, sz, num_tsb_entries; in iommu_table_init() local
191 sz = num_tsb_entries / 8; in iommu_table_init()
192 sz = (sz + 7UL) & ~7UL; in iommu_table_init()
193 iommu->arena.map = kmalloc_node(sz, GFP_KERNEL, numa_node); in iommu_table_init()
198 memset(iommu->arena.map, 0, sz); in iommu_table_init()
256 int sz = IOMMU_NUM_CTXS - lowest; in iommu_alloc_ctx() local
257 int n = find_next_zero_bit(iommu->ctx_bitmap, sz, lowest); in iommu_alloc_ctx()
259 if (unlikely(n == sz)) { in iommu_alloc_ctx()
354 static dma_addr_t dma_4u_map_single(struct device *dev, void *ptr, size_t sz, in dma_4u_map_single() argument
372 npages = IO_PAGE_ALIGN(oaddr + sz) - (oaddr & IO_PAGE_MASK); in dma_4u_map_single()
476 size_t sz, enum dma_data_direction direction) in dma_4u_unmap_single() argument
492 npages = IO_PAGE_ALIGN(bus_addr + sz) - (bus_addr & IO_PAGE_MASK); in dma_4u_unmap_single()
743 dma_addr_t bus_addr, size_t sz, in dma_4u_sync_single_for_cpu() argument
758 npages = IO_PAGE_ALIGN(bus_addr + sz) - (bus_addr & IO_PAGE_MASK); in dma_4u_sync_single_for_cpu()