Lines Matching refs:off
844 unsigned long off = 0; in obj_idx_to_offset() local
847 off = page->index; in obj_idx_to_offset()
849 return off + obj_idx * class_size; in obj_idx_to_offset()
909 unsigned long off = 0; in init_zspage() local
926 page->index = off; in init_zspage()
929 link = (struct link_free *)vaddr + off / sizeof(*link); in init_zspage()
931 while ((off += class->size) < PAGE_SIZE) { in init_zspage()
945 off %= PAGE_SIZE; in init_zspage()
1048 struct page *pages[2], int off, int size) in __zs_map_object() argument
1052 return area->vm_addr + off; in __zs_map_object()
1056 struct page *pages[2], int off, int size) in __zs_unmap_object() argument
1086 struct page *pages[2], int off, int size) in __zs_map_object() argument
1099 sizes[0] = PAGE_SIZE - off; in __zs_map_object()
1104 memcpy(buf, addr + off, sizes[0]); in __zs_map_object()
1114 struct page *pages[2], int off, int size) in __zs_unmap_object() argument
1128 off += ZS_HANDLE_SIZE; in __zs_unmap_object()
1131 sizes[0] = PAGE_SIZE - off; in __zs_unmap_object()
1136 memcpy(addr + off, buf, sizes[0]); in __zs_unmap_object()
1260 unsigned long obj, obj_idx, off; in zs_map_object() local
1285 off = obj_idx_to_offset(page, obj_idx, class->size); in zs_map_object()
1289 if (off + class->size <= PAGE_SIZE) { in zs_map_object()
1292 ret = area->vm_addr + off; in zs_map_object()
1301 ret = __zs_map_object(area, pages, off, class->size); in zs_map_object()
1313 unsigned long obj, obj_idx, off; in zs_unmap_object() local
1326 off = obj_idx_to_offset(page, obj_idx, class->size); in zs_unmap_object()
1329 if (off + class->size <= PAGE_SIZE) in zs_unmap_object()
1338 __zs_unmap_object(area, pages, off, class->size); in zs_unmap_object()