Home
last modified time | relevance | path

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

12

/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,
Dmlx4.h264 int obj_size; member
/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,
/drivers/infiniband/hw/hns/
Dhns_roce_hem.c217 (chunk_size / table->obj_size); in hns_roce_calc_hem_mhop()
571 table->obj_size); in hns_roce_table_get()
691 (table->table_chunk_size / table->obj_size); in hns_roce_table_put()
728 obj_per_chunk = table->table_chunk_size / table->obj_size; in hns_roce_table_find()
731 dma_offset = offset = idx_offset * table->obj_size; in hns_roce_table_find()
781 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()
859 table->obj_size = obj_size; in hns_roce_init_hem_table()
899 obj = i * buf_chunk_size / table->obj_size; in hns_roce_cleanup_mhop_hem_table()
[all …]
Dhns_roce_hem.h113 unsigned long obj_size, unsigned long nobj,
Dhns_roce_device.h307 unsigned long obj_size; member
/drivers/net/can/spi/mcp251xfd/
Dmcp251xfd.h514 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()
Dmcp251xfd-core.c286 *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()
/drivers/gpu/drm/amd/amdgpu/
Damdgv_sriovmsg.h247 unsigned long obj_size,
Damdgpu_virt.c249 unsigned long obj_size, in amd_sriov_msg_checksum() argument
259 for (i = 0; i < obj_size; ++i) in amd_sriov_msg_checksum()
/drivers/net/ethernet/chelsio/inline_crypto/chtls/
Dchtls_cm.h127 chtls_tcp_ops->obj_size = sizeof(struct tcp_request_sock); in chtls_init_rsk_ops()
/drivers/gpu/drm/
Ddrm_gem.c1055 int drm_gem_mmap_obj(struct drm_gem_object *obj, unsigned long obj_size, in drm_gem_mmap_obj() argument
1062 if (obj_size < vma->vm_end - vma->vm_start) in drm_gem_mmap_obj()
/drivers/gpu/drm/radeon/
Dradeon_asic.h92 uint32_t offset, uint32_t obj_size);
340 uint32_t offset, uint32_t obj_size);
Dr100.c3095 uint32_t offset, uint32_t obj_size) in r100_set_surface_reg() argument
3134 DRM_DEBUG_KMS("writing surface %d %d %x %x\n", reg, flags, offset, offset+obj_size-1); in r100_set_surface_reg()
3137 WREG32(RADEON_SURFACE0_UPPER_BOUND + surf_index, offset + obj_size - 1); in r100_set_surface_reg()
Dradeon.h1942 uint32_t offset, uint32_t obj_size);
/drivers/net/ppp/
Dpptp.c616 .obj_size = sizeof(struct pppox_sock),
Dpppoe.c528 .obj_size = sizeof(struct pppox_sock),
/drivers/infiniband/core/
Drdma_core.c280 uobj = kzalloc(obj->type_attrs->obj_size, GFP_KERNEL); in alloc_uobj()
/drivers/isdn/mISDN/
Dsocket.c19 .obj_size = sizeof(struct mISDN_sock)
/drivers/net/
Dtap.c99 .obj_size = sizeof(struct tap_queue),
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_acl_erp.c1309 .obj_size = sizeof(struct mlxsw_sp_acl_erp_key),
/drivers/xen/
Dpvcalls-front.c28 .obj_size = sizeof(struct sock),
/drivers/md/
Draid5.c2403 size_t obj_size = in scribble_alloc() local
2414 scribble = kvmalloc_array(cnt, obj_size, GFP_KERNEL); in scribble_alloc()
2421 percpu->scribble_obj_size = obj_size; in scribble_alloc()

12