Lines Matching defs:ioctl

164 		    struct mrsas_ioctl *ioctl, int mode);
166 struct mrsas_ioctl *ioctl, int mode);
182 mrsas_ioctl *ioctl, struct mrsas_cmd *cmd, int mode);
184 mrsas_ioctl *ioctl, struct mrsas_cmd *cmd, int mode);
186 mrsas_ioctl *ioctl, struct mrsas_cmd *cmd, int mode);
188 mrsas_ioctl *ioctl, struct mrsas_cmd *cmd, int mode);
268 mrsas_ioctl, /* ioctl */
890 * for issuing ioctl to the driver.
895 dev_err(dip, CE_WARN, "failed to create ioctl node.");
900 instance->unroll.ioctl = 1;
1143 if (instance->unroll.ioctl == 1) {
1145 instance->unroll.ioctl = 0;
1331 "mr_sas: Non-root ioctl access denied!"));
1338 "mr_sas: ioctl node must be a char node"));
1381 * ioctl - performs a range of I/O commands for character drivers
1389 * ioctl() routine must make sure that user data is copied into or out of the
1392 * This is a wrapper routine to serialize access to the actual ioctl routine.
1393 * ioctl() should return 0 on success, or the appropriate error number. The
1404 struct mrsas_ioctl *ioctl;
1416 ioctl = (struct mrsas_ioctl *)kmem_zalloc(sizeof (struct mrsas_ioctl),
1418 ASSERT(ioctl);
1422 if (ddi_copyin((void *)arg, ioctl,
1426 kmem_free(ioctl, sizeof (struct mrsas_ioctl));
1430 if (ioctl->control_code == MRSAS_DRIVER_IOCTL_COMMON) {
1431 rval = handle_drv_ioctl(instance, ioctl, mode);
1433 rval = handle_mfi_ioctl(instance, ioctl, mode);
1436 if (ddi_copyout((void *)ioctl, (void *)arg,
1449 kmem_free(ioctl, sizeof (struct mrsas_ioctl));
1471 kmem_free(ioctl, sizeof (struct mrsas_ioctl));
5380 issue_mfi_pthru(struct mrsas_instance *instance, struct mrsas_ioctl *ioctl,
5394 kpthru = (struct mrsas_pthru_frame *)&ioctl->frame[0];
5551 issue_mfi_dcmd(struct mrsas_instance *instance, struct mrsas_ioctl *ioctl,
5565 kdcmd = (struct mrsas_dcmd_frame *)&ioctl->frame[0];
5688 issue_mfi_smp(struct mrsas_instance *instance, struct mrsas_ioctl *ioctl,
5711 ksmp = (struct mrsas_smp_frame *)&ioctl->frame[0];
5953 issue_mfi_stp(struct mrsas_instance *instance, struct mrsas_ioctl *ioctl,
5971 kstp = (struct mrsas_stp_frame *)&ioctl->frame[0];
6179 handle_drv_ioctl(struct mrsas_instance *instance, struct mrsas_ioctl *ioctl,
6195 kdcmd = (struct mrsas_dcmd_frame *)&ioctl->frame[0];
6291 handle_mfi_ioctl(struct mrsas_instance *instance, struct mrsas_ioctl *ioctl,
6317 hdr = (struct mrsas_header *)&ioctl->frame[0];
6321 rval = issue_mfi_dcmd(instance, ioctl, cmd, mode);
6324 rval = issue_mfi_smp(instance, ioctl, cmd, mode);
6327 rval = issue_mfi_stp(instance, ioctl, cmd, mode);
6331 rval = issue_mfi_pthru(instance, ioctl, cmd, mode);
6335 "invalid mfi ioctl hdr->cmd = %d", hdr->cmd));