Author: pfg
Date: Fri Apr 29 21:05:48 2016
New Revision: 298810
URL: https://svnweb.freebsd.org/changeset/base/298810

Log:
  sys/cam: spelling fixes in comments.
  
  No functional change.

Modified:
  head/sys/cam/cam.h
  head/sys/cam/cam_periph.c
  head/sys/cam/cam_xpt.c
  head/sys/cam/ctl/ctl.c
  head/sys/cam/ctl/ctl_frontend_cam_sim.c
  head/sys/cam/ctl/ctl_frontend_ioctl.c
  head/sys/cam/ctl/ctl_io.h
  head/sys/cam/ctl/ctl_ioctl.h
  head/sys/cam/scsi/scsi_all.c
  head/sys/cam/scsi/scsi_all.h
  head/sys/cam/scsi/scsi_ch.h
  head/sys/cam/scsi/scsi_da.c
  head/sys/cam/scsi/scsi_low.h
  head/sys/cam/scsi/scsi_sa.c
  head/sys/cam/scsi/scsi_xpt.c

Modified: head/sys/cam/cam.h
==============================================================================
--- head/sys/cam/cam.h  Fri Apr 29 21:04:06 2016        (r298809)
+++ head/sys/cam/cam.h  Fri Apr 29 21:05:48 2016        (r298810)
@@ -77,7 +77,7 @@ typedef enum {
     CAM_RL_VALUES
 } cam_rl;
 /*
- * The generation number is incremented everytime a new entry is entered into
+ * The generation number is incremented every time a new entry is entered into
  * the queue giving round robin per priority level scheduling.
  */
 typedef struct {
@@ -118,7 +118,7 @@ typedef enum {
 enum {
        SF_RETRY_UA             = 0x01, /* Retry UNIT ATTENTION conditions. */
        SF_NO_PRINT             = 0x02, /* Never print error status. */
-       SF_QUIET_IR             = 0x04, /* Be quiet about Illegal Request 
reponses */
+       SF_QUIET_IR             = 0x04, /* Be quiet about Illegal Request 
responses */
        SF_PRINT_ALWAYS         = 0x08, /* Always print error status. */
        SF_NO_RECOVERY          = 0x10, /* Don't do active error recovery. */
        SF_NO_RETRY             = 0x20, /* Don't do any retries. */

Modified: head/sys/cam/cam_periph.c
==============================================================================
--- head/sys/cam/cam_periph.c   Fri Apr 29 21:04:06 2016        (r298809)
+++ head/sys/cam/cam_periph.c   Fri Apr 29 21:05:48 2016        (r298810)
@@ -1604,7 +1604,7 @@ sense_error_done:
 
 /*
  * Generic error handler.  Peripheral drivers usually filter
- * out the errors that they handle in a unique mannor, then
+ * out the errors that they handle in a unique manner, then
  * call this function.
  */
 int

Modified: head/sys/cam/cam_xpt.c
==============================================================================
--- head/sys/cam/cam_xpt.c      Fri Apr 29 21:04:06 2016        (r298809)
+++ head/sys/cam/cam_xpt.c      Fri Apr 29 21:05:48 2016        (r298810)
@@ -863,7 +863,7 @@ xpt_init(void *dummy)
        xsoftc.boot_delay = CAM_BOOT_DELAY;
 #endif
        /*
-        * The xpt layer is, itself, the equivelent of a SIM.
+        * The xpt layer is, itself, the equivalent of a SIM.
         * Allow 16 ccbs in the ccb pool for it.  This should
         * give decent parallelism when we probe busses and
         * perform other XPT functions.
@@ -892,7 +892,7 @@ xpt_init(void *dummy)
 
        /*
         * Looking at the XPT from the SIM layer, the XPT is
-        * the equivelent of a peripheral driver.  Allocate
+        * the equivalent of a peripheral driver.  Allocate
         * a peripheral driver entry for us.
         */
        if ((status = xpt_create_path(&path, NULL, CAM_XPT_PATH_ID,

Modified: head/sys/cam/ctl/ctl.c
==============================================================================
--- head/sys/cam/ctl/ctl.c      Fri Apr 29 21:04:06 2016        (r298809)
+++ head/sys/cam/ctl/ctl.c      Fri Apr 29 21:05:48 2016        (r298810)
@@ -5980,7 +5980,7 @@ ctl_debugconf_sp_sense_handler(struct ct
        case SMS_PAGE_CTRL_DEFAULT >> 6:
        case SMS_PAGE_CTRL_SAVED >> 6:
                /*
-                * We don't update the changable or default bits for this page.
+                * We don't update the changeable or default bits for this page.
                 */
                break;
        case SMS_PAGE_CTRL_CURRENT >> 6:
@@ -10223,7 +10223,7 @@ ctl_inquiry_std(struct ctl_scsiio *ctsio
         *
         * Therefore we set the HiSup bit here.
         *
-        * The reponse format is 2, per SPC-3.
+        * The response format is 2, per SPC-3.
         */
        inq_ptr->response_format = SID_HiSup | 2;
 

Modified: head/sys/cam/ctl/ctl_frontend_cam_sim.c
==============================================================================
--- head/sys/cam/ctl/ctl_frontend_cam_sim.c     Fri Apr 29 21:04:06 2016        
(r298809)
+++ head/sys/cam/ctl/ctl_frontend_cam_sim.c     Fri Apr 29 21:05:48 2016        
(r298810)
@@ -106,7 +106,7 @@ static void cfcs_async(void *callback_ar
 
 struct cfcs_softc cfcs_softc;
 /*
- * This is primarly intended to allow for error injection to test the CAM
+ * This is primarily intended to allow for error injection to test the CAM
  * sense data and sense residual handling code.  This sets the maximum
  * amount of SCSI sense data that we will report to CAM.
  */

Modified: head/sys/cam/ctl/ctl_frontend_ioctl.c
==============================================================================
--- head/sys/cam/ctl/ctl_frontend_ioctl.c       Fri Apr 29 21:04:06 2016        
(r298809)
+++ head/sys/cam/ctl/ctl_frontend_ioctl.c       Fri Apr 29 21:05:48 2016        
(r298810)
@@ -339,7 +339,7 @@ cfi_submit_wait(union ctl_io *io)
                mtx_lock(&params.ioctl_mtx);
                /*
                 * Check the state here, and don't sleep if the state has
-                * already changed (i.e. wakeup has already occured, but we
+                * already changed (i.e. wakeup has already occurred, but we
                 * weren't waiting yet).
                 */
                if (params.state == last_state) {

Modified: head/sys/cam/ctl/ctl_io.h
==============================================================================
--- head/sys/cam/ctl/ctl_io.h   Fri Apr 29 21:04:06 2016        (r298809)
+++ head/sys/cam/ctl/ctl_io.h   Fri Apr 29 21:05:48 2016        (r298810)
@@ -80,7 +80,7 @@ typedef enum {
 
 /*
  * WARNING:  Keep the data in/out/none flags where they are.  They're used
- * in conjuction with ctl_cmd_flags.  See comment above ctl_cmd_flags
+ * in conjunction with ctl_cmd_flags.  See comment above ctl_cmd_flags
  * definition in ctl_private.h.
  */
 typedef enum {

Modified: head/sys/cam/ctl/ctl_ioctl.h
==============================================================================
--- head/sys/cam/ctl/ctl_ioctl.h        Fri Apr 29 21:04:06 2016        
(r298809)
+++ head/sys/cam/ctl/ctl_ioctl.h        Fri Apr 29 21:05:48 2016        
(r298810)
@@ -313,7 +313,7 @@ typedef enum {
  *
  * namelen:    Length of the name field, including the terminating NUL.
  *
- * name:       Name of the paramter.  This must be NUL-terminated.
+ * name:       Name of the parameter.  This must be NUL-terminated.
  *
  * flags:      Flags for the parameter, see above for values.
  *
@@ -485,7 +485,7 @@ struct ctl_lun_req {
  * NEED_MORE_SPACE:    The allocated length of the entries field is too
  *                     small for the available data.
  *
- * ERROR:              An error occured, look at the error string for a
+ * ERROR:              An error occurred, look at the error string for a
  *                     description of the error.
  */
 typedef enum {
@@ -573,7 +573,7 @@ struct ctl_req {
  *
  * OK:                 Request completed successfully.
  *
- * ERROR:              An error occured, look at the error string for a
+ * ERROR:              An error occurred, look at the error string for a
  *                     description of the error.
  *
  * CTL_ISCSI_LIST_NEED_MORE_SPACE:

Modified: head/sys/cam/scsi/scsi_all.c
==============================================================================
--- head/sys/cam/scsi/scsi_all.c        Fri Apr 29 21:04:06 2016        
(r298809)
+++ head/sys/cam/scsi/scsi_all.c        Fri Apr 29 21:05:48 2016        
(r298810)
@@ -3644,7 +3644,7 @@ scsi_desc_iterate(struct scsi_sense_data
 
        /*
         * The length of data actually returned may be different than the
-        * extra_len recorded in the sturcture.
+        * extra_len recorded in the structure.
         */
        desc_len = sense_len -offsetof(struct scsi_sense_data_desc, sense_desc);
 
@@ -8704,7 +8704,7 @@ scsi_static_inquiry_match(caddr_t inqbuf
  * \return  0 on a match, -1 otherwise.
  *
  * Treat rhs and lhs as arrays of vpd device id descriptors.  Walk lhs matching
- * agains each element in rhs until all data are exhausted or we have found
+ * against each element in rhs until all data are exhausted or we have found
  * a match.
  */
 int

Modified: head/sys/cam/scsi/scsi_all.h
==============================================================================
--- head/sys/cam/scsi/scsi_all.h        Fri Apr 29 21:04:06 2016        
(r298809)
+++ head/sys/cam/scsi/scsi_all.h        Fri Apr 29 21:05:48 2016        
(r298810)
@@ -3146,7 +3146,7 @@ struct scsi_sense_info
 
 /*
  * Command-specific information depends on the command for which the
- * reported condition occured.
+ * reported condition occurred.
  *
  * Note that any changes to the field names or positions in this structure,
  * even reserved fields, should be accompanied by an examination of the
@@ -3381,7 +3381,7 @@ struct scsi_sense_forwarded
 
 /*
  * Vendor-specific sense descriptor.  The desc_type field will be in the
- * range bewteen MIN and MAX inclusive.
+ * range between MIN and MAX inclusive.
  */
 struct scsi_sense_vendor
 {

Modified: head/sys/cam/scsi/scsi_ch.h
==============================================================================
--- head/sys/cam/scsi/scsi_ch.h Fri Apr 29 21:04:06 2016        (r298809)
+++ head/sys/cam/scsi/scsi_ch.h Fri Apr 29 21:05:48 2016        (r298810)
@@ -333,7 +333,7 @@ struct scsi_send_volume_tag_parameters {
 /*
  * Device capabilities page.
  *
- * This page defines characteristics of the elemenet types in the
+ * This page defines characteristics of the element types in the
  * medium changer device.
  *
  * Note in the definitions below, the following abbreviations are
@@ -341,7 +341,7 @@ struct scsi_send_volume_tag_parameters {
  *             MT      Medium transport element (picker)
  *             ST      Storage transport element (slot)
  *             IE      Import/export element (portal)
- *             DT      Data tranfer element (tape/disk drive)
+ *             DT      Data transfer element (tape/disk drive)
  */
 struct page_device_capabilities {
        u_int8_t        pg_code;        /* page code (0x1f) */

Modified: head/sys/cam/scsi/scsi_da.c
==============================================================================
--- head/sys/cam/scsi/scsi_da.c Fri Apr 29 21:04:06 2016        (r298809)
+++ head/sys/cam/scsi/scsi_da.c Fri Apr 29 21:05:48 2016        (r298810)
@@ -2966,7 +2966,7 @@ cmd6workaround(union ccb *ccb)
                 *
                 * While we will attempt to choose an alternative delete method
                 * this may result in short deletes if the existing delete
-                * requests from geom are big for the new method choosen.
+                * requests from geom are big for the new method chosen.
                 *
                 * This method assumes that the error which triggered this
                 * will not retry the io otherwise a panic will occur
@@ -3421,7 +3421,7 @@ dadone(struct cam_periph *periph, union 
                         * Based on older SBC-3 spec revisions
                         * any of the UNMAP methods "may" be
                         * available via LBP given this flag so
-                        * we flag all of them as availble and
+                        * we flag all of them as available and
                         * then remove those which further
                         * probes confirm aren't available
                         * later.

Modified: head/sys/cam/scsi/scsi_low.h
==============================================================================
--- head/sys/cam/scsi/scsi_low.h        Fri Apr 29 21:04:06 2016        
(r298809)
+++ head/sys/cam/scsi/scsi_low.h        Fri Apr 29 21:05:48 2016        
(r298810)
@@ -146,7 +146,7 @@ struct slccb {
         *****************************************/
        struct sc_p ccb_scp;            /* given */
        struct sc_p ccb_sscp;           /* saved scsi data pointer */
-       int ccb_datalen;                /* transfered data counter */
+       int ccb_datalen;                /* transferred data counter */
 
        /*****************************************
         * Msgout 
@@ -165,7 +165,7 @@ struct slccb {
 #define        CCB_STARTQ      0x0010
 #define        CCB_POLLED      0x0100  /* polling ccb */
 #define        CCB_NORETRY     0x0200  /* do NOT retry */
-#define        CCB_AUTOSENSE   0x0400  /* do a sence after CA */
+#define        CCB_AUTOSENSE   0x0400  /* do a sense after CA */
 #define        CCB_URGENT      0x0800  /* an urgent ccb */
 #define        CCB_NOSDONE     0x1000  /* do not call an os done routine */
 #define        CCB_SCSIIO      0x2000  /* a normal scsi io coming from upper 
layer */

Modified: head/sys/cam/scsi/scsi_sa.c
==============================================================================
--- head/sys/cam/scsi/scsi_sa.c Fri Apr 29 21:04:06 2016        (r298809)
+++ head/sys/cam/scsi/scsi_sa.c Fri Apr 29 21:05:48 2016        (r298810)
@@ -2862,7 +2862,7 @@ samount(struct cam_periph *periph, int o
        softc = (struct sa_softc *)periph->softc;
 
        /*
-        * This should determine if something has happend since the last
+        * This should determine if something has happened since the last
         * open/mount that would invalidate the mount. We do *not* want
         * to retry this command- we just want the status. But we only
         * do this if we're mounted already- if we're not mounted,

Modified: head/sys/cam/scsi/scsi_xpt.c
==============================================================================
--- head/sys/cam/scsi/scsi_xpt.c        Fri Apr 29 21:04:06 2016        
(r298809)
+++ head/sys/cam/scsi/scsi_xpt.c        Fri Apr 29 21:05:48 2016        
(r298810)
@@ -456,7 +456,7 @@ static struct scsi_quirk_entry scsi_quir
        },
        {
                /*
-                * The Hitachi CJ series with J8A8 firmware apparantly has
+                * The Hitachi CJ series with J8A8 firmware apparently has
                 * problems with tagged commands.
                 * PR: 23536
                 * Reported by: ama...@nue.org
@@ -2431,7 +2431,7 @@ scsi_devise_transport(struct cam_path *p
                        path->device->transport_version =
                            otherdev->transport_version;
                } else {
-                       /* Until we know better, opt for safty */
+                       /* Until we know better, opt for safety */
                        path->device->protocol_version = 2;
                        if (path->device->transport == XPORT_SPI)
                                path->device->transport_version = 2;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to