Home
last modified time | relevance | path

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

/linux-5.19.10/kernel/dma/
Dswiotlb.c395 static void swiotlb_bounce(struct device *dev, phys_addr_t tlb_addr, size_t size, in swiotlb_bounce() argument
399 int index = (tlb_addr - mem->start) >> IO_TLB_SHIFT; in swiotlb_bounce()
403 unsigned char *vaddr = mem->vaddr + tlb_addr - mem->start; in swiotlb_bounce()
409 tlb_offset = tlb_addr & (IO_TLB_SIZE - 1); in swiotlb_bounce()
584 phys_addr_t tlb_addr; in swiotlb_tbl_map_single() local
615 tlb_addr = slot_addr(mem->start, index) + offset; in swiotlb_tbl_map_single()
623 swiotlb_bounce(dev, tlb_addr, mapping_size, DMA_TO_DEVICE); in swiotlb_tbl_map_single()
624 return tlb_addr; in swiotlb_tbl_map_single()
627 static void swiotlb_release_slots(struct device *dev, phys_addr_t tlb_addr) in swiotlb_release_slots() argument
631 unsigned int offset = swiotlb_align_offset(dev, tlb_addr); in swiotlb_release_slots()
[all …]
/linux-5.19.10/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,