]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c
MdeModulePkg/Bus/Scsi: Fix various typos
[mirror_edk2.git] / MdeModulePkg / Bus / Scsi / ScsiDiskDxe / ScsiDisk.c
index 6bfcf03a4b4122fac888bf6880be5ceb091a8640..c80e78fa8a6b655f2da018b64b8429ec956c8517 100644 (file)
@@ -704,7 +704,7 @@ Done:
   @retval EFI_WRITE_PROTECTED   The device can not be written to.\r
   @retval EFI_DEVICE_ERROR      Fail to detect media.\r
   @retval EFI_NO_MEDIA          Media is not present.\r
-  @retval EFI_MEDIA_CHNAGED     Media has changed.\r
+  @retval EFI_MEDIA_CHANGED     Media has changed.\r
   @retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.\r
   @retval EFI_INVALID_PARAMETER Invalid parameter passed in.\r
 \r
@@ -3166,7 +3166,7 @@ CheckTargetStatus (
 \r
   When encountering error during the process, if retrieve sense keys before\r
   error encountered, it returns the sense keys with return status set to EFI_SUCCESS,\r
-  and NeedRetry set to FALSE; otherwize, return the proper return status.\r
+  and NeedRetry set to FALSE; otherwise, return the proper return status.\r
 \r
   @param  ScsiDiskDevice     The pointer of SCSI_DISK_DEV\r
   @param  NeedRetry          The pointer of flag indicates if need a retry\r
@@ -3438,7 +3438,7 @@ ScsiDiskReadSectors (
     // As ScsiDisk and ScsiBus driver are used to manage SCSI or ATAPI devices, we have to use\r
     // the lowest transfer rate to calculate the possible maximum timeout value for each operation.\r
     // From the above table, we could know 2.1Mbytes per second is lowest one.\r
-    // The timout value is rounded up to nearest integar and here an additional 30s is added\r
+    // The timeout value is rounded up to nearest integer and here an additional 30s is added\r
     // to follow ATA spec in which it mentioned that the device may take up to 30s to respond\r
     // commands in the Standby/Idle mode.\r
     //\r
@@ -3482,7 +3482,7 @@ ScsiDiskReadSectors (
       // it is invalid to request more sectors in the CDB than the entire\r
       // transfer (ie. ByteCount) can carry.\r
       //\r
-      // In addition, ByteCount is only expected to go down, or stay unchaged.\r
+      // In addition, ByteCount is only expected to go down, or stay unchanged.\r
       // Therefore we don't need to update Timeout: the original timeout should\r
       // accommodate shorter transfers too.\r
       //\r
@@ -3603,7 +3603,7 @@ ScsiDiskWriteSectors (
     // As ScsiDisk and ScsiBus driver are used to manage SCSI or ATAPI devices, we have to use\r
     // the lowest transfer rate to calculate the possible maximum timeout value for each operation.\r
     // From the above table, we could know 2.1Mbytes per second is lowest one.\r
-    // The timout value is rounded up to nearest integar and here an additional 30s is added\r
+    // The timeout value is rounded up to nearest integer and here an additional 30s is added\r
     // to follow ATA spec in which it mentioned that the device may take up to 30s to respond\r
     // commands in the Standby/Idle mode.\r
     //\r
@@ -3646,7 +3646,7 @@ ScsiDiskWriteSectors (
       // it is invalid to request more sectors in the CDB than the entire\r
       // transfer (ie. ByteCount) can carry.\r
       //\r
-      // In addition, ByteCount is only expected to go down, or stay unchaged.\r
+      // In addition, ByteCount is only expected to go down, or stay unchanged.\r
       // Therefore we don't need to update Timeout: the original timeout should\r
       // accommodate shorter transfers too.\r
       //\r
@@ -3787,7 +3787,7 @@ ScsiDiskAsyncReadSectors (
     // we have to use the lowest transfer rate to calculate the possible\r
     // maximum timeout value for each operation.\r
     // From the above table, we could know 2.1Mbytes per second is lowest one.\r
-    // The timout value is rounded up to nearest integar and here an additional\r
+    // The timeout value is rounded up to nearest integer and here an additional\r
     // 30s is added to follow ATA spec in which it mentioned that the device\r
     // may take up to 30s to respond commands in the Standby/Idle mode.\r
     //\r
@@ -4004,7 +4004,7 @@ ScsiDiskAsyncWriteSectors (
     // we have to use the lowest transfer rate to calculate the possible\r
     // maximum timeout value for each operation.\r
     // From the above table, we could know 2.1Mbytes per second is lowest one.\r
-    // The timout value is rounded up to nearest integar and here an additional\r
+    // The timeout value is rounded up to nearest integer and here an additional\r
     // 30s is added to follow ATA spec in which it mentioned that the device\r
     // may take up to 30s to respond commands in the Standby/Idle mode.\r
     //\r
@@ -4143,10 +4143,10 @@ ScsiDiskRead10 (
   UINTN       Action;\r
 \r
   //\r
-  // Implement a backoff algorithem to resolve some compatibility issues that\r
+  // Implement a backoff algorithm to resolve some compatibility issues that\r
   // some SCSI targets or ATAPI devices couldn't correctly response reading/writing\r
   // big data in a single operation.\r
-  // This algorithem will at first try to execute original request. If the request fails\r
+  // This algorithm will at first try to execute original request. If the request fails\r
   // with media error sense data or else, it will reduce the transfer length to half and\r
   // try again till the operation succeeds or fails with one sector transfer length.\r
   //\r
@@ -4268,10 +4268,10 @@ ScsiDiskWrite10 (
   UINTN       Action;\r
 \r
   //\r
-  // Implement a backoff algorithem to resolve some compatibility issues that\r
+  // Implement a backoff algorithm to resolve some compatibility issues that\r
   // some SCSI targets or ATAPI devices couldn't correctly response reading/writing\r
   // big data in a single operation.\r
-  // This algorithem will at first try to execute original request. If the request fails\r
+  // This algorithm will at first try to execute original request. If the request fails\r
   // with media error sense data or else, it will reduce the transfer length to half and\r
   // try again till the operation succeeds or fails with one sector transfer length.\r
   //\r
@@ -4391,10 +4391,10 @@ ScsiDiskRead16 (
   UINTN       Action;\r
 \r
   //\r
-  // Implement a backoff algorithem to resolve some compatibility issues that\r
+  // Implement a backoff algorithm to resolve some compatibility issues that\r
   // some SCSI targets or ATAPI devices couldn't correctly response reading/writing\r
   // big data in a single operation.\r
-  // This algorithem will at first try to execute original request. If the request fails\r
+  // This algorithm will at first try to execute original request. If the request fails\r
   // with media error sense data or else, it will reduce the transfer length to half and\r
   // try again till the operation succeeds or fails with one sector transfer length.\r
   //\r
@@ -4515,10 +4515,10 @@ ScsiDiskWrite16 (
   UINTN       Action;\r
 \r
   //\r
-  // Implement a backoff algorithem to resolve some compatibility issues that\r
+  // Implement a backoff algorithm to resolve some compatibility issues that\r
   // some SCSI targets or ATAPI devices couldn't correctly response reading/writing\r
   // big data in a single operation.\r
-  // This algorithem will at first try to execute original request. If the request fails\r
+  // This algorithm will at first try to execute original request. If the request fails\r
   // with media error sense data or else, it will reduce the transfer length to half and\r
   // try again till the operation succeeds or fails with one sector transfer length.\r
   //\r