Home
last modified time | relevance | path

Searched refs:obj_size (Results 1 – 13 of 13) sorted by relevance

/freebsd-13.1/sys/dev/mlx4/mlx4_core/
H A Dmlx4_icm.c254 (MLX4_TABLE_CHUNK_SIZE / table->obj_size); in mlx4_table_get()
292 i = (obj & (table->num_obj - 1)) / (MLX4_TABLE_CHUNK_SIZE / table->obj_size); in mlx4_table_put()
321 idx = (u64) (obj & (table->num_obj - 1)) * table->obj_size; in mlx4_table_find()
357 int inc = MLX4_TABLE_CHUNK_SIZE / table->obj_size; in mlx4_table_get_range()
383 for (i = start; i <= end; i += MLX4_TABLE_CHUNK_SIZE / table->obj_size) in mlx4_table_put_range()
388 u64 virt, int obj_size, u32 nobj, int reserved, in mlx4_init_icm_table() argument
397 obj_per_chunk = MLX4_TABLE_CHUNK_SIZE / obj_size; in mlx4_init_icm_table()
406 table->obj_size = obj_size; in mlx4_init_icm_table()
411 size = (u64) nobj * obj_size; in mlx4_init_icm_table()
412 for (i = 0; i * MLX4_TABLE_CHUNK_SIZE < reserved * obj_size; ++i) { in mlx4_init_icm_table()
H A Dicm.h81 u64 virt, int obj_size, u32 nobj, int reserved,
H A Dmlx4.h266 int obj_size; member
/freebsd-13.1/sys/dev/mthca/
H A Dmthca_memfree.c223 int i = (obj & (table->num_obj - 1)) * table->obj_size / MTHCA_TABLE_CHUNK_SIZE; in mthca_table_get()
263 i = (obj & (table->num_obj - 1)) * table->obj_size / MTHCA_TABLE_CHUNK_SIZE; in mthca_table_put()
289 idx = (obj & (table->num_obj - 1)) * table->obj_size; in mthca_table_find()
323 int inc = MTHCA_TABLE_CHUNK_SIZE / table->obj_size; in mthca_table_get_range()
351 for (i = start; i <= end; i += MTHCA_TABLE_CHUNK_SIZE / table->obj_size) in mthca_table_put_range()
356 u64 virt, int obj_size, in mthca_alloc_icm_table() argument
366 obj_per_chunk = MTHCA_TABLE_CHUNK_SIZE / obj_size; in mthca_alloc_icm_table()
376 table->obj_size = obj_size; in mthca_alloc_icm_table()
384 for (i = 0; i * MTHCA_TABLE_CHUNK_SIZE < reserved * obj_size; ++i) { in mthca_alloc_icm_table()
386 if ((i + 1) * MTHCA_TABLE_CHUNK_SIZE > nobj * obj_size) in mthca_alloc_icm_table()
[all …]
H A Dmthca_memfree.h65 int obj_size; member
85 u64 virt, int obj_size,
/freebsd-13.1/sys/contrib/openzfs/module/os/linux/spl/
H A Dspl-kmem-cache.c271 uint32_t obj_size; in spl_slab_alloc() local
285 obj_size = spl_obj_size(skc); in spl_slab_alloc()
535 obj_size = spl_obj_size(skc); in spl_slab_size()
540 tgt_objs = (tgt_size - sks_size) / obj_size; in spl_slab_size()
542 tgt_objs = (max_size - sks_size) / obj_size; in spl_slab_size()
543 tgt_size = (tgt_objs * obj_size) + sks_size; in spl_slab_size()
563 uint32_t obj_size = spl_obj_size(skc); in spl_magazine_size() local
570 if (obj_size > (PAGE_SIZE * 256)) in spl_magazine_size()
572 else if (obj_size > (PAGE_SIZE * 32)) in spl_magazine_size()
574 else if (obj_size > (PAGE_SIZE)) in spl_magazine_size()
[all …]
/freebsd-13.1/sys/xdr/
H A Dxdr_reference.c120 xdr_pointer(XDR *xdrs, char **objpp, u_int obj_size, xdrproc_t xdr_obj) in xdr_pointer() argument
133 return (xdr_reference(xdrs,objpp,obj_size,xdr_obj)); in xdr_pointer()
/freebsd-13.1/lib/libc/xdr/
H A Dxdr_reference.c129 xdr_pointer(XDR *xdrs, char **objpp, u_int obj_size, xdrproc_t xdr_obj) in xdr_pointer() argument
142 return (xdr_reference(xdrs,objpp,obj_size,xdr_obj)); in xdr_pointer()
/freebsd-13.1/sys/kern/
H A Dkern_sendfile.c565 struct vnode **vp_res, struct shmfd **shmfd_res, off_t *obj_size, in sendfile_getobj() argument
605 *obj_size = obj->un_pager.vnp.vnp_size; in sendfile_getobj()
610 *obj_size = va.va_size; in sendfile_getobj()
617 *obj_size = shmfd->shm_size; in sendfile_getobj()
694 off_t off, sbytes, rem, obj_size, nobj_size; in vn_sendfile() local
736 rem = nbytes ? omin(nbytes, obj_size - offset) : obj_size - offset; in vn_sendfile()
889 if (nobj_size != obj_size) { in vn_sendfile()
890 obj_size = nobj_size; in vn_sendfile()
891 rem = nbytes ? omin(nbytes + offset, obj_size) : in vn_sendfile()
892 obj_size; in vn_sendfile()
[all …]
H A Duipc_shm.c240 uiomove_object(vm_object_t obj, off_t obj_size, struct uio *uio) in uiomove_object() argument
248 if (obj_size <= uio->uio_offset) in uiomove_object()
250 len = MIN(obj_size - uio->uio_offset, resid); in uiomove_object()
/freebsd-13.1/contrib/ofed/opensm/complib/
H A Dcl_pool.c213 size_t obj_size; in cl_qcpool_grow() local
228 obj_size = 0; in cl_qcpool_grow()
230 obj_size += p_pool->component_sizes[i]; in cl_qcpool_grow()
234 malloc(sizeof(cl_list_item_t) + (obj_size * obj_count)); in cl_qcpool_grow()
241 sizeof(cl_list_item_t) + (obj_size * obj_count)); in cl_qcpool_grow()
308 p_objects += obj_size; in cl_qcpool_grow()
/freebsd-13.1/sys/sys/
H A Duio.h99 int uiomove_object(struct vm_object *obj, off_t obj_size, struct uio *uio);
/freebsd-13.1/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_vnops_os.c4056 off_t start, end, obj_size; in zfs_getpages() local
4094 obj_size = object->un_pager.vnp.vnp_size; in zfs_getpages()
4096 if (IDX_TO_OFF(ma[count - 1]->pindex) >= obj_size) { in zfs_getpages()
4112 if (end + IDX_TO_OFF(pgsin_a) >= obj_size) in zfs_getpages()
4113 pgsin_a = OFF_TO_IDX(round_page(obj_size) - end); in zfs_getpages()
4124 &pgsin_a, MIN(end, obj_size) - (end - PAGE_SIZE)); in zfs_getpages()