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);
863 size_t alloc_size = mem->slots[index].alloc_size;
885 alloc_size -= tlb_offset;
887 if (size > alloc_size) {
890 alloc_size, size);
891 size = alloc_size;
1005 * @alloc_size: Total requested size of the bounce buffer,
1016 int area_index, phys_addr_t orig_addr, size_t alloc_size,
1025 unsigned int nslots = nr_slots(alloc_size), stride;
1043 if (!alloc_align_mask && !iotlb_align_mask && alloc_size >= PAGE_SIZE)
1103 pool->slots[i].alloc_size = alloc_size - (offset +
1130 * @alloc_size: Total requested size of the bounce buffer,
1141 int cpu_offset, phys_addr_t orig_addr, size_t alloc_size,
1155 orig_addr, alloc_size,
1170 * @alloc_size: Total requested size of the bounce buffer,
1181 size_t alloc_size, unsigned int alloc_align_mask,
1192 if (alloc_size > IO_TLB_SEGSIZE * IO_TLB_SIZE)
1197 index = swiotlb_search_area(dev, cpu, i, orig_addr, alloc_size,
1208 nslabs = nr_slots(alloc_size);
1216 alloc_size, alloc_align_mask);
1257 size_t alloc_size, unsigned int alloc_align_mask,
1268 alloc_size, alloc_align_mask);
1344 size_t mapping_size, size_t alloc_size,
1365 if (mapping_size > alloc_size) {
1367 mapping_size, alloc_size);
1373 alloc_size + offset, alloc_align_mask, &pool);
1378 alloc_size, mem->nslabs, mem_used(mem));
1391 for (i = 0; i < nr_slots(alloc_size + offset); i++)
1418 nslots = nr_slots(mem->slots[index].alloc_size + offset);
1443 mem->slots[i].alloc_size = 0;