Lines Matching refs:driver_command

647 	TW_Ioctl_Driver_Command driver_command;  in twa_chrdev_ioctl()  local
667 if (copy_from_user(&driver_command, argp, sizeof(TW_Ioctl_Driver_Command))) in twa_chrdev_ioctl()
671 if (driver_command.buffer_length > TW_MAX_SECTORS * 2048) { in twa_chrdev_ioctl()
677 data_buffer_length_adjusted = (driver_command.buffer_length + 511) & ~511; in twa_chrdev_ioctl()
691 if (copy_from_user(tw_ioctl, argp, sizeof(TW_Ioctl_Buf_Apache) + driver_command.buffer_length)) in twa_chrdev_ioctl()
744 tw_ioctl->driver_command.status = 0; in twa_chrdev_ioctl()
752 tw_ioctl->driver_command.status = TW_IOCTL_ERROR_STATUS_AEN_CLOBBER; in twa_chrdev_ioctl()
755 tw_ioctl->driver_command.status = 0; in twa_chrdev_ioctl()
758 tw_ioctl->driver_command.status = TW_IOCTL_ERROR_STATUS_NO_MORE_EVENTS; in twa_chrdev_ioctl()
761 tw_ioctl->driver_command.status = 0; in twa_chrdev_ioctl()
770 tw_ioctl->driver_command.status = TW_IOCTL_ERROR_STATUS_AEN_CLOBBER; in twa_chrdev_ioctl()
773 tw_ioctl->driver_command.status = 0; in twa_chrdev_ioctl()
777 tw_ioctl->driver_command.status = TW_IOCTL_ERROR_STATUS_NO_MORE_EVENTS; in twa_chrdev_ioctl()
780 tw_ioctl->driver_command.status = 0; in twa_chrdev_ioctl()
789 tw_ioctl->driver_command.status = 0; in twa_chrdev_ioctl()
793 tw_ioctl->driver_command.status = TW_IOCTL_ERROR_STATUS_AEN_CLOBBER; in twa_chrdev_ioctl()
799 tw_ioctl->driver_command.status = TW_IOCTL_ERROR_STATUS_NO_MORE_EVENTS; in twa_chrdev_ioctl()
807 if (tw_ioctl->driver_command.status == TW_IOCTL_ERROR_STATUS_AEN_CLOBBER) in twa_chrdev_ioctl()
809 tw_ioctl->driver_command.status = TW_IOCTL_ERROR_STATUS_NO_MORE_EVENTS; in twa_chrdev_ioctl()
818 tw_ioctl->driver_command.status = 0; in twa_chrdev_ioctl()
822 tw_ioctl->driver_command.status = TW_IOCTL_ERROR_STATUS_AEN_CLOBBER; in twa_chrdev_ioctl()
828 tw_ioctl->driver_command.status = TW_IOCTL_ERROR_STATUS_NO_MORE_EVENTS; in twa_chrdev_ioctl()
836 if (tw_ioctl->driver_command.status == TW_IOCTL_ERROR_STATUS_AEN_CLOBBER) in twa_chrdev_ioctl()
838 tw_ioctl->driver_command.status = TW_IOCTL_ERROR_STATUS_NO_MORE_EVENTS; in twa_chrdev_ioctl()
852 tw_ioctl->driver_command.status = 0; in twa_chrdev_ioctl()
855 tw_ioctl->driver_command.status = TW_IOCTL_ERROR_STATUS_LOCKED; in twa_chrdev_ioctl()
862 tw_ioctl->driver_command.status = 0; in twa_chrdev_ioctl()
864 tw_ioctl->driver_command.status = TW_IOCTL_ERROR_STATUS_NOT_LOCKED; in twa_chrdev_ioctl()
873 if (copy_to_user(argp, tw_ioctl, sizeof(TW_Ioctl_Buf_Apache) + driver_command.buffer_length) == 0) in twa_chrdev_ioctl()