Home
last modified time | relevance | path

Searched refs:ioctl (Results 1 – 25 of 271) sorted by relevance

1234567891011

/drivers/gpu/drm/nouveau/nvif/
Dobject.c47 return client->driver->ioctl(client->object.priv, client->super, in nvif_object_ioctl()
62 struct nvif_ioctl_v0 ioctl; in nvif_object_sclass_get() member
72 args->ioctl.version = 0; in nvif_object_sclass_get()
73 args->ioctl.type = NVIF_IOCTL_V0_SCLASS; in nvif_object_sclass_get()
106 struct nvif_ioctl_v0 ioctl; in nvif_object_rd() member
109 .ioctl.type = NVIF_IOCTL_V0_RD, in nvif_object_rd()
125 struct nvif_ioctl_v0 ioctl; in nvif_object_wr() member
128 .ioctl.type = NVIF_IOCTL_V0_WR, in nvif_object_wr()
143 struct nvif_ioctl_v0 ioctl; in nvif_object_mthd() member
155 args->ioctl.version = 0; in nvif_object_mthd()
[all …]
Dnotify.c37 struct nvif_ioctl_v0 ioctl; in nvif_notify_put_() member
40 .ioctl.type = NVIF_IOCTL_V0_NTFY_PUT, in nvif_notify_put_()
68 struct nvif_ioctl_v0 ioctl; in nvif_notify_get_() member
71 .ioctl.type = NVIF_IOCTL_V0_NTFY_GET, in nvif_notify_get_()
149 struct nvif_ioctl_v0 ioctl; in nvif_notify_fini() member
152 .ioctl.type = NVIF_IOCTL_V0_NTFY_DEL, in nvif_notify_fini()
170 struct nvif_ioctl_v0 ioctl; in nvif_notify_init() member
192 args->ioctl.version = 0; in nvif_notify_init()
193 args->ioctl.type = NVIF_IOCTL_V0_NTFY_NEW; in nvif_notify_init()
Dclient.c35 return client->driver->ioctl(client->object.priv, client->super, data, size, NULL); in nvif_client_ioctl()
67 struct nvif_ioctl_v0 ioctl; in nvif_client_init() member
/drivers/scsi/esas2r/
Desas2r_ioctl.c69 void *ioctl; member
249 memcpy(esas2r_buffered_ioctl, bi->ioctl, bi->length); in handle_buffered_ioctl()
286 memcpy(bi->ioctl, esas2r_buffered_ioctl, bi->length); in handle_buffered_ioctl()
300 esas2r_sgc_init(sgc, a, rq, rq->vrq->ioctl.sge); in smp_ioctl_callback()
319 bi.ioctl = si; in handle_smp_ioctl()
348 struct atto_vda_ioctl_req *ioctl = &rq->vrq->ioctl; in csmi_ioctl_tunnel() local
353 esas2r_sgc_init(sgc, a, rq, rq->vrq->ioctl.sge); in csmi_ioctl_tunnel()
355 ioctl->csmi.ctrl_code = cpu_to_le32(ctrl_code); in csmi_ioctl_tunnel()
356 ioctl->csmi.target_id = cpu_to_le16(target_id); in csmi_ioctl_tunnel()
357 ioctl->csmi.lun = (u8)le32_to_cpu(rq->vrq->scsi.flags); in csmi_ioctl_tunnel()
[all …]
/drivers/scsi/
Dgdth_proc.c131 gdtcmd.u.ioctl.p_param = ha->scratch_phys; in gdth_set_asc_info()
132 gdtcmd.u.ioctl.param_size = sizeof(gdth_cpar_str); in gdth_set_asc_info()
133 gdtcmd.u.ioctl.subfunc = CACHE_CONFIG; in gdth_set_asc_info()
134 gdtcmd.u.ioctl.channel = INVALID_CHANNEL; in gdth_set_asc_info()
248 gdtcmd->u.ioctl.p_param = paddr + GDTH_SCRATCH/4; in gdth_show_info()
249 gdtcmd->u.ioctl.param_size = 3*GDTH_SCRATCH/4; in gdth_show_info()
250 gdtcmd->u.ioctl.subfunc = DSK_STATISTICS | L_CTRL_PATTERN; in gdth_show_info()
251 gdtcmd->u.ioctl.channel = ha->raw[i].address | INVALID_CHANNEL; in gdth_show_info()
271 gdtcmd->u.ioctl.p_param = paddr; in gdth_show_info()
272 gdtcmd->u.ioctl.param_size = sizeof(gdth_diskinfo_str); in gdth_show_info()
[all …]
/drivers/gpu/drm/
Ddrm_ioctl.c562 #define DRM_IOCTL_DEF(ioctl, _func, _flags) \ argument
563 [DRM_IOCTL_NR(ioctl)] = { \
564 .cmd = ioctl, \
567 .name = #ioctl \
571 #define DRM_LEGACY_IOCTL_DEF(ioctl, _func, _flags) DRM_IOCTL_DEF(ioctl, _func, _flags) argument
573 #define DRM_LEGACY_IOCTL_DEF(ioctl, _func, _flags) DRM_IOCTL_DEF(ioctl, drm_invalid_op, _flags) argument
814 const struct drm_ioctl_desc *ioctl = NULL; in drm_ioctl() local
837 ioctl = &dev->driver->ioctls[index]; in drm_ioctl()
843 ioctl = &drm_ioctls[nr]; in drm_ioctl()
846 drv_size = _IOC_SIZE(ioctl->cmd); in drm_ioctl()
[all …]
/drivers/misc/habanalabs/
Dhabanalabs_ioctl.c335 #define HL_IOCTL_DEF(ioctl, _func) \ argument
336 [_IOC_NR(ioctl)] = {.cmd = ioctl, .func = _func}
352 const struct hl_ioctl_desc *ioctl, struct device *dev) in _hl_ioctl() argument
371 func = ioctl->func; in _hl_ioctl()
379 hl_size = _IOC_SIZE(ioctl->cmd); in _hl_ioctl()
384 cmd = ioctl->cmd; in _hl_ioctl()
428 const struct hl_ioctl_desc *ioctl = NULL; in hl_ioctl() local
432 ioctl = &hl_ioctls[nr]; in hl_ioctl()
439 return _hl_ioctl(filep, cmd, arg, ioctl, hdev->dev); in hl_ioctl()
446 const struct hl_ioctl_desc *ioctl = NULL; in hl_ioctl_control() local
[all …]
/drivers/staging/greybus/Documentation/firmware/
Dfirmware.c47 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()
Dauthenticate.c54 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()
Dfirmware-management77 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/scsi/be2iscsi/
Dbe_cmds.c1490 struct be_cmd_get_port_name *ioctl; in beiscsi_get_port_name() local
1495 ioctl = embedded_payload(wrb); in beiscsi_get_port_name()
1497 be_wrb_hdr_prepare(wrb, sizeof(*ioctl), true, 0); in beiscsi_get_port_name()
1498 be_cmd_hdr_prepare(&ioctl->h.req_hdr, CMD_SUBSYSTEM_COMMON, in beiscsi_get_port_name()
1504 phba->port_name = ioctl->p.resp.port_names >> in beiscsi_get_port_name()
1509 ret, ioctl->h.resp_hdr.status); in beiscsi_get_port_name()
1522 struct be_cmd_set_host_data *ioctl; in beiscsi_set_host_data() local
1532 ioctl = embedded_payload(wrb); in beiscsi_set_host_data()
1534 be_wrb_hdr_prepare(wrb, sizeof(*ioctl), true, 0); in beiscsi_set_host_data()
1535 be_cmd_hdr_prepare(&ioctl->h.req_hdr, CMD_SUBSYSTEM_COMMON, in beiscsi_set_host_data()
[all …]
/drivers/soundwire/
Dintel.c314 u16 ioctl = 0, act = 0; in intel_shim_init() local
317 ioctl |= SDW_SHIM_IOCTL_BKE; in intel_shim_init()
318 intel_writew(shim, SDW_SHIM_IOCTL(link_id), ioctl); in intel_shim_init()
320 ioctl |= SDW_SHIM_IOCTL_WPDD; in intel_shim_init()
321 intel_writew(shim, SDW_SHIM_IOCTL(link_id), ioctl); in intel_shim_init()
323 ioctl |= SDW_SHIM_IOCTL_DO; in intel_shim_init()
324 intel_writew(shim, SDW_SHIM_IOCTL(link_id), ioctl); in intel_shim_init()
326 ioctl |= SDW_SHIM_IOCTL_DOE; in intel_shim_init()
327 intel_writew(shim, SDW_SHIM_IOCTL(link_id), ioctl); in intel_shim_init()
330 ioctl = intel_readw(shim, SDW_SHIM_IOCTL(link_id)); in intel_shim_init()
[all …]
/drivers/vhost/
Dtest.c266 static long vhost_test_ioctl(struct file *f, unsigned int ioctl, in vhost_test_ioctl() argument
275 switch (ioctl) { in vhost_test_ioctl()
298 r = vhost_dev_ioctl(&n->dev, ioctl, argp); in vhost_test_ioctl()
300 r = vhost_vring_ioctl(&n->dev, ioctl, argp); in vhost_test_ioctl()
308 static long vhost_test_compat_ioctl(struct file *f, unsigned int ioctl, in vhost_test_compat_ioctl() argument
311 return vhost_test_ioctl(f, ioctl, (unsigned long)compat_ptr(arg)); in vhost_test_compat_ioctl()
Dvhost.h48 long vhost_vring_ioctl(struct vhost_dev *d, unsigned int ioctl, void __user *argp);
189 long vhost_dev_ioctl(struct vhost_dev *, unsigned int ioctl, void __user *argp);
190 long vhost_vring_ioctl(struct vhost_dev *d, unsigned int ioctl, void __user *argp);
/drivers/pcmcia/
Dtcic.c296 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 …]
Dvrc4173_cardu.c251 uint8_t ioctl, window; in cardu_get_io_map() local
261 ioctl = exca_readb(socket, IO_WIN_CNT); in cardu_get_io_map()
264 if (ioctl & IO_WIN_DATA_AUTOSZ(map)) in cardu_get_io_map()
266 else if (ioctl & IO_WIN_DATA_16BIT(map)) in cardu_get_io_map()
275 uint16_t ioctl; in cardu_set_io_map() local
294 ioctl = exca_readb(socket, IO_WIN_CNT) & ~IO_WIN_CNT_MASK(map); in cardu_set_io_map()
295 if (io->flags & MAP_AUTOSZ) ioctl |= IO_WIN_DATA_AUTOSZ(map); in cardu_set_io_map()
296 else if (io->flags & MAP_16BIT) ioctl |= IO_WIN_DATA_16BIT(map); in cardu_set_io_map()
297 exca_writeb(socket, IO_WIN_CNT, ioctl); in cardu_set_io_map()
Dvrc4171_card.c370 uint8_t ioctl, addrwin; in pccard_set_io_map() local
390 ioctl = 0; in pccard_set_io_map()
392 ioctl |= I365_IOCTL_WAIT(map); in pccard_set_io_map()
394 ioctl |= I365_IOCTL_16BIT(map); in pccard_set_io_map()
396 ioctl |= I365_IOCTL_IOCS16(map); in pccard_set_io_map()
398 ioctl |= I365_IOCTL_0WS(map); in pccard_set_io_map()
399 exca_write_byte(slot, I365_IOCTL, ioctl); in pccard_set_io_map()
Dpd6729.c427 unsigned char map, ioctl; in pd6729_set_io_map() local
448 ioctl = indirect_read(socket, I365_IOCTL) & ~I365_IOCTL_MASK(map); in pd6729_set_io_map()
451 ioctl |= I365_IOCTL_0WS(map); in pd6729_set_io_map()
453 ioctl |= I365_IOCTL_16BIT(map); in pd6729_set_io_map()
455 ioctl |= I365_IOCTL_IOCS16(map); in pd6729_set_io_map()
457 indirect_write(socket, I365_IOCTL, ioctl); in pd6729_set_io_map()
/drivers/vfio/mdev/
Dvfio_mdev.c60 if (unlikely(!parent->ops->ioctl)) in vfio_mdev_unlocked_ioctl()
63 return parent->ops->ioctl(mdev, cmd, arg); in vfio_mdev_unlocked_ioctl()
105 .ioctl = vfio_mdev_unlocked_ioctl,
/drivers/char/tpm/
Dtpm_vtpm_proxy.c624 static long vtpmx_ioc_new_dev(struct file *file, unsigned int ioctl, in vtpmx_ioc_new_dev() argument
662 static long vtpmx_fops_ioctl(struct file *f, unsigned int ioctl, in vtpmx_fops_ioctl() argument
665 switch (ioctl) { in vtpmx_fops_ioctl()
667 return vtpmx_ioc_new_dev(f, ioctl, arg); in vtpmx_fops_ioctl()
674 static long vtpmx_fops_compat_ioctl(struct file *f, unsigned int ioctl, in vtpmx_fops_compat_ioctl() argument
677 return vtpmx_fops_ioctl(f, ioctl, (unsigned long)compat_ptr(arg)); in vtpmx_fops_compat_ioctl()
/drivers/clk/zynqmp/
Dpll.c55 ret = eemi_ops->ioctl(0, IOCTL_GET_PLL_FRAC_MODE, clk_id, 0, in zynqmp_pll_get_mode()
83 ret = eemi_ops->ioctl(0, IOCTL_SET_PLL_FRAC_MODE, clk_id, mode, NULL); in zynqmp_pll_set_mode()
151 eemi_ops->ioctl(0, IOCTL_GET_PLL_FRAC_DATA, clk_id, 0, in zynqmp_pll_recalc_rate()
195 eemi_ops->ioctl(0, IOCTL_SET_PLL_FRAC_DATA, clk_id, f, NULL); in zynqmp_pll_set_rate()
/drivers/message/fusion/
DKconfig76 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/block/
Dloop.h46 int (*ioctl)(struct loop_device *, int cmd, member
87 int (*ioctl)(struct loop_device *, int cmd, unsigned long arg); member
/drivers/soc/aspeed/
DKconfig13 ioctl()s, the driver also provides a read/write interface to a BMC ram
29 ioctl()s, the driver also provides an interface for userspace mappings to
/drivers/net/ppp/
Dpppox.c92 rc = pppox_protos[sk->sk_protocol]->ioctl ? in pppox_ioctl()
93 pppox_protos[sk->sk_protocol]->ioctl(sock, cmd, arg) : -ENOTTY; in pppox_ioctl()

1234567891011