mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
sys/cam: spelling fixes in comments.
No functional change.
This commit is contained in:
parent
d63978e2b6
commit
1ffe58516c
15 changed files with 26 additions and 26 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -339,7 +339,7 @@ cfi_submit_wait(union ctl_io *io)
|
|||
mtx_lock(¶ms.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) {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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) */
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue