Lines Matching refs:driver_command
649 TW_Ioctl_Driver_Command driver_command;
670 if (copy_from_user(&driver_command, argp, sizeof(TW_Ioctl_Driver_Command)))
674 if (driver_command.buffer_length > TW_MAX_SECTORS * 2048) {
680 data_buffer_length_adjusted = (driver_command.buffer_length + 511) & ~511;
692 if (copy_from_user(tw_ioctl, argp, driver_command.buffer_length + sizeof(TW_Ioctl_Buf_Apache) - 1))
745 tw_ioctl->driver_command.status = 0;
753 tw_ioctl->driver_command.status = TW_IOCTL_ERROR_STATUS_AEN_CLOBBER;
756 tw_ioctl->driver_command.status = 0;
759 tw_ioctl->driver_command.status = TW_IOCTL_ERROR_STATUS_NO_MORE_EVENTS;
762 tw_ioctl->driver_command.status = 0;
771 tw_ioctl->driver_command.status = TW_IOCTL_ERROR_STATUS_AEN_CLOBBER;
774 tw_ioctl->driver_command.status = 0;
778 tw_ioctl->driver_command.status = TW_IOCTL_ERROR_STATUS_NO_MORE_EVENTS;
781 tw_ioctl->driver_command.status = 0;
790 tw_ioctl->driver_command.status = 0;
794 tw_ioctl->driver_command.status = TW_IOCTL_ERROR_STATUS_AEN_CLOBBER;
800 tw_ioctl->driver_command.status = TW_IOCTL_ERROR_STATUS_NO_MORE_EVENTS;
808 if (tw_ioctl->driver_command.status == TW_IOCTL_ERROR_STATUS_AEN_CLOBBER)
810 tw_ioctl->driver_command.status = TW_IOCTL_ERROR_STATUS_NO_MORE_EVENTS;
819 tw_ioctl->driver_command.status = 0;
823 tw_ioctl->driver_command.status = TW_IOCTL_ERROR_STATUS_AEN_CLOBBER;
829 tw_ioctl->driver_command.status = TW_IOCTL_ERROR_STATUS_NO_MORE_EVENTS;
837 if (tw_ioctl->driver_command.status == TW_IOCTL_ERROR_STATUS_AEN_CLOBBER)
839 tw_ioctl->driver_command.status = TW_IOCTL_ERROR_STATUS_NO_MORE_EVENTS;
853 tw_ioctl->driver_command.status = 0;
856 tw_ioctl->driver_command.status = TW_IOCTL_ERROR_STATUS_LOCKED;
863 tw_ioctl->driver_command.status = 0;
865 tw_ioctl->driver_command.status = TW_IOCTL_ERROR_STATUS_NOT_LOCKED;
874 if (copy_to_user(argp, tw_ioctl, sizeof(TW_Ioctl_Buf_Apache) + driver_command.buffer_length - 1) == 0)