/openbmc/linux/arch/x86/entry/ |
H A D | common.c | 50 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 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()
|
/openbmc/linux/Documentation/staging/ |
H 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);
|
/openbmc/linux/sound/synth/emux/ |
H 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()
|
/openbmc/linux/io_uring/ |
H A D | filetable.c | 77 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 D | tctx.c | 216 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 D | uring_cmd.c | 104 index = array_index_nospec(req->buf_index, ctx->nr_user_bufs); in io_uring_cmd_prep()
|
/openbmc/linux/include/linux/ |
H A D | nospec.h | 55 #define array_index_nospec(index, size) \ macro
|
H A D | fdtable.h | 87 fd = array_index_nospec(fd, fdt->max_fds); in files_lookup_fd_raw()
|
/openbmc/linux/drivers/hid/usbhid/ |
H 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()
|
/openbmc/linux/drivers/gpu/drm/i915/ |
H A D | i915_user_extensions.c | 46 name = array_index_nospec(name, count); in i915_user_extensions()
|
/openbmc/linux/arch/x86/kvm/ |
H A D | pmu.h | 107 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 D | metrics.c | 29 type = array_index_nospec(type, RTAX_MAX + 1); in ip_metrics_convert()
|
/openbmc/linux/include/sound/ |
H A D | control.h | 191 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 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()
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | syscall.c | 50 syscall_fn = syscall_table[array_index_nospec(scno, sc_nr)]; in invoke_syscall()
|
/openbmc/linux/sound/pci/hda/ |
H A D | hda_hwdep.c | 49 verb = array_index_nospec(verb, codec->core.num_nodes); in get_wcap_ioctl()
|
/openbmc/linux/drivers/misc/ |
H A D | hmc6352.c | 42 val = array_index_nospec(val, strlen(map)); in compass_store()
|
/openbmc/linux/drivers/net/wireless/silabs/wfx/ |
H A D | wfx.h | 105 vif_id = array_index_nospec(vif_id, ARRAY_SIZE(wdev->vif)); in wdev_to_wvif()
|
/openbmc/linux/drivers/misc/vmw_vmci/ |
H A D | vmci_event.c | 94 sanitized_event = array_index_nospec(event_msg->event_data.event, max_vmci_event); in event_deliver()
|
/openbmc/linux/drivers/counter/ |
H A D | counter-chrdev.c | 293 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 D | drm_ioctl.c | 845 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 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()
|
/openbmc/linux/arch/loongarch/kernel/ |
H A D | ptrace.c | 415 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 D | vt_ioctl.c | 603 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()
|