Lines Matching refs:off
849 unsigned long off = 0; in obj_idx_to_offset() local
852 off = page->index; in obj_idx_to_offset()
854 return off + obj_idx * class_size; in obj_idx_to_offset()
914 unsigned long off = 0; in init_zspage() local
931 page->index = off; in init_zspage()
934 link = (struct link_free *)vaddr + off / sizeof(*link); in init_zspage()
936 while ((off += class->size) < PAGE_SIZE) { in init_zspage()
950 off %= PAGE_SIZE; in init_zspage()
1053 struct page *pages[2], int off, int size) in __zs_map_object() argument
1057 return area->vm_addr + off; in __zs_map_object()
1061 struct page *pages[2], int off, int size) in __zs_unmap_object() argument
1091 struct page *pages[2], int off, int size) in __zs_map_object() argument
1104 sizes[0] = PAGE_SIZE - off; in __zs_map_object()
1109 memcpy(buf, addr + off, sizes[0]); in __zs_map_object()
1119 struct page *pages[2], int off, int size) in __zs_unmap_object() argument
1133 off += ZS_HANDLE_SIZE; in __zs_unmap_object()
1136 sizes[0] = PAGE_SIZE - off; in __zs_unmap_object()
1141 memcpy(addr + off, buf, sizes[0]); in __zs_unmap_object()
1265 unsigned long obj, obj_idx, off; in zs_map_object() local
1290 off = obj_idx_to_offset(page, obj_idx, class->size); in zs_map_object()
1294 if (off + class->size <= PAGE_SIZE) { in zs_map_object()
1297 ret = area->vm_addr + off; in zs_map_object()
1306 ret = __zs_map_object(area, pages, off, class->size); in zs_map_object()
1318 unsigned long obj, obj_idx, off; in zs_unmap_object() local
1331 off = obj_idx_to_offset(page, obj_idx, class->size); in zs_unmap_object()
1334 if (off + class->size <= PAGE_SIZE) in zs_unmap_object()
1343 __zs_unmap_object(area, pages, off, class->size); in zs_unmap_object()