/linux/arch/x86/entry/ |
A D | common.c | 49 unr = array_index_nospec(unr, NR_syscalls); in do_syscall_x64() 66 xnr = array_index_nospec(xnr, X32_NR_syscalls); in do_syscall_x32() 111 unr = array_index_nospec(unr, IA32_NR_syscalls); in do_syscall_32_irqs_on()
|
/linux/Documentation/staging/ |
A D | speculation.rst | 75 The array_index_nospec() helper in <linux/nospec.h> can be used to 78 A call to array_index_nospec(index, size) returns a sanitized index 89 index = array_index_nospec(index, MAX_ARRAY_ELEMS);
|
/linux/sound/pci/asihpi/ |
A D | hpimsginit.c | 33 object = array_index_nospec(object, HPI_OBJ_MAXINDEX + 1); in hpi_init_message() 62 object = array_index_nospec(object, HPI_OBJ_MAXINDEX + 1); in hpi_init_response()
|
/linux/sound/synth/emux/ |
A D | emux_hwdep.c | 60 info.mode = array_index_nospec(info.mode, EMUX_MD_END); in snd_emux_hwdep_misc_mode() 67 info.port = array_index_nospec(info.port, emu->num_ports); in snd_emux_hwdep_misc_mode()
|
/linux/drivers/hid/usbhid/ |
A D | hiddev.c | 459 uref->field_index = array_index_nospec(uref->field_index, in hiddev_ioctl_usage() 465 uref->usage_index = array_index_nospec(uref->usage_index, in hiddev_ioctl_usage() 493 uref->field_index = array_index_nospec(uref->field_index, in hiddev_ioctl_usage() 502 array_index_nospec(uref->usage_index, in hiddev_ioctl_usage() 515 array_index_nospec(uref->usage_index, in hiddev_ioctl_usage() 763 finfo.field_index = array_index_nospec(finfo.field_index, in hiddev_ioctl() 808 cinfo.index = array_index_nospec(cinfo.index, in hiddev_ioctl()
|
/linux/arch/x86/kvm/ |
A D | pmu.h | 112 u32 index = array_index_nospec(msr - base, in get_gp_pmc() 127 u32 index = array_index_nospec(msr - base, in get_fixed_pmc()
|
A D | mtrr.c | 191 *unit = array_index_nospec( in fixed_msr_to_seg_unit() 197 *unit = array_index_nospec( in fixed_msr_to_seg_unit()
|
/linux/drivers/counter/ |
A D | counter-chrdev.c | 259 parent = array_index_nospec(parent, counter->num_signals); in counter_add_watch() 269 parent = array_index_nospec(parent, counter->num_counts); in counter_add_watch() 310 id = array_index_nospec(id, counter->counts[parent].num_synapses); in counter_add_watch() 319 id = array_index_nospec(id, num_ext); in counter_add_watch()
|
/linux/include/sound/ |
A D | control.h | 166 return array_index_nospec(ioff, kctl->count); in snd_ctl_get_ioffnum() 172 return array_index_nospec(ioff, kctl->count); in snd_ctl_get_ioffidx()
|
/linux/include/linux/ |
A D | nospec.h | 51 #define array_index_nospec(index, size) \ macro
|
A D | fdtable.h | 88 fd = array_index_nospec(fd, fdt->max_fds); in files_lookup_fd_raw()
|
/linux/drivers/gpu/drm/i915/ |
A D | i915_user_extensions.c | 46 name = array_index_nospec(name, count); in i915_user_extensions()
|
/linux/drivers/char/mwave/ |
A D | mwavedd.c | 293 ipcnum = array_index_nospec(ipcnum, in mwave_ioctl() 323 ipcnum = array_index_nospec(ipcnum, in mwave_ioctl() 391 ipcnum = array_index_nospec(ipcnum, in mwave_ioctl()
|
/linux/arch/arm64/kernel/ |
A D | syscall.c | 51 syscall_fn = syscall_table[array_index_nospec(scno, sc_nr)]; in invoke_syscall()
|
/linux/sound/pci/hda/ |
A D | hda_hwdep.c | 49 verb = array_index_nospec(verb, codec->core.num_nodes); in get_wcap_ioctl()
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_ctx.c | 157 hw_ip = array_index_nospec(hw_ip, AMDGPU_HW_IP_NUM); in amdgpu_ctx_get_hw_prio() 188 hw_ip = array_index_nospec(hw_ip, AMDGPU_HW_IP_NUM); in amdgpu_ctx_init_entity() 609 hw_prio = array_index_nospec(hw_prio, AMDGPU_RING_PRIO_MAX); in amdgpu_ctx_set_entity_priority()
|
/linux/drivers/gpu/drm/ |
A D | drm_ioctl.c | 835 index = array_index_nospec(index, dev->driver->num_ioctls); in drm_ioctl() 841 nr = array_index_nospec(nr, DRM_CORE_IOCTL_COUNT); in drm_ioctl() 924 nr = array_index_nospec(nr, DRM_CORE_IOCTL_COUNT); in drm_ioctl_flags()
|
/linux/drivers/staging/wfx/ |
A D | wfx.h | 101 vif_id = array_index_nospec(vif_id, ARRAY_SIZE(wdev->vif)); in wdev_to_wvif()
|
/linux/drivers/misc/ |
A D | hmc6352.c | 42 val = array_index_nospec(val, strlen(map)); in compass_store()
|
/linux/drivers/usb/usbip/ |
A D | vhci_sysfs.c | 222 *pdev_nr = array_index_nospec(*pdev_nr, vhci_num_controllers); in valid_port() 228 *rhport = array_index_nospec(*rhport, VHCI_HC_PORTS); in valid_port()
|
/linux/arch/arm64/kvm/vgic/ |
A D | vgic-mmio-v2.c | 369 n = array_index_nospec(n, 4); in vgic_mmio_read_apr() 395 n = array_index_nospec(n, 4); in vgic_mmio_write_apr()
|
/linux/ipc/ |
A D | sem.c | 411 idx = array_index_nospec(sops->sem_num, sma->sem_nsems); in sem_lock() 660 int idx = array_index_nospec(sop->sem_num, sma->sem_nsems); in perform_atomic_semop_slow() 741 int idx = array_index_nospec(sop->sem_num, sma->sem_nsems); in perform_atomic_semop() 1388 semnum = array_index_nospec(semnum, sma->sem_nsems); in semctl_setval() 1543 semnum = array_index_nospec(semnum, nsems); in semctl_main() 2132 int idx = array_index_nospec(sops->sem_num, sma->sem_nsems); in __do_semtimedop()
|
/linux/sound/drivers/opl3/ |
A D | opl3_synth.c | 466 voice_offset = array_index_nospec(voice_offset, MAX_OPL2_VOICES); in snd_opl3_set_voice() 467 voice_op = array_index_nospec(voice->op, 4); in snd_opl3_set_voice()
|
/linux/sound/core/seq/oss/ |
A D | seq_oss_event.c | 289 ch = array_index_nospec(ch, info->nr_voices); in note_on_event() 350 ch = array_index_nospec(ch, info->nr_voices); in note_off_event()
|
/linux/arch/x86/kernel/ |
A D | tls.c | 227 index = array_index_nospec(index, in do_get_thread_area()
|