Lines Matching refs:obj_size

50 	return div_u64((xfarray_idx_t)pos, array->obj_size);
59 return idx * array->obj_size;
73 size_t obj_size,
80 ASSERT(obj_size < PAGE_SIZE);
87 array = kzalloc(sizeof(struct xfarray) + obj_size, XCHK_GFP_FLAGS);
92 array->obj_size = obj_size;
94 if (is_power_of_2(obj_size))
95 array->obj_size_log = ilog2(obj_size);
139 return xfile_load(array->xfile, ptr, array->obj_size,
155 error = xfile_load(array->xfile, temp, array->obj_size, pos);
186 memset(temp, 0, array->obj_size);
187 error = xfile_store(array->xfile, temp, array->obj_size, pos);
212 ret = xfile_store(array->xfile, ptr, array->obj_size,
227 return !memchr_inv(ptr, 0, array->obj_size);
247 pos += array->obj_size) {
248 error = xfile_load(array->xfile, temp, array->obj_size,
253 error = xfile_store(array->xfile, ptr, array->obj_size,
292 loff_t end_pos = *pos + array->obj_size - 1;
299 if (pgoff != 0 && pgoff + array->obj_size - 1 < PAGE_SIZE)
326 new_pos = roundup_64(new_pos, array->obj_size);
364 pos += array->obj_size;
435 return round_up(array->obj_size, 8) + sizeof(xfarray_idx_t);
475 XFARRAY_ISORT_NR * array->obj_size);
560 sort(scratch, hi - lo + 1, si->array->obj_size, si->cmp_fn, NULL);
597 sort(startp, hi - lo + 1, si->array->obj_size, si->cmp_fn, NULL);
615 return xfarray_sortinfo_pivot(si) + si->array->obj_size;
716 memcpy(pivot, recp, si->array->obj_size);
828 si->array->obj_size, XFILE_ALLOC);
833 folio_pos(si->folio) + si->array->obj_size - 1);
850 error = xfile_load(si->array->xfile, temp, si->array->obj_size,
988 memcpy(scratch, p, si->array->obj_size);
1014 memcpy(scratch, p, si->array->obj_size);