summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2016-04-29 21:05:48 +0000
committerpfg <pfg@FreeBSD.org>2016-04-29 21:05:48 +0000
commit8932da33aa2ff2b792193de01f9f9dd3ff6f9854 (patch)
tree8eab9c4b79753a07f4971ffd9a4dc7f9f5a4fc31 /sys/cam
parentc84f97e928c5c3e0a192314255d37453320cf4a2 (diff)
downloadFreeBSD-src-8932da33aa2ff2b792193de01f9f9dd3ff6f9854.zip
FreeBSD-src-8932da33aa2ff2b792193de01f9f9dd3ff6f9854.tar.gz
sys/cam: spelling fixes in comments.
No functional change.
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/cam.h4
-rw-r--r--sys/cam/cam_periph.c2
-rw-r--r--sys/cam/cam_xpt.c4
-rw-r--r--sys/cam/ctl/ctl.c4
-rw-r--r--sys/cam/ctl/ctl_frontend_cam_sim.c2
-rw-r--r--sys/cam/ctl/ctl_frontend_ioctl.c2
-rw-r--r--sys/cam/ctl/ctl_io.h2
-rw-r--r--sys/cam/ctl/ctl_ioctl.h6
-rw-r--r--sys/cam/scsi/scsi_all.c4
-rw-r--r--sys/cam/scsi/scsi_all.h4
-rw-r--r--sys/cam/scsi/scsi_ch.h4
-rw-r--r--sys/cam/scsi/scsi_da.c4
-rw-r--r--sys/cam/scsi/scsi_low.h4
-rw-r--r--sys/cam/scsi/scsi_sa.c2
-rw-r--r--sys/cam/scsi/scsi_xpt.c4
15 files changed, 26 insertions, 26 deletions
diff --git a/sys/cam/cam.h b/sys/cam/cam.h
index 63f83c7..ec4df8b 100644
--- a/sys/cam/cam.h
+++ b/sys/cam/cam.h
@@ -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. */
diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c
index 85b2ff9..b1686bc 100644
--- a/sys/cam/cam_periph.c
+++ b/sys/cam/cam_periph.c
@@ -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
diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c
index d22eda2..9f51487 100644
--- a/sys/cam/cam_xpt.c
+++ b/sys/cam/cam_xpt.c
@@ -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,
diff --git a/sys/cam/ctl/ctl.c b/sys/cam/ctl/ctl.c
index d6331b9..83e2289 100644
--- a/sys/cam/ctl/ctl.c
+++ b/sys/cam/ctl/ctl.c
@@ -5980,7 +5980,7 @@ ctl_debugconf_sp_sense_handler(struct ctl_scsiio *ctsio,
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;
diff --git a/sys/cam/ctl/ctl_frontend_cam_sim.c b/sys/cam/ctl/ctl_frontend_cam_sim.c
index 9f9ea15..2166f45 100644
--- a/sys/cam/ctl/ctl_frontend_cam_sim.c
+++ b/sys/cam/ctl/ctl_frontend_cam_sim.c
@@ -106,7 +106,7 @@ static void cfcs_async(void *callback_arg, uint32_t code,
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.
*/
diff --git a/sys/cam/ctl/ctl_frontend_ioctl.c b/sys/cam/ctl/ctl_frontend_ioctl.c
index 6ef2f66..97f29f1 100644
--- a/sys/cam/ctl/ctl_frontend_ioctl.c
+++ b/sys/cam/ctl/ctl_frontend_ioctl.c
@@ -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) {
diff --git a/sys/cam/ctl/ctl_io.h b/sys/cam/ctl/ctl_io.h
index 21db94a..bad030f 100644
--- a/sys/cam/ctl/ctl_io.h
+++ b/sys/cam/ctl/ctl_io.h
@@ -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 {
diff --git a/sys/cam/ctl/ctl_ioctl.h b/sys/cam/ctl/ctl_ioctl.h
index 7a6fc78..40bd183 100644
--- a/sys/cam/ctl/ctl_ioctl.h
+++ b/sys/cam/ctl/ctl_ioctl.h
@@ -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:
diff --git a/sys/cam/scsi/scsi_all.c b/sys/cam/scsi/scsi_all.c
index 0bd56e0..35aecb9 100644
--- a/sys/cam/scsi/scsi_all.c
+++ b/sys/cam/scsi/scsi_all.c
@@ -3644,7 +3644,7 @@ scsi_desc_iterate(struct scsi_sense_data_desc *sense, u_int sense_len,
/*
* 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 inqbuffer, caddr_t table_entry)
* \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
diff --git a/sys/cam/scsi/scsi_all.h b/sys/cam/scsi/scsi_all.h
index 6e97a27..075629b 100644
--- a/sys/cam/scsi/scsi_all.h
+++ b/sys/cam/scsi/scsi_all.h
@@ -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
{
diff --git a/sys/cam/scsi/scsi_ch.h b/sys/cam/scsi/scsi_ch.h
index fd317d2..9d1ffb7 100644
--- a/sys/cam/scsi/scsi_ch.h
+++ b/sys/cam/scsi/scsi_ch.h
@@ -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) */
diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c
index 2157676..b20d004 100644
--- a/sys/cam/scsi/scsi_da.c
+++ b/sys/cam/scsi/scsi_da.c
@@ -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 ccb *done_ccb)
* 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.
diff --git a/sys/cam/scsi/scsi_low.h b/sys/cam/scsi/scsi_low.h
index 8d82eff..7d05b20 100644
--- a/sys/cam/scsi/scsi_low.h
+++ b/sys/cam/scsi/scsi_low.h
@@ -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 */
diff --git a/sys/cam/scsi/scsi_sa.c b/sys/cam/scsi/scsi_sa.c
index fa3745b..3166b8a 100644
--- a/sys/cam/scsi/scsi_sa.c
+++ b/sys/cam/scsi/scsi_sa.c
@@ -2862,7 +2862,7 @@ samount(struct cam_periph *periph, int oflags, struct cdev *dev)
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,
diff --git a/sys/cam/scsi/scsi_xpt.c b/sys/cam/scsi/scsi_xpt.c
index 0dcd872..94441a9 100644
--- a/sys/cam/scsi/scsi_xpt.c
+++ b/sys/cam/scsi/scsi_xpt.c
@@ -456,7 +456,7 @@ static struct scsi_quirk_entry scsi_quirk_table[] =
},
{
/*
- * 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: amagai@nue.org
@@ -2431,7 +2431,7 @@ scsi_devise_transport(struct cam_path *path)
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;
OpenPOWER on IntegriCloud