Lines Matching defs:offset
829 * swiotlb_align_offset() - Get required offset into an IO TLB allocation.
834 * Return the minimum offset from the start of an IO TLB allocation which is
845 * offset (in bytes) from the first such padding slot is returned.
873 * "offset" returned by swiotlb_align_offset() is non-zero, and the
874 * tlb_addr is pointing within the first "offset" bytes of the second
876 * valid for tlb_addr to be pointing within the first "offset" bytes
895 unsigned int offset = orig_addr & ~PAGE_MASK;
901 sz = min_t(size_t, PAGE_SIZE - offset, size);
906 memcpy_from_page(vaddr, page, offset, sz);
908 memcpy_to_page(page, offset, vaddr, sz);
914 offset = 0;
1026 unsigned int offset = swiotlb_align_offset(dev, 0, orig_addr);
1103 pool->slots[i].alloc_size = alloc_size - (offset +
1349 unsigned int offset;
1371 offset = swiotlb_align_offset(dev, alloc_align_mask, orig_addr);
1373 alloc_size + offset, alloc_align_mask, &pool);
1387 pad_slots = offset >> IO_TLB_SHIFT;
1388 offset &= (IO_TLB_SIZE - 1);
1391 for (i = 0; i < nr_slots(alloc_size + offset); i++)
1393 tlb_addr = slot_addr(pool->start, index) + offset;
1411 unsigned int offset = swiotlb_align_offset(dev, 0, tlb_addr);
1416 index = (tlb_addr - offset - mem->start) >> IO_TLB_SHIFT;
1418 nslots = nr_slots(mem->slots[index].alloc_size + offset);