Home
last modified time | relevance | path

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

/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/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/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.c384 if (XE_IOCTL_DBG(xe, args->pat_index.val >= xe->pat.n_entries)) in madvise_args_are_sane()
387 pat_index = array_index_nospec(args->pat_index.val, xe->pat.n_entries); in madvise_args_are_sane()
640 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.c277 int n_entries; in irqfd_update()
281 n_entries = kvm_irq_map_gsi(kvm, entries, irqfd->gsi); in irqfd_update()
286 if (n_entries == 1) in irqfd_update()
276 int n_entries; irqfd_update() local
/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/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.c5703 int n_entries = 0, tmp; in vht_set_mcs_mask()
5709 n_entries++; in vht_set_mcs_mask()
5712 return n_entries;
5726 int i = 0, n_entries, tmp; in he_mcs_map_to_mcs_mask()
5742 n_entries = validate_acl_mac_addrs(info->attrs[NL80211_ATTR_MAC_ADDRS]); in he_get_txmcsmap()
5743 if (n_entries < 0) in he_get_txmcsmap()
5744 return ERR_PTR(n_entries); in he_get_txmcsmap()
5746 if (n_entries > wiphy->max_acl_mac_addrs) in he_get_txmcsmap()
5749 acl = kzalloc_flex(*acl, mac_addrs, n_entries); in he_get_txmcsmap()
5752 acl->n_acl_entries = n_entries; in he_get_txmcsmap()
5514 int n_entries = 0, tmp; validate_acl_mac_addrs() local
5537 int i = 0, n_entries, tmp; parse_acl_data() local
16231 int len = 0, n_entries = 0, rem; validate_nan_filter() local
16249 int n_entries, rem, i; handle_nan_filter() local
16442 int n_entries, rem, i = 0; nl80211_nan_add_func() local
[all...]
H A Dscan.c1748 u32 n_entries = 0; in cfg80211_combine_bsses() local
1776 n_entries++; in cfg80211_combine_bsses()
1804 WARN_ONCE(n_entries != rdev->bss_entries, in cfg80211_combine_bsses()
1806 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/net/ethernet/amd/xgbe/
H A Dxgbe-drv.c911 { .n_entries = 1, .tunnel_types = UDP_TUNNEL_TYPE_VXLAN, },
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_common.c2400 .n_entries = NFP_NET_N_VXLAN_PORTS,
/linux/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_main.c490 { .n_entries = 1, .tunnel_types = UDP_TUNNEL_TYPE_VXLAN, },
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_netdev.c2661 { .n_entries = 1, .tunnel_types = UDP_TUNNEL_TYPE_VXLAN, },
/linux/drivers/net/ethernet/sfc/
H A Def10.c3990 .n_entries = 16,
/linux/drivers/net/ethernet/emulex/benet/
H A Dbe_main.c4039 { .n_entries = 1, .tunnel_types = UDP_TUNNEL_TYPE_VXLAN, },