Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/display/
H A Dintel_ddi.c746 bdw_get_buf_trans_edp(struct intel_encoder *encoder, int *n_entries) in bdw_get_buf_trans_edp() argument
751 *n_entries = ARRAY_SIZE(bdw_ddi_translations_edp); in bdw_get_buf_trans_edp()
754 *n_entries = ARRAY_SIZE(bdw_ddi_translations_dp); in bdw_get_buf_trans_edp()
760 skl_get_buf_trans_dp(struct intel_encoder *encoder, int *n_entries) in skl_get_buf_trans_dp() argument
765 *n_entries = ARRAY_SIZE(skl_y_ddi_translations_dp); in skl_get_buf_trans_dp()
768 *n_entries = ARRAY_SIZE(skl_u_ddi_translations_dp); in skl_get_buf_trans_dp()
771 *n_entries = ARRAY_SIZE(skl_ddi_translations_dp); in skl_get_buf_trans_dp()
777 kbl_get_buf_trans_dp(struct intel_encoder *encoder, int *n_entries) in kbl_get_buf_trans_dp() argument
784 *n_entries = ARRAY_SIZE(kbl_y_ddi_translations_dp); in kbl_get_buf_trans_dp()
789 *n_entries = ARRAY_SIZE(kbl_u_ddi_translations_dp); in kbl_get_buf_trans_dp()
[all …]
H A Dintel_bios.c1603 int n_entries; in map_ddc_pin() local
1607 n_entries = ARRAY_SIZE(icp_ddc_pin_map); in map_ddc_pin()
1610 n_entries = ARRAY_SIZE(cnp_ddc_pin_map); in map_ddc_pin()
1616 if (vbt_pin < n_entries && ddc_pin_map[vbt_pin] != 0) in map_ddc_pin()
/OK3568_Linux_fs/kernel/kernel/trace/
H A Dtracing_map.c936 unsigned int n_entries) in tracing_map_destroy_sort_entries() argument
940 for (i = 0; i < n_entries; i++) in tracing_map_destroy_sort_entries()
962 int n_entries, unsigned int key_size) in detect_dups() argument
968 if (n_entries < 2) in detect_dups()
971 sort(sort_entries, n_entries, sizeof(struct tracing_map_sort_entry *), in detect_dups()
975 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()
1076 int i, n_entries, ret; in tracing_map_sort_entries() local
[all …]
H A Dtracing_map.h287 unsigned int n_entries);
H A Dtrace_events_hist.c4742 int i, n_entries; in print_entries() local
4744 n_entries = tracing_map_sort_entries(map, hist_data->sort_keys, in print_entries()
4747 if (n_entries < 0) in print_entries()
4748 return n_entries; in print_entries()
4750 for (i = 0; i < n_entries; i++) in print_entries()
4755 tracing_map_destroy_sort_entries(sort_entries, n_entries); in print_entries()
4757 return n_entries; in print_entries()
4764 int n_entries; in hist_trigger_show() local
4774 n_entries = print_entries(m, hist_data); in hist_trigger_show()
4775 if (n_entries < 0) in hist_trigger_show()
[all …]
/OK3568_Linux_fs/kernel/net/ipv4/
H A Dudp_tunnel_nic.c136 for (j = 0; j < info->tables[i].n_entries; j++) in udp_tunnel_nic_is_empty()
156 for (j = 0; j < table->n_entries; j++) in udp_tunnel_nic_should_replay()
245 for (j = 0; j < info->tables[i].n_entries; j++) in udp_tunnel_nic_device_sync_by_port()
259 for (j = 0; j < info->tables[i].n_entries; j++) in udp_tunnel_nic_device_sync_by_table()
262 if (j == info->tables[i].n_entries) in udp_tunnel_nic_device_sync_by_table()
270 for (j = 0; j < info->tables[i].n_entries; j++) { in udp_tunnel_nic_device_sync_by_table()
353 for (j = 0; j < info->tables[i].n_entries; j++) { in udp_tunnel_nic_has_collision()
440 for (j = 0; j < table->n_entries; j++) in udp_tunnel_nic_try_existing()
475 for (j = 0; j < table->n_entries; j++) { in udp_tunnel_nic_add_new()
565 for (j = 0; j < info->tables[i].n_entries; j++) { in __udp_tunnel_nic_reset_ntf()
[all …]
/OK3568_Linux_fs/kernel/drivers/md/
H A Ddm-stats.c46 size_t n_entries; member
215 for (ni = 0; ni < s->n_entries; ni++) { in dm_stats_cleanup()
246 sector_t n_entries; in dm_stats_create() local
259 n_entries = end - start; in dm_stats_create()
260 if (dm_sector_div64(n_entries, step)) in dm_stats_create()
261 n_entries++; in dm_stats_create()
263 if (n_entries != (size_t)n_entries || !(size_t)(n_entries + 1)) in dm_stats_create()
266 shared_alloc_size = struct_size(s, stat_shared, n_entries); in dm_stats_create()
267 if ((shared_alloc_size - sizeof(struct dm_stat)) / sizeof(struct dm_stat_shared) != n_entries) in dm_stats_create()
270 percpu_alloc_size = (size_t)n_entries * sizeof(struct dm_stat_percpu); in dm_stats_create()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/netronome/nfp/bpf/
H A Dcmsg.c204 unsigned int i, count, n_entries; in nfp_bpf_ctrl_op_cache_get() local
207 n_entries = nfp_bpf_ctrl_op_cache_fill(op) ? bpf->cmsg_cache_cnt : 1; in nfp_bpf_ctrl_op_cache_get()
212 n_entries = 1; in nfp_bpf_ctrl_op_cache_get()
246 n_entries = 0; in nfp_bpf_ctrl_op_cache_get()
258 return n_entries; in nfp_bpf_ctrl_op_cache_get()
296 unsigned int n_entries, reply_entries, count; in nfp_bpf_ctrl_entry_op() local
310 n_entries = nfp_bpf_ctrl_op_cache_get(nfp_map, op, key, out_key, in nfp_bpf_ctrl_entry_op()
312 if (!n_entries) in nfp_bpf_ctrl_entry_op()
323 req->count = cpu_to_be32(n_entries); in nfp_bpf_ctrl_entry_op()
353 if (n_entries > 1 && count) in nfp_bpf_ctrl_entry_op()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/gt/
H A Dintel_mocs.c40 unsigned int n_entries; member
330 table->n_entries = GEN9_NUM_MOCS_ENTRIES; in get_mocs_settings()
334 table->n_entries = GEN9_NUM_MOCS_ENTRIES; in get_mocs_settings()
337 table->n_entries = GEN9_NUM_MOCS_ENTRIES; in get_mocs_settings()
341 table->n_entries = GEN9_NUM_MOCS_ENTRIES; in get_mocs_settings()
349 if (GEM_DEBUG_WARN_ON(table->size > table->n_entries)) in get_mocs_settings()
390 i < (t)->n_entries ? (mocs = get_entry_control((t), i)), 1 : 0;\
445 i < ((t)->n_entries + 1) / 2 ? \
H A Dselftest_mocs.c165 return read_regs(rq, addr, table->n_entries, offset); in read_mocs_table()
174 return read_regs(rq, addr, (table->n_entries + 1) / 2, offset); in read_l3cc_table()
/OK3568_Linux_fs/kernel/kernel/bpf/
H A Dlpm_trie.c34 size_t n_entries; member
322 if (trie->n_entries == trie->map.max_entries) { in trie_update_elem()
333 trie->n_entries++; in trie_update_elem()
376 trie->n_entries--; in trie_update_elem()
419 trie->n_entries--; in trie_update_elem()
477 trie->n_entries--; in trie_delete_elem()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/arch/powerpc/platforms/pseries/
H A Ddtl.c172 long int n_entries; in dtl_enable() local
187 n_entries = dtl_buf_entries; in dtl_enable()
200 dtl->buf_entries = n_entries; in dtl_enable()
/OK3568_Linux_fs/kernel/drivers/net/wireless/ath/ath11k/
H A Ddp.c493 int align_bytes, n_entries; in ath11k_dp_scatter_idle_link_desc_setup() local
524 n_entries = (DP_LINK_DESC_ALLOC_SIZE_THRESH - align_bytes) / in ath11k_dp_scatter_idle_link_desc_setup()
527 while (n_entries) { in ath11k_dp_scatter_idle_link_desc_setup()
529 n_entries--; in ath11k_dp_scatter_idle_link_desc_setup()
667 u32 entry_sz, align_bytes, n_entries; in ath11k_dp_link_desc_setup() local
725 n_entries = (link_desc_banks[i].size - align_bytes) / in ath11k_dp_link_desc_setup()
728 while (n_entries && in ath11k_dp_link_desc_setup()
732 n_entries--; in ath11k_dp_link_desc_setup()
/OK3568_Linux_fs/kernel/drivers/net/netdevsim/
H A Dudp_tunnels.c97 .n_entries = NSIM_UDP_TUNNEL_N_PORTS,
101 .n_entries = NSIM_UDP_TUNNEL_N_PORTS,
/OK3568_Linux_fs/kernel/drivers/iio/temperature/
H A Dltc2983.c389 u8 index, n_entries, tbl = 0; in __ltc2983_custom_sensor_new() local
398 n_entries = of_property_count_elems_of_size(np, propname, e_size); in __ltc2983_custom_sensor_new()
400 if (!n_entries || (n_entries % 2) != 0) { in __ltc2983_custom_sensor_new()
409 new_custom->size = n_entries * n_size; in __ltc2983_custom_sensor_new()
430 for (index = 0; index < n_entries; index++) { in __ltc2983_custom_sensor_new()
/OK3568_Linux_fs/kernel/virt/kvm/
H A Deventfd.c247 int n_entries; in irqfd_update() local
249 n_entries = kvm_irq_map_gsi(kvm, entries, irqfd->gsi); in irqfd_update()
254 if (n_entries == 1) in irqfd_update()
/OK3568_Linux_fs/kernel/drivers/tty/serial/
H A Dserial-tegra.c1434 int n_entries; in tegra_uart_parse_dt() local
1457 n_entries = of_property_count_u32_elems(np, "nvidia,adjust-baud-rates"); in tegra_uart_parse_dt()
1458 if (n_entries > 0) { in tegra_uart_parse_dt()
1459 tup->n_adjustable_baud_rates = n_entries / 3; in tegra_uart_parse_dt()
1465 for (count = 0, index = 0; count < n_entries; count += 3, in tegra_uart_parse_dt()
/OK3568_Linux_fs/kernel/drivers/misc/sgi-xp/
H A Dxpc_uv.c964 head->n_entries = 0; in xpc_init_fifo_uv()
980 head->n_entries--; in xpc_get_fifo_entry_uv()
981 BUG_ON(head->n_entries < 0); in xpc_get_fifo_entry_uv()
1002 head->n_entries++; in xpc_put_fifo_entry_uv()
1009 return head->n_entries; in xpc_n_of_fifo_entries_uv()
H A Dxpc.h252 int n_entries; member
/OK3568_Linux_fs/kernel/include/net/
H A Dudp_tunnel.h263 unsigned int n_entries; member
/OK3568_Linux_fs/kernel/drivers/net/ethernet/qlogic/qede/
H A Dqede_filter.c994 { .n_entries = 1, .tunnel_types = UDP_TUNNEL_TYPE_VXLAN, },
995 { .n_entries = 1, .tunnel_types = UDP_TUNNEL_TYPE_GENEVE, },
1001 { .n_entries = 1, .tunnel_types = UDP_TUNNEL_TYPE_VXLAN, },
1007 { .n_entries = 1, .tunnel_types = UDP_TUNNEL_TYPE_GENEVE, },
/OK3568_Linux_fs/kernel/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, },
/OK3568_Linux_fs/kernel/net/wireless/
H A Dnl80211.c4332 int n_entries = 0, tmp; in validate_acl_mac_addrs() local
4338 n_entries++; in validate_acl_mac_addrs()
4341 return n_entries; in validate_acl_mac_addrs()
4355 int i = 0, n_entries, tmp; in parse_acl_data() local
4371 n_entries = validate_acl_mac_addrs(info->attrs[NL80211_ATTR_MAC_ADDRS]); in parse_acl_data()
4372 if (n_entries < 0) in parse_acl_data()
4373 return ERR_PTR(n_entries); in parse_acl_data()
4375 if (n_entries > wiphy->max_acl_mac_addrs) in parse_acl_data()
4378 acl = kzalloc(struct_size(acl, mac_addrs, n_entries), GFP_KERNEL); in parse_acl_data()
4387 acl->n_acl_entries = n_entries; in parse_acl_data()
[all …]
H A Dscan.c1535 u32 n_entries = 0; in cfg80211_combine_bsses() local
1563 n_entries++; in cfg80211_combine_bsses()
1593 WARN_ONCE(n_entries != rdev->bss_entries, in cfg80211_combine_bsses()
1595 rdev->bss_entries, n_entries); in cfg80211_combine_bsses()

12