Lines Matching refs:start
222 pr_info("mapped [mem %pa-%pa] (%luMB)\n", &mem->start, &mem->end, in swiotlb_print_info()
247 phys_addr_t paddr = mem->start + swiotlb_unencrypted_base; in swiotlb_mem_remap()
278 vaddr = phys_to_virt(mem->start); in swiotlb_update_mem_attributes()
287 static void swiotlb_init_io_tlb_mem(struct io_tlb_mem *mem, phys_addr_t start, in swiotlb_init_io_tlb_mem() argument
291 void *vaddr = phys_to_virt(start); in swiotlb_init_io_tlb_mem()
295 mem->start = start; in swiotlb_init_io_tlb_mem()
296 mem->end = mem->start + bytes; in swiotlb_init_io_tlb_mem()
519 tbl_vaddr = (unsigned long)phys_to_virt(mem->start); in swiotlb_exit()
520 tbl_size = PAGE_ALIGN(mem->end - mem->start); in swiotlb_exit()
533 memblock_free_late(mem->start, tbl_size); in swiotlb_exit()
555 int index = (tlb_addr - mem->start) >> IO_TLB_SHIFT; in swiotlb_bounce()
559 unsigned char *vaddr = mem->vaddr + tlb_addr - mem->start; in swiotlb_bounce()
621 static inline phys_addr_t slot_addr(phys_addr_t start, phys_addr_t idx) in slot_addr() argument
623 return start + (idx << IO_TLB_SHIFT); in slot_addr()
655 phys_to_dma_unencrypted(dev, mem->start) & boundary_mask; in swiotlb_do_find_slots()
741 int start = raw_smp_processor_id() & (mem->nareas - 1); in swiotlb_find_slots() local
742 int i = start, index; in swiotlb_find_slots()
751 } while (i != start); in swiotlb_find_slots()
809 tlb_addr = slot_addr(mem->start, index) + offset; in swiotlb_tbl_map_single()
826 int index = (tlb_addr - offset - mem->start) >> IO_TLB_SHIFT; in swiotlb_release_slots()
1006 tlb_addr = slot_addr(mem->start, index); in swiotlb_alloc()