Home
last modified time | relevance | path

Searched refs:array_index_nospec (Results 1 – 25 of 119) sorted by relevance

12345

/linux/arch/x86/entry/
A Dcommon.c49 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 Dspeculation.rst75 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 Dhpimsginit.c33 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 Demux_hwdep.c60 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 Dhiddev.c459 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 Dpmu.h112 u32 index = array_index_nospec(msr - base, in get_gp_pmc()
127 u32 index = array_index_nospec(msr - base, in get_fixed_pmc()
A Dmtrr.c191 *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 Dcounter-chrdev.c259 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 Dcontrol.h166 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 Dnospec.h51 #define array_index_nospec(index, size) \ macro
A Dfdtable.h88 fd = array_index_nospec(fd, fdt->max_fds); in files_lookup_fd_raw()
/linux/drivers/gpu/drm/i915/
A Di915_user_extensions.c46 name = array_index_nospec(name, count); in i915_user_extensions()
/linux/drivers/char/mwave/
A Dmwavedd.c293 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 Dsyscall.c51 syscall_fn = syscall_table[array_index_nospec(scno, sc_nr)]; in invoke_syscall()
/linux/sound/pci/hda/
A Dhda_hwdep.c49 verb = array_index_nospec(verb, codec->core.num_nodes); in get_wcap_ioctl()
/linux/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_ctx.c157 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 Ddrm_ioctl.c835 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 Dwfx.h101 vif_id = array_index_nospec(vif_id, ARRAY_SIZE(wdev->vif)); in wdev_to_wvif()
/linux/drivers/misc/
A Dhmc6352.c42 val = array_index_nospec(val, strlen(map)); in compass_store()
/linux/drivers/usb/usbip/
A Dvhci_sysfs.c222 *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 Dvgic-mmio-v2.c369 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 Dsem.c411 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 Dopl3_synth.c466 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 Dseq_oss_event.c289 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 Dtls.c227 index = array_index_nospec(index, in do_get_thread_area()

Completed in 42 milliseconds

12345