Home
last modified time | relevance | path

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

/src/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
/src/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,
/src/sys/ofed/include/rdma/
H A Duverbs_types.h110 size_t obj_size; member
189 .obj_size = (_obj_size) + \
201 .obj_size = (_size) + \
/src/sys/contrib/openzfs/module/os/linux/spl/
H A Dspl-kmem-cache.c254 uint32_t obj_size; in spl_slab_alloc() local
268 obj_size = spl_obj_size(skc); in spl_slab_alloc()
271 void *obj = base + spl_sks_size(skc) + (i * obj_size); in spl_slab_alloc()
517 uint32_t sks_size, obj_size, max_size, tgt_size, tgt_objs; in spl_slab_size() local
520 obj_size = spl_obj_size(skc); in spl_slab_size()
522 tgt_size = (spl_kmem_cache_obj_per_slab * obj_size + sks_size); in spl_slab_size()
525 tgt_objs = (tgt_size - sks_size) / obj_size; in spl_slab_size()
527 tgt_objs = (max_size - sks_size) / obj_size; in spl_slab_size()
528 tgt_size = (tgt_objs * obj_size) + sks_size; in spl_slab_size()
548 uint32_t obj_size = spl_obj_size(skc); in spl_magazine_size() local
[all …]
/src/sys/kern/
H A Dkern_sendfile.c521 struct vnode **vp_res, struct shmfd **shmfd_res, off_t *obj_size) in sendfile_getobj() argument
557 *obj_size = obj->un_pager.vnp.vnp_size; in sendfile_getobj()
559 error = vn_getsize_locked(vp, obj_size, td->td_ucred); in sendfile_getobj()
568 *obj_size = shmfd->shm_size; in sendfile_getobj()
716 off_t off, sbytes, rem, obj_size, nobj_size; in vn_sendfile() local
733 error = sendfile_getobj(td, fp, &obj, &vp, &shmfd, &obj_size); in vn_sendfile()
751 rem = nbytes ? omin(nbytes, obj_size - offset) : obj_size - offset; in vn_sendfile()
842 if (nobj_size != obj_size) { in vn_sendfile()
843 obj_size = nobj_size; in vn_sendfile()
844 rem = nbytes ? omin(nbytes + offset, obj_size) : in vn_sendfile()
[all …]
H A Duipc_shm.c258 uiomove_object(vm_object_t obj, off_t obj_size, struct uio *uio) in uiomove_object() argument
266 if (obj_size <= uio->uio_offset) in uiomove_object()
268 len = MIN(obj_size - uio->uio_offset, resid); in uiomove_object()
/src/sys/xdr/
H A Dxdr_reference.c114 xdr_pointer(XDR *xdrs, char **objpp, u_int obj_size, xdrproc_t xdr_obj) in xdr_pointer() argument
127 return (xdr_reference(xdrs,objpp,obj_size,xdr_obj)); in xdr_pointer()
/src/lib/libc/xdr/
H A Dxdr_reference.c122 xdr_pointer(XDR *xdrs, char **objpp, u_int obj_size, xdrproc_t xdr_obj) in xdr_pointer() argument
135 return (xdr_reference(xdrs,objpp,obj_size,xdr_obj)); in xdr_pointer()
/src/crypto/krb5/src/lib/rpc/
H A Dxdr_reference.c122 u_int obj_size, in xdr_pointer() argument
136 return (xdr_reference(xdrs,objpp,obj_size,xdr_obj)); in xdr_pointer()
/src/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()
/src/sys/dev/qat/qat_common/
H A Dqat_uclo.c1919 unsigned int *obj_size) in qat_uclo_seek_obj_inside_mof() argument
1929 *obj_size = obj_hdr[i].obj_size; in qat_uclo_seek_obj_inside_mof()
1963 mobj_hdr->obj_size = (unsigned int)obj_chunkhdr->size; in qat_uclo_map_obj_from_mof()
2094 unsigned int *obj_size) in qat_uclo_map_mof_obj() argument
2106 if (obj_size) in qat_uclo_map_mof_obj()
2107 *obj_size = (unsigned int)mof_size; in qat_uclo_map_mof_obj()
2134 obj_size); in qat_uclo_map_mof_obj()
2147 u32 obj_size; in qat_uclo_map_obj() local
2158 handle, addr_ptr, mem_size, obj_name, &obj_addr, &obj_size); in qat_uclo_map_obj()
2163 obj_size = mem_size; in qat_uclo_map_obj()
[all …]
/src/sys/sys/
H A Duio.h100 int uiomove_object(struct vm_object *obj, off_t obj_size, struct uio *uio);
/src/sys/dev/qat/include/common/
H A Dicp_qat_uclo.h558 unsigned int obj_size; member
/src/sys/ofed/drivers/infiniband/core/
H A Dib_rdma_core.c274 uobj = kzalloc(obj->type_attrs->obj_size, GFP_KERNEL); in alloc_uobj()
/src/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_vnops_os.c4184 off_t start, end, obj_size; in zfs_getpages() local
4248 obj_size = object->un_pager.vnp.vnp_size; in zfs_getpages()
4250 if (IDX_TO_OFF(ma[count - 1]->pindex) >= obj_size) { in zfs_getpages()
4265 if (end + IDX_TO_OFF(pgsin_a) >= obj_size) in zfs_getpages()
4266 pgsin_a = OFF_TO_IDX(round_page(obj_size) - end); in zfs_getpages()
4292 MIN(end, obj_size) - (end - PAGE_SIZE) : PAGE_SIZE; in zfs_getpages()