Home
last modified time | relevance | path

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

123456

/openbmc/linux/arch/x86/entry/
H A Dcommon.c50 unr = array_index_nospec(unr, NR_syscalls); in do_syscall_x64()
67 xnr = array_index_nospec(xnr, X32_NR_syscalls); in do_syscall_x32()
116 unr = array_index_nospec(unr, IA32_NR_syscalls); in do_syscall_32_irqs_on()
/openbmc/linux/sound/pci/asihpi/
H 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()
/openbmc/linux/Documentation/staging/
H 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);
/openbmc/linux/sound/synth/emux/
H 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()
/openbmc/linux/io_uring/
H A Dfiletable.c77 slot_index = array_index_nospec(slot_index, ctx->nr_user_files); in io_install_fixed_file()
145 offset = array_index_nospec(offset, ctx->nr_user_files); in io_fixed_fd_remove()
H A Dtctx.c216 offset = array_index_nospec(offset, IO_RINGFD_REG_MAX); in io_ring_add_registered_file()
335 reg.offset = array_index_nospec(reg.offset, IO_RINGFD_REG_MAX); in io_ringfd_unregister()
H A During_cmd.c104 index = array_index_nospec(req->buf_index, ctx->nr_user_bufs); in io_uring_cmd_prep()
/openbmc/linux/include/linux/
H A Dnospec.h55 #define array_index_nospec(index, size) \ macro
H A Dfdtable.h87 fd = array_index_nospec(fd, fdt->max_fds); in files_lookup_fd_raw()
/openbmc/linux/drivers/hid/usbhid/
H 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()
/openbmc/linux/drivers/gpu/drm/i915/
H A Di915_user_extensions.c46 name = array_index_nospec(name, count); in i915_user_extensions()
/openbmc/linux/arch/x86/kvm/
H A Dpmu.h107 u32 index = array_index_nospec(msr - base, in get_gp_pmc()
122 u32 index = array_index_nospec(msr - base, in get_fixed_pmc()
/openbmc/linux/net/ipv4/
H A Dmetrics.c29 type = array_index_nospec(type, RTAX_MAX + 1); in ip_metrics_convert()
/openbmc/linux/include/sound/
H A Dcontrol.h191 return array_index_nospec(ioff, kctl->count); in snd_ctl_get_ioffnum()
197 return array_index_nospec(ioff, kctl->count); in snd_ctl_get_ioffidx()
/openbmc/linux/drivers/char/mwave/
H 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()
/openbmc/linux/arch/arm64/kernel/
H A Dsyscall.c50 syscall_fn = syscall_table[array_index_nospec(scno, sc_nr)]; in invoke_syscall()
/openbmc/linux/sound/pci/hda/
H A Dhda_hwdep.c49 verb = array_index_nospec(verb, codec->core.num_nodes); in get_wcap_ioctl()
/openbmc/linux/drivers/misc/
H A Dhmc6352.c42 val = array_index_nospec(val, strlen(map)); in compass_store()
/openbmc/linux/drivers/net/wireless/silabs/wfx/
H A Dwfx.h105 vif_id = array_index_nospec(vif_id, ARRAY_SIZE(wdev->vif)); in wdev_to_wvif()
/openbmc/linux/drivers/misc/vmw_vmci/
H A Dvmci_event.c94 sanitized_event = array_index_nospec(event_msg->event_data.event, max_vmci_event); in event_deliver()
/openbmc/linux/drivers/counter/
H A Dcounter-chrdev.c293 parent = array_index_nospec(parent, counter->num_signals); in counter_add_watch()
303 parent = array_index_nospec(parent, counter->num_counts); in counter_add_watch()
344 id = array_index_nospec(id, counter->counts[parent].num_synapses); in counter_add_watch()
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_ioctl.c845 index = array_index_nospec(index, dev->driver->num_ioctls); in drm_ioctl()
851 nr = array_index_nospec(nr, DRM_CORE_IOCTL_COUNT); in drm_ioctl()
935 nr = array_index_nospec(nr, DRM_CORE_IOCTL_COUNT); in drm_ioctl_flags()
/openbmc/linux/drivers/usb/usbip/
H 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()
/openbmc/linux/arch/loongarch/kernel/
H A Dptrace.c415 idx = array_index_nospec(idx, LOONGARCH_MAX_BRP); in ptrace_hbp_get_event()
421 idx = array_index_nospec(idx, LOONGARCH_MAX_WRP); in ptrace_hbp_get_event()
438 idx = array_index_nospec(idx, LOONGARCH_MAX_BRP); in ptrace_hbp_set_event()
444 idx = array_index_nospec(idx, LOONGARCH_MAX_WRP); in ptrace_hbp_set_event()
/openbmc/linux/drivers/tty/vt/
H A Dvt_ioctl.c603 vsa.console = array_index_nospec(vsa.console, MAX_NR_CONSOLES); in vt_setactivate()
848 arg = array_index_nospec(arg, MAX_NR_CONSOLES); in vt_ioctl()
906 arg = array_index_nospec(arg - 1, MAX_NR_CONSOLES); in vt_ioctl()

123456