| /linux/kernel/trace/ |
| H A D | tracing_map.c | 937 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 D | tracing_map.h | 283 unsigned int n_entries);
|
| H A D | trace_events_hist.c | 5404 unsigned long *stack, n_entries; in event_hist_trigger() local 5408 n_entries = *stack; in event_hist_trigger() 5409 memcpy(entries, ++stack, n_entries * sizeof(unsigned long)); in event_hist_trigger() 5661 int i, j, n_entries; in print_entries() local 5665 n_entries = tracing_map_sort_entries(map, hist_data->sort_keys, in print_entries() 5668 if (n_entries < 0) in print_entries() 5669 return n_entries; in print_entries() 5679 n_entries = -ENOMEM; in print_entries() 5683 for (i = 0; i < n_entries; i++) { in print_entries() 5691 for (i = 0; i < n_entries; i++) in print_entries() [all …]
|
| /linux/net/ipv4/ |
| H A D | udp_tunnel_nic.c | 139 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 D | dm-stats.c | 46 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 D | cmsg.c | 206 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 D | vpa-dtl.c | 121 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 D | lpm_trie.c | 37 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 D | tunnels.c | 55 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 D | ltc2983.c | 429 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/wireless/ath/ath12k/ |
| H A D | dp.c | 576 int align_bytes, n_entries; in ath12k_dp_scatter_idle_link_desc_setup() local 608 n_entries = (DP_LINK_DESC_ALLOC_SIZE_THRESH - align_bytes) / in ath12k_dp_scatter_idle_link_desc_setup() 611 while (n_entries) { in ath12k_dp_scatter_idle_link_desc_setup() 612 cookie = DP_LINK_DESC_COOKIE_SET(n_entries, i); in ath12k_dp_scatter_idle_link_desc_setup() 615 n_entries--; in ath12k_dp_scatter_idle_link_desc_setup() 754 u32 entry_sz, align_bytes, n_entries; in ath12k_dp_link_desc_setup() local 814 n_entries = (link_desc_banks[i].size - align_bytes) / in ath12k_dp_link_desc_setup() 817 while (n_entries && in ath12k_dp_link_desc_setup() 819 cookie = DP_LINK_DESC_COOKIE_SET(n_entries, i); in ath12k_dp_link_desc_setup() 822 n_entries--; in ath12k_dp_link_desc_setup()
|
| /linux/drivers/net/netdevsim/ |
| H A D | udp_tunnels.c | 92 .n_entries = NSIM_UDP_TUNNEL_N_PORTS, 96 .n_entries = NSIM_UDP_TUNNEL_N_PORTS,
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_bios.c | 2246 int i, n_entries; in map_ddc_pin() local 2250 n_entries = ARRAY_SIZE(adlp_ddc_pin_map); in map_ddc_pin() 2253 n_entries = ARRAY_SIZE(adls_ddc_pin_map); in map_ddc_pin() 2258 n_entries = ARRAY_SIZE(rkl_pch_tgp_ddc_pin_map); in map_ddc_pin() 2261 n_entries = ARRAY_SIZE(gen9bc_tgp_ddc_pin_map); in map_ddc_pin() 2264 n_entries = ARRAY_SIZE(icp_ddc_pin_map); in map_ddc_pin() 2267 n_entries = ARRAY_SIZE(cnp_ddc_pin_map); in map_ddc_pin() 2273 for (i = 0; i < n_entries; i++) { in map_ddc_pin() 3690 int i, n_entries; in map_aux_ch() local 3694 n_entries = ARRAY_SIZE(adlp_aux_ch_map); in map_aux_ch() [all …]
|
| /linux/drivers/gpu/drm/i915/gt/ |
| H A D | selftest_mocs.c | 145 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/misc/sgi-xp/ |
| H A D | xpc_uv.c | 877 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 D | xpc.h | 252 int n_entries; member
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_vm_madvise.c | 296 if (XE_IOCTL_DBG(xe, args->pat_index.val >= xe->pat.n_entries)) in madvise_args_are_sane() 299 pat_index = array_index_nospec(args->pat_index.val, xe->pat.n_entries); in madvise_args_are_sane()
|
| H A D | xe_device_types.h | 561 int n_entries; member
|
| /linux/virt/kvm/ |
| H A D | eventfd.c | 276 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 D | serial-tegra.c | 1433 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 D | sli4.c | 500 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 D | sli4.h | 3982 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 D | udp_tunnel.h | 315 unsigned int n_entries; member
|
| /linux/drivers/net/ethernet/qlogic/qede/ |
| H A D | qede_filter.c | 991 { .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 D | fm10k_netdev.c | 420 { .n_entries = 1, .tunnel_types = UDP_TUNNEL_TYPE_VXLAN, }, 421 { .n_entries = 1, .tunnel_types = UDP_TUNNEL_TYPE_GENEVE, },
|