Home
last modified time | relevance | path

Searched refs:n_entries (Results 1 – 25 of 41) sorted by relevance

12

/linux/kernel/trace/
H A Dtracing_map.c937 unsigned int n_entries) in tracing_map_destroy_sort_entries() argument
941 for (i = 0; i < n_entries; i++) in tracing_map_destroy_sort_entries()
963 int n_entries, unsigned int key_size) in detect_dups() argument
969 if (n_entries < 2) in detect_dups()
972 sort(sort_entries, n_entries, sizeof(struct tracing_map_sort_entry *), in detect_dups()
976 for (i = 1; i < n_entries; i++) { in detect_dups()
1000 unsigned int n_entries, in sort_secondary() argument
1018 for (i = 0; i < n_entries - 1; i++) { in sort_secondary()
1024 if (i < n_entries - 2) in sort_secondary()
1077 int i, n_entries, ret; in tracing_map_sort_entries() local
[all …]
H A Dtracing_map.h283 unsigned int n_entries);
/linux/net/ipv4/
H A Dudp_tunnel_nic.c139 for (j = 0; j < info->tables[i].n_entries; j++) in udp_tunnel_nic_is_empty()
159 for (j = 0; j < table->n_entries; j++) in udp_tunnel_nic_should_replay()
248 for (j = 0; j < info->tables[i].n_entries; j++) in udp_tunnel_nic_device_sync_by_port()
262 for (j = 0; j < info->tables[i].n_entries; j++) in udp_tunnel_nic_device_sync_by_table()
265 if (j == info->tables[i].n_entries) in udp_tunnel_nic_device_sync_by_table()
273 for (j = 0; j < info->tables[i].n_entries; j++) { in udp_tunnel_nic_device_sync_by_table()
345 for (j = 0; j < info->tables[i].n_entries; j++) { in udp_tunnel_nic_has_collision()
432 for (j = 0; j < table->n_entries; j++) in udp_tunnel_nic_try_existing()
467 for (j = 0; j < table->n_entries; j++) { in udp_tunnel_nic_add_new()
557 for (j = 0; j < info->tables[i].n_entries; j++) { in __udp_tunnel_nic_reset_ntf()
[all …]
/linux/drivers/md/
H A Ddm-stats.c46 size_t n_entries; member
59 struct dm_stat_shared stat_shared[] __counted_by(n_entries);
224 for (ni = 0; ni < s->n_entries; ni++) { in dm_stats_cleanup()
271 sector_t n_entries; in dm_stats_create() local
284 n_entries = end - start; in dm_stats_create()
285 if (dm_sector_div64(n_entries, step)) in dm_stats_create()
286 n_entries++; in dm_stats_create()
288 if (n_entries != (size_t)n_entries || !(size_t)(n_entries + 1)) in dm_stats_create()
291 if (n_entries > DM_STAT_MAX_ENTRIES) in dm_stats_create()
294 shared_alloc_size = struct_size(s, stat_shared, n_entries); in dm_stats_create()
[all …]
/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Dcmsg.c206 unsigned int i, count, n_entries; in nfp_bpf_ctrl_op_cache_get() local
209 n_entries = nfp_bpf_ctrl_op_cache_fill(op) ? bpf->cmsg_cache_cnt : 1; in nfp_bpf_ctrl_op_cache_get()
214 n_entries = 1; in nfp_bpf_ctrl_op_cache_get()
248 n_entries = 0; in nfp_bpf_ctrl_op_cache_get()
260 return n_entries; in nfp_bpf_ctrl_op_cache_get()
298 unsigned int n_entries, reply_entries, count; in nfp_bpf_ctrl_entry_op() local
312 n_entries = nfp_bpf_ctrl_op_cache_get(nfp_map, op, key, out_key, in nfp_bpf_ctrl_entry_op()
314 if (!n_entries) in nfp_bpf_ctrl_entry_op()
325 req->count = cpu_to_be32(n_entries); in nfp_bpf_ctrl_entry_op()
355 if (n_entries > 1 && count) in nfp_bpf_ctrl_entry_op()
/linux/arch/powerpc/perf/
H A Dvpa-dtl.c121 static void vpa_dtl_capture_aux(long *n_entries, struct vpa_pmu_buf *buf, in vpa_dtl_capture_aux() argument
131 if (buf->head + *n_entries >= buf->threshold) { in vpa_dtl_capture_aux()
132 *n_entries = buf->threshold - buf->head; in vpa_dtl_capture_aux()
139 memcpy(aux_copy_buf + buf->head, &dtl->buf[index], *n_entries * sizeof(struct dtl_entry)); in vpa_dtl_capture_aux()
151 buf->head += *n_entries; in vpa_dtl_capture_aux()
/linux/kernel/bpf/
H A Dlpm_trie.c37 size_t n_entries; member
315 if (trie->n_entries == trie->map.max_entries) in trie_check_add_elem()
317 trie->n_entries++; in trie_check_add_elem()
425 trie->n_entries--; in trie_update_elem()
505 trie->n_entries--; in trie_delete_elem()
771 return elem_size * READ_ONCE(trie->n_entries); in trie_mem_usage()
/linux/net/ethtool/
H A Dtunnels.c55 if (!info->tables[i].n_entries) in ethnl_tunnel_info_reply_size()
99 if (!info->tables[i].n_entries) in ethnl_tunnel_info_fill_reply()
107 info->tables[i].n_entries)) in ethnl_tunnel_info_fill_reply()
/linux/drivers/iio/temperature/
H A Dltc2983.c429 u8 index, n_entries; in __ltc2983_custom_sensor_new() local
433 n_entries = fwnode_property_count_u32(fn, propname); in __ltc2983_custom_sensor_new()
435 n_entries = fwnode_property_count_u64(fn, propname); in __ltc2983_custom_sensor_new()
437 if (!n_entries || (n_entries % 2) != 0) in __ltc2983_custom_sensor_new()
445 new_custom->size = n_entries * n_size; in __ltc2983_custom_sensor_new()
461 new_custom->table = devm_kcalloc(dev, n_entries, sizeof(u32), GFP_KERNEL); in __ltc2983_custom_sensor_new()
463 new_custom->table = devm_kcalloc(dev, n_entries, sizeof(u64), GFP_KERNEL); in __ltc2983_custom_sensor_new()
475 ret = fwnode_property_read_u32_array(fn, propname, new_custom->table, n_entries); in __ltc2983_custom_sensor_new()
479 cpu_to_be32_array(new_custom->table, new_custom->table, n_entries); in __ltc2983_custom_sensor_new()
481 ret = fwnode_property_read_u64_array(fn, propname, new_custom->table, n_entries); in __ltc2983_custom_sensor_new()
[all …]
/linux/drivers/net/netdevsim/
H A Dudp_tunnels.c92 .n_entries = NSIM_UDP_TUNNEL_N_PORTS,
96 .n_entries = NSIM_UDP_TUNNEL_N_PORTS,
/linux/drivers/gpu/drm/i915/gt/
H A Dselftest_mocs.c145 return read_regs(rq, addr, table->n_entries, offset); in read_mocs_table()
157 return read_regs(rq, addr, (table->n_entries + 1) / 2, offset); in read_l3cc_table()
/linux/drivers/gpu/drm/xe/
H A Dxe_vm_madvise.c526 if (XE_IOCTL_DBG(xe, args->pat_index.val >= xe->pat.n_entries)) in madvise_args_are_sane()
529 pat_index = array_index_nospec(args->pat_index.val, xe->pat.n_entries); in madvise_args_are_sane()
782 pat_index = array_index_nospec(args->pat_index.val, xe->pat.n_entries); in xe_vm_madvise_ioctl()
/linux/drivers/misc/sgi-xp/
H A Dxpc_uv.c877 head->n_entries = 0; in xpc_init_fifo_uv()
893 head->n_entries--; in xpc_get_fifo_entry_uv()
894 BUG_ON(head->n_entries < 0); in xpc_get_fifo_entry_uv()
915 head->n_entries++; in xpc_put_fifo_entry_uv()
922 return head->n_entries; in xpc_n_of_fifo_entries_uv()
H A Dxpc.h252 int n_entries; member
/linux/virt/kvm/
H A Deventfd.c276 int n_entries; in irqfd_update() local
280 n_entries = kvm_irq_map_gsi(kvm, entries, irqfd->gsi); in irqfd_update()
285 if (n_entries == 1) in irqfd_update()
/linux/drivers/tty/serial/
H A Dserial-tegra.c1433 int n_entries; in tegra_uart_parse_dt() local
1456 n_entries = of_property_count_u32_elems(np, "nvidia,adjust-baud-rates"); in tegra_uart_parse_dt()
1457 if (n_entries > 0) { in tegra_uart_parse_dt()
1458 tup->n_adjustable_baud_rates = n_entries / 3; in tegra_uart_parse_dt()
1464 for (count = 0, index = 0; count < n_entries; count += 3, in tegra_uart_parse_dt()
/linux/drivers/scsi/elx/libefc_sli/
H A Dsli4.c500 size_t size, u32 n_entries, u32 align) in __sli_queue_init() argument
509 q->dma.size = size * n_entries; in __sli_queue_init()
518 memset(q->dma.virt, 0, size * n_entries); in __sli_queue_init()
524 q->length = n_entries; in __sli_queue_init()
534 q->proc_limit = n_entries / 2; in __sli_queue_init()
546 u32 n_entries, u32 buffer_size, in sli_fc_rq_alloc() argument
550 n_entries, SLI_PAGE_SIZE)) in sli_fc_rq_alloc()
583 u32 n_entries, u32 header_buffer_size, in sli_fc_rq_set_alloc() argument
594 SLI4_RQE_SIZE, n_entries, in sli_fc_rq_set_alloc()
764 struct sli4_queue *q, u32 n_entries, in sli_queue_alloc() argument
[all …]
H A Dsli4.h3982 size_t size, u32 n_entries, u32 align);
3990 u32 n_entries, struct sli4_queue *assoc);
3993 u32 n_entries, struct sli4_queue *eqs[]);
4056 sli_fc_rq_alloc(struct sli4 *sli4, struct sli4_queue *q, u32 n_entries,
/linux/include/net/
H A Dudp_tunnel.h314 unsigned int n_entries; member
/linux/drivers/net/ethernet/qlogic/qede/
H A Dqede_filter.c991 { .n_entries = 1, .tunnel_types = UDP_TUNNEL_TYPE_VXLAN, },
992 { .n_entries = 1, .tunnel_types = UDP_TUNNEL_TYPE_GENEVE, },
997 { .n_entries = 1, .tunnel_types = UDP_TUNNEL_TYPE_VXLAN, },
1002 { .n_entries = 1, .tunnel_types = UDP_TUNNEL_TYPE_GENEVE, },
/linux/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_netdev.c420 { .n_entries = 1, .tunnel_types = UDP_TUNNEL_TYPE_VXLAN, },
421 { .n_entries = 1, .tunnel_types = UDP_TUNNEL_TYPE_GENEVE, },
/linux/net/wireless/
H A Dnl80211.c5514 int n_entries = 0, tmp; in validate_acl_mac_addrs() local
5520 n_entries++; in validate_acl_mac_addrs()
5523 return n_entries; in validate_acl_mac_addrs()
5537 int i = 0, n_entries, tmp; in parse_acl_data() local
5553 n_entries = validate_acl_mac_addrs(info->attrs[NL80211_ATTR_MAC_ADDRS]); in parse_acl_data()
5554 if (n_entries < 0) in parse_acl_data()
5555 return ERR_PTR(n_entries); in parse_acl_data()
5557 if (n_entries > wiphy->max_acl_mac_addrs) in parse_acl_data()
5560 acl = kzalloc_flex(*acl, mac_addrs, n_entries); in parse_acl_data()
5563 acl->n_acl_entries = n_entries; in parse_acl_data()
[all …]
H A Dscan.c1741 u32 n_entries = 0; in cfg80211_combine_bsses() local
1769 n_entries++; in cfg80211_combine_bsses()
1797 WARN_ONCE(n_entries != rdev->bss_entries, in cfg80211_combine_bsses()
1799 rdev->bss_entries, n_entries); in cfg80211_combine_bsses()
/linux/drivers/net/wireless/ath/ath6kl/
H A Dhtc_mbox.c1593 int n_entries, in htc_proc_cred_rpt() argument
1602 for (i = 0; i < n_entries; i++, rpt++) { in htc_proc_cred_rpt()
/linux/drivers/gpu/drm/i915/display/
H A Dintel_display_types.h291 int *n_entries);

12