Lines Matching refs:off
986 unsigned long off = 0; in init_zspage() local
994 set_first_obj_offset(page, off); in init_zspage()
997 link = (struct link_free *)vaddr + off / sizeof(*link); in init_zspage()
999 while ((off += class->size) < PAGE_SIZE) { in init_zspage()
1021 off %= PAGE_SIZE; in init_zspage()
1139 struct page *pages[2], int off, int size) in __zs_map_object() argument
1143 return area->vm_addr + off; in __zs_map_object()
1147 struct page *pages[2], int off, int size) in __zs_unmap_object() argument
1177 struct page *pages[2], int off, int size) in __zs_map_object() argument
1190 sizes[0] = PAGE_SIZE - off; in __zs_map_object()
1195 memcpy(buf, addr + off, sizes[0]); in __zs_map_object()
1205 struct page *pages[2], int off, int size) in __zs_unmap_object() argument
1218 off += ZS_HANDLE_SIZE; in __zs_unmap_object()
1220 sizes[0] = PAGE_SIZE - off; in __zs_unmap_object()
1225 memcpy(addr + off, buf, sizes[0]); in __zs_unmap_object()
1296 unsigned long obj, off; in zs_map_object() local
1325 off = (class->size * obj_idx) & ~PAGE_MASK; in zs_map_object()
1329 if (off + class->size <= PAGE_SIZE) { in zs_map_object()
1332 ret = area->vm_addr + off; in zs_map_object()
1341 ret = __zs_map_object(area, pages, off, class->size); in zs_map_object()
1354 unsigned long obj, off; in zs_unmap_object() local
1367 off = (class->size * obj_idx) & ~PAGE_MASK; in zs_unmap_object()
1370 if (off + class->size <= PAGE_SIZE) in zs_unmap_object()
1379 __zs_unmap_object(area, pages, off, class->size); in zs_unmap_object()