Lines Matching refs:alloc_size

197 		mem->slots[i].alloc_size = 0;  in swiotlb_init_io_tlb_mem()
205 size_t alloc_size; in swiotlb_init_with_tbl() local
214 alloc_size = PAGE_ALIGN(array_size(sizeof(*mem->slots), nslabs)); in swiotlb_init_with_tbl()
215 mem->slots = memblock_alloc(alloc_size, PAGE_SIZE); in swiotlb_init_with_tbl()
218 __func__, alloc_size, PAGE_SIZE); in swiotlb_init_with_tbl()
372 size_t alloc_size = mem->slots[index].alloc_size; in swiotlb_bounce() local
390 if (tlb_offset > alloc_size) { in swiotlb_bounce()
393 alloc_size, size, tlb_offset); in swiotlb_bounce()
398 alloc_size -= tlb_offset; in swiotlb_bounce()
400 if (size > alloc_size) { in swiotlb_bounce()
403 alloc_size, size); in swiotlb_bounce()
404 size = alloc_size; in swiotlb_bounce()
462 size_t alloc_size, unsigned int alloc_align_mask) in swiotlb_find_slots() argument
471 unsigned int nslots = nr_slots(alloc_size), stride; in swiotlb_find_slots()
484 if (alloc_size >= PAGE_SIZE) in swiotlb_find_slots()
522 mem->slots[i].alloc_size = in swiotlb_find_slots()
523 alloc_size - (offset + ((i - index) << IO_TLB_SHIFT)); in swiotlb_find_slots()
544 size_t mapping_size, size_t alloc_size, in swiotlb_tbl_map_single() argument
560 if (mapping_size > alloc_size) { in swiotlb_tbl_map_single()
562 mapping_size, alloc_size); in swiotlb_tbl_map_single()
567 alloc_size + offset, alloc_align_mask); in swiotlb_tbl_map_single()
572 alloc_size, mem->nslabs, mem->used); in swiotlb_tbl_map_single()
581 for (i = 0; i < nr_slots(alloc_size + offset); i++) in swiotlb_tbl_map_single()
596 int nslots = nr_slots(mem->slots[index].alloc_size + offset); in swiotlb_release_slots()
618 mem->slots[i].alloc_size = 0; in swiotlb_release_slots()