Lines Matching refs:pArgs

597 static DECLCALLBACK(int) pdmacEpFileErrorInject(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PUVM pUVM, PCDBGCVAR pArgs, unsigned cArgs)
604 DBGC_CMDHLP_ASSERT_PARSER_RET(pCmdHlp, pCmd, 0, pArgs[0].enmType == DBGCVAR_TYPE_STRING);
605 DBGC_CMDHLP_ASSERT_PARSER_RET(pCmdHlp, pCmd, 1, pArgs[1].enmType == DBGCVAR_TYPE_STRING);
606 DBGC_CMDHLP_ASSERT_PARSER_RET(pCmdHlp, pCmd, 2, pArgs[2].enmType == DBGCVAR_TYPE_NUMBER);
613 if (!RTStrCmp(pArgs[0].u.pszString, "read"))
615 else if (!RTStrCmp(pArgs[0].u.pszString, "write"))
618 return DBGCCmdHlpFail(pCmdHlp, pCmd, "invalid transfer direction '%s'", pArgs[0].u.pszString);
620 int32_t rcToInject = (int32_t)pArgs[2].u.u64Number;
621 if ((uint64_t)rcToInject != pArgs[2].u.u64Number)
622 return DBGCCmdHlpFail(pCmdHlp, pCmd, "The status code '%lld' is out of range", pArgs[0].u.u64Number);
632 if (!RTStrCmp(pArgs[1].u.pszString, RTPathFilename(pEpFile->Core.pszUri)))
648 (int)rcToInject, pArgs[1].u.pszString, pArgs[0].u.pszString);
654 return DBGCCmdHlpFail(pCmdHlp, pCmd, "No file with name '%s' found", pArgs[1].u.pszString);
662 static DECLCALLBACK(int) pdmacEpFileDelayInject(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PUVM pUVM, PCDBGCVAR pArgs, unsigned cArgs)
669 DBGC_CMDHLP_ASSERT_PARSER_RET(pCmdHlp, pCmd, 0, pArgs[0].enmType == DBGCVAR_TYPE_STRING);
670 DBGC_CMDHLP_ASSERT_PARSER_RET(pCmdHlp, pCmd, 1, pArgs[1].enmType == DBGCVAR_TYPE_STRING);
671 DBGC_CMDHLP_ASSERT_PARSER_RET(pCmdHlp, pCmd, 2, pArgs[2].enmType == DBGCVAR_TYPE_NUMBER);
678 if (!RTStrCmp(pArgs[0].u.pszString, "read"))
680 else if (!RTStrCmp(pArgs[0].u.pszString, "write"))
682 else if (!RTStrCmp(pArgs[0].u.pszString, "flush"))
684 else if (!RTStrCmp(pArgs[0].u.pszString, "any"))
687 return DBGCCmdHlpFail(pCmdHlp, pCmd, "invalid transfer direction '%s'", pArgs[0].u.pszString);
689 uint32_t msDelay = (uint32_t)pArgs[2].u.u64Number;
690 if ((uint64_t)msDelay != pArgs[2].u.u64Number)
691 return DBGCCmdHlpFail(pCmdHlp, pCmd, "The delay '%lld' is out of range", pArgs[0].u.u64Number);
696 msJitter = (uint32_t)pArgs[3].u.u64Number;
698 cReqsDelay = (uint32_t)pArgs[4].u.u64Number;
708 if (!RTStrCmp(pArgs[1].u.pszString, RTPathFilename(pEpFile->Core.pszUri)))
721 cReqsDelay, msDelay, pArgs[1].u.pszString, pArgs[0].u.pszString);
727 return DBGCCmdHlpFail(pCmdHlp, pCmd, "No file with name '%s' found", pArgs[1].u.pszString);