Home
last modified time | relevance | path

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

12345

/openbmc/linux/include/linux/
H A Dgeneric-radix-tree.h101 static inline size_t __idx_to_offset(size_t idx, size_t obj_size) in __idx_to_offset() argument
103 if (__builtin_constant_p(obj_size)) in __idx_to_offset()
104 BUILD_BUG_ON(obj_size > PAGE_SIZE); in __idx_to_offset()
106 BUG_ON(obj_size > PAGE_SIZE); in __idx_to_offset()
108 if (!is_power_of_2(obj_size)) { in __idx_to_offset()
109 size_t objs_per_page = PAGE_SIZE / obj_size; in __idx_to_offset()
112 (idx % objs_per_page) * obj_size; in __idx_to_offset()
114 return idx * obj_size; in __idx_to_offset()
186 size_t obj_size) in __genradix_iter_advance() argument
188 if (iter->offset + obj_size < iter->offset) { in __genradix_iter_advance()
[all …]
H A Dobjagg.h8 size_t obj_size; member
/openbmc/linux/fs/xfs/scrub/
H A Dxfarray.c50 return div_u64((xfarray_idx_t)pos, array->obj_size); in xfarray_idx()
59 return idx * array->obj_size; in xfarray_pos()
73 size_t obj_size, in xfarray_create() argument
80 ASSERT(obj_size < PAGE_SIZE); in xfarray_create()
87 array = kzalloc(sizeof(struct xfarray) + obj_size, XCHK_GFP_FLAGS); in xfarray_create()
92 array->obj_size = obj_size; in xfarray_create()
94 if (is_power_of_2(obj_size)) in xfarray_create()
95 array->obj_size_log = ilog2(obj_size); in xfarray_create()
139 return xfile_obj_load(array->xfile, ptr, array->obj_size, in xfarray_load()
155 error = xfile_obj_load(array->xfile, temp, array->obj_size, pos); in xfarray_is_unset()
[all …]
H A Dxfarray.h33 size_t obj_size; member
40 size_t obj_size, struct xfarray **arrayp);
H A Dtrace.h880 __field(size_t, obj_size)
886 __entry->obj_size = xfa->obj_size;
895 __entry->obj_size,
971 __field(size_t, obj_size)
977 __entry->obj_size = si->array->obj_size;
985 __entry->obj_size,
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H 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()
H A Dicm.h91 u64 virt, int obj_size, u32 nobj, int reserved,
/openbmc/linux/drivers/net/can/spi/mcp251xfd/
H A Dmcp251xfd-ring.c349 priv->rx_obj_num_coalesce_irq, rx_ring->obj_size, in mcp251xfd_ring_init()
350 priv->rx_obj_num_coalesce_irq * rx_ring->obj_size); in mcp251xfd_ring_init()
360 rx_ring->obj_size, in mcp251xfd_ring_init()
362 rx_ring->obj_size); in mcp251xfd_ring_init()
368 rx_ring->obj_num, rx_ring->obj_size, in mcp251xfd_ring_init()
369 rx_ring->obj_num * rx_ring->obj_size); in mcp251xfd_ring_init()
377 priv->tx->obj_num, priv->tx->obj_size, in mcp251xfd_ring_init()
378 priv->tx->obj_num * priv->tx->obj_size); in mcp251xfd_ring_init()
515 tx_ring->obj_size = tx_obj_size; in mcp251xfd_ring_alloc()
539 rx_ring->obj_size = rx_obj_size; in mcp251xfd_ring_alloc()
H A Dmcp251xfd-rx.c43 *rx_tail = fifo_ua / ring->obj_size; in mcp251xfd_rx_tail_get_from_chip()
223 len * ring->obj_size / val_bytes); in mcp251xfd_rx_obj_read()
284 i * ring->obj_size); in mcp251xfd_handle_rxif_ring()
H A Dmcp251xfd.h547 u8 obj_size; member
565 u8 obj_size; member
850 return ring->base + ring->obj_size * n; in mcp251xfd_get_tx_obj_addr()
856 return ring->base + ring->obj_size * n; in mcp251xfd_get_rx_obj_addr()
916 tx_ring->obj_size; in mcp251xfd_get_tx_nr_by_addr()
H A Dmcp251xfd-dump.c176 .val = rx->obj_size, in mcp251xfd_dump_rx_ring_one()
219 .val = tx->obj_size, in mcp251xfd_dump_tx_ring()
/openbmc/linux/drivers/infiniband/hw/mthca/
H 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 …]
H A Dmthca_memfree.h67 int obj_size; member
87 u64 virt, int obj_size,
/openbmc/linux/include/rdma/
H A Duverbs_types.h80 size_t obj_size; member
163 .obj_size = (_obj_size) + \
175 .obj_size = (_size) + \
/openbmc/linux/lib/
H A Dobjagg.c372 objagg_obj = kzalloc(sizeof(*objagg_obj) + objagg->ops->obj_size, in objagg_obj_create()
377 memcpy(objagg_obj->obj, obj, objagg->ops->obj_size); in objagg_obj_create()
539 objagg->ht_params.key_len = ops->obj_size; in objagg_create()
653 struct objagg_obj *objagg_obj, size_t obj_size, in objagg_hints_node_create() argument
660 hnode = kzalloc(sizeof(*hnode) + obj_size, GFP_KERNEL); in objagg_hints_node_create()
663 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()
942 objagg_hints->ht_params.key_len = objagg->ops->obj_size; in objagg_hints_get()
/openbmc/linux/drivers/infiniband/hw/hns/
H 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()
707 i = obj / (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()
795 unsigned long obj_size, unsigned long nobj) in hns_roce_init_hem_table() argument
802 obj_per_chunk = table->table_chunk_size / obj_size; in hns_roce_init_hem_table()
824 obj_per_chunk = buf_chunk_size / obj_size; in hns_roce_init_hem_table()
871 table->obj_size = obj_size; in hns_roce_init_hem_table()
910 obj = i * buf_chunk_size / table->obj_size; in hns_roce_cleanup_mhop_hem_table()
[all …]
H A Dhns_roce_hem.h114 unsigned long obj_size, unsigned long nobj);
/openbmc/linux/net/dccp/
H 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()
/openbmc/linux/drivers/crypto/intel/qat/qat_common/
H A Dqat_uclo.c1689 unsigned int *obj_size) in qat_uclo_seek_obj_inside_mof() argument
1698 *obj_size = obj_hdr[i].obj_size; in qat_uclo_seek_obj_inside_mof()
1724 mobj_hdr->obj_size = (unsigned int)obj_chunkhdr->size; in qat_uclo_map_obj_from_mof()
1841 char **obj_ptr, unsigned int *obj_size) in qat_uclo_map_mof_obj() argument
1853 if (obj_size) in qat_uclo_map_mof_obj()
1854 *obj_size = mof_size; in qat_uclo_map_mof_obj()
1887 obj_ptr, obj_size); in qat_uclo_map_mof_obj()
1894 u32 obj_size; in qat_uclo_map_obj() local
1905 &obj_addr, &obj_size); in qat_uclo_map_obj()
1910 obj_size = mem_size; in qat_uclo_map_obj()
[all …]
/openbmc/linux/net/netfilter/
H A Dnf_conntrack_proto_generic.c75 .obj_size = sizeof(unsigned int),
H 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,
/openbmc/linux/net/ipv4/
H A Dudplite.c69 .obj_size = sizeof(struct udp_sock),
/openbmc/linux/net/ipv6/
H A Dudplite.c68 .obj_size = sizeof(struct udp6_sock),
/openbmc/linux/net/phonet/
H A Ddatagram.c177 .obj_size = sizeof(struct pn_sock),
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgv_sriovmsg.h306 unsigned int amd_sriov_msg_checksum(void *obj, unsigned long obj_size, unsigned int key,

12345