Lines Matching refs:alloc_size
69 * @alloc_size: Size of the allocated buffer.
77 size_t alloc_size;
292 mem->slots[i].alloc_size = 0;
360 size_t alloc_size;
398 alloc_size = PAGE_ALIGN(array_size(sizeof(*mem->slots), nslabs));
399 mem->slots = memblock_alloc(alloc_size, PAGE_SIZE);
402 __func__, alloc_size, PAGE_SIZE);
864 size_t alloc_size = mem->slots[index].alloc_size;
886 alloc_size -= tlb_offset;
888 if (size > alloc_size) {
891 alloc_size, size);
892 size = alloc_size;
1006 * @alloc_size: Total requested size of the bounce buffer,
1017 int area_index, phys_addr_t orig_addr, size_t alloc_size,
1026 unsigned int nslots = nr_slots(alloc_size), stride;
1044 if (!alloc_align_mask && !iotlb_align_mask && alloc_size >= PAGE_SIZE)
1104 pool->slots[i].alloc_size = alloc_size - (offset +
1131 * @alloc_size: Total requested size of the bounce buffer,
1142 int cpu_offset, phys_addr_t orig_addr, size_t alloc_size,
1156 orig_addr, alloc_size,
1171 * @alloc_size: Total requested size of the bounce buffer,
1182 size_t alloc_size, unsigned int alloc_align_mask,
1193 if (alloc_size > IO_TLB_SEGSIZE * IO_TLB_SIZE)
1198 index = swiotlb_search_area(dev, cpu, i, orig_addr, alloc_size,
1209 nslabs = nr_slots(alloc_size);
1217 alloc_size, alloc_align_mask);
1258 size_t alloc_size, unsigned int alloc_align_mask,
1269 alloc_size, alloc_align_mask);
1454 nslots = nr_slots(mem->slots[index].alloc_size + offset);
1479 mem->slots[i].alloc_size = 0;