| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_tuning.c | 189 n_gt = BITS_TO_LONGS(gt_tunings.n_entries); in xe_tuning_init() 190 n_engine = BITS_TO_LONGS(engine_tunings.n_entries); in xe_tuning_init() 191 n_lrc = BITS_TO_LONGS(lrc_tunings.n_entries); in xe_tuning_init() 214 gt_tunings.n_entries); in xe_tuning_process_gt() 225 engine_tunings.n_entries); in xe_tuning_process_engine() 244 lrc_tunings.n_entries); in xe_tuning_process_lrc() 260 for_each_set_bit(idx, gt->tuning_active.gt, gt_tunings.n_entries) in xe_tuning_dump() 265 for_each_set_bit(idx, gt->tuning_active.engine, engine_tunings.n_entries) in xe_tuning_dump() 270 for_each_set_bit(idx, gt->tuning_active.lrc, lrc_tunings.n_entries) in xe_tuning_dump()
|
| H A D | xe_wa.c | 808 .n_entries = ARRAY_SIZE(oob_was_entries), 820 .n_entries = ARRAY_SIZE(device_oob_was_entries), 838 xe_rtp_process_ctx_enable_active_tracking(&ctx, xe->wa_active.oob, device_oob_was.n_entries); in xe_wa_process_device_oob() 856 oob_was.n_entries); in xe_wa_process_gt_oob() 873 gt_was.n_entries); in xe_wa_process_gt() 891 engine_was.n_entries); in xe_wa_process_engine() 908 lrc_was.n_entries); in xe_wa_process_lrc() 923 sizeof(*p) * BITS_TO_LONGS(device_oob_was.n_entries), in xe_wa_device_init() 946 n_gt = BITS_TO_LONGS(gt_was.n_entries); in xe_wa_gt_init() 947 n_engine = BITS_TO_LONGS(engine_was.n_entries); in xe_wa_gt_init() [all …]
|
| H A D | xe_rtp_types.h | 138 size_t n_entries; member 143 size_t n_entries; member 160 size_t n_entries; member
|
| H A D | xe_rtp.c | 311 size_t n_entries) in xe_rtp_process_ctx_enable_active_tracking() argument 314 ctx->n_entries = n_entries; in xe_rtp_process_ctx_enable_active_tracking() 325 if (drm_WARN_ON(&xe->drm, idx >= ctx->n_entries)) in rtp_mark_active() 362 for (size_t i = 0; i < table->n_entries; i++) { in xe_rtp_process_to_sr() 405 for (size_t i = 0; i < table->n_entries; i++) { in xe_rtp_process()
|
| H A D | xe_rtp.h | 491 .n_entries = sizeof((const struct xe_rtp_entry_sr[]){__VA_ARGS__}) / \ 497 .n_entries = sizeof((const struct xe_rtp_entry[]){__VA_ARGS__}) / \ 508 size_t n_entries);
|
| H A D | xe_vm_madvise.c | 398 if (XE_IOCTL_DBG(xe, args->pat_index.val >= xe->pat.n_entries)) in madvise_args_are_sane() 401 pat_index = array_index_nospec(args->pat_index.val, xe->pat.n_entries); in madvise_args_are_sane() 654 pat_index = array_index_nospec(args->pat_index.val, xe->pat.n_entries); in xe_vm_madvise_ioctl()
|
| /linux/net/ipv4/ |
| H A D | udp_tunnel_nic.c | 137 for (j = 0; j < info->tables[i].n_entries; j++) in udp_tunnel_nic_is_empty() 157 for (j = 0; j < table->n_entries; j++) in udp_tunnel_nic_should_replay() 246 for (j = 0; j < info->tables[i].n_entries; j++) in udp_tunnel_nic_device_sync_by_port() 260 for (j = 0; j < info->tables[i].n_entries; j++) in udp_tunnel_nic_device_sync_by_table() 263 if (j == info->tables[i].n_entries) in udp_tunnel_nic_device_sync_by_table() 271 for (j = 0; j < info->tables[i].n_entries; j++) { in udp_tunnel_nic_device_sync_by_table() 342 for (j = 0; j < info->tables[i].n_entries; j++) { in udp_tunnel_nic_has_collision() 429 for (j = 0; j < table->n_entries; j++) in udp_tunnel_nic_try_existing() 464 for (j = 0; j < table->n_entries; j++) { in udp_tunnel_nic_add_new() 554 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); 226 for (ni = 0; ni < s->n_entries; ni++) { in dm_stats_cleanup() 273 sector_t n_entries; in dm_stats_create() local 286 n_entries = end - start; in dm_stats_create() 287 if (dm_sector_div64(n_entries, step)) in dm_stats_create() 288 n_entries++; in dm_stats_create() 290 if (n_entries != (size_t)n_entries || !(size_t)(n_entries + 1)) in dm_stats_create() 293 if (n_entries > DM_STAT_MAX_ENTRIES) in dm_stats_create() 296 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/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 | 484 u8 index, n_entries; in __ltc2983_custom_sensor_new() local 488 n_entries = fwnode_property_count_u32(fn, propname); in __ltc2983_custom_sensor_new() 490 n_entries = fwnode_property_count_u64(fn, propname); in __ltc2983_custom_sensor_new() 492 if (!n_entries || (n_entries % 2) != 0) in __ltc2983_custom_sensor_new() 500 new_custom->size = n_entries * n_size; in __ltc2983_custom_sensor_new() 516 new_custom->table = devm_kcalloc(dev, n_entries, sizeof(u32), GFP_KERNEL); in __ltc2983_custom_sensor_new() 518 new_custom->table = devm_kcalloc(dev, n_entries, sizeof(u64), GFP_KERNEL); in __ltc2983_custom_sensor_new() 530 ret = fwnode_property_read_u32_array(fn, propname, new_custom->table, n_entries); in __ltc2983_custom_sensor_new() 534 cpu_to_be32_array(new_custom->table, new_custom->table, n_entries); in __ltc2983_custom_sensor_new() 536 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 | 574 int align_bytes, n_entries; in ath12k_dp_scatter_idle_link_desc_setup() local 606 n_entries = (DP_LINK_DESC_ALLOC_SIZE_THRESH - align_bytes) / in ath12k_dp_scatter_idle_link_desc_setup() 609 while (n_entries) { in ath12k_dp_scatter_idle_link_desc_setup() 610 cookie = DP_LINK_DESC_COOKIE_SET(n_entries, i); in ath12k_dp_scatter_idle_link_desc_setup() 613 n_entries--; in ath12k_dp_scatter_idle_link_desc_setup() 752 u32 entry_sz, align_bytes, n_entries; in ath12k_dp_link_desc_setup() local 812 n_entries = (link_desc_banks[i].size - align_bytes) / in ath12k_dp_link_desc_setup() 815 while (n_entries && in ath12k_dp_link_desc_setup() 817 cookie = DP_LINK_DESC_COOKIE_SET(n_entries, i); in ath12k_dp_link_desc_setup() 820 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_ddi.c | 139 int i, n_entries; in hsw_prepare_dp_ddi_buffers() local 143 trans = intel_ddi_buf_trans_get(encoder, crtc_state, &n_entries); in hsw_prepare_dp_ddi_buffers() 152 for (i = 0; i < n_entries; i++) { in hsw_prepare_dp_ddi_buffers() 171 int n_entries; in hsw_prepare_hdmi_ddi_buffers() local 175 trans = intel_ddi_buf_trans_get(encoder, crtc_state, &n_entries); in hsw_prepare_hdmi_ddi_buffers() 1109 int n_entries; in skl_ddi_set_iboost() local 1111 trans = intel_ddi_buf_trans_get(encoder, crtc_state, &n_entries); in skl_ddi_set_iboost() 1135 int n_entries; in intel_ddi_dp_voltage_max() local 1137 intel_ddi_buf_trans_get(encoder, crtc_state, &n_entries); in intel_ddi_dp_voltage_max() 1139 if (drm_WARN_ON(display->drm, n_entries < 1)) in intel_ddi_dp_voltage_max() [all …]
|
| H A D | intel_bios.c | 2271 int i, n_entries; in map_ddc_pin() local 2275 n_entries = ARRAY_SIZE(adlp_ddc_pin_map); in map_ddc_pin() 2278 n_entries = ARRAY_SIZE(adls_ddc_pin_map); in map_ddc_pin() 2283 n_entries = ARRAY_SIZE(rkl_pch_tgp_ddc_pin_map); in map_ddc_pin() 2286 n_entries = ARRAY_SIZE(gen9bc_tgp_ddc_pin_map); in map_ddc_pin() 2289 n_entries = ARRAY_SIZE(icp_ddc_pin_map); in map_ddc_pin() 2292 n_entries = ARRAY_SIZE(cnp_ddc_pin_map); in map_ddc_pin() 2298 for (i = 0; i < n_entries; i++) { in map_ddc_pin() 3723 int i, n_entries; in map_aux_ch() local 3727 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/virt/kvm/ |
| H A D | eventfd.c | 277 int n_entries; in irqfd_update() local 281 n_entries = kvm_irq_map_gsi(kvm, entries, irqfd->gsi); in irqfd_update() 286 if (n_entries == 1) in irqfd_update()
|
| /linux/drivers/net/ethernet/wangxun/txgbe/ |
| H A D | txgbe_main.c | 690 { .n_entries = 1, .tunnel_types = UDP_TUNNEL_TYPE_VXLAN, }, 691 { .n_entries = 1, .tunnel_types = UDP_TUNNEL_TYPE_VXLAN_GPE, }, 692 { .n_entries = 1, .tunnel_types = UDP_TUNNEL_TYPE_GENEVE, },
|
| /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/gpu/drm/xe/tests/ |
| H A D | xe_rtp_test.c | 541 xe_rtp_process_ctx_enable_active_tracking(&ctx, &active, param->table.n_entries); in xe_rtp_process_to_sr_tests() 657 xe_rtp_process_ctx_enable_active_tracking(&ctx, &active, param->table.n_entries); in xe_rtp_process_tests()
|
| /linux/kernel/trace/ |
| H A D | trace_events_hist.c | 5436 unsigned long *stack, n_entries; in event_hist_trigger() local 5440 n_entries = *stack; in event_hist_trigger() 5441 memcpy(entries, ++stack, n_entries * sizeof(unsigned long)); in event_hist_trigger() 5693 int i, j, n_entries; in print_entries() local 5697 n_entries = tracing_map_sort_entries(map, hist_data->sort_keys, in print_entries() 5700 if (n_entries < 0) in print_entries() 5701 return n_entries; in print_entries() 5711 n_entries = -ENOMEM; in print_entries() 5715 for (i = 0; i < n_entries; i++) { in print_entries() 5723 for (i = 0; i < n_entries; i++) in print_entries() [all …]
|
| /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 …]
|
| /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, },
|