Lines Matching refs:DebugCtrl
85 static struct DebugCtrl DebugCtrl;
757 if (copy_from_user(&DebugCtrl, argp, sizeof(DebugCtrl))) {
761 if (DebugCtrl.SysPort == NO_PORT) {
767 p->rio_debug = DebugCtrl.Debug;
768 p->RIODebugWait = DebugCtrl.Wait;
772 DebugCtrl.Debug = p->rio_debug;
773 DebugCtrl.Wait = p->RIODebugWait;
774 if (copy_to_user(argp, &DebugCtrl, sizeof(DebugCtrl))) {
775 rio_dprintk(RIO_DEBUG_CTRL, "RIO_SET/GET DEBUG: bad port number %d\n", DebugCtrl.SysPort);
780 } else if (DebugCtrl.SysPort >= RIO_PORTS && DebugCtrl.SysPort != NO_PORT) {
781 rio_dprintk(RIO_DEBUG_CTRL, "RIO_SET/GET DEBUG: bad port number %d\n", DebugCtrl.SysPort);
790 p->RIOPortp[DebugCtrl.SysPort]->Debug = DebugCtrl.Debug;
792 rio_dprintk(RIO_DEBUG_CTRL, "RIO_SETDEBUG 0x%x\n", p->RIOPortp[DebugCtrl.SysPort]->Debug);
794 rio_dprintk(RIO_DEBUG_CTRL, "RIO_GETDEBUG 0x%x\n", p->RIOPortp[DebugCtrl.SysPort]->Debug);
795 DebugCtrl.Debug = p->RIOPortp[DebugCtrl.SysPort]->Debug;
796 if (copy_to_user(argp, &DebugCtrl, sizeof(DebugCtrl))) {