/freebsd/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_icm.c | 254 (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 D | icm.h | 81 u64 virt, int obj_size, u32 nobj, int reserved,
|
H A D | mlx4.h | 266 int obj_size; member
|
/freebsd/sys/dev/mthca/ |
H A D | mthca_memfree.c | 223 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 D | mthca_memfree.h | 65 int obj_size; member 85 u64 virt, int obj_size,
|
/freebsd/sys/ofed/include/rdma/ |
H A D | uverbs_types.h | 110 size_t obj_size; member 189 .obj_size = (_obj_size) + \ 201 .obj_size = (_size) + \
|
/freebsd/sys/contrib/openzfs/module/os/linux/spl/ |
H A D | spl-kmem-cache.c | 264 uint32_t obj_size; in spl_slab_alloc() local 278 obj_size = spl_obj_size(skc); in spl_slab_alloc() 528 obj_size = spl_obj_size(skc); in spl_slab_size() 533 tgt_objs = (tgt_size - sks_size) / obj_size; in spl_slab_size() 535 tgt_objs = (max_size - sks_size) / obj_size; in spl_slab_size() 536 tgt_size = (tgt_objs * obj_size) + sks_size; in spl_slab_size() 556 uint32_t obj_size = spl_obj_size(skc); in spl_magazine_size() local 563 if (obj_size > (PAGE_SIZE * 256)) in spl_magazine_size() 565 else if (obj_size > (PAGE_SIZE * 32)) in spl_magazine_size() 567 else if (obj_size > (PAGE_SIZE)) in spl_magazine_size() [all …]
|
/freebsd/sys/xdr/ |
H A D | xdr_reference.c | 114 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()
|
/freebsd/lib/libc/xdr/ |
H A D | xdr_reference.c | 122 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()
|
/freebsd/sys/kern/ |
H A D | kern_sendfile.c | 564 struct vnode **vp_res, struct shmfd **shmfd_res, off_t *obj_size, in sendfile_getobj() argument 603 *obj_size = obj->un_pager.vnp.vnp_size; in sendfile_getobj() 605 error = vn_getsize_locked(vp, obj_size, td->td_ucred); in sendfile_getobj() 614 *obj_size = shmfd->shm_size; in sendfile_getobj() 688 off_t off, sbytes, rem, obj_size, nobj_size; in vn_sendfile() local 730 rem = nbytes ? omin(nbytes, obj_size - offset) : obj_size - offset; in vn_sendfile() 883 if (nobj_size != obj_size) { in vn_sendfile() 884 obj_size = nobj_size; in vn_sendfile() 885 rem = nbytes ? omin(nbytes + offset, obj_size) : in vn_sendfile() 886 obj_size; in vn_sendfile() [all …]
|
H A D | uipc_shm.c | 255 uiomove_object(vm_object_t obj, off_t obj_size, struct uio *uio) in uiomove_object() argument 263 if (obj_size <= uio->uio_offset) in uiomove_object() 265 len = MIN(obj_size - uio->uio_offset, resid); in uiomove_object()
|
/freebsd/contrib/ofed/opensm/complib/ |
H A D | cl_pool.c | 213 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/sys/dev/qat/qat_common/ |
H A D | qat_uclo.c | 1917 unsigned int *obj_size) in qat_uclo_seek_obj_inside_mof() argument 1927 *obj_size = obj_hdr[i].obj_size; in qat_uclo_seek_obj_inside_mof() 1961 mobj_hdr->obj_size = (unsigned int)obj_chunkhdr->size; in qat_uclo_map_obj_from_mof() 2092 unsigned int *obj_size) in qat_uclo_map_mof_obj() argument 2104 if (obj_size) in qat_uclo_map_mof_obj() 2105 *obj_size = (unsigned int)mof_size; in qat_uclo_map_mof_obj() 2132 obj_size); in qat_uclo_map_mof_obj() 2145 u32 obj_size; in qat_uclo_map_obj() local 2161 obj_size = mem_size; in qat_uclo_map_obj() 2165 qat_uclo_map_suof_obj(handle, obj_addr, obj_size) : in qat_uclo_map_obj() [all …]
|
/freebsd/sys/sys/ |
H A D | uio.h | 98 int uiomove_object(struct vm_object *obj, off_t obj_size, struct uio *uio);
|
/freebsd/sys/dev/qat/include/common/ |
H A D | icp_qat_uclo.h | 558 unsigned int obj_size; member
|
/freebsd/sys/ofed/drivers/infiniband/core/ |
H A D | ib_rdma_core.c | 274 uobj = kzalloc(obj->type_attrs->obj_size, GFP_KERNEL); in alloc_uobj()
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | zfs_vnops_os.c | 4030 off_t start, end, obj_size; in zfs_getpages() local 4068 obj_size = object->un_pager.vnp.vnp_size; in zfs_getpages() 4070 if (IDX_TO_OFF(ma[count - 1]->pindex) >= obj_size) { in zfs_getpages() 4086 if (end + IDX_TO_OFF(pgsin_a) >= obj_size) in zfs_getpages() 4087 pgsin_a = OFF_TO_IDX(round_page(obj_size) - end); in zfs_getpages() 4098 &pgsin_a, MIN(end, obj_size) - (end - PAGE_SIZE)); in zfs_getpages()
|