Home
last modified time | relevance | path

Searched refs:tlb_addr (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/kernel/dma/
Dswiotlb.c511 static void swiotlb_bounce(struct device *dev, phys_addr_t tlb_addr, size_t size, in swiotlb_bounce() argument
515 int index = (tlb_addr - mem->start) >> IO_TLB_SHIFT; in swiotlb_bounce()
519 unsigned char *vaddr = mem->vaddr + tlb_addr - mem->start; in swiotlb_bounce()
525 tlb_offset = tlb_addr & (IO_TLB_SIZE - 1); in swiotlb_bounce()
735 phys_addr_t tlb_addr; in swiotlb_tbl_map_single() local
769 tlb_addr = slot_addr(mem->start, index) + offset; in swiotlb_tbl_map_single()
777 swiotlb_bounce(dev, tlb_addr, mapping_size, DMA_TO_DEVICE); in swiotlb_tbl_map_single()
778 return tlb_addr; in swiotlb_tbl_map_single()
781 static void swiotlb_release_slots(struct device *dev, phys_addr_t tlb_addr) in swiotlb_release_slots() argument
785 unsigned int offset = swiotlb_align_offset(dev, tlb_addr); in swiotlb_release_slots()
[all …]
/linux-6.1.9/include/linux/
Dswiotlb.h50 phys_addr_t tlb_addr,
55 void swiotlb_sync_single_for_device(struct device *dev, phys_addr_t tlb_addr,
57 void swiotlb_sync_single_for_cpu(struct device *dev, phys_addr_t tlb_addr,