Lines Matching refs:size
156 unsigned long size; in swiotlb_size_or_default() local
158 size = io_tlb_nslabs << IO_TLB_SHIFT; in swiotlb_size_or_default()
160 return size ? size : (IO_TLB_DEFAULT_SIZE); in swiotlb_size_or_default()
419 size_t size, enum dma_data_direction dir) in swiotlb_bounce() argument
431 while (size) { in swiotlb_bounce()
432 sz = min_t(size_t, PAGE_SIZE - offset, size); in swiotlb_bounce()
443 size -= sz; in swiotlb_bounce()
449 memcpy(vaddr, phys_to_virt(orig_addr), size); in swiotlb_bounce()
451 memcpy(phys_to_virt(orig_addr), vaddr, size); in swiotlb_bounce()
669 size_t size, enum dma_data_direction dir, in swiotlb_tbl_sync_single() argument
685 size, DMA_FROM_DEVICE); in swiotlb_tbl_sync_single()
692 size, DMA_TO_DEVICE); in swiotlb_tbl_sync_single()
705 dma_addr_t swiotlb_map(struct device *dev, phys_addr_t paddr, size_t size, in swiotlb_map() argument
711 trace_swiotlb_bounced(dev, phys_to_dma(dev, paddr), size, in swiotlb_map()
714 swiotlb_addr = swiotlb_tbl_map_single(dev, paddr, size, size, dir, in swiotlb_map()
721 if (unlikely(!dma_capable(dev, dma_addr, size, true))) { in swiotlb_map()
722 swiotlb_tbl_unmap_single(dev, swiotlb_addr, size, size, dir, in swiotlb_map()
726 &dma_addr, size, *dev->dma_mask, dev->bus_dma_limit); in swiotlb_map()
731 arch_sync_dma_for_device(swiotlb_addr, size, dir); in swiotlb_map()