]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/IScsiDxe/IScsiProto.c
NetworkPkg/IScsiDxe: Fix various typos
[mirror_edk2.git] / NetworkPkg / IScsiDxe / IScsiProto.c
index 6fbf973e35f307ce5b6c98de2900cd72c090c331..6983f0fa5973feb4aa84f4f516cecd616e4a34fc 100644 (file)
@@ -468,7 +468,7 @@ IScsiSessionLogin (
     IScsiAttatchConnection (Session, Conn);\r
 \r
     //\r
-    // Login througth the newly created connection.\r
+    // Login through the newly created connection.\r
     //\r
     Status = IScsiConnLogin (Conn, Session->ConfigData->SessionConfigData.ConnectTimeout);\r
     if (EFI_ERROR (Status)) {\r
@@ -765,7 +765,7 @@ IScsiPrepareLoginReq (
   LoginReq->CmdSN             = HTONL (Session->CmdSN);\r
 \r
   //\r
-  // For the first Login Request on a coonection this is ExpStatSN for the\r
+  // For the first Login Request on a connection this is ExpStatSN for the\r
   // old connection, and this field is only valid if the Login Request restarts\r
   // a connection.\r
   // For subsequent Login Requests it is used to acknowledge the Login Responses\r
@@ -941,7 +941,7 @@ IScsiProcessLoginRsp (
     // A Login Response with the C bit set to 1 MUST have the T bit set to 0.\r
     // The CSG in the Login Response MUST be the same with the I-end of this connection.\r
     // The T bit can't be 1 if the last Login Response sent by the initiator doesn't\r
-    // initiate the transistion.\r
+    // initiate the transition.\r
     // The NSG MUST be the same with the I-end of this connection if Transit is required.\r
     // The ISID in the Login Response MUST be the same with this session.\r
     //\r
@@ -1152,13 +1152,13 @@ IScsiUpdateTargetAddress (
     }\r
 \r
     //\r
-    // Save the origial user setting which specifies the proxy/virtual iSCSI target.\r
+    // Save the original user setting which specifies the proxy/virtual iSCSI target.\r
     //\r
     NvData->OriginalTargetPort = NvData->TargetPort;\r
 \r
     if (*TargetAddress == ',') {\r
       //\r
-      // Comma and the portal group tag MUST be ommitted if the TargetAddress is sent\r
+      // Comma and the portal group tag MUST be omitted if the TargetAddress is sent\r
       // as the result of a redirection.\r
       //\r
       continue;\r
@@ -1181,7 +1181,7 @@ IScsiUpdateTargetAddress (
     }\r
 \r
     //\r
-    // Save the origial user setting which specifies the proxy/virtual iSCSI target.\r
+    // Save the original user setting which specifies the proxy/virtual iSCSI target.\r
     //\r
     CopyMem (&NvData->OriginalTargetIp, &NvData->TargetIp, sizeof (EFI_IP_ADDRESS));\r
 \r
@@ -1471,7 +1471,7 @@ ON_EXIT:
 \r
   @param[in, out]  Conn          The connection in iSCSI login.\r
 \r
-  @retval EFI_SUCCESS          The parmeter check is passed and negotiation is finished.\r
+  @retval EFI_SUCCESS          The parameter check is passed and negotiation is finished.\r
   @retval EFI_PROTOCOL_ERROR   Some kind of iSCSI protocol error occurred.\r
   @retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
 \r
@@ -1546,7 +1546,7 @@ IScsiCheckOpParams (
     goto ON_ERROR;\r
   }\r
   //\r
-  // ErrorRecoveryLevel: result fuction is Minimum.\r
+  // ErrorRecoveryLevel: result function is Minimum.\r
   //\r
   Value = IScsiGetValueByKeyFromList (KeyValueList, ISCSI_KEY_ERROR_RECOVERY_LEVEL);\r
   if (Value == NULL) {\r
@@ -1590,7 +1590,7 @@ IScsiCheckOpParams (
     Conn->MaxRecvDataSegmentLength = (UINT32) IScsiNetNtoi (Value);\r
   }\r
   //\r
-  // MaxBurstLength: result funtion is Mininum.\r
+  // MaxBurstLength: result function is Minimum.\r
   //\r
   Value = IScsiGetValueByKeyFromList (KeyValueList, ISCSI_KEY_MAX_BURST_LENGTH);\r
   if (Value == NULL) {\r
@@ -2249,7 +2249,7 @@ IScsiNewScsiCmdPdu (
 \r
   if (Session->ImmediateData && (Packet->OutTransferLength != 0)) {\r
     //\r
-    // Send immediate data in this SCSI Command PDU. The length of the immeidate\r
+    // Send immediate data in this SCSI Command PDU. The length of the immediate\r
     // data is the minimum of FirstBurstLength, the data length to be xfered, and\r
     // the MaxRecvdataSegmentLength on this connection.\r
     //\r
@@ -2494,7 +2494,7 @@ ON_EXIT:
   @param[in]  Lun             The LUN the data will be sent to.\r
   @param[in]  Tcb             The task control block.\r
 \r
-  @retval EFI_SUCCES           The data is sent out to the LUN.\r
+  @retval EFI_SUCCESS          The data is sent out to the LUN.\r
   @retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
   @retval Others               Other errors as indicated.\r
 \r
@@ -2547,9 +2547,9 @@ IScsiSendDataOutPduSequence (
   @param[in]        Tcb      The task control block.\r
   @param[in, out]   Packet   The EXT SCSI PASS THRU request packet.\r
 \r
-  @retval EFI_SUCCES           The check on the Data IN PDU is passed and some update\r
+  @retval EFI_SUCCESS          The check on the Data IN PDU is passed and some update\r
                                actions are taken.\r
-  @retval EFI_PROTOCOL_ERROR   Some kind of iSCSI protocol errror occurred.\r
+  @retval EFI_PROTOCOL_ERROR   Some kind of iSCSI protocol error occurred.\r
   @retval EFI_BAD_BUFFER_SIZEE The buffer was not the proper size for the request.\r
   @retval Others               Other errors as indicated.\r
 \r
@@ -2639,8 +2639,8 @@ IScsiOnDataInRcvd (
   @param[in]       Lun       The Lun.\r
   @param[in, out]  Packet    The EXT SCSI PASS THRU request packet.\r
 \r
-  @retval EFI_SUCCES         The R2T PDU is valid and the solicited data is sent out.\r
-  @retval EFI_PROTOCOL_ERROR Some kind of iSCSI protocol errror occurred.\r
+  @retval EFI_SUCCESS        The R2T PDU is valid and the solicited data is sent out.\r
+  @retval EFI_PROTOCOL_ERROR Some kind of iSCSI protocol error occurred.\r
   @retval Others             Other errors as indicated.\r
 \r
 **/\r
@@ -2707,8 +2707,8 @@ IScsiOnR2TRcvd (
   @param[in]       Tcb      The task control block.\r
   @param[in, out]  Packet   The EXT SCSI PASS THRU request packet.\r
 \r
-  @retval EFI_SUCCES         The Response PDU is processed.\r
-  @retval EFI_PROTOCOL_ERROR Some kind of iSCSI protocol errror occurred.\r
+  @retval EFI_SUCCESS        The Response PDU is processed.\r
+  @retval EFI_PROTOCOL_ERROR Some kind of iSCSI protocol error occurred.\r
   @retval EFI_BAD_BUFFER_SIZEE The buffer was not the proper size for the request.\r
   @retval Others             Other errors as indicated.\r
 \r
@@ -2815,9 +2815,9 @@ IScsiOnScsiRspRcvd (
   @param[in]  Pdu            The NOP In PDU received.\r
   @param[in]  Tcb            The task control block.\r
 \r
-  @retval EFI_SUCCES         The NOP In PDU is processed and the related sequence\r
+  @retval EFI_SUCCESS        The NOP In PDU is processed and the related sequence\r
                              numbers are updated.\r
-  @retval EFI_PROTOCOL_ERROR Some kind of iSCSI protocol errror occurred.\r
+  @retval EFI_PROTOCOL_ERROR Some kind of iSCSI protocol error occurred.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -2864,7 +2864,7 @@ IScsiOnNopInRcvd (
   @param[in, out]  Packet    The request packet containing IO request, SCSI command\r
                              buffer and buffers to read/write.\r
 \r
-  @retval EFI_SUCCES           The SCSI command is executed and the result is updated to\r
+  @retval EFI_SUCCESS          The SCSI command is executed and the result is updated to\r
                                the Packet.\r
   @retval EFI_DEVICE_ERROR     Session state was not as required.\r
   @retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r