Home
last modified time | relevance | path

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

1234

/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/
Dicm.c263 (MLX4_TABLE_CHUNK_SIZE / table->obj_size); in mlx4_table_get()
301 i = (obj & (table->num_obj - 1)) / (MLX4_TABLE_CHUNK_SIZE / table->obj_size); in mlx4_table_put()
330 idx = (u64) (obj & (table->num_obj - 1)) * table->obj_size; in mlx4_table_find()
366 int inc = MLX4_TABLE_CHUNK_SIZE / table->obj_size; in mlx4_table_get_range()
392 for (i = start; i <= end; i += MLX4_TABLE_CHUNK_SIZE / table->obj_size) in mlx4_table_put_range()
397 u64 virt, int obj_size, u32 nobj, int reserved, in mlx4_init_icm_table() argument
406 obj_per_chunk = MLX4_TABLE_CHUNK_SIZE / obj_size; in mlx4_init_icm_table()
417 table->obj_size = obj_size; in mlx4_init_icm_table()
422 size = (u64) nobj * obj_size; in mlx4_init_icm_table()
423 for (i = 0; i * MLX4_TABLE_CHUNK_SIZE < reserved * obj_size; ++i) { in mlx4_init_icm_table()
Dicm.h81 u64 virt, int obj_size, u32 nobj, int reserved,
/Linux-v4.19/drivers/infiniband/hw/hns/
Dhns_roce_hem.c168 (chunk_size / table->obj_size); in hns_roce_calc_hem_mhop()
296 (table->table_chunk_size / table->obj_size); in hns_roce_set_hem()
545 table->obj_size); in hns_roce_table_get()
705 (table->table_chunk_size / table->obj_size); in hns_roce_table_put()
743 obj_per_chunk = table->table_chunk_size / table->obj_size; in hns_roce_table_find()
746 dma_offset = offset = idx_offset * table->obj_size; in hns_roce_table_find()
760 table->obj_size % mhop.bt_chunk_size; in hns_roce_table_find()
797 unsigned long inc = table->table_chunk_size / table->obj_size; in hns_roce_table_get_range()
803 inc = mhop.bt_chunk_size / table->obj_size; in hns_roce_table_get_range()
828 unsigned long inc = table->table_chunk_size / table->obj_size; in hns_roce_table_put_range()
[all …]
Dhns_roce_hem.h121 unsigned long obj_size, unsigned long nobj,
/Linux-v4.19/include/rdma/
Duverbs_types.h105 size_t obj_size; member
167 .obj_size = (_obj_size) + \
179 .obj_size = (_size) + \
/Linux-v4.19/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-v4.19/net/netfilter/
Dnf_conntrack_proto_udp.c300 .obj_size = sizeof(unsigned int) * CTA_TIMEOUT_UDP_MAX,
329 .obj_size = sizeof(unsigned int) * CTA_TIMEOUT_UDP_MAX,
358 .obj_size = sizeof(unsigned int) * CTA_TIMEOUT_UDP_MAX,
387 .obj_size = sizeof(unsigned int) * CTA_TIMEOUT_UDP_MAX,
Dnf_conntrack_proto_generic.c172 .obj_size = sizeof(unsigned int),
/Linux-v4.19/net/dccp/
Dccid.c82 static struct kmem_cache *ccid_kmem_cache_create(int obj_size, char *slab_name_fmt, const char *fmt… in ccid_kmem_cache_create() argument
91 slab = kmem_cache_create(slab_name_fmt, sizeof(struct ccid) + obj_size, 0, in ccid_kmem_cache_create()
/Linux-v4.19/fs/exofs/
Dore.c1142 u64 obj_size; in ore_truncate() local
1145 obj_size = ti.prev_group_obj_off; in ore_truncate()
1147 obj_size = ti.next_group_obj_off; in ore_truncate()
1149 obj_size = ti.si.obj_offset + in ore_truncate()
1152 obj_size = ti.si.obj_offset; in ore_truncate()
1154 obj_size = ti.si.obj_offset - ti.si.unit_off; in ore_truncate()
1156 size_attr->newsize = cpu_to_be64(obj_size); in ore_truncate()
1161 _LLU(oc->comps->obj.id), _LLU(obj_size), i); in ore_truncate()
/Linux-v4.19/net/ipv4/
Dudplite.c59 .obj_size = sizeof(struct udp_sock),
/Linux-v4.19/net/ipv6/
Dudplite.c54 .obj_size = sizeof(struct udp6_sock),
/Linux-v4.19/include/drm/
Ddrm_gem.h185 int drm_gem_mmap_obj(struct drm_gem_object *obj, unsigned long obj_size,
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/
Damdgpu_virt.c367 unsigned long obj_size, in amdgpu_virt_fw_reserve_get_checksum() argument
377 for (i = 0; i < obj_size; ++i) in amdgpu_virt_fw_reserve_get_checksum()
Damdgpu_virt.h297 int amdgpu_virt_fw_reserve_get_checksum(void *obj, unsigned long obj_size,
/Linux-v4.19/include/net/netfilter/
Dnf_conntrack_l4proto.h85 u16 obj_size; member
/Linux-v4.19/net/phonet/
Ddatagram.c193 .obj_size = sizeof(struct pn_sock),
/Linux-v4.19/include/net/
Drequest_sock.h33 unsigned int obj_size; member
Dinet_sock.h278 sk_from->sk_prot->obj_size - ancestor_size); in __inet_sk_copy_descendant()
/Linux-v4.19/drivers/crypto/chelsio/chtls/
Dchtls_cm.h132 chtls_tcp_ops->obj_size = sizeof(struct tcp_request_sock); in chtls_init_rsk_ops()
/Linux-v4.19/net/bluetooth/bnep/
Dsock.c191 .obj_size = sizeof(struct bt_sock)
/Linux-v4.19/net/bluetooth/cmtp/
Dsock.c194 .obj_size = sizeof(struct bt_sock)
/Linux-v4.19/drivers/gpu/drm/
Ddrm_gem.c954 int drm_gem_mmap_obj(struct drm_gem_object *obj, unsigned long obj_size, in drm_gem_mmap_obj() argument
960 if (obj_size < vma->vm_end - vma->vm_start) in drm_gem_mmap_obj()
/Linux-v4.19/net/bluetooth/hidp/
Dsock.c224 .obj_size = sizeof(struct bt_sock)

1234