Symbol: array_index_nospec
arch/arm64/kernel/ptrace.c
242
idx = array_index_nospec(idx, ARM_MAX_BRP);
arch/arm64/kernel/ptrace.c
248
idx = array_index_nospec(idx, ARM_MAX_WRP);
arch/arm64/kernel/ptrace.c
268
idx = array_index_nospec(idx, ARM_MAX_BRP);
arch/arm64/kernel/ptrace.c
275
idx = array_index_nospec(idx, ARM_MAX_WRP);
arch/arm64/kernel/syscall.c
48
syscall_fn = syscall_table[array_index_nospec(scno, sc_nr)];
arch/arm64/kvm/guest.c
478
region->koffset = array_index_nospec(reqoffset, sve_state_size);
arch/arm64/kvm/vgic/vgic-mmio-v2.c
390
n = array_index_nospec(n, 4);
arch/arm64/kvm/vgic/vgic-mmio-v2.c
416
n = array_index_nospec(n, 4);
arch/arm64/kvm/vgic/vgic.c
120
intid = array_index_nospec(intid, VGIC_V5_NR_PRIVATE_IRQS);
arch/arm64/kvm/vgic/vgic.c
123
intid = array_index_nospec(intid, VGIC_NR_PRIVATE_IRQS);
arch/arm64/kvm/vgic/vgic.c
96
intid = array_index_nospec(intid, kvm->arch.vgic.nr_spis + VGIC_NR_PRIVATE_IRQS);
arch/loongarch/kernel/ptrace.c
415
idx = array_index_nospec(idx, LOONGARCH_MAX_BRP);
arch/loongarch/kernel/ptrace.c
421
idx = array_index_nospec(idx, LOONGARCH_MAX_WRP);
arch/loongarch/kernel/ptrace.c
438
idx = array_index_nospec(idx, LOONGARCH_MAX_BRP);
arch/loongarch/kernel/ptrace.c
444
idx = array_index_nospec(idx, LOONGARCH_MAX_WRP);
arch/loongarch/kernel/syscall.c
78
syscall_fn = sys_call_table[array_index_nospec(nr, NR_syscalls)];
arch/powerpc/kernel/ptrace/ptrace-view.c
187
regno = array_index_nospec(regno, regs_max);
arch/powerpc/kernel/ptrace/ptrace-view.c
211
regno = array_index_nospec(regno, PT_MAX_PUT_REG + 1);
arch/powerpc/kernel/rtas.c
1877
nargs = array_index_nospec(nargs, ARRAY_SIZE(args.args));
arch/powerpc/kernel/rtas.c
1878
nret = array_index_nospec(nret, ARRAY_SIZE(args.args) - nargs);
arch/riscv/kernel/traps.c
341
syscall = array_index_nospec(syscall, NR_syscalls);
arch/riscv/kvm/aia.c
209
reg_num = array_index_nospec(reg_num, regs_max);
arch/riscv/kvm/aia.c
233
reg_num = array_index_nospec(reg_num, regs_max);
arch/riscv/kvm/aia_aplic.c
101
irqd = &aplic->irqs[array_index_nospec(irq, aplic->nr_irqs)];
arch/riscv/kvm/aia_aplic.c
120
irqd = &aplic->irqs[array_index_nospec(irq, aplic->nr_irqs)];
arch/riscv/kvm/aia_aplic.c
136
irqd = &aplic->irqs[array_index_nospec(irq, aplic->nr_irqs)];
arch/riscv/kvm/aia_aplic.c
174
irqd = &aplic->irqs[array_index_nospec(irq, aplic->nr_irqs)];
arch/riscv/kvm/aia_aplic.c
190
irqd = &aplic->irqs[array_index_nospec(irq, aplic->nr_irqs)];
arch/riscv/kvm/aia_aplic.c
209
irqd = &aplic->irqs[array_index_nospec(irq, aplic->nr_irqs)];
arch/riscv/kvm/aia_aplic.c
258
irqd = &aplic->irqs[array_index_nospec(irq, aplic->nr_irqs)];
arch/riscv/kvm/aia_aplic.c
287
irqd = &aplic->irqs[array_index_nospec(source, aplic->nr_irqs)];
arch/riscv/kvm/aia_aplic.c
49
irqd = &aplic->irqs[array_index_nospec(irq, aplic->nr_irqs)];
arch/riscv/kvm/aia_aplic.c
65
irqd = &aplic->irqs[array_index_nospec(irq, aplic->nr_irqs)];
arch/riscv/kvm/aia_aplic.c
85
irqd = &aplic->irqs[array_index_nospec(irq, aplic->nr_irqs)];
arch/riscv/kvm/isa.c
121
kvm_ext = array_index_nospec(kvm_ext, ARRAY_SIZE(kvm_isa_ext_arr));
arch/riscv/kvm/vcpu_fp.c
114
reg_num = array_index_nospec(reg_num,
arch/riscv/kvm/vcpu_fp.c
148
reg_num = array_index_nospec(reg_num,
arch/riscv/kvm/vcpu_fp.c
163
reg_num = array_index_nospec(reg_num,
arch/riscv/kvm/vcpu_fp.c
99
reg_num = array_index_nospec(reg_num,
arch/riscv/kvm/vcpu_onereg.c
204
reg_num = array_index_nospec(reg_num, regs_max);
arch/riscv/kvm/vcpu_onereg.c
240
reg_num = array_index_nospec(reg_num, regs_max);
arch/riscv/kvm/vcpu_onereg.c
271
reg_num = array_index_nospec(reg_num, regs_max);
arch/riscv/kvm/vcpu_onereg.c
294
reg_num = array_index_nospec(reg_num, regs_max);
arch/riscv/kvm/vcpu_onereg.c
325
reg_num = array_index_nospec(reg_num, regs_max);
arch/riscv/kvm/vcpu_onereg.c
344
reg_num = array_index_nospec(reg_num, regs_max);
arch/riscv/kvm/vcpu_pmu.c
224
cidx = array_index_nospec(cidx, RISCV_KVM_MAX_COUNTERS);
arch/riscv/kvm/vcpu_pmu.c
258
cidx = array_index_nospec(cidx, RISCV_KVM_MAX_COUNTERS);
arch/riscv/kvm/vcpu_pmu.c
555
cidx = array_index_nospec(cidx, RISCV_KVM_MAX_COUNTERS);
arch/riscv/kvm/vcpu_pmu.c
590
pmc_index = array_index_nospec(i + ctr_base,
arch/riscv/kvm/vcpu_pmu.c
662
pmc_index = array_index_nospec(i + ctr_base,
arch/riscv/kvm/vcpu_pmu.c
794
ctr_idx = array_index_nospec(ctr_idx, RISCV_KVM_MAX_COUNTERS);
arch/riscv/kvm/vcpu_pmu.c
92
return hw_event_perf_map[array_index_nospec(sbi_event_code,
arch/riscv/kvm/vcpu_vector.c
144
reg_offset = array_index_nospec(
arch/s390/kernel/diag/diag310.c
198
idx = array_index_nospec(level - 1, ARRAY_SIZE(memtop_pages));
arch/s390/kernel/perf_cpum_cf.c
772
ev = array_index_nospec(ev, ARRAY_SIZE(cpumf_generic_events_user));
arch/s390/kernel/perf_cpum_cf.c
783
ev = array_index_nospec(ev, ARRAY_SIZE(cpumf_generic_events_basic));
arch/s390/kernel/syscall.c
136
nr = array_index_nospec(nr, NR_syscalls);
arch/s390/kvm/interrupt.c
2413
id = array_index_nospec(id, MAX_S390_IO_ADAPTERS);
arch/s390/kvm/interrupt.c
2434
adapter_info.id = array_index_nospec(adapter_info.id,
arch/x86/entry/entry_fred.c
171
sysvec_table[array_index_nospec(vector - FIRST_SYSTEM_VECTOR,
arch/x86/entry/syscall_32.c
82
unr = array_index_nospec(unr, IA32_NR_syscalls);
arch/x86/entry/syscall_64.c
62
unr = array_index_nospec(unr, NR_syscalls);
arch/x86/entry/syscall_64.c
79
xnr = array_index_nospec(xnr, X32_NR_syscalls);
arch/x86/events/core.c
3151
return x86_pmu.event_map(array_index_nospec(hw_event, max));
arch/x86/events/core.c
389
cache_type = array_index_nospec(cache_type, PERF_COUNT_HW_CACHE_MAX);
arch/x86/events/core.c
394
cache_op = array_index_nospec(cache_op, PERF_COUNT_HW_CACHE_OP_MAX);
arch/x86/events/core.c
399
cache_result = array_index_nospec(cache_result, PERF_COUNT_HW_CACHE_RESULT_MAX);
arch/x86/events/core.c
513
attr->config = array_index_nospec((unsigned long)attr->config, x86_pmu.max_events);
arch/x86/events/intel/cstate.c
296
cfg = array_index_nospec((unsigned long)cfg, PERF_CSTATE_CORE_EVENT_MAX);
arch/x86/events/intel/cstate.c
303
cfg = array_index_nospec((unsigned long)cfg, PERF_CSTATE_PKG_EVENT_MAX);
arch/x86/events/intel/cstate.c
310
cfg = array_index_nospec((unsigned long)cfg, PERF_CSTATE_MODULE_EVENT_MAX);
arch/x86/events/msr.c
144
cfg = array_index_nospec((unsigned long)cfg, PERF_MSR_EVENT_MAX);
arch/x86/events/rapl.c
394
cfg = array_index_nospec((long)cfg, NR_RAPL_PKG_DOMAINS + 1);
arch/x86/events/rapl.c
401
cfg = array_index_nospec((long)cfg, NR_RAPL_CORE_DOMAINS + 1);
arch/x86/kernel/fpu/xstate.c
1735
idx = array_index_nospec(idx, ARRAY_SIZE(xstate_prctl_req));
arch/x86/kernel/ptrace.c
617
int index = array_index_nospec(n, HBP_NUM);
arch/x86/kernel/tls.c
230
index = array_index_nospec(index,
arch/x86/kvm/emulate.c
5033
u32 index = array_index_nospec(
arch/x86/kvm/hyperv.c
1044
*pdata = hv->hv_crash_param[array_index_nospec(index, size)];
arch/x86/kvm/hyperv.c
1073
hv->hv_crash_param[array_index_nospec(index, size)] = data;
arch/x86/kvm/ioapic.c
356
index = array_index_nospec(index, IOAPIC_NUM_PINS);
arch/x86/kvm/ioapic.c
61
u32 index = array_index_nospec(
arch/x86/kvm/lapic.c
1177
u32 dest_id = array_index_nospec(irq->dest_id, map->max_apic_id + 1);
arch/x86/kvm/lapic.c
226
offset = array_index_nospec(offset, map->max_apic_id + 1);
arch/x86/kvm/lapic.c
2422
return array_index_nospec(
arch/x86/kvm/lapic.c
852
map_index = array_index_nospec(min + i, map->max_apic_id + 1);
arch/x86/kvm/pmu.h
172
u32 index = array_index_nospec(msr - base,
arch/x86/kvm/pmu.h
187
u32 index = array_index_nospec(msr - base,
arch/x86/kvm/svm/pmu.c
35
return &pmu->gp_counters[array_index_nospec(pmc_idx, num_counters)];
arch/x86/kvm/svm/svm.c
3660
exit_code = array_index_nospec(exit_code, ARRAY_SIZE(svm_exit_handlers));
arch/x86/kvm/vmx/pmu_intel.c
138
return &counters[array_index_nospec(idx, num_counters)];
arch/x86/kvm/vmx/vmcs12.h
394
index = array_index_nospec(index, nr_vmcs12_fields);
arch/x86/kvm/vmx/vmx.c
6842
exit_handler_index = array_index_nospec((u16)exit_reason.basic,
arch/x86/kvm/x86.c
10366
dest_id = array_index_nospec(dest_id, map->max_apic_id + 1);
arch/x86/kvm/x86.c
1531
vcpu->arch.db[array_index_nospec(dr, size)] = val;
arch/x86/kvm/x86.c
1560
return vcpu->arch.db[array_index_nospec(dr, size)];
arch/x86/kvm/x86.c
3565
offset = array_index_nospec(msr - MSR_IA32_MC0_CTL2,
arch/x86/kvm/x86.c
3597
offset = array_index_nospec(msr - MSR_IA32_MC0_CTL,
arch/x86/kvm/x86.c
4315
offset = array_index_nospec(msr - MSR_IA32_MC0_CTL2,
arch/x86/kvm/x86.c
4324
offset = array_index_nospec(msr - MSR_IA32_MC0_CTL,
arch/x86/kvm/x86.c
5475
banks += array_index_nospec(4 * mce->bank, 4 * bank_num);
arch/x86/virt/svm/sev.c
717
rst_index = array_index_nospec(rst_index, rst_max_index);
arch/x86/virt/svm/sev.c
727
segment_index = array_index_nospec(segment_index, desc->max_index);
drivers/acpi/nfit/core.c
501
family = array_index_nospec(family,
drivers/ata/libahci.c
1197
pmp = array_index_nospec(pmp, EM_MAX_SLOTS);
drivers/cdrom/cdrom.c
2335
arg = array_index_nospec(arg, cdi->capacity);
drivers/char/hw_random/virtio-rng.c
91
idx = array_index_nospec(vi->data_idx, sizeof(vi->data));
drivers/char/ipmi/ipmi_msghandler.c
1459
channel = array_index_nospec(channel, IPMI_MAX_CHANNELS);
drivers/char/ipmi/ipmi_msghandler.c
1481
channel = array_index_nospec(channel, IPMI_MAX_CHANNELS);
drivers/char/ipmi/ipmi_msghandler.c
1503
channel = array_index_nospec(channel, IPMI_MAX_CHANNELS);
drivers/char/ipmi/ipmi_msghandler.c
1525
channel = array_index_nospec(channel, IPMI_MAX_CHANNELS);
drivers/char/ipmi/ipmi_msghandler.c
2440
addr->channel = array_index_nospec(addr->channel, IPMI_MAX_CHANNELS);
drivers/counter/counter-chrdev.c
293
parent = array_index_nospec(parent, counter->num_signals);
drivers/counter/counter-chrdev.c
303
parent = array_index_nospec(parent, counter->num_counts);
drivers/counter/counter-chrdev.c
344
id = array_index_nospec(id, counter->counts[parent].num_synapses);
drivers/crypto/ccree/cc_request_mgr.c
80
alg = array_index_nospec(alg, CC_CPP_NUM_ALGS);
drivers/crypto/ccree/cc_request_mgr.c
81
slot = array_index_nospec(slot, CC_CPP_NUM_SLOTS);
drivers/crypto/intel/qat/qat_common/adf_transport.c
260
ring_num = array_index_nospec(ring_num, num_rings_per_bank);
drivers/dma-buf/dma-heap.c
145
nr = array_index_nospec(nr, ARRAY_SIZE(dma_heap_ioctl_cmds));
drivers/gpio/gpiolib.c
218
return &gdev->descs[array_index_nospec(hwnum, gdev->ngpio)];
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
162
hw_ip = array_index_nospec(hw_ip, AMDGPU_HW_IP_NUM);
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
226
hw_ip = array_index_nospec(hw_ip, AMDGPU_HW_IP_NUM);
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
871
hw_prio = array_index_nospec(hw_prio, AMDGPU_RING_PRIO_MAX);
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
475
val = array_index_nospec(val, uma_info->num_entries);
drivers/gpu/drm/amd/pm/amdgpu_pm.c
517
idx = array_index_nospec(idx, ARRAY_SIZE(data.states));
drivers/gpu/drm/drm_ioc32.c
378
nr = array_index_nospec(nr, ARRAY_SIZE(drm_compat_ioctls));
drivers/gpu/drm/drm_ioctl.c
864
index = array_index_nospec(index, dev->driver->num_ioctls);
drivers/gpu/drm/drm_ioctl.c
870
nr = array_index_nospec(nr, DRM_CORE_IOCTL_COUNT);
drivers/gpu/drm/drm_ioctl.c
954
nr = array_index_nospec(nr, DRM_CORE_IOCTL_COUNT);
drivers/gpu/drm/i915/gem/i915_gem_context.c
424
idx = array_index_nospec(idx, set->num_engines);
drivers/gpu/drm/i915/gem/i915_gem_context.c
516
idx = array_index_nospec(idx, set->num_engines);
drivers/gpu/drm/i915/gem/i915_gem_context.c
616
slot = array_index_nospec(slot, set->num_engines);
drivers/gpu/drm/i915/gem/i915_gem_context.c
855
idx = array_index_nospec(idx, pc->num_user_engines);
drivers/gpu/drm/i915/gvt/kvmgt.c
1223
info->index = array_index_nospec(
drivers/gpu/drm/i915/i915_perf.c
4171
i = array_index_nospec(props->oa_format, I915_OA_FORMAT_MAX);
drivers/gpu/drm/i915/i915_query.c
628
func_idx = array_index_nospec(func_idx,
drivers/gpu/drm/i915/i915_user_extensions.c
46
name = array_index_nospec(name, count);
drivers/gpu/drm/tegra/submit.c
248
buf->reloc.gather_offset_words = array_index_nospec(buf->reloc.gather_offset_words,
drivers/gpu/drm/xe/xe_bo.c
3301
idx = array_index_nospec(ext.property, ARRAY_SIZE(gem_create_set_property_funcs));
drivers/gpu/drm/xe/xe_bo.c
3336
idx = array_index_nospec(ext.name,
drivers/gpu/drm/xe/xe_eu_stall.c
322
idx = array_index_nospec(ext.property, ARRAY_SIZE(xe_set_eu_stall_property_funcs));
drivers/gpu/drm/xe/xe_eu_stall.c
352
idx = array_index_nospec(ext.name, ARRAY_SIZE(xe_eu_stall_user_extension_funcs));
drivers/gpu/drm/xe/xe_exec_queue.c
1043
idx = array_index_nospec(args->property,
drivers/gpu/drm/xe/xe_exec_queue.c
1108
idx = array_index_nospec(ext.property, ARRAY_SIZE(exec_queue_set_property_funcs));
drivers/gpu/drm/xe/xe_exec_queue.c
1149
idx = array_index_nospec(ext.name,
drivers/gpu/drm/xe/xe_hw_engine.c
1105
idx = array_index_nospec(eci.engine_class,
drivers/gpu/drm/xe/xe_oa.c
1382
idx = array_index_nospec(ext.property, ARRAY_SIZE(xe_oa_set_property_funcs_open));
drivers/gpu/drm/xe/xe_oa.c
1416
idx = array_index_nospec(ext.name, ARRAY_SIZE(xe_oa_user_extension_funcs));
drivers/gpu/drm/xe/xe_query.c
816
idx = array_index_nospec(query->query, ARRAY_SIZE(xe_query_funcs));
drivers/gpu/drm/xe/xe_vm.c
3672
pat_index = array_index_nospec(pat_index, xe->pat.n_entries);
drivers/gpu/drm/xe/xe_vm_madvise.c
401
pat_index = array_index_nospec(args->pat_index.val, xe->pat.n_entries);
drivers/gpu/drm/xe/xe_vm_madvise.c
654
pat_index = array_index_nospec(args->pat_index.val, xe->pat.n_entries);
drivers/gpu/drm/xe/xe_vm_madvise.c
714
attr_type = array_index_nospec(args->type, ARRAY_SIZE(madvise_funcs));
drivers/hid/usbhid/hiddev.c
459
uref->field_index = array_index_nospec(uref->field_index,
drivers/hid/usbhid/hiddev.c
465
uref->usage_index = array_index_nospec(uref->usage_index,
drivers/hid/usbhid/hiddev.c
493
uref->field_index = array_index_nospec(uref->field_index,
drivers/hid/usbhid/hiddev.c
502
array_index_nospec(uref->usage_index,
drivers/hid/usbhid/hiddev.c
515
array_index_nospec(uref->usage_index,
drivers/hid/usbhid/hiddev.c
763
finfo.field_index = array_index_nospec(finfo.field_index,
drivers/hid/usbhid/hiddev.c
808
cinfo.index = array_index_nospec(cinfo.index,
drivers/hwmon/nct6775-core.c
2827
val = array_index_nospec(val, NUM_TEMP + 1);
drivers/infiniband/core/ucma.c
1848
hdr.cmd = array_index_nospec(hdr.cmd, ARRAY_SIZE(ucma_cmd_table));
drivers/infiniband/core/user_mad.c
922
id = array_index_nospec(id, IB_UMAD_MAX_AGENTS);
drivers/infiniband/hw/hfi1/verbs.c
1497
sl = array_index_nospec(sl, ARRAY_SIZE(ibp->sl_to_sc));
drivers/md/dm-ioctl.c
2033
cmd = array_index_nospec(cmd, ARRAY_SIZE(_ioctls));
drivers/media/dvb-core/dvb_ca_en50221.c
1397
slot = array_index_nospec(slot, ca->slot_count);
drivers/media/dvb-core/dvb_ca_en50221.c
1480
slot = array_index_nospec(slot, ca->slot_count);
drivers/media/dvb-core/dvb_frontend.c
1164
cmd = array_index_nospec(cmd, DTV_MAX_COMMAND);
drivers/media/dvb-core/dvb_net.c
1475
if_num = array_index_nospec(if_num, DVB_NET_DEVICES_MAX);
drivers/media/dvb-core/dvb_net.c
1541
if_num = array_index_nospec(if_num, DVB_NET_DEVICES_MAX);
drivers/media/pci/mgb4/mgb4_cmt.c
231
freq_range = array_index_nospec(freq_range, ARRAY_SIZE(cmt_vals_in));
drivers/media/pci/mgb4/mgb4_sysfs_out.c
119
val = array_index_nospec(val, MGB4_VIN_DEVICES);
drivers/misc/hmc6352.c
42
val = array_index_nospec(val, strlen(map));
drivers/misc/sgi-gru/grukdump.c
189
req.gid = array_index_nospec(req.gid, gru_max_gids);
drivers/misc/vmw_vmci/vmci_event.c
94
sanitized_event = array_index_nospec(event_msg->event_data.event, max_vmci_event);
drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c
2275
t.qset_idx = array_index_nospec(t.qset_idx, nqsets);
drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c
737
rxnfc->fs.location = array_index_nospec(rxnfc->fs.location,
drivers/net/wireless/quantenna/qtnfmac/core.c
49
macid = array_index_nospec(macid, QTNF_MAX_MAC);
drivers/net/wireless/quantenna/qtnfmac/event.c
695
vifid = array_index_nospec(event->vifid, QTNF_MAX_INTF);
drivers/net/wireless/silabs/wfx/wfx.h
107
vif_id = array_index_nospec(vif_id, ARRAY_SIZE(wdev->vif));
drivers/net/wireless/virtual/mac80211_hwsim_main.c
6797
idx = array_index_nospec(idx,
drivers/net/wwan/iosm/iosm_ipc_mux_codec.c
406
if_id = array_index_nospec(if_id, IPC_MEM_MUX_IP_SESSION_ENTRIES);
drivers/net/wwan/iosm/iosm_ipc_mux_codec.c
454
if_id = array_index_nospec(if_id, IPC_MEM_MUX_IP_SESSION_ENTRIES);
drivers/net/wwan/iosm/iosm_ipc_mux_codec.c
530
next_cmd_index = array_index_nospec(next_cmd_index,
drivers/net/wwan/iosm/iosm_ipc_mux_codec.c
633
if_id = array_index_nospec(if_id,
drivers/nvme/target/configfs.c
1977
grpid = array_index_nospec(grpid, NVMET_MAX_ANAGRPS);
drivers/nvme/target/configfs.c
699
newgrpid = array_index_nospec(newgrpid, NVMET_MAX_ANAGRPS);
drivers/pci/endpoint/functions/pci-epf-vntb.c
1077
idx = array_index_nospec(idx, ntb->num_mws); \
drivers/pci/endpoint/functions/pci-epf-vntb.c
1108
idx = array_index_nospec(idx, ntb->num_mws); \
drivers/pci/switch/switchtec.c
1190
p.port = array_index_nospec(p.port,
drivers/platform/x86/amd/hsmp/hsmp.c
223
sock_ind = array_index_nospec(msg->sock_ind, hsmp_pdev.num_sockets);
drivers/platform/x86/amd/hsmp/hsmp.c
331
msg.msg_id = array_index_nospec(msg.msg_id, HSMP_MSG_ID_MAX);
drivers/ptp/ptp_chardev.c
461
pd = ops->pin_config[array_index_nospec(pd.index, ops->n_pins)];
drivers/ptp/ptp_chardev.c
481
pin_index = array_index_nospec(pd.index, ops->n_pins);
drivers/s390/char/keyboard.c
378
kb_table = array_index_nospec(kb_table , MAX_NR_KEYMAPS);
drivers/s390/cio/vfio_ccw_ops.c
341
info->index = array_index_nospec(info->index,
drivers/staging/media/av7110/av7110_ca.c
276
slot_num = array_index_nospec(info->num, MAX_CI_SLOTS);
drivers/staging/media/av7110/av7110_ca.c
40
slot_num = array_index_nospec(data[2] - 1, MAX_CI_SLOTS);
drivers/tty/n_gsm.c
3864
addr = array_index_nospec(dc.channel, NUM_DLCI);
drivers/tty/n_gsm.c
3880
addr = array_index_nospec(dc.channel, NUM_DLCI);
drivers/tty/vt/keyboard.c
2081
kb_func = array_index_nospec(kb_func, MAX_NR_FUNC);
drivers/tty/vt/vt_ioctl.c
601
vsa.console = array_index_nospec(vsa.console, MAX_NR_CONSOLES);
drivers/tty/vt/vt_ioctl.c
834
arg = array_index_nospec(arg, MAX_NR_CONSOLES);
drivers/tty/vt/vt_ioctl.c
890
arg = array_index_nospec(arg - 1, MAX_NR_CONSOLES);
drivers/usb/gadget/function/f_mass_storage.c
3314
num = array_index_nospec(num, FSG_MAX_LUNS);
drivers/usb/usbip/vhci_sysfs.c
228
*pdev_nr = array_index_nospec(*pdev_nr, vhci_num_controllers);
drivers/usb/usbip/vhci_sysfs.c
234
*rhport = array_index_nospec(*rhport, VHCI_HC_PORTS);
drivers/vdpa/vdpa_user/vduse_dev.c
1109
index = array_index_nospec(eventfd->index, dev->vq_num);
drivers/vdpa/vdpa_user/vduse_dev.c
1329
asid = array_index_nospec(entry->asid, dev->nas);
drivers/vdpa/vdpa_user/vduse_dev.c
1474
index = array_index_nospec(config.index, dev->vq_num);
drivers/vdpa/vdpa_user/vduse_dev.c
1493
index = array_index_nospec(vq_info.index, dev->vq_num);
drivers/vdpa/vdpa_user/vduse_dev.c
1544
index = array_index_nospec(index, dev->vq_num);
drivers/vdpa/vdpa_user/vduse_dev.c
1569
asid = array_index_nospec(umem.asid, dev->nas);
drivers/vdpa/vdpa_user/vduse_dev.c
1592
asid = array_index_nospec(umem.asid, dev->nas);
drivers/vdpa/vdpa_user/vduse_dev.c
1723
index = array_index_nospec(vq_info.index, dev->vq_num);
drivers/vfio/pci/vfio_pci_core.c
1213
info->index = array_index_nospec(
drivers/vhost/vdpa.c
1495
index = array_index_nospec(index, v->nvqs);
drivers/vhost/vdpa.c
651
idx = array_index_nospec(idx, v->nvqs);
drivers/vhost/vhost.c
1001
idx = array_index_nospec(idx, dev->nvqs);
fs/aio.c
1145
id = array_index_nospec(id, table->nr);
fs/autofs/dev-ioctl.c
657
idx = array_index_nospec(idx, ARRAY_SIZE(_ioctls));
fs/ext4/mballoc.c
3035
ac->ac_2order = array_index_nospec(i - 1,
fs/file.c
1326
fd = array_index_nospec(fd, fdt->max_fds);
fs/file.c
724
fd = array_index_nospec(fd, fdt->max_fds);
fs/quota/quota.c
772
type = array_index_nospec(type, MAXQUOTAS);
include/linux/kvm_host.h
1004
i = array_index_nospec(i, num_vcpus);
include/linux/kvm_host.h
1081
as_id = array_index_nospec(as_id, KVM_MAX_NR_ADDRESS_SPACES);
include/linux/kvm_host.h
1907
offset = array_index_nospec(offset, slot->npages);
include/sound/control.h
189
return array_index_nospec(ioff, kctl->count);
include/sound/control.h
195
return array_index_nospec(ioff, kctl->count);
io_uring/bpf_filter.c
338
def = &io_issue_defs[array_index_nospec(reg->filter.opcode, IORING_OP_LAST)];
io_uring/fdinfo.c
112
opcode = array_index_nospec(opcode, IORING_OP_LAST);
io_uring/io_uring.c
1753
req->opcode = array_index_nospec(req->opcode, IORING_OP_LAST);
io_uring/io_uring.c
2003
head = array_index_nospec(head, ctx->sq_entries);
io_uring/io_uring.c
2467
offset = array_index_nospec(offset, ctx->cq_wait_size - size);
io_uring/io_uring.c
2579
fd = array_index_nospec(fd, IO_RINGFD_REG_MAX);
io_uring/register.c
768
opcode = array_index_nospec(opcode, IORING_REGISTER_LAST);
io_uring/rsrc.c
1036
index = array_index_nospec(index, data->nr);
io_uring/rsrc.c
1094
index = array_index_nospec(index, data->nr);
io_uring/rsrc.c
331
i = array_index_nospec(i, ctx->file_table.data.nr);
io_uring/rsrc.c
409
i = array_index_nospec(up->offset + done, ctx->buf_table.nr);
io_uring/rsrc.h
118
index = array_index_nospec(index, data->nr);
io_uring/rsrc.h
99
return data->nodes[array_index_nospec(index, data->nr)];
io_uring/tctx.c
276
idx = array_index_nospec(offset, IO_RINGFD_REG_MAX);
io_uring/tctx.c
395
reg.offset = array_index_nospec(reg.offset, IO_RINGFD_REG_MAX);
io_uring/zcrx.c
1115
niov_idx = array_index_nospec(niov_idx, area->nia.num_niovs);
ipc/sem.c
1387
semnum = array_index_nospec(semnum, sma->sem_nsems);
ipc/sem.c
1541
semnum = array_index_nospec(semnum, nsems);
ipc/sem.c
2129
int idx = array_index_nospec(sops->sem_num, sma->sem_nsems);
ipc/sem.c
411
idx = array_index_nospec(sops->sem_num, sma->sem_nsems);
ipc/sem.c
660
int idx = array_index_nospec(sop->sem_num, sma->sem_nsems);
ipc/sem.c
741
int idx = array_index_nospec(sop->sem_num, sma->sem_nsems);
kernel/bpf/syscall.c
1429
map_type = array_index_nospec(map_type, ARRAY_SIZE(bpf_map_types));
kernel/bpf/syscall.c
2357
type = array_index_nospec(type, ARRAY_SIZE(bpf_prog_types));
kernel/dma/contiguous.c
153
nid = array_index_nospec(tmp, MAX_NUMNODES);
kernel/events/ring_buffer.c
971
int aux_pgoff = array_index_nospec(pgoff - rb->aux_pgoff, rb->aux_nr_pages);
kernel/sched/autogroup.c
257
idx = array_index_nospec(nice + 20, 40);
kernel/sched/core.c
10437
idx = array_index_nospec(idx, 40);
kernel/seccomp.c
355
syscall_nr = array_index_nospec(syscall_nr, bitmap_size);
kernel/sys.c
1508
resource = array_index_nospec(resource, RLIM_NLIMITS);
kernel/sys.c
1635
resource = array_index_nospec(resource, RLIM_NLIMITS);
kernel/sys.c
1655
resource = array_index_nospec(resource, RLIM_NLIMITS);
kernel/time/posix-timers.c
1553
return posix_clocks[array_index_nospec(idx, ARRAY_SIZE(posix_clocks))];
lib/nlattr.c
408
type = array_index_nospec(type, maxtype + 1);
lib/nlattr.c
633
type = array_index_nospec(type, maxtype + 1);
mm/hugetlb.c
4296
node = array_index_nospec(tmp, MAX_NUMNODES);
mm/hugetlb_cma.c
105
nid = array_index_nospec(tmp, MAX_NUMNODES);
net/core/netdev_rx_queue.c
258
rxq_idx = array_index_nospec(rxq_idx, dev->real_num_rx_queues);
net/core/sock_diag.c
238
req->sdiag_family = array_index_nospec(req->sdiag_family, AF_MAX);
net/ipv4/fib_semantics.c
1047
type = array_index_nospec(type, RTAX_MAX + 1);
net/ipv4/icmp.c
376
icmp_pointers[array_index_nospec(icmp_param->data.icmph.type,
net/ipv4/ipmr.c
1700
vr->vifi = array_index_nospec(vr->vifi, mrt->maxvif);
net/ipv4/ipmr.c
1769
vr.vifi = array_index_nospec(vr.vifi, mrt->maxvif);
net/ipv4/metrics.c
29
type = array_index_nospec(type, RTAX_MAX + 1);
net/ipv6/ip6mr.c
1961
vr->mifi = array_index_nospec(vr->mifi, mrt->maxvif);
net/ipv6/ip6mr.c
2030
vr.mifi = array_index_nospec(vr.mifi, mrt->maxvif);
net/mpls/af_mpls.c
990
*index = array_index_nospec(*index, net->mpls.platform_labels);
net/netlink/af_netlink.c
662
protocol = array_index_nospec(protocol, MAX_LINKS);
net/socket.c
3182
call = array_index_nospec(call, SYS_SENDMMSG + 1);
net/wireless/nl80211.c
14931
i = array_index_nospec(i, n);
net/wireless/nl80211.c
14938
low_index = array_index_nospec(low_index, n);
net/wireless/nl80211.c
14944
i = array_index_nospec(i, n);
net/wireless/nl80211.c
3897
txq_params->ac = array_index_nospec(ac, NL80211_NUM_ACS);
net/wireless/nl80211.c
5834
ridx = array_index_nospec(ridx, IEEE80211_HT_MCS_MASK_LEN);
net/wireless/util.c
1096
return array_index_nospec(ret, IEEE80211_NUM_TIDS);
net/xfrm/xfrm_compat.c
456
type = array_index_nospec(type, XFRMA_MAX + 1);
sound/core/pcm.c
116
stream = array_index_nospec(stream, 2);
sound/core/rawmidi.c
670
info->stream = array_index_nospec(info->stream, 2);
sound/core/seq/oss/seq_oss_event.c
291
ch = array_index_nospec(ch, info->nr_voices);
sound/core/seq/oss/seq_oss_event.c
350
ch = array_index_nospec(ch, info->nr_voices);
sound/core/seq/oss/seq_oss_midi.c
296
dev = array_index_nospec(dev, dp->max_mididev);
sound/core/seq/oss/seq_oss_synth.c
311
dev = array_index_nospec(dev, SNDRV_SEQ_OSS_MAX_SYNTH_DEVS);
sound/drivers/opl3/opl3_synth.c
464
voice_offset = array_index_nospec(voice_offset, MAX_OPL2_VOICES);
sound/drivers/opl3/opl3_synth.c
465
voice_op = array_index_nospec(voice->op, 4);
sound/hda/common/hwdep.c
49
verb = array_index_nospec(verb, codec->core.num_nodes);
sound/pci/asihpi/hpimsginit.c
33
object = array_index_nospec(object, HPI_OBJ_MAXINDEX + 1);
sound/pci/asihpi/hpimsginit.c
62
object = array_index_nospec(object, HPI_OBJ_MAXINDEX + 1);
sound/pci/asihpi/hpioctl.c
183
pa = &adapters[array_index_nospec(hm->h.adapter_index,
sound/pci/emu10k1/emufx.c
1087
ipcm->substream = array_index_nospec(ipcm->substream,
sound/pci/emu10k1/emufx.c
1127
ipcm->substream = array_index_nospec(ipcm->substream,
sound/pci/rme9652/hdsp.c
4075
channel = array_index_nospec(channel, hdsp->max_channels);
sound/pci/rme9652/hdspm.c
5650
channel = array_index_nospec(channel, hdspm->max_channels_out);
sound/pci/rme9652/hdspm.c
5668
channel = array_index_nospec(channel, hdspm->max_channels_in);
sound/pci/rme9652/rme9652.c
1969
chn = rme9652->channel_map[array_index_nospec(info->channel,
sound/synth/emux/emux_hwdep.c
61
info.mode = array_index_nospec(info.mode, EMUX_MD_END);
sound/synth/emux/emux_hwdep.c
68
info.port = array_index_nospec(info.port, emu->num_ports);
virt/kvm/irqchip.c
134
u32 gsi = array_index_nospec(ue->gsi, KVM_MAX_IRQ_ROUTES);
virt/kvm/kvm_main.c
4817
type = array_index_nospec(cd->type, ARRAY_SIZE(kvm_device_ops_table));