Home
last modified time | relevance | path

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

123456

/linux-6.1.9/arch/x86/entry/
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-6.1.9/Documentation/staging/
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-6.1.9/sound/pci/asihpi/
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-6.1.9/sound/synth/emux/
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-6.1.9/drivers/hid/usbhid/
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-6.1.9/io_uring/
Dfiletable.c75 slot_index = array_index_nospec(slot_index, ctx->nr_user_files); in io_install_fixed_file()
160 offset = array_index_nospec(offset, ctx->nr_user_files); in io_fixed_fd_remove()
Dtctx.c218 offset = array_index_nospec(offset, IO_RINGFD_REG_MAX); in io_ring_add_registered_fd()
326 reg.offset = array_index_nospec(reg.offset, IO_RINGFD_REG_MAX); in io_ringfd_unregister()
Dmsg_ring.c100 msg->src_fd = array_index_nospec(msg->src_fd, ctx->nr_user_files); in io_msg_send_fd()
During_cmd.c95 index = array_index_nospec(req->buf_index, ctx->nr_user_bufs); in io_uring_cmd_prep()
/linux-6.1.9/include/linux/
Dnospec.h51 #define array_index_nospec(index, size) \ macro
Dfdtable.h88 fd = array_index_nospec(fd, fdt->max_fds); in files_lookup_fd_raw()
/linux-6.1.9/drivers/gpu/drm/i915/
Di915_user_extensions.c46 name = array_index_nospec(name, count); in i915_user_extensions()
/linux-6.1.9/arch/x86/kvm/
Dpmu.h108 u32 index = array_index_nospec(msr - base, in get_gp_pmc()
123 u32 index = array_index_nospec(msr - base, in get_fixed_pmc()
/linux-6.1.9/include/sound/
Dcontrol.h167 return array_index_nospec(ioff, kctl->count); in snd_ctl_get_ioffnum()
173 return array_index_nospec(ioff, kctl->count); in snd_ctl_get_ioffidx()
/linux-6.1.9/drivers/char/mwave/
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-6.1.9/net/ipv4/
Dmetrics.c32 type = array_index_nospec(type, RTAX_MAX + 1); in ip_metrics_convert()
/linux-6.1.9/arch/arm64/kernel/
Dsyscall.c51 syscall_fn = syscall_table[array_index_nospec(scno, sc_nr)]; in invoke_syscall()
/linux-6.1.9/sound/pci/hda/
Dhda_hwdep.c49 verb = array_index_nospec(verb, codec->core.num_nodes); in get_wcap_ioctl()
/linux-6.1.9/drivers/misc/
Dhmc6352.c42 val = array_index_nospec(val, strlen(map)); in compass_store()
/linux-6.1.9/drivers/net/wireless/silabs/wfx/
Dwfx.h105 vif_id = array_index_nospec(vif_id, ARRAY_SIZE(wdev->vif)); in wdev_to_wvif()
/linux-6.1.9/drivers/counter/
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()
/linux-6.1.9/drivers/gpu/drm/
Ddrm_ioctl.c841 index = array_index_nospec(index, dev->driver->num_ioctls); in drm_ioctl()
847 nr = array_index_nospec(nr, DRM_CORE_IOCTL_COUNT); in drm_ioctl()
930 nr = array_index_nospec(nr, DRM_CORE_IOCTL_COUNT); in drm_ioctl_flags()
/linux-6.1.9/drivers/usb/usbip/
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-6.1.9/drivers/tty/vt/
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()
/linux-6.1.9/arch/x86/kvm/svm/
Dpmu.c33 return &pmu->gp_counters[array_index_nospec(pmc_idx, num_counters)]; in amd_pmc_idx_to_pmc()

123456