Home
last modified time | relevance | path

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

12345

/Linux-v5.4/include/linux/
Dgeneric-radix-tree.h99 static inline size_t __idx_to_offset(size_t idx, size_t obj_size) in __idx_to_offset() argument
101 if (__builtin_constant_p(obj_size)) in __idx_to_offset()
102 BUILD_BUG_ON(obj_size > PAGE_SIZE); in __idx_to_offset()
104 BUG_ON(obj_size > PAGE_SIZE); in __idx_to_offset()
106 if (!is_power_of_2(obj_size)) { in __idx_to_offset()
107 size_t objs_per_page = PAGE_SIZE / obj_size; in __idx_to_offset()
110 (idx % objs_per_page) * obj_size; in __idx_to_offset()
112 return idx * obj_size; in __idx_to_offset()
184 size_t obj_size) in __genradix_iter_advance() argument
186 iter->offset += obj_size; in __genradix_iter_advance()
[all …]
Dobjagg.h8 size_t obj_size; member
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx4/
Dicm.c261 (MLX4_TABLE_CHUNK_SIZE / table->obj_size); in mlx4_table_get()
299 i = (obj & (table->num_obj - 1)) / (MLX4_TABLE_CHUNK_SIZE / table->obj_size); in mlx4_table_put()
328 idx = (u64) (obj & (table->num_obj - 1)) * table->obj_size; in mlx4_table_find()
385 int inc = MLX4_TABLE_CHUNK_SIZE / table->obj_size; in mlx4_table_get_range()
411 for (i = start; i <= end; i += MLX4_TABLE_CHUNK_SIZE / table->obj_size) in mlx4_table_put_range()
416 u64 virt, int obj_size, u32 nobj, int reserved, in mlx4_init_icm_table() argument
425 obj_per_chunk = MLX4_TABLE_CHUNK_SIZE / obj_size; in mlx4_init_icm_table()
436 table->obj_size = obj_size; in mlx4_init_icm_table()
441 size = (u64) nobj * obj_size; in mlx4_init_icm_table()
442 for (i = 0; i * MLX4_TABLE_CHUNK_SIZE < reserved * obj_size; ++i) { in mlx4_init_icm_table()
Dicm.h91 u64 virt, int obj_size, u32 nobj, int reserved,
/Linux-v5.4/include/rdma/
Duverbs_types.h106 size_t obj_size; member
174 .obj_size = (_obj_size) + \
186 .obj_size = (_size) + \
/Linux-v5.4/drivers/infiniband/hw/mthca/
Dmthca_memfree.c224 int i = (obj & (table->num_obj - 1)) * table->obj_size / MTHCA_TABLE_CHUNK_SIZE; in mthca_table_get()
264 i = (obj & (table->num_obj - 1)) * table->obj_size / MTHCA_TABLE_CHUNK_SIZE; in mthca_table_put()
290 idx = (obj & (table->num_obj - 1)) * table->obj_size; in mthca_table_find()
324 int inc = MTHCA_TABLE_CHUNK_SIZE / table->obj_size; in mthca_table_get_range()
352 for (i = start; i <= end; i += MTHCA_TABLE_CHUNK_SIZE / table->obj_size) in mthca_table_put_range()
357 u64 virt, int obj_size, in mthca_alloc_icm_table() argument
367 obj_per_chunk = MTHCA_TABLE_CHUNK_SIZE / obj_size; in mthca_alloc_icm_table()
377 table->obj_size = obj_size; in mthca_alloc_icm_table()
385 for (i = 0; i * MTHCA_TABLE_CHUNK_SIZE < reserved * obj_size; ++i) { in mthca_alloc_icm_table()
387 if ((i + 1) * MTHCA_TABLE_CHUNK_SIZE > nobj * obj_size) in mthca_alloc_icm_table()
[all …]
Dmthca_memfree.h67 int obj_size; member
87 u64 virt, int obj_size,
/Linux-v5.4/drivers/infiniband/hw/hns/
Dhns_roce_hem.c252 (chunk_size / table->obj_size); in hns_roce_calc_hem_mhop()
379 (table->table_chunk_size / table->obj_size); in hns_roce_set_hem()
625 table->obj_size); in hns_roce_table_get()
785 (table->table_chunk_size / table->obj_size); in hns_roce_table_put()
823 obj_per_chunk = table->table_chunk_size / table->obj_size; in hns_roce_table_find()
826 dma_offset = offset = idx_offset * table->obj_size; in hns_roce_table_find()
879 unsigned long inc = table->table_chunk_size / table->obj_size; in hns_roce_table_get_range()
887 inc = mhop.bt_chunk_size / table->obj_size; in hns_roce_table_get_range()
912 unsigned long inc = table->table_chunk_size / table->obj_size; in hns_roce_table_put_range()
918 inc = mhop.bt_chunk_size / table->obj_size; in hns_roce_table_put_range()
[all …]
Dhns_roce_hem.h126 unsigned long obj_size, unsigned long nobj,
/Linux-v5.4/lib/
Dobjagg.c369 objagg_obj = kzalloc(sizeof(*objagg_obj) + objagg->ops->obj_size, in objagg_obj_create()
374 memcpy(objagg_obj->obj, obj, objagg->ops->obj_size); in objagg_obj_create()
536 objagg->ht_params.key_len = ops->obj_size; in objagg_create()
650 struct objagg_obj *objagg_obj, size_t obj_size, in objagg_hints_node_create() argument
657 hnode = kzalloc(sizeof(*hnode) + obj_size, GFP_KERNEL); in objagg_hints_node_create()
660 memcpy(hnode->obj, &objagg_obj->obj, obj_size); in objagg_hints_node_create()
864 objagg->ops->obj_size, in objagg_opt_simple_greedy_fillup_hints()
880 objagg->ops->obj_size, in objagg_opt_simple_greedy_fillup_hints()
956 objagg_hints->ht_params.key_len = objagg->ops->obj_size; in objagg_hints_get()
/Linux-v5.4/net/dccp/
Dccid.c79 static struct kmem_cache *ccid_kmem_cache_create(int obj_size, char *slab_name_fmt, const char *fmt… in ccid_kmem_cache_create() argument
88 slab = kmem_cache_create(slab_name_fmt, sizeof(struct ccid) + obj_size, 0, in ccid_kmem_cache_create()
/Linux-v5.4/net/netfilter/
Dnf_conntrack_proto_generic.c75 .obj_size = sizeof(unsigned int),
Dnf_conntrack_proto_udp.c284 .obj_size = sizeof(unsigned int) * CTA_TIMEOUT_UDP_MAX,
306 .obj_size = sizeof(unsigned int) * CTA_TIMEOUT_UDP_MAX,
Dnf_conntrack_proto_icmpv6.c289 .obj_size = sizeof(unsigned int),
/Linux-v5.4/net/ipv4/
Dudplite.c57 .obj_size = sizeof(struct udp_sock),
/Linux-v5.4/net/ipv6/
Dudplite.c53 .obj_size = sizeof(struct udp6_sock),
/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/
Damdgpu_virt.c311 unsigned long obj_size, in amdgpu_virt_fw_reserve_get_checksum() argument
321 for (i = 0; i < obj_size; ++i) in amdgpu_virt_fw_reserve_get_checksum()
Damdgpu_virt.h305 int amdgpu_virt_fw_reserve_get_checksum(void *obj, unsigned long obj_size,
/Linux-v5.4/include/drm/
Ddrm_gem.h336 int drm_gem_mmap_obj(struct drm_gem_object *obj, unsigned long obj_size,
/Linux-v5.4/net/phonet/
Ddatagram.c180 .obj_size = sizeof(struct pn_sock),
/Linux-v5.4/include/net/
Drequest_sock.h29 unsigned int obj_size; member
/Linux-v5.4/net/bluetooth/bnep/
Dsock.c196 .obj_size = sizeof(struct bt_sock)
/Linux-v5.4/net/bluetooth/cmtp/
Dsock.c199 .obj_size = sizeof(struct bt_sock)
/Linux-v5.4/drivers/crypto/chelsio/chtls/
Dchtls_cm.h129 chtls_tcp_ops->obj_size = sizeof(struct tcp_request_sock); in chtls_init_rsk_ops()
/Linux-v5.4/include/net/netfilter/
Dnf_conntrack_l4proto.h53 u16 obj_size; member

12345