Home
last modified time | relevance | path

Searched refs:entry_size (Results 1 – 25 of 121) sorted by relevance

12345

/kernel/linux/linux-5.10/tools/perf/util/
Dxyarray.c7 struct xyarray *xyarray__new(int xlen, int ylen, size_t entry_size) in xyarray__new() argument
9 size_t row_size = ylen * entry_size; in xyarray__new()
13 xy->entry_size = entry_size; in xyarray__new()
25 size_t n = xy->entries * xy->entry_size; in xyarray__reset()
/kernel/linux/linux-5.10/tools/lib/perf/
Dxyarray.c7 struct xyarray *xyarray__new(int xlen, int ylen, size_t entry_size) in xyarray__new() argument
9 size_t row_size = ylen * entry_size; in xyarray__new()
13 xy->entry_size = entry_size; in xyarray__new()
25 size_t n = xy->entries * xy->entry_size; in xyarray__reset()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/
Dhal.c16 .entry_size = sizeof(struct hal_reo_dest_ring) >> 2,
28 .entry_size = sizeof(struct hal_reo_dest_ring) >> 2,
36 .entry_size = sizeof(struct hal_reo_entrance_ring) >> 2,
44 .entry_size = (sizeof(struct hal_tlv_hdr) +
53 .entry_size = (sizeof(struct hal_tlv_hdr) +
62 .entry_size = (sizeof(struct hal_tlv_hdr) +
71 .entry_size = (sizeof(struct hal_tlv_hdr) +
80 .entry_size = (sizeof(struct hal_tlv_hdr) +
89 .entry_size = sizeof(struct hal_ce_srng_src_desc) >> 2,
108 .entry_size = sizeof(struct hal_ce_srng_dest_desc) >> 2,
[all …]
Dhal_tx.c139 int i, entry_size; in ath11k_hal_tx_init_data_ring() local
144 entry_size = ath11k_hal_srng_get_entrysize(ab, HAL_TCL_DATA); in ath11k_hal_tx_init_data_ring()
153 desc += entry_size; in ath11k_hal_tx_init_data_ring()
/kernel/linux/linux-5.10/kernel/trace/
Dtrace_events_inject.c155 int entry_size = trace_get_entry_size(call); in trace_alloc_entry() local
161 entry = kzalloc(entry_size + 1, GFP_KERNEL); in trace_alloc_entry()
173 int str_loc = entry_size & 0xffff; in trace_alloc_entry()
185 *size = entry_size + 1; in trace_alloc_entry()
197 int entry_size; in parse_entry() local
201 entry = trace_alloc_entry(call, &entry_size); in parse_entry()
221 int str_loc = entry_size & 0xffff; in parse_entry()
224 entry_size += str_len; in parse_entry()
225 *pentry = krealloc(entry, entry_size, GFP_KERNEL); in parse_entry()
232 strlcpy(entry + (entry_size - str_len), addr, str_len); in parse_entry()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_cnt.c16 unsigned int entry_size; member
68 sub_pool->entry_size = mlxsw_core_res_get(mlxsw_sp->core, in mlxsw_sp_counter_sub_pools_init()
208 if (entry_index + sub_pool->entry_size > stop_index) { in mlxsw_sp_counter_alloc()
212 for (i = 0; i < sub_pool->entry_size; i++) in mlxsw_sp_counter_alloc()
217 atomic_add(sub_pool->entry_size, &sub_pool->active_entries_count); in mlxsw_sp_counter_alloc()
218 atomic_add(sub_pool->entry_size, &pool->active_entries_count); in mlxsw_sp_counter_alloc()
238 for (i = 0; i < sub_pool->entry_size; i++) in mlxsw_sp_counter_free()
241 atomic_sub(sub_pool->entry_size, &sub_pool->active_entries_count); in mlxsw_sp_counter_free()
242 atomic_sub(sub_pool->entry_size, &pool->active_entries_count); in mlxsw_sp_counter_free()
/kernel/linux/linux-5.10/net/netfilter/
Dnft_set_pipapo.h249 unsigned long entry_size; in pipapo_estimate_size() local
253 for (i = 0, entry_size = 0; i < desc->field_count; i++) { in pipapo_estimate_size()
264 entry_size += rules * in pipapo_estimate_size()
267 entry_size += rules * sizeof(union nft_pipapo_map_bucket); in pipapo_estimate_size()
271 size = desc->size * entry_size; in pipapo_estimate_size()
272 if (size && div_u64(size, desc->size) != entry_size) in pipapo_estimate_size()
/kernel/linux/linux-5.10/tools/lib/perf/include/internal/
Dxyarray.h10 size_t entry_size; member
17 struct xyarray *xyarray__new(int xlen, int ylen, size_t entry_size);
23 return &xy->contents[x * xy->row_size + y * xy->entry_size]; in xyarray__entry()
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
Def100.c189 u32 entry_size; in ef100_pci_walk_xilinx_table() local
194 entry_size = ef100_pci_get_bar_bits(efx, current_entry, ENTRY_SIZE); in ef100_pci_walk_xilinx_table()
198 id, entry_size, current_entry, efx->mem_bar); in ef100_pci_walk_xilinx_table()
200 if (entry_size < sizeof(u32) * 2) { in ef100_pci_walk_xilinx_table()
202 "Xilinx table entry too short len=0x%x\n", entry_size); in ef100_pci_walk_xilinx_table()
209 entry_size < ESE_GZ_CFGBAR_ENTRY_SIZE_EF100) { in ef100_pci_walk_xilinx_table()
212 entry_size, rev); in ef100_pci_walk_xilinx_table()
222 if (rev != 0 || entry_size < ESE_GZ_CFGBAR_CONT_CAP_MIN_LENGTH) { in ef100_pci_walk_xilinx_table()
225 entry_size, rev); in ef100_pci_walk_xilinx_table()
241 current_entry += entry_size; in ef100_pci_walk_xilinx_table()
/kernel/linux/linux-5.10/fs/hfsplus/
Dcatalog.c259 int entry_size; in hfsplus_create_cat() local
277 entry_size = hfsplus_fill_cat_thread(sb, &entry, in hfsplus_create_cat()
281 if (unlikely(entry_size < 0)) { in hfsplus_create_cat()
282 err = entry_size; in hfsplus_create_cat()
292 err = hfs_brec_insert(&fd, &entry, entry_size); in hfsplus_create_cat()
300 entry_size = hfsplus_cat_build_record(&entry, cnid, inode); in hfsplus_create_cat()
308 err = hfs_brec_insert(&fd, &entry, entry_size); in hfsplus_create_cat()
441 int entry_size, type; in hfsplus_rename_cat() local
528 entry_size = hfsplus_fill_cat_thread(sb, &entry, type, in hfsplus_rename_cat()
530 if (unlikely(entry_size < 0)) { in hfsplus_rename_cat()
[all …]
Dattributes.c201 int entry_size; in hfsplus_create_attr() local
236 entry_size = hfsplus_attr_build_record(entry_ptr, in hfsplus_create_attr()
240 if (entry_size == HFSPLUS_INVALID_ATTR_RECORD) { in hfsplus_create_attr()
252 err = hfs_brec_insert(&fd, entry_ptr, entry_size); in hfsplus_create_attr()
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_init.c649 u32 entry_size; in qlcnic_get_flt_entry() local
661 entry_size = flt_hdr.len - sizeof(struct qlcnic_flt_header); in qlcnic_get_flt_entry()
662 flt_entry = vzalloc(entry_size); in qlcnic_get_flt_entry()
668 (u8 *)flt_entry, entry_size); in qlcnic_get_flt_entry()
675 while (i < (entry_size/sizeof(struct qlcnic_flt_entry))) { in qlcnic_get_flt_entry()
680 if (i >= (entry_size/sizeof(struct qlcnic_flt_entry))) { in qlcnic_get_flt_entry()
755 i * le32_to_cpu(directory->entry_size); in qlcnic_get_table_desc()
772 u32 entries, entry_size, tab_size, fw_file_size; in qlcnic_validate_header() local
780 entry_size = le32_to_cpu(directory->entry_size); in qlcnic_validate_header()
781 tab_size = le32_to_cpu(directory->findex) + (entries * entry_size); in qlcnic_validate_header()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/kexec/
Dima.c179 int ret, addr_cells, size_cells, entry_size; in setup_ima_buffer() local
190 entry_size = 4 * (addr_cells + size_cells); in setup_ima_buffer()
192 if (entry_size > sizeof(value)) in setup_ima_buffer()
205 entry_size); in setup_ima_buffer()
/kernel/linux/linux-5.10/fs/hfs/
Dcatalog.c87 int entry_size; in hfs_cat_create() local
109 entry_size = hfs_cat_build_thread(sb, &entry, S_ISDIR(inode->i_mode) ? in hfs_cat_create()
118 err = hfs_brec_insert(&fd, &entry, entry_size); in hfs_cat_create()
123 entry_size = hfs_cat_build_record(&entry, cnid, inode); in hfs_cat_create()
131 err = hfs_brec_insert(&fd, &entry, entry_size); in hfs_cat_create()
294 int entry_size, type; in hfs_cat_move() local
370 entry_size = hfs_cat_build_thread(sb, &entry, type == HFS_CDR_FIL ? HFS_CDR_FTH : HFS_CDR_THD, in hfs_cat_move()
378 err = hfs_brec_insert(&dst_fd, &entry, entry_size); in hfs_cat_move()
/kernel/linux/linux-5.10/drivers/scsi/be2iscsi/
Dbe.h33 u16 entry_size; /* Size of an element in the queue */ member
53 return q->dma_mem.va + q->head * q->entry_size; in queue_head_node()
58 return q->dma_mem.va + wrb_num * q->entry_size; in queue_get_wrb()
63 return q->dma_mem.va + q->tail * q->entry_size; in queue_tail_node()
/kernel/linux/linux-5.10/drivers/misc/sgi-xp/
Dxpc_channel.c143 ch->entry_size = 0; in xpc_process_disconnect()
320 "channel=%d\n", args->entry_size, args->local_nentries, in xpc_process_openclose_chctl_flags()
342 if (args->entry_size == 0 || args->local_nentries == 0) { in xpc_process_openclose_chctl_flags()
351 if (args->entry_size != ch->entry_size) { in xpc_process_openclose_chctl_flags()
357 ch->entry_size = args->entry_size; in xpc_process_openclose_chctl_flags()
504 if (registration->entry_size != ch->entry_size) { in xpc_connect_channel()
523 ch->entry_size = registration->entry_size; in xpc_connect_channel()
Dxp_main.c159 registration->entry_size = XPC_MSG_SIZE(payload_size); in xpc_connect()
214 registration->entry_size = 0; in xpc_disconnect()
/kernel/linux/linux-5.10/drivers/net/wireless/intersil/p54/
Deeprom.c371 priv->output_limit->entry_size + in p54_generate_channel_lists()
385 priv->curve_data->entry_size + in p54_generate_channel_lists()
438 priv->curve_data->entry_size = sizeof(__le16) + in p54_convert_rev0()
490 priv->curve_data->entry_size = sizeof(__le16) + in p54_convert_rev1()
557 priv->rssi_db->entry_size = sizeof(*entry); in p54_parse_rssical()
690 priv->output_limit->entry_size = in p54_convert_output_limits()
692 priv->output_limit->len = priv->output_limit->entry_size * in p54_convert_output_limits()
706 size_t payload_len, entries, entry_size, offset; in p54_convert_db() local
710 entry_size = le16_to_cpu(src->entry_size); in p54_convert_db()
712 if (((entries * entry_size + offset) != payload_len) || in p54_convert_db()
[all …]
/kernel/linux/linux-5.10/arch/ia64/kernel/
Dperfmon_default_smpl.c108 unsigned long *e, entry_size; in default_handler() local
135 entry_size = sizeof(*ent) + (npmds << 3); in default_handler()
187 hdr->hdr_cur_offs += entry_size; in default_handler()
188 cur += entry_size; in default_handler()
/kernel/linux/linux-5.10/drivers/firmware/efi/
Desrt.c243 size_t size, max, entry_size, entries_size; in efi_esrt_init() local
296 entry_size = sizeof(struct efi_system_resource_entry_v1); in efi_esrt_init()
297 if (tmpesrt.fw_resource_count > 0 && max - size < entry_size) { in efi_esrt_init()
299 max - size, entry_size); in efi_esrt_init()
320 entries_size = tmpesrt.fw_resource_count * entry_size; in efi_esrt_init()
/kernel/linux/linux-5.10/fs/nilfs2/
Ddat.c472 int nilfs_dat_read(struct super_block *sb, size_t entry_size, in nilfs_dat_read() argument
480 if (entry_size > sb->s_blocksize) { in nilfs_dat_read()
482 entry_size); in nilfs_dat_read()
484 } else if (entry_size < NILFS_MIN_DAT_ENTRY_SIZE) { in nilfs_dat_read()
486 entry_size); in nilfs_dat_read()
500 err = nilfs_palloc_init_blockgroup(dat, entry_size); in nilfs_dat_read()
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_init.c576 (i * cpu_to_le32(directory->entry_size)); in nx_get_table_desc()
596 __le32 entry_size; in netxen_nic_validate_header() local
602 entry_size = cpu_to_le32(directory->entry_size); in netxen_nic_validate_header()
603 tab_size = cpu_to_le32(directory->findex) + (entries * entry_size); in netxen_nic_validate_header()
629 (cpu_to_le32(tab_desc->entry_size) * (idx + 1)); in netxen_nic_validate_bootld()
635 (cpu_to_le32(tab_desc->entry_size) * (idx)); in netxen_nic_validate_bootld()
664 (cpu_to_le32(tab_desc->entry_size) * (idx + 1)); in netxen_nic_validate_fw()
670 (cpu_to_le32(tab_desc->entry_size) * (idx)); in netxen_nic_validate_fw()
689 __le32 entry_size; in netxen_nic_validate_product_offs() local
698 entry_size = cpu_to_le32(ptab_descr->entry_size); in netxen_nic_validate_product_offs()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_icm_pool.c37 u32 entry_size; member
215 mr_req_size = bucket->num_of_entries * bucket->entry_size; in dr_icm_chunks_create()
250 chunk->byte_size = chunk->num_of_entries * bucket->entry_size; in dr_icm_chunks_create()
298 bucket->entry_size = DR_STE_SIZE; in dr_icm_bucket_init()
300 bucket->entry_size = DR_MODIFY_ACTION_SIZE; in dr_icm_bucket_init()
/kernel/linux/linux-5.10/drivers/misc/cxl/
Dof.c72 int i, len, entry_size, naddr, nsize, type; in read_phys_addr() local
81 entry_size = naddr + nsize; in read_phys_addr()
82 for (i = 0; i < (len / 4); i += entry_size, prop += entry_size) { in read_phys_addr()
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/
Dcq.c71 return mlx4_buf_offset(&buf->buf, n * buf->entry_size); in get_cqe_from_buf()
82 struct mlx4_cqe *tcqe = ((cq->buf.entry_size == 64) ? (cqe + 1) : cqe); in get_sw_cqe()
111 buf->entry_size = dev->dev->caps.cqe_size; in mlx4_ib_alloc_cq_buf()
127 mlx4_buf_free(dev->dev, nent * buf->entry_size, &buf->buf); in mlx4_ib_alloc_cq_buf()
135 mlx4_buf_free(dev->dev, (cqe + 1) * buf->entry_size, &buf->buf); in mlx4_ib_free_cq_buf()
358 int cqe_size = cq->buf.entry_size; in mlx4_ib_cq_resize_copy_cqes()
677 if (cq->buf.entry_size == 64) in mlx4_ib_poll_one()
921 int cqe_inc = cq->buf.entry_size == 64 ? 1 : 0; in __mlx4_ib_cq_clean()

12345