/linux-master/include/linux/ |
H A D | generic-radix-tree.h | 104 static inline size_t __idx_to_offset(size_t idx, size_t obj_size) argument 106 if (__builtin_constant_p(obj_size)) 107 BUILD_BUG_ON(obj_size > GENRADIX_NODE_SIZE); 109 BUG_ON(obj_size > GENRADIX_NODE_SIZE); 111 if (!is_power_of_2(obj_size)) { 112 size_t objs_per_page = GENRADIX_NODE_SIZE / obj_size; 115 (idx % objs_per_page) * obj_size; 117 return idx * obj_size; 212 size_t obj_size) 214 if (iter->offset + obj_size < ite 211 __genradix_iter_advance(struct genradix_iter *iter, size_t obj_size) argument 232 __genradix_iter_rewind(struct genradix_iter *iter, size_t obj_size) argument [all...] |
H A D | objpool.h | 70 * @obj_size: object size, aligned to sizeof(void *) 82 int obj_size; member in struct:objpool_head
|
H A D | objagg.h | 8 size_t obj_size; member in struct:objagg_ops
|
/linux-master/drivers/gpu/drm/imagination/ |
H A D | pvr_drv.h | 22 int pvr_get_uobj(u64 usr_ptr, u32 usr_size, u32 min_size, u32 obj_size, void *out); 23 int pvr_set_uobj(u64 usr_ptr, u32 usr_size, u32 min_size, u32 obj_size, const void *in); 24 int pvr_get_uobj_array(const struct drm_pvr_obj_array *in, u32 min_stride, u32 obj_size, 26 int pvr_set_uobj_array(const struct drm_pvr_obj_array *out, u32 min_stride, u32 obj_size,
|
H A D | pvr_drv.c | 1162 pvr_get_uobj(u64 usr_ptr, u32 usr_stride, u32 min_stride, u32 obj_size, void *out) argument 1167 return copy_struct_from_user(out, obj_size, u64_to_user_ptr(usr_ptr), usr_stride); 1171 pvr_set_uobj(u64 usr_ptr, u32 usr_stride, u32 min_stride, u32 obj_size, const void *in) argument 1176 if (copy_to_user(u64_to_user_ptr(usr_ptr), in, min_t(u32, usr_stride, obj_size))) 1179 if (usr_stride > obj_size && 1180 clear_user(u64_to_user_ptr(usr_ptr + obj_size), usr_stride - obj_size)) { 1188 pvr_get_uobj_array(const struct drm_pvr_obj_array *in, u32 min_stride, u32 obj_size, void **out) argument 1199 out_alloc = kvmalloc_array(in->count, obj_size, GFP_KERNEL); 1203 if (obj_size 1231 pvr_set_uobj_array(const struct drm_pvr_obj_array *out, u32 min_stride, u32 obj_size, const void *in) argument [all...] |
/linux-master/fs/xfs/scrub/ |
H A D | xfarray.h | 33 size_t obj_size; member in struct:xfarray 40 size_t obj_size, struct xfarray **arrayp); 61 memset(rec, 0, array->obj_size); 150 * typedef char[array->obj_size] xfarray_rec_t;
|
H A D | xfarray.c | 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, 70 xfarray_create( const char *description, unsigned long long required_capacity, size_t obj_size, struct xfarray **arrayp) argument [all...] |
/linux-master/include/rdma/ |
H A D | uverbs_types.h | 80 size_t obj_size; member in struct:uverbs_obj_type 163 .obj_size = (_obj_size) + \ 175 .obj_size = (_size) + \
|
/linux-master/drivers/net/ethernet/mellanox/mlx4/ |
H A D | icm.c | 261 (MLX4_TABLE_CHUNK_SIZE / table->obj_size); 299 i = (obj & (table->num_obj - 1)) / (MLX4_TABLE_CHUNK_SIZE / table->obj_size); 328 idx = (u64) (obj & (table->num_obj - 1)) * table->obj_size; 385 int inc = MLX4_TABLE_CHUNK_SIZE / table->obj_size; 411 for (i = start; i <= end; i += MLX4_TABLE_CHUNK_SIZE / table->obj_size) 416 u64 virt, int obj_size, u32 nobj, int reserved, 425 obj_per_chunk = MLX4_TABLE_CHUNK_SIZE / obj_size; 436 table->obj_size = obj_size; 441 size = (u64) nobj * obj_size; 415 mlx4_init_icm_table(struct mlx4_dev *dev, struct mlx4_icm_table *table, u64 virt, int obj_size, u32 nobj, int reserved, int use_lowmem, int use_coherent) argument [all...] |
H A D | icm.h | 91 u64 virt, int obj_size, u32 nobj, int reserved,
|
/linux-master/net/netfilter/ |
H A D | nf_conntrack_proto_generic.c | 75 .obj_size = sizeof(unsigned int),
|
H A D | nf_conntrack_proto_udp.c | 297 .obj_size = sizeof(unsigned int) * CTA_TIMEOUT_UDP_MAX, 319 .obj_size = sizeof(unsigned int) * CTA_TIMEOUT_UDP_MAX,
|
/linux-master/drivers/net/can/spi/mcp251xfd/ |
H A D | mcp251xfd-ring.c | 348 priv->rx_obj_num_coalesce_irq, rx_ring->obj_size, 349 priv->rx_obj_num_coalesce_irq * rx_ring->obj_size); 359 rx_ring->obj_size, 361 rx_ring->obj_size); 367 rx_ring->obj_num, rx_ring->obj_size, 368 rx_ring->obj_num * rx_ring->obj_size); 376 priv->tx->obj_num, priv->tx->obj_size, 377 priv->tx->obj_num * priv->tx->obj_size); 488 tx_ring->obj_size = tx_obj_size; 510 rx_ring->obj_size [all...] |
H A D | mcp251xfd-rx.c | 52 *rx_tail = fifo_ua / ring->obj_size; 195 len * ring->obj_size / val_bytes); 225 i * ring->obj_size);
|
H A D | mcp251xfd-dump.c | 176 .val = rx->obj_size, 219 .val = tx->obj_size,
|
/linux-master/drivers/infiniband/hw/mthca/ |
H A D | mthca_memfree.h | 67 int obj_size; member in struct:mthca_icm_table 87 u64 virt, int obj_size,
|
H A D | mthca_memfree.c | 224 int i = (obj & (table->num_obj - 1)) * table->obj_size / MTHCA_TABLE_CHUNK_SIZE; 264 i = (obj & (table->num_obj - 1)) * table->obj_size / MTHCA_TABLE_CHUNK_SIZE; 290 idx = (obj & (table->num_obj - 1)) * table->obj_size; 324 int inc = MTHCA_TABLE_CHUNK_SIZE / table->obj_size; 352 for (i = start; i <= end; i += MTHCA_TABLE_CHUNK_SIZE / table->obj_size) 357 u64 virt, int obj_size, 367 obj_per_chunk = MTHCA_TABLE_CHUNK_SIZE / obj_size; 377 table->obj_size = obj_size; 385 for (i = 0; i * MTHCA_TABLE_CHUNK_SIZE < reserved * obj_size; 356 mthca_alloc_icm_table(struct mthca_dev *dev, u64 virt, int obj_size, int nobj, int reserved, int use_lowmem, int use_coherent) argument [all...] |
/linux-master/drivers/infiniband/hw/hns/ |
H A D | hns_roce_hem.h | 98 unsigned long obj_size, unsigned long nobj);
|
H A D | hns_roce_hem.c | 226 table_idx = *obj / (chunk_size / table->obj_size); 540 i = obj / (table->table_chunk_size / table->obj_size); 667 i = obj / (table->table_chunk_size / table->obj_size); 701 obj_per_chunk = table->table_chunk_size / table->obj_size; 704 dma_offset = offset = idx_offset * table->obj_size; 738 unsigned long obj_size, unsigned long nobj) 745 obj_per_chunk = table->table_chunk_size / obj_size; 767 obj_per_chunk = buf_chunk_size / obj_size; 814 table->obj_size = obj_size; 736 hns_roce_init_hem_table(struct hns_roce_dev *hr_dev, struct hns_roce_hem_table *table, u32 type, unsigned long obj_size, unsigned long nobj) argument [all...] |
/linux-master/lib/ |
H A D | objpool.c | 37 obj = obj + pool->obj_size; 69 pool->obj_size * nodes; 134 pool->obj_size = object_size;
|
H A D | objagg.c | 369 objagg_obj = kzalloc(sizeof(*objagg_obj) + objagg->ops->obj_size, 374 memcpy(objagg_obj->obj, obj, objagg->ops->obj_size); 536 objagg->ht_params.key_len = ops->obj_size; 650 struct objagg_obj *objagg_obj, size_t obj_size, 657 hnode = kzalloc(sizeof(*hnode) + obj_size, GFP_KERNEL); 660 memcpy(hnode->obj, &objagg_obj->obj, obj_size); 861 objagg->ops->obj_size, 877 objagg->ops->obj_size, 953 objagg_hints->ht_params.key_len = objagg->ops->obj_size; 649 objagg_hints_node_create(struct objagg_hints *objagg_hints, struct objagg_obj *objagg_obj, size_t obj_size, struct objagg_hints_node *parent_hnode) argument
|
/linux-master/net/ipv4/ |
H A D | udplite.c | 69 .obj_size = sizeof(struct udp_sock),
|
/linux-master/net/ipv6/ |
H A D | udplite.c | 68 .obj_size = sizeof(struct udp6_sock),
|
/linux-master/net/dccp/ |
H A D | ccid.c | 79 static __printf(3, 4) struct kmem_cache *ccid_kmem_cache_create(int obj_size, char *slab_name_fmt, const char *fmt,...) argument 88 slab = kmem_cache_create(slab_name_fmt, sizeof(struct ccid) + obj_size, 0,
|
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgv_sriovmsg.h | 307 unsigned int amd_sriov_msg_checksum(void *obj, unsigned long obj_size, unsigned int key,
|