Searched refs:swiotlbsize (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/arch/mips/netlogic/common/
H A Dnlm-dma.c97 size_t swiotlbsize; plat_swiotlb_setup() local
100 swiotlbsize = 1 << 20; /* 1 MB for now */ plat_swiotlb_setup()
101 swiotlb_nslabs = swiotlbsize >> IO_TLB_SHIFT; plat_swiotlb_setup()
103 swiotlbsize = swiotlb_nslabs << IO_TLB_SHIFT; plat_swiotlb_setup()
105 nlm_swiotlb = alloc_bootmem_low_pages(swiotlbsize); plat_swiotlb_setup()
/linux-4.1.27/arch/mips/cavium-octeon/
H A Ddma-octeon.c267 size_t swiotlbsize; plat_swiotlb_setup() local
289 swiotlbsize = PAGE_SIZE; plat_swiotlb_setup()
298 swiotlbsize = addr_size / 4; plat_swiotlb_setup()
299 if (swiotlbsize > 64 * (1<<20)) plat_swiotlb_setup()
300 swiotlbsize = 64 * (1<<20); plat_swiotlb_setup()
306 swiotlbsize = 64 * (1<<20); plat_swiotlb_setup()
312 swiotlbsize = 64 * (1<<20); plat_swiotlb_setup()
314 swiotlb_nslabs = swiotlbsize >> IO_TLB_SHIFT; plat_swiotlb_setup()
316 swiotlbsize = swiotlb_nslabs << IO_TLB_SHIFT; plat_swiotlb_setup()
318 octeon_swiotlb = alloc_bootmem_low_pages(swiotlbsize); plat_swiotlb_setup()

Completed in 216 milliseconds