Lines Matching defs:io_tlb_default_mem
89 static struct io_tlb_mem io_tlb_default_mem = {
90 .lock = __SPIN_LOCK_UNLOCKED(io_tlb_default_mem.lock),
91 .pools = LIST_HEAD_INIT(io_tlb_default_mem.pools),
92 .dyn_alloc = __WORK_INITIALIZER(io_tlb_default_mem.dyn_alloc,
98 static struct io_tlb_mem io_tlb_default_mem;
231 struct io_tlb_pool *mem = &io_tlb_default_mem.defpool;
260 struct io_tlb_pool *mem = &io_tlb_default_mem.defpool;
357 struct io_tlb_pool *mem = &io_tlb_default_mem.defpool;
368 io_tlb_default_mem.force_bounce =
373 io_tlb_default_mem.can_grow = true;
375 io_tlb_default_mem.phys_limit = virt_to_phys(high_memory - 1);
377 io_tlb_default_mem.phys_limit = ARCH_LOW_ADDRESS_LIMIT;
414 add_mem_pool(&io_tlb_default_mem, mem);
433 struct io_tlb_pool *mem = &io_tlb_default_mem.defpool;
441 if (io_tlb_default_mem.nslabs)
447 io_tlb_default_mem.force_bounce = swiotlb_force_bounce;
451 io_tlb_default_mem.can_grow = true;
453 io_tlb_default_mem.phys_limit = zone_dma_limit;
455 io_tlb_default_mem.phys_limit = max(DMA_BIT_MASK(32), zone_dma_limit);
457 io_tlb_default_mem.phys_limit = virt_to_phys(high_memory - 1);
513 add_mem_pool(&io_tlb_default_mem, mem);
527 struct io_tlb_pool *mem = &io_tlb_default_mem.defpool;
822 dev->dma_io_tlb_mem = &io_tlb_default_mem;
1626 return io_tlb_default_mem.nslabs;
1644 io_tlb_default_mem.can_grow = false;
1646 return io_tlb_default_mem.defpool.start;
1657 return io_tlb_default_mem.phys_limit;
1659 return io_tlb_default_mem.defpool.end - 1;
1717 mem->debugfs = debugfs_create_dir(dirname, io_tlb_default_mem.debugfs);
1734 swiotlb_create_debugfs_files(&io_tlb_default_mem, "swiotlb");
1858 dev->dma_io_tlb_mem = &io_tlb_default_mem;