| /drivers/scsi/esas2r/ |
| A D | esas2r_ioctl.c | 71 void *ioctl; member 321 bi.ioctl = si; in handle_smp_ioctl() 350 struct atto_vda_ioctl_req *ioctl = &rq->vrq->ioctl; in csmi_ioctl_tunnel() local 655 bi.ioctl = &ci->data; in handle_csmi_ioctl() 1232 bi.ioctl = ioctl_hba; in handle_hba_ioctl() 1284 if (IS_ERR(ioctl)) { in esas2r_ioctl_handler() 1297 kfree(ioctl); in esas2r_ioctl_handler() 1338 kfree(ioctl); in esas2r_ioctl_handler() 1395 kfree(ioctl); in esas2r_ioctl_handler() 1513 kfree(ioctl); in esas2r_ioctl_handler() [all …]
|
| /drivers/gpu/drm/nouveau/nvif/ |
| A D | object.c | 60 struct nvif_ioctl_v0_hdr ioctl; in nvif_object_sclass_get() member 70 args->ioctl.version = 0; in nvif_object_sclass_get() 104 struct nvif_ioctl_v0_hdr ioctl; in nvif_object_mthd() member 121 args->ioctl.version = 0; in nvif_object_mthd() 138 struct nvif_ioctl_v0_hdr ioctl; in nvif_object_unmap_handle() member 141 .ioctl.type = NVIF_IOCTL_V0_UNMAP, in nvif_object_unmap_handle() 152 struct nvif_ioctl_v0_hdr ioctl; in nvif_object_map_handle() member 214 struct nvif_ioctl_v0_hdr ioctl; in nvif_object_dtor() member 217 .ioctl.type = NVIF_IOCTL_V0_DEL, in nvif_object_dtor() 233 struct nvif_ioctl_v0_hdr ioctl; in nvif_object_ctor() member [all …]
|
| /drivers/gpu/drm/nouveau/ |
| A D | nouveau_abi16.c | 722 args = (void *)ioctl->data; in nouveau_abi16_ioctl_mthd() 747 if (ioctl->route || argc) in nouveau_abi16_ioctl_del() 770 args = (void *)ioctl->data; in nouveau_abi16_ioctl_new() 776 if (!ioctl->route) { in nouveau_abi16_ioctl_new() 813 args = (void *)ioctl->data; in nouveau_abi16_ioctl_sclass() 846 if (argc < sizeof(*ioctl)) in nouveau_abi16_ioctl() 848 argc -= sizeof(*ioctl); in nouveau_abi16_ioctl() 851 if (!ioctl) in nouveau_abi16_ioctl() 859 (ioctl->route && ioctl->route != 0xff)) { in nouveau_abi16_ioctl() 870 switch (ioctl->type) { in nouveau_abi16_ioctl() [all …]
|
| /drivers/gpu/drm/nova/ |
| A D | driver.rs | 3 use kernel::{auxiliary, c_str, device::Core, drm, drm::gem, drm::ioctl, prelude::*, types::ARef}; 65 (NOVA_GETPARAM, drm_nova_getparam, ioctl::RENDER_ALLOW, File::get_param), 66 (NOVA_GEM_CREATE, drm_nova_gem_create, ioctl::AUTH | ioctl::RENDER_ALLOW, File::gem_create), 67 (NOVA_GEM_INFO, drm_nova_gem_info, ioctl::AUTH | ioctl::RENDER_ALLOW, File::gem_info),
|
| /drivers/soundwire/ |
| A D | intel.c | 211 u16 ioctl; in intel_shim_glue_to_master_ip() local 220 ioctl &= ~(SDW_SHIM_IOCTL_DO); in intel_shim_glue_to_master_ip() 224 ioctl |= (SDW_SHIM_IOCTL_MIF); in intel_shim_glue_to_master_ip() 241 u16 ioctl; in intel_shim_master_ip_to_glue() local 245 ioctl |= SDW_SHIM_IOCTL_BKE; in intel_shim_master_ip_to_glue() 246 ioctl |= SDW_SHIM_IOCTL_COE; in intel_shim_master_ip_to_glue() 262 u16 ioctl = 0, act; in intel_shim_init() local 265 ioctl |= SDW_SHIM_IOCTL_BKE; in intel_shim_init() 269 ioctl |= SDW_SHIM_IOCTL_WPDD; in intel_shim_init() 273 ioctl |= SDW_SHIM_IOCTL_DO; in intel_shim_init() [all …]
|
| /drivers/s390/char/ |
| A D | uvdevice.c | 404 static int uvio_lock_secrets(struct uvio_ioctl_cb *ioctl) in uvio_lock_secrets() argument 411 if (ioctl->argument_addr || ioctl->argument_len) in uvio_lock_secrets() 415 ioctl->uv_rc = uvcb.header.rc; in uvio_lock_secrets() 416 ioctl->uv_rrc = uvcb.header.rrc; in uvio_lock_secrets() 474 static int uvio_copy_and_check_ioctl(struct uvio_ioctl_cb *ioctl, void __user *argp, in uvio_copy_and_check_ioctl() argument 485 if (_IOC_SIZE(cmd) != sizeof(*ioctl)) in uvio_copy_and_check_ioctl() 487 if (copy_from_user(ioctl, argp, sizeof(*ioctl))) in uvio_copy_and_check_ioctl() 489 if (ioctl->flags != 0) in uvio_copy_and_check_ioctl() 491 if (memchr_inv(ioctl->reserved14, 0, sizeof(ioctl->reserved14))) in uvio_copy_and_check_ioctl()
|
| /drivers/staging/greybus/Documentation/firmware/ |
| A D | firmware.c | 47 ret = ioctl(fd, FW_MGMT_IOC_GET_INTF_FW, &intf_fw_info); in update_intf_firmware() 69 ret = ioctl(fd, FW_MGMT_IOC_INTF_LOAD_AND_VALIDATE, &intf_load); in update_intf_firmware() 90 ret = ioctl(fd, FW_MGMT_IOC_MODE_SWITCH); in update_intf_firmware() 108 ret = ioctl(fd, FW_MGMT_IOC_GET_BACKEND_FW, &backend_fw_info); in update_backend_firmware() 138 ret = ioctl(fd, FW_MGMT_IOC_INTF_BACKEND_FW_UPDATE, &backend_update); in update_backend_firmware() 202 ret = ioctl(fd, FW_MGMT_IOC_SET_TIMEOUT_MS, &fw_timeout); in main()
|
| A D | authenticate.c | 54 ret = ioctl(fd, CAP_IOC_GET_ENDPOINT_UID, &uid); in main() 66 ret = ioctl(fd, CAP_IOC_GET_IMS_CERTIFICATE, &cert); in main() 80 ret = ioctl(fd, CAP_IOC_AUTHENTICATE, &authenticate); in main()
|
| A D | firmware-management | 77 application and it can perform various 'ioctl' operations on the device. The 142 This ioctl shall be used by the user to get the version and firmware-tag of 148 This ioctl shall be used by the user to get the version of a currently 156 This ioctl shall be used by the user to load an Interface Firmware package on 163 This ioctl shall be used by the user to request an Interface to update a 170 This ioctl shall be used by the user to increase the timeout interval within 176 This ioctl shall be used by the user to mode-switch the module to the 215 the userspace application and it can perform various 'ioctl' operations on the 283 This ioctl shall be used by the user to get the endpoint UID associated with 289 This ioctl shall be used by the user to retrieve one of the available [all …]
|
| /drivers/gpu/drm/ |
| A D | drm_ioctl.c | 617 [DRM_IOCTL_NR(ioctl)] = { \ 618 .cmd = ioctl, \ 621 .name = #ioctl \ 818 const struct drm_ioctl_desc *ioctl = NULL; in drm_ioctl() local 844 ioctl = &dev->driver->ioctls[index]; in drm_ioctl() 850 ioctl = &drm_ioctls[nr]; in drm_ioctl() 853 drv_size = _IOC_SIZE(ioctl->cmd); in drm_ioctl() 855 if ((cmd & ioctl->cmd & IOC_IN) == 0) in drm_ioctl() 857 if ((cmd & ioctl->cmd & IOC_OUT) == 0) in drm_ioctl() 867 func = ioctl->func; in drm_ioctl() [all …]
|
| /drivers/scsi/be2iscsi/ |
| A D | be_cmds.c | 1488 struct be_cmd_get_port_name *ioctl; in beiscsi_get_port_name() local 1493 ioctl = embedded_payload(wrb); in beiscsi_get_port_name() 1507 ret, ioctl->h.resp_hdr.status); in beiscsi_get_port_name() 1520 struct be_cmd_set_host_data *ioctl; in beiscsi_set_host_data() local 1530 ioctl = embedded_payload(wrb); in beiscsi_set_host_data() 1537 ioctl->param.req.param_len = in beiscsi_set_host_data() 1539 sizeof(ioctl->param.req.param_data), in beiscsi_set_host_data() 1541 ioctl->param.req.param_len = ALIGN(ioctl->param.req.param_len + 1, 4); in beiscsi_set_host_data() 1566 struct be_cmd_set_features *ioctl; in beiscsi_set_uer_feature() local 1573 ioctl = embedded_payload(wrb); in beiscsi_set_uer_feature() [all …]
|
| /drivers/pcmcia/ |
| A D | tcic.c | 296 u_short scf1, ioctl, base, num; in is_active() local 309 ioctl = tcic_getw(TCIC_DATA); in is_active() 311 if (ioctl & TCIC_ICTL_TINY) in is_active() 319 (scf1 & TCIC_SCF1_IOSTS) && (ioctl & TCIC_ICTL_ENA) && in is_active() 698 u_short base, len, ioctl; in tcic_set_io_map() local 715 ioctl = (psock << TCIC_ICTL_SS_SHFT); in tcic_set_io_map() 716 ioctl |= (len == 0) ? TCIC_ICTL_TINY : 0; in tcic_set_io_map() 717 ioctl |= (io->flags & MAP_ACTIVE) ? TCIC_ICTL_ENA : 0; in tcic_set_io_map() 718 ioctl |= to_cycles(io->speed) & TCIC_ICTL_WSCNT_MASK; in tcic_set_io_map() 720 ioctl |= TCIC_ICTL_QUIET; in tcic_set_io_map() [all …]
|
| A D | pd6729.c | 428 unsigned char map, ioctl; in pd6729_set_io_map() local 449 ioctl = indirect_read(socket, I365_IOCTL) & ~I365_IOCTL_MASK(map); in pd6729_set_io_map() 452 ioctl |= I365_IOCTL_0WS(map); in pd6729_set_io_map() 454 ioctl |= I365_IOCTL_16BIT(map); in pd6729_set_io_map() 456 ioctl |= I365_IOCTL_IOCS16(map); in pd6729_set_io_map() 458 indirect_write(socket, I365_IOCTL, ioctl); in pd6729_set_io_map()
|
| A D | i82092.c | 556 unsigned char map, ioctl; in i82092aa_set_io_map() local 576 ioctl = indirect_read(sock, I365_IOCTL) & ~I365_IOCTL_MASK(map); in i82092aa_set_io_map() 579 ioctl |= I365_IOCTL_16BIT(map); in i82092aa_set_io_map() 581 indirect_write(sock, I365_IOCTL, ioctl); in i82092aa_set_io_map()
|
| /drivers/message/fusion/ |
| A D | Kconfig | 76 tristate "Fusion MPT misc device (ioctl) driver" 80 of MPT adapters via system ioctl calls. Use of ioctl calls to 85 One use of this ioctl interface is to perform an upgrade (reflash)
|
| /drivers/vfio/pci/virtio/ |
| A D | main.c | 90 .ioctl = vfio_pci_core_ioctl, 111 .ioctl = virtiovf_vfio_pci_core_ioctl, 132 .ioctl = vfio_pci_core_ioctl,
|
| /drivers/vhost/ |
| A D | test.c | 311 static long vhost_test_ioctl(struct file *f, unsigned int ioctl, in vhost_test_ioctl() argument 321 switch (ioctl) { in vhost_test_ioctl() 345 r = vhost_dev_ioctl(&n->dev, ioctl, argp); in vhost_test_ioctl() 347 r = vhost_vring_ioctl(&n->dev, ioctl, argp); in vhost_test_ioctl()
|
| A D | vhost.h | 221 long vhost_dev_ioctl(struct vhost_dev *, unsigned int ioctl, void __user *argp); 222 long vhost_vring_ioctl(struct vhost_dev *d, unsigned int ioctl, void __user *argp); 223 long vhost_worker_ioctl(struct vhost_dev *dev, unsigned int ioctl,
|
| /drivers/vfio/ |
| A D | container.c | 71 .ioctl = vfio_noiommu_ioctl, 216 ret = driver->ops->ioctl(NULL, in vfio_container_ioctl_check_extension() 225 ret = driver->ops->ioctl(container->iommu_data, in vfio_container_ioctl_check_extension() 297 if (driver->ops->ioctl(NULL, VFIO_CHECK_EXTENSION, arg) <= 0) { in vfio_ioctl_set_iommu() 353 ret = driver->ops->ioctl(data, cmd, arg); in vfio_fops_unl_ioctl()
|
| /drivers/net/ppp/ |
| A D | pppox.c | 92 rc = pppox_protos[sk->sk_protocol]->ioctl ? in pppox_ioctl() 93 pppox_protos[sk->sk_protocol]->ioctl(sock, cmd, arg) : -ENOTTY; in pppox_ioctl()
|
| /drivers/remoteproc/ |
| A D | remoteproc_cdev.c | 48 static long rproc_device_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg) in rproc_device_ioctl() argument 54 switch (ioctl) { in rproc_device_ioctl()
|
| /drivers/soc/aspeed/ |
| A D | Kconfig | 13 Control LPC firmware cycle mappings through ioctl()s. The driver 43 Control ASPEED P2A VGA MMIO to BMC mappings through ioctl()s. The
|
| /drivers/char/tpm/ |
| A D | tpm_vtpm_proxy.c | 625 static long vtpmx_ioc_new_dev(struct file *file, unsigned int ioctl, in vtpmx_ioc_new_dev() argument 663 static long vtpmx_fops_ioctl(struct file *f, unsigned int ioctl, in vtpmx_fops_ioctl() argument 666 switch (ioctl) { in vtpmx_fops_ioctl() 668 return vtpmx_ioc_new_dev(f, ioctl, arg); in vtpmx_fops_ioctl()
|
| /drivers/accel/habanalabs/common/ |
| A D | habanalabs_ioctl.c | 1221 #define HL_IOCTL_DEF(ioctl, _func) \ argument 1222 [_IOC_NR(ioctl) - HL_COMMAND_START] = {.cmd = ioctl, .func = _func} 1229 const struct hl_ioctl_desc *ioctl, struct device *dev) in _hl_ioctl() argument 1240 func = ioctl->func; in _hl_ioctl() 1248 hl_size = _IOC_SIZE(ioctl->cmd); in _hl_ioctl() 1253 cmd = ioctl->cmd; in _hl_ioctl() 1295 const struct hl_ioctl_desc *ioctl = NULL; in hl_ioctl_control() local 1304 ioctl = &hl_ioctls_control[nr - HL_COMMAND_START]; in hl_ioctl_control() 1312 return _hl_ioctl(hpriv, cmd, arg, ioctl, hdev->dev_ctrl); in hl_ioctl_control()
|
| /drivers/hv/ |
| A D | mshv_root_main.c | 71 static long mshv_dev_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg); 75 static long mshv_vp_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg); 77 static long mshv_partition_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg); 780 mshv_vp_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg) in mshv_vp_ioctl() argument 788 switch (ioctl) { in mshv_vp_ioctl() 803 vp_warn(vp, "Invalid ioctl: %#x\n", ioctl); in mshv_vp_ioctl() 1596 mshv_partition_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg) in mshv_partition_ioctl() argument 1605 switch (ioctl) { in mshv_partition_ioctl() 2000 static long mshv_dev_ioctl(struct file *filp, unsigned int ioctl, in mshv_dev_ioctl() argument 2005 switch (ioctl) { in mshv_dev_ioctl()
|