Lines Matching defs:ioctl

115 	megasas_ioctl,		/* ioctl */
648 * for issuing ioctl to the driver.
654 "megaraid: failed to create ioctl node."));
926 "megaraid: Non-root ioctl access tried!"));
933 "megaraid: ioctl node must be a char node\n"));
976 * ioctl - performs a range of I/O commands for character drivers
984 * ioctl() routine must make sure that user data is copied into or out of the
987 * This is a wrapper routine to serialize access to the actual ioctl routine.
988 * ioctl() should return 0 on success, or the appropriate error number. The
998 struct megasas_ioctl ioctl;
1013 if (ddi_copyin((void *) arg, &ioctl,
1020 if (ioctl.control_code == MR_DRIVER_IOCTL_COMMON) {
1021 rval = handle_drv_ioctl(instance, &ioctl, mode);
1023 rval = handle_mfi_ioctl(instance, &ioctl, mode);
1026 if (ddi_copyout((void *) &ioctl, (void *)arg,
3541 issue_mfi_pthru(struct megasas_instance *instance, struct megasas_ioctl *ioctl,
3554 kpthru = (struct megasas_pthru_frame *)&ioctl->frame[0];
3666 issue_mfi_dcmd(struct megasas_instance *instance, struct megasas_ioctl *ioctl,
3678 kdcmd = (struct megasas_dcmd_frame *)&ioctl->frame[0];
3778 issue_mfi_smp(struct megasas_instance *instance, struct megasas_ioctl *ioctl,
3796 ksmp = (struct megasas_smp_frame *)&ioctl->frame[0];
4005 issue_mfi_stp(struct megasas_instance *instance, struct megasas_ioctl *ioctl,
4019 kstp = (struct megasas_stp_frame *)&ioctl->frame[0];
4195 handle_drv_ioctl(struct megasas_instance *instance, struct megasas_ioctl *ioctl,
4211 kdcmd = (struct megasas_dcmd_frame *)&ioctl->frame[0];
4310 handle_mfi_ioctl(struct megasas_instance *instance, struct megasas_ioctl *ioctl,
4326 hdr = (struct megasas_header *)&ioctl->frame[0];
4330 rval = issue_mfi_dcmd(instance, ioctl, cmd, mode);
4333 rval = issue_mfi_smp(instance, ioctl, cmd, mode);
4336 rval = issue_mfi_stp(instance, ioctl, cmd, mode);
4340 rval = issue_mfi_pthru(instance, ioctl, cmd, mode);
4344 "invalid mfi ioctl hdr->cmd = %d\n", hdr->cmd));