Lines Matching defs:cmd
198 IOATABusCommand64* cmd = IOATABusCommand64::allocateCmd32();
200 return (IOATACommand*) cmd;
228 IOATABusCommand* cmd = OSDynamicCast( IOATABusCommand, command);
230 if( !cmd )
233 if( cmd->getCallbackPtr() == 0L)
236 cmd->syncer = mySync;
240 IOReturn err = _provider->executeCommand( this, cmd);
245 err = cmd->getResult();
279 IOATABusCommand* cmd = (IOATABusCommand*) allocCommand();
281 if(!cmd)
292 cmd->setOpcode( kATAFnExecIO);
293 cmd->setFlags(mATAFlagIORead);
294 cmd->setUnit( _unitNumber );
295 cmd->setTimeoutMS( 30000);
298 cmd->setBuffer ( desc);
299 cmd->setPosition ((IOByteCount) 0);
300 cmd->setByteCount ((IOByteCount) kIDBufferBytes);
306 cmd->setDevice_Head( ((UInt8)_unitNumber) << 4);
310 cmd->setCommand ( kATAcmdDriveIdentify );
314 cmd->setCommand ( 0xA1 ); // packet identify
320 cmd->setCallbackPtr ( (IOATACompletionFunction*) MyATACallback);
327 cmd->refCon = (void*) completion;
328 cmd->refCon2 = (void*) this;
333 IOReturn err = executeCommand( cmd);
344 if( cmd->getResult() )
346 err = cmd->getResult();
349 freeCommand(cmd);