Lines Matching refs:alloc_size
203 size_t alloc_size; in swiotlb_init_with_tbl() local
216 alloc_size = PAGE_ALIGN(io_tlb_nslabs * sizeof(int)); in swiotlb_init_with_tbl()
217 io_tlb_list = memblock_alloc(alloc_size, PAGE_SIZE); in swiotlb_init_with_tbl()
220 __func__, alloc_size, PAGE_SIZE); in swiotlb_init_with_tbl()
222 alloc_size = PAGE_ALIGN(io_tlb_nslabs * sizeof(phys_addr_t)); in swiotlb_init_with_tbl()
223 io_tlb_orig_addr = memblock_alloc(alloc_size, PAGE_SIZE); in swiotlb_init_with_tbl()
226 __func__, alloc_size, PAGE_SIZE); in swiotlb_init_with_tbl()
449 size_t alloc_size, in swiotlb_tbl_map_single() argument
468 if (mapping_size > alloc_size) { in swiotlb_tbl_map_single()
470 mapping_size, alloc_size); in swiotlb_tbl_map_single()
491 nslots = ALIGN(alloc_size, 1 << IO_TLB_SHIFT) >> IO_TLB_SHIFT; in swiotlb_tbl_map_single()
492 if (alloc_size >= PAGE_SIZE) in swiotlb_tbl_map_single()
557 alloc_size, io_tlb_nslabs, tmp_io_tlb_used); in swiotlb_tbl_map_single()
581 size_t mapping_size, size_t alloc_size, in swiotlb_tbl_unmap_single() argument
585 int i, count, nslots = ALIGN(alloc_size, 1 << IO_TLB_SHIFT) >> IO_TLB_SHIFT; in swiotlb_tbl_unmap_single()