Home
last modified time | relevance | path

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

12

/Linux-v6.1/drivers/gpu/drm/i915/display/
Dintel_ddi_buf_trans.c1069 int *n_entries) in hsw_get_buf_trans() argument
1072 return intel_get_buf_trans(&hsw_trans_fdi, n_entries); in hsw_get_buf_trans()
1074 return intel_get_buf_trans(&hsw_trans_hdmi, n_entries); in hsw_get_buf_trans()
1076 return intel_get_buf_trans(&hsw_trans_dp, n_entries); in hsw_get_buf_trans()
1082 int *n_entries) in bdw_get_buf_trans() argument
1085 return intel_get_buf_trans(&bdw_trans_fdi, n_entries); in bdw_get_buf_trans()
1087 return intel_get_buf_trans(&bdw_trans_hdmi, n_entries); in bdw_get_buf_trans()
1090 return intel_get_buf_trans(&bdw_trans_edp, n_entries); in bdw_get_buf_trans()
1092 return intel_get_buf_trans(&bdw_trans_dp, n_entries); in bdw_get_buf_trans()
1095 static int skl_buf_trans_num_entries(enum port port, int n_entries) in skl_buf_trans_num_entries() argument
[all …]
Dintel_ddi.c116 int i, n_entries; in hsw_prepare_dp_ddi_buffers() local
120 trans = encoder->get_buf_trans(encoder, crtc_state, &n_entries); in hsw_prepare_dp_ddi_buffers()
129 for (i = 0; i < n_entries; i++) { in hsw_prepare_dp_ddi_buffers()
148 int n_entries; in hsw_prepare_hdmi_ddi_buffers() local
152 trans = encoder->get_buf_trans(encoder, crtc_state, &n_entries); in hsw_prepare_hdmi_ddi_buffers()
970 int n_entries; in skl_ddi_set_iboost() local
972 trans = encoder->get_buf_trans(encoder, crtc_state, &n_entries); in skl_ddi_set_iboost()
996 int n_entries; in intel_ddi_dp_voltage_max() local
998 encoder->get_buf_trans(encoder, crtc_state, &n_entries); in intel_ddi_dp_voltage_max()
1000 if (drm_WARN_ON(&dev_priv->drm, n_entries < 1)) in intel_ddi_dp_voltage_max()
[all …]
Dintel_fdi.c775 int n_entries; in hsw_fdi_link_train() local
777 encoder->get_buf_trans(encoder, crtc_state, &n_entries); in hsw_fdi_link_train()
809 for (i = 0; i < n_entries * 2; i++) { in hsw_fdi_link_train()
858 if (i == n_entries * 2 - 1) { in hsw_fdi_link_train()
Dintel_bios.c2189 int n_entries; in map_ddc_pin() local
2193 n_entries = ARRAY_SIZE(adlp_ddc_pin_map); in map_ddc_pin()
2196 n_entries = ARRAY_SIZE(adls_ddc_pin_map); in map_ddc_pin()
2201 n_entries = ARRAY_SIZE(rkl_pch_tgp_ddc_pin_map); in map_ddc_pin()
2204 n_entries = ARRAY_SIZE(gen9bc_tgp_ddc_pin_map); in map_ddc_pin()
2207 n_entries = ARRAY_SIZE(icp_ddc_pin_map); in map_ddc_pin()
2210 n_entries = ARRAY_SIZE(cnp_ddc_pin_map); in map_ddc_pin()
2216 if (vbt_pin < n_entries && ddc_pin_map[vbt_pin] != 0) in map_ddc_pin()
/Linux-v6.1/kernel/trace/
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()
999 unsigned int n_entries, in sort_secondary() argument
1017 for (i = 0; i < n_entries - 1; i++) { in sort_secondary()
1023 if (i < n_entries - 2) in sort_secondary()
1076 int i, n_entries, ret; in tracing_map_sort_entries() local
[all …]
Dtracing_map.h287 unsigned int n_entries);
Dtrace_events_hist.c5327 int i, n_entries; in print_entries() local
5329 n_entries = tracing_map_sort_entries(map, hist_data->sort_keys, in print_entries()
5332 if (n_entries < 0) in print_entries()
5333 return n_entries; in print_entries()
5335 for (i = 0; i < n_entries; i++) in print_entries()
5340 tracing_map_destroy_sort_entries(sort_entries, n_entries); in print_entries()
5342 return n_entries; in print_entries()
5349 int n_entries; in hist_trigger_show() local
5359 n_entries = print_entries(m, hist_data); in hist_trigger_show()
5360 if (n_entries < 0) in hist_trigger_show()
[all …]
/Linux-v6.1/net/ipv4/
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 …]
/Linux-v6.1/drivers/gpu/drm/i915/gt/
Dintel_mocs.c23 unsigned int n_entries; member
450 table->n_entries = PVC_NUM_MOCS_ENTRIES; in get_mocs_settings()
463 table->n_entries = GEN9_NUM_MOCS_ENTRIES; in get_mocs_settings()
469 table->n_entries = GEN9_NUM_MOCS_ENTRIES; in get_mocs_settings()
475 table->n_entries = GEN9_NUM_MOCS_ENTRIES; in get_mocs_settings()
482 table->n_entries = GEN9_NUM_MOCS_ENTRIES; in get_mocs_settings()
487 table->n_entries = GEN9_NUM_MOCS_ENTRIES; in get_mocs_settings()
493 table->n_entries = GEN9_NUM_MOCS_ENTRIES; in get_mocs_settings()
496 table->n_entries = GEN9_NUM_MOCS_ENTRIES; in get_mocs_settings()
500 table->n_entries = GEN9_NUM_MOCS_ENTRIES; in get_mocs_settings()
[all …]
Dselftest_mocs.c143 return read_regs(rq, addr, table->n_entries, offset); in read_mocs_table()
155 return read_regs(rq, addr, (table->n_entries + 1) / 2, offset); in read_l3cc_table()
/Linux-v6.1/drivers/md/
Ddm-stats.c46 size_t n_entries; member
216 for (ni = 0; ni < s->n_entries; ni++) { in dm_stats_cleanup()
263 sector_t n_entries; in dm_stats_create() local
276 n_entries = end - start; in dm_stats_create()
277 if (dm_sector_div64(n_entries, step)) in dm_stats_create()
278 n_entries++; in dm_stats_create()
280 if (n_entries != (size_t)n_entries || !(size_t)(n_entries + 1)) in dm_stats_create()
283 shared_alloc_size = struct_size(s, stat_shared, n_entries); in dm_stats_create()
284 if ((shared_alloc_size - sizeof(struct dm_stat)) / sizeof(struct dm_stat_shared) != n_entries) in dm_stats_create()
287 percpu_alloc_size = (size_t)n_entries * sizeof(struct dm_stat_percpu); in dm_stats_create()
[all …]
/Linux-v6.1/drivers/net/ethernet/netronome/nfp/bpf/
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()
/Linux-v6.1/kernel/bpf/
Dlpm_trie.c35 size_t n_entries; member
325 if (trie->n_entries == trie->map.max_entries) { in trie_update_elem()
336 trie->n_entries++; in trie_update_elem()
379 trie->n_entries--; in trie_update_elem()
422 trie->n_entries--; in trie_update_elem()
480 trie->n_entries--; in trie_delete_elem()
/Linux-v6.1/drivers/iio/temperature/
Dltc2983.c396 u8 index, n_entries; in __ltc2983_custom_sensor_new() local
400 n_entries = fwnode_property_count_u32(fn, propname); in __ltc2983_custom_sensor_new()
402 n_entries = fwnode_property_count_u64(fn, propname); in __ltc2983_custom_sensor_new()
404 if (!n_entries || (n_entries % 2) != 0) { in __ltc2983_custom_sensor_new()
413 new_custom->size = n_entries * n_size; in __ltc2983_custom_sensor_new()
431 new_custom->table = devm_kcalloc(dev, n_entries, sizeof(u32), GFP_KERNEL); in __ltc2983_custom_sensor_new()
433 new_custom->table = devm_kcalloc(dev, n_entries, sizeof(u64), GFP_KERNEL); in __ltc2983_custom_sensor_new()
445 ret = fwnode_property_read_u32_array(fn, propname, new_custom->table, n_entries); in __ltc2983_custom_sensor_new()
449 cpu_to_be32_array(new_custom->table, new_custom->table, n_entries); in __ltc2983_custom_sensor_new()
451 ret = fwnode_property_read_u64_array(fn, propname, new_custom->table, n_entries); in __ltc2983_custom_sensor_new()
[all …]
/Linux-v6.1/net/ethtool/
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-v6.1/drivers/net/wireless/ath/ath11k/
Ddp.c513 int align_bytes, n_entries; in ath11k_dp_scatter_idle_link_desc_setup() local
544 n_entries = (DP_LINK_DESC_ALLOC_SIZE_THRESH - align_bytes) / in ath11k_dp_scatter_idle_link_desc_setup()
547 while (n_entries) { in ath11k_dp_scatter_idle_link_desc_setup()
549 n_entries--; in ath11k_dp_scatter_idle_link_desc_setup()
687 u32 entry_sz, align_bytes, n_entries; in ath11k_dp_link_desc_setup() local
745 n_entries = (link_desc_banks[i].size - align_bytes) / in ath11k_dp_link_desc_setup()
748 while (n_entries && in ath11k_dp_link_desc_setup()
752 n_entries--; in ath11k_dp_link_desc_setup()
/Linux-v6.1/arch/powerpc/platforms/pseries/
Ddtl.c182 long int n_entries; in dtl_enable() local
197 n_entries = dtl_buf_entries; in dtl_enable()
210 dtl->buf_entries = n_entries; in dtl_enable()
/Linux-v6.1/drivers/net/netdevsim/
Dudp_tunnels.c97 .n_entries = NSIM_UDP_TUNNEL_N_PORTS,
101 .n_entries = NSIM_UDP_TUNNEL_N_PORTS,
/Linux-v6.1/virt/kvm/
Deventfd.c253 int n_entries; in irqfd_update() local
255 n_entries = kvm_irq_map_gsi(kvm, entries, irqfd->gsi); in irqfd_update()
260 if (n_entries == 1) in irqfd_update()
/Linux-v6.1/drivers/misc/sgi-xp/
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()
Dxpc.h252 int n_entries; member
/Linux-v6.1/drivers/tty/serial/
Dserial-tegra.c1420 int n_entries; in tegra_uart_parse_dt() local
1443 n_entries = of_property_count_u32_elems(np, "nvidia,adjust-baud-rates"); in tegra_uart_parse_dt()
1444 if (n_entries > 0) { in tegra_uart_parse_dt()
1445 tup->n_adjustable_baud_rates = n_entries / 3; in tegra_uart_parse_dt()
1451 for (count = 0, index = 0; count < n_entries; count += 3, in tegra_uart_parse_dt()
/Linux-v6.1/include/net/
Dudp_tunnel.h271 unsigned int n_entries; member
/Linux-v6.1/drivers/scsi/elx/libefc_sli/
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 …]
/Linux-v6.1/drivers/net/ethernet/qlogic/qede/
Dqede_filter.c992 { .n_entries = 1, .tunnel_types = UDP_TUNNEL_TYPE_VXLAN, },
993 { .n_entries = 1, .tunnel_types = UDP_TUNNEL_TYPE_GENEVE, },
999 { .n_entries = 1, .tunnel_types = UDP_TUNNEL_TYPE_VXLAN, },
1005 { .n_entries = 1, .tunnel_types = UDP_TUNNEL_TYPE_GENEVE, },

12