Lines Matching refs:tlb
329 int (*remap)(void *tlb, unsigned long nslabs)) in swiotlb_memblock_alloc() argument
332 void *tlb; in swiotlb_memblock_alloc() local
340 tlb = memblock_alloc(bytes, PAGE_SIZE); in swiotlb_memblock_alloc()
342 tlb = memblock_alloc_low(bytes, PAGE_SIZE); in swiotlb_memblock_alloc()
344 if (!tlb) { in swiotlb_memblock_alloc()
350 if (remap && remap(tlb, nslabs) < 0) { in swiotlb_memblock_alloc()
351 memblock_free(tlb, PAGE_ALIGN(bytes)); in swiotlb_memblock_alloc()
356 return tlb; in swiotlb_memblock_alloc()
364 int (*remap)(void *tlb, unsigned long nslabs)) in swiotlb_init_remap() argument
370 void *tlb; in swiotlb_init_remap() local
382 while ((tlb = swiotlb_memblock_alloc(nslabs, flags, remap)) == NULL) { in swiotlb_init_remap()
410 swiotlb_init_io_tlb_mem(mem, __pa(tlb), nslabs, flags, false, in swiotlb_init_remap()
428 int (*remap)(void *tlb, unsigned long nslabs)) in swiotlb_init_late() argument