/linux-6.1.9/arch/x86/entry/ |
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-6.1.9/Documentation/staging/ |
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-6.1.9/sound/pci/asihpi/ |
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-6.1.9/sound/synth/emux/ |
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-6.1.9/drivers/hid/usbhid/ |
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-6.1.9/io_uring/ |
D | filetable.c | 75 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()
|
D | tctx.c | 218 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()
|
D | msg_ring.c | 100 msg->src_fd = array_index_nospec(msg->src_fd, ctx->nr_user_files); in io_msg_send_fd()
|
D | uring_cmd.c | 95 index = array_index_nospec(req->buf_index, ctx->nr_user_bufs); in io_uring_cmd_prep()
|
/linux-6.1.9/include/linux/ |
D | nospec.h | 51 #define array_index_nospec(index, size) \ macro
|
D | fdtable.h | 88 fd = array_index_nospec(fd, fdt->max_fds); in files_lookup_fd_raw()
|
/linux-6.1.9/drivers/gpu/drm/i915/ |
D | i915_user_extensions.c | 46 name = array_index_nospec(name, count); in i915_user_extensions()
|
/linux-6.1.9/arch/x86/kvm/ |
D | pmu.h | 108 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/ |
D | control.h | 167 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/ |
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-6.1.9/net/ipv4/ |
D | metrics.c | 32 type = array_index_nospec(type, RTAX_MAX + 1); in ip_metrics_convert()
|
/linux-6.1.9/arch/arm64/kernel/ |
D | syscall.c | 51 syscall_fn = syscall_table[array_index_nospec(scno, sc_nr)]; in invoke_syscall()
|
/linux-6.1.9/sound/pci/hda/ |
D | hda_hwdep.c | 49 verb = array_index_nospec(verb, codec->core.num_nodes); in get_wcap_ioctl()
|
/linux-6.1.9/drivers/misc/ |
D | hmc6352.c | 42 val = array_index_nospec(val, strlen(map)); in compass_store()
|
/linux-6.1.9/drivers/net/wireless/silabs/wfx/ |
D | wfx.h | 105 vif_id = array_index_nospec(vif_id, ARRAY_SIZE(wdev->vif)); in wdev_to_wvif()
|
/linux-6.1.9/drivers/counter/ |
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()
|
/linux-6.1.9/drivers/gpu/drm/ |
D | drm_ioctl.c | 841 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/ |
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-6.1.9/drivers/tty/vt/ |
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()
|
/linux-6.1.9/arch/x86/kvm/svm/ |
D | pmu.c | 33 return &pmu->gp_counters[array_index_nospec(pmc_idx, num_counters)]; in amd_pmc_idx_to_pmc()
|