Home
last modified time | relevance | path

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

12345

/linux-6.3-rc2/include/linux/
A Dgeneric-radix-tree.h102 if (__builtin_constant_p(obj_size)) in __idx_to_offset()
103 BUILD_BUG_ON(obj_size > PAGE_SIZE); in __idx_to_offset()
105 BUG_ON(obj_size > PAGE_SIZE); in __idx_to_offset()
107 if (!is_power_of_2(obj_size)) { in __idx_to_offset()
108 size_t objs_per_page = PAGE_SIZE / obj_size; in __idx_to_offset()
111 (idx % objs_per_page) * obj_size; in __idx_to_offset()
113 return idx * obj_size; in __idx_to_offset()
185 size_t obj_size) in __genradix_iter_advance() argument
187 iter->offset += obj_size; in __genradix_iter_advance()
189 if (!is_power_of_2(obj_size) && in __genradix_iter_advance()
[all …]
A Dobjagg.h8 size_t obj_size; member
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx4/
A 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()
A Dicm.h91 u64 virt, int obj_size, u32 nobj, int reserved,
/linux-6.3-rc2/drivers/net/can/spi/mcp251xfd/
A Dmcp251xfd-ring.c348 priv->rx_obj_num_coalesce_irq, rx_ring->obj_size, in mcp251xfd_ring_init()
349 priv->rx_obj_num_coalesce_irq * rx_ring->obj_size); in mcp251xfd_ring_init()
359 rx_ring->obj_size, in mcp251xfd_ring_init()
361 rx_ring->obj_size); in mcp251xfd_ring_init()
367 rx_ring->obj_num, rx_ring->obj_size, in mcp251xfd_ring_init()
368 rx_ring->obj_num * rx_ring->obj_size); in mcp251xfd_ring_init()
376 priv->tx->obj_num, priv->tx->obj_size, in mcp251xfd_ring_init()
377 priv->tx->obj_num * priv->tx->obj_size); in mcp251xfd_ring_init()
488 tx_ring->obj_size = tx_obj_size; in mcp251xfd_ring_alloc()
510 rx_ring->obj_size = rx_obj_size; in mcp251xfd_ring_alloc()
A Dmcp251xfd-rx.c52 *rx_tail = fifo_ua / ring->obj_size; in mcp251xfd_rx_tail_get_from_chip()
195 len * ring->obj_size / val_bytes); in mcp251xfd_rx_obj_read()
225 i * ring->obj_size); in mcp251xfd_handle_rxif_ring()
A Dmcp251xfd.h544 u8 obj_size; member
558 u8 obj_size; member
822 return ring->base + ring->obj_size * n; in mcp251xfd_get_tx_obj_addr()
828 return ring->base + ring->obj_size * n; in mcp251xfd_get_rx_obj_addr()
897 tx_ring->obj_size; in mcp251xfd_get_tx_nr_by_addr()
A Dmcp251xfd-dump.c176 .val = rx->obj_size, in mcp251xfd_dump_rx_ring_one()
219 .val = tx->obj_size, in mcp251xfd_dump_tx_ring()
/linux-6.3-rc2/drivers/infiniband/hw/mthca/
A 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 …]
A Dmthca_memfree.h67 int obj_size; member
87 u64 virt, int obj_size,
/linux-6.3-rc2/include/rdma/
A Duverbs_types.h80 size_t obj_size; member
163 .obj_size = (_obj_size) + \
175 .obj_size = (_size) + \
/linux-6.3-rc2/lib/
A 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()
861 objagg->ops->obj_size, in objagg_opt_simple_greedy_fillup_hints()
877 objagg->ops->obj_size, in objagg_opt_simple_greedy_fillup_hints()
953 objagg_hints->ht_params.key_len = objagg->ops->obj_size; in objagg_hints_get()
/linux-6.3-rc2/drivers/infiniband/hw/hns/
A Dhns_roce_hem.c226 table_idx = *obj / (chunk_size / table->obj_size); in hns_roce_calc_hem_mhop()
579 i = obj / (table->table_chunk_size / table->obj_size); in hns_roce_table_get()
696 i = obj / (table->table_chunk_size / table->obj_size); in hns_roce_table_put()
730 obj_per_chunk = table->table_chunk_size / table->obj_size; in hns_roce_table_find()
733 dma_offset = offset = idx_offset * table->obj_size; in hns_roce_table_find()
782 unsigned long obj_size, unsigned long nobj) in hns_roce_init_hem_table() argument
789 obj_per_chunk = table->table_chunk_size / obj_size; in hns_roce_init_hem_table()
811 obj_per_chunk = buf_chunk_size / obj_size; in hns_roce_init_hem_table()
858 table->obj_size = obj_size; in hns_roce_init_hem_table()
897 obj = i * buf_chunk_size / table->obj_size; in hns_roce_cleanup_mhop_hem_table()
[all …]
A Dhns_roce_hem.h114 unsigned long obj_size, unsigned long nobj);
/linux-6.3-rc2/net/dccp/
A Dccid.c79 static __printf(3, 4) struct kmem_cache *ccid_kmem_cache_create(int obj_size, char *slab_name_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-6.3-rc2/drivers/crypto/qat/qat_common/
A Dqat_uclo.c1688 unsigned int *obj_size) in qat_uclo_seek_obj_inside_mof() argument
1697 *obj_size = obj_hdr[i].obj_size; in qat_uclo_seek_obj_inside_mof()
1840 unsigned int *obj_size) in qat_uclo_map_mof_obj() argument
1852 if (obj_size) in qat_uclo_map_mof_obj()
1853 *obj_size = mof_size; in qat_uclo_map_mof_obj()
1886 obj_ptr, obj_size); in qat_uclo_map_mof_obj()
1893 u32 obj_size; in qat_uclo_map_obj() local
1904 &obj_addr, &obj_size); in qat_uclo_map_obj()
1909 obj_size = mem_size; in qat_uclo_map_obj()
1913 qat_uclo_map_suof_obj(handle, obj_addr, obj_size) : in qat_uclo_map_obj()
[all …]
/linux-6.3-rc2/net/netfilter/
A Dnf_conntrack_proto_generic.c75 .obj_size = sizeof(unsigned int),
A Dnf_conntrack_proto_udp.c297 .obj_size = sizeof(unsigned int) * CTA_TIMEOUT_UDP_MAX,
319 .obj_size = sizeof(unsigned int) * CTA_TIMEOUT_UDP_MAX,
/linux-6.3-rc2/net/ipv6/
A Dudplite.c63 .obj_size = sizeof(struct udp6_sock),
/linux-6.3-rc2/net/ipv4/
A Dudplite.c67 .obj_size = sizeof(struct udp_sock),
/linux-6.3-rc2/net/phonet/
A Ddatagram.c180 .obj_size = sizeof(struct pn_sock),
/linux-6.3-rc2/drivers/gpu/drm/amd/amdgpu/
A Damdgv_sriovmsg.h306 unsigned int amd_sriov_msg_checksum(void *obj, unsigned long obj_size, unsigned int key,
/linux-6.3-rc2/include/drm/
A Ddrm_gem.h411 int drm_gem_mmap_obj(struct drm_gem_object *obj, unsigned long obj_size,
/linux-6.3-rc2/net/bluetooth/cmtp/
A Dsock.c197 .obj_size = sizeof(struct bt_sock)
/linux-6.3-rc2/net/bluetooth/bnep/
A Dsock.c195 .obj_size = sizeof(struct bt_sock)

Completed in 54 milliseconds

12345