| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | generic-radix-tree.h | 99 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 …]
|
| H A D | objagg.h | 8 size_t obj_size; member
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | icm.c | 261 (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 D | icm.h | 91 u64 virt, int obj_size, u32 nobj, int reserved,
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/mthca/ |
| H A D | mthca_memfree.c | 224 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 D | mthca_memfree.h | 67 int obj_size; member 87 u64 virt, int obj_size,
|
| /OK3568_Linux_fs/kernel/include/rdma/ |
| H A D | uverbs_types.h | 78 size_t obj_size; member 158 .obj_size = (_obj_size) + \ 170 .obj_size = (_size) + \
|
| /OK3568_Linux_fs/kernel/lib/ |
| H A D | objagg.c | 369 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()
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/hns/ |
| H A D | hns_roce_hem.c | 220 (chunk_size / table->obj_size); in hns_roce_calc_hem_mhop() 347 (table->table_chunk_size / table->obj_size); in hns_roce_set_hem() 650 table->obj_size); in hns_roce_table_get() 769 (table->table_chunk_size / table->obj_size); in hns_roce_table_put() 807 obj_per_chunk = table->table_chunk_size / table->obj_size; in hns_roce_table_find() 810 dma_offset = offset = idx_offset * table->obj_size; in hns_roce_table_find() 860 unsigned long obj_size, unsigned long nobj, in hns_roce_init_hem_table() argument 868 obj_per_chunk = table->table_chunk_size / obj_size; in hns_roce_init_hem_table() 890 obj_per_chunk = buf_chunk_size / obj_size; in hns_roce_init_hem_table() 938 table->obj_size = obj_size; in hns_roce_init_hem_table() [all …]
|
| H A D | hns_roce_hem.h | 120 unsigned long obj_size, unsigned long nobj,
|
| /OK3568_Linux_fs/kernel/drivers/net/can/spi/mcp251xfd/ |
| H A D | mcp251xfd.h | 514 u8 obj_size; member 528 u8 obj_size; member 733 return ring->base + ring->obj_size * n; in mcp251xfd_get_tx_obj_addr() 739 return ring->base + ring->obj_size * n; in mcp251xfd_get_rx_obj_addr() 790 tx_ring->obj_size; in mcp251xfd_get_tx_nr_by_addr()
|
| H A D | mcp251xfd-core.c | 286 *rx_tail = fifo_ua / ring->obj_size; in mcp251xfd_rx_tail_get_from_chip() 369 prev_rx_ring->obj_size * in mcp251xfd_ring_init() 408 tx_ring->obj_size = tx_obj_size; in mcp251xfd_ring_alloc() 428 rx_ring->obj_size = rx_obj_size; in mcp251xfd_ring_alloc() 431 ram_free -= rx_ring->obj_num * rx_ring->obj_size; in mcp251xfd_ring_alloc() 443 i, rx_ring->obj_num, rx_ring->obj_size, in mcp251xfd_ring_alloc() 444 rx_ring->obj_size * rx_ring->obj_num); in mcp251xfd_ring_alloc() 1465 len * ring->obj_size / sizeof(u32)); in mcp251xfd_rx_obj_read() 1493 i * ring->obj_size); in mcp251xfd_handle_rxif_ring()
|
| /OK3568_Linux_fs/kernel/net/dccp/ |
| H A D | ccid.c | 79 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()
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/host/xtest/gp/include/ |
| H A D | xml_datastorage_api.h | 205 uint32_t obj_size; member 1294 uint32_t obj_size, in Invoke_AllocateTransientObject() argument 1298 obj_size); in Invoke_AllocateTransientObject() 1320 saved_obj_info[0].obj_size = op.params[1].value.a; in Invoke_GetObjectInfo1() 1347 saved_obj_info[n].obj_size); \ 1652 saved_obj_info[n].obj_size = op.params[1].value.a; in Invoke_GetNextPersistentObject_All() 1687 ADBG_EXPECT(c, IN_KeySize, saved_obj_info[n].obj_size); \
|
| H A D | xml_crypto_api.h | 902 uint32_t obj_size; member 910 uint32_t obj_size; member 986 saved_alloc.obj_size = 0; in crypto_reset() 988 saved_key_vals.obj_size = 0; in crypto_reset() 1085 saved_alloc.obj_size = op.params[1].value.a; in Invoke_Crypto_AllocateOperation() 1293 uint32_t obj_type, uint32_t obj_size, in Invoke_Crypto_InitObjectWithKeys() argument 1340 op.params[0].value.b = obj_size; in Invoke_Crypto_InitObjectWithKeys() 1365 uint32_t obj_size, in Invoke_Crypto_InitObjectWithKeysExt() argument 1373 return Invoke_Crypto_InitObjectWithKeys(c, s, cmd, obj_type, obj_size, in Invoke_Crypto_InitObjectWithKeysExt() 3347 saved_alloc.obj_size, 0, op1); in mac_compute_final() [all …]
|
| /OK3568_Linux_fs/kernel/net/netfilter/ |
| H A D | nf_conntrack_proto_udp.c | 293 .obj_size = sizeof(unsigned int) * CTA_TIMEOUT_UDP_MAX, 315 .obj_size = sizeof(unsigned int) * CTA_TIMEOUT_UDP_MAX,
|
| H A D | nf_conntrack_proto_generic.c | 75 .obj_size = sizeof(unsigned int),
|
| /OK3568_Linux_fs/kernel/net/ipv4/ |
| H A D | udplite.c | 57 .obj_size = sizeof(struct udp_sock),
|
| /OK3568_Linux_fs/kernel/net/ipv6/ |
| H A D | udplite.c | 53 .obj_size = sizeof(struct udp6_sock),
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgv_sriovmsg.h | 247 unsigned long obj_size,
|
| /OK3568_Linux_fs/kernel/include/drm/ |
| H A D | drm_gem.h | 350 int drm_gem_mmap_obj(struct drm_gem_object *obj, unsigned long obj_size,
|
| /OK3568_Linux_fs/kernel/net/phonet/ |
| H A D | datagram.c | 180 .obj_size = sizeof(struct pn_sock),
|
| /OK3568_Linux_fs/kernel/include/net/ |
| H A D | request_sock.h | 29 unsigned int obj_size; member
|
| /OK3568_Linux_fs/kernel/net/bluetooth/bnep/ |
| H A D | sock.c | 194 .obj_size = sizeof(struct bt_sock)
|
| /OK3568_Linux_fs/kernel/net/bluetooth/cmtp/ |
| H A D | sock.c | 197 .obj_size = sizeof(struct bt_sock)
|