Lines Matching defs:tlb
320 int (*remap)(void *tlb, unsigned long nslabs))
323 void *tlb;
331 tlb = memblock_alloc(bytes, PAGE_SIZE);
333 tlb = memblock_alloc_low(bytes, PAGE_SIZE);
335 if (!tlb) {
336 pr_warn("%s: Failed to allocate %zu bytes tlb structure\n",
341 if (remap && remap(tlb, nslabs) < 0) {
342 memblock_free(tlb, PAGE_ALIGN(bytes));
347 return tlb;
355 int (*remap)(void *tlb, unsigned long nslabs))
361 void *tlb;
385 while ((tlb = swiotlb_memblock_alloc(nslabs, flags, remap)) == NULL) {
413 swiotlb_init_io_tlb_pool(mem, __pa(tlb), nslabs, false, nareas);
431 int (*remap)(void *tlb, unsigned long nslabs))
689 struct page *tlb;
705 while (!(tlb = swiotlb_alloc_tlb(dev, tlb_size, phys_limit, gfp))) {
719 swiotlb_init_io_tlb_pool(pool, page_to_phys(tlb), nslabs, true, nareas);
723 swiotlb_free_tlb(page_address(tlb), tlb_size);
1798 /* Set Per-device io tlb area to one */