};
/**
- * lpfc_jedec_to_ascii - Hex to ascii convertor according to JEDEC rules
+ * lpfc_jedec_to_ascii - Hex to ascii converter according to JEDEC rules
* @incr: integer to convert.
* @hdw: ascii string holding converted integer plus a string terminator.
*
}
/**
- * lpfc_sli4_pdev_status_reg_wait - Wait for pdev status register for readyness
+ * lpfc_sli4_pdev_status_reg_wait - Wait for pdev status register for readiness
* @phba: lpfc_hba pointer.
*
* Description:
* SLI4 interface type-2 device to wait on the sliport status register for
- * the readyness after performing a firmware reset.
+ * the readiness after performing a firmware reset.
*
* Returns:
* zero for success, -EPERM when port does not have privilege to perform the
static DEVICE_ATTR_RW(lpfc_max_scsicmpl_time);
/*
-# lpfc_ack0: Use ACK0, instead of ACK1 for class 2 acknowledgement. Value
+# lpfc_ack0: Use ACK0, instead of ACK1 for class 2 acknowledgment. Value
# range is [0,1]. Default value is 0.
*/
LPFC_ATTR_R(ack0, 0, 0, 1, "Enable ACK0 support");
/*
# lpfc_multi_ring_rctl: If lpfc_multi_ring_support is enabled, this
# identifies what rctl value to configure the additional ring for.
-# Value range is [1,0xff]. Default value is 4 (Unsolicated Data).
+# Value range is [1,0xff]. Default value is 4 (Unsolicited Data).
*/
LPFC_ATTR_R(multi_ring_rctl, FC_RCTL_DD_UNSOL_DATA, 1,
255, "Identifies RCTL for additional ring configuration");
if (rc)
goto job_done;
- /* indicate we are in loobpack diagnostic mode */
+ /* indicate we are in loopback diagnostic mode */
spin_lock_irq(&phba->hbalock);
phba->link_flag |= LS_LOOPBACK_MODE;
spin_unlock_irq(&phba->hbalock);
- /* reset port to start frome scratch */
+ /* reset port to start from scratch */
rc = lpfc_selective_reset(phba);
if (rc)
goto job_done;
} else if (phba->sli_rev == LPFC_SLI_REV4) {
/* Let type 4 (well known data) through because the data is
* returned in varwords[4-8]
- * otherwise check the recieve length and fetch the buffer addr
+ * otherwise check the receive length and fetch the buffer addr
*/
if ((pmb->mbxCommand == MBX_DUMP_MEMORY) &&
(pmb->un.varDmp.type != DMP_WELL_KNOWN)) {
case IOSTAT_LS_RJT:
stat.un.ls_rjt_error_be = cpu_to_be32(ulp_word4);
- /* Added for Vendor specifc support
+ /* Added for Vendor specific support
* Just keep retrying for these Rsn / Exp codes
*/
if (test_bit(FC_PT2PT, &vport->fc_flag) &&
* @flag: flag bits to be set to the driver fcf record.
*
* This routine updates the driver FCF record from the new HBA FCF record
- * together with the address mode, vlan_id, and other informations. This
+ * together with the address mode, vlan_id, and other information. This
* routine is called with the hbalock held.
**/
static void
/**
* lpfc_check_pending_fcoe_event - Check if there is pending fcoe event.
* @phba: pointer to lpfc hba data structure.
- * @unreg_fcf: Unregister FCF if FCF table need to be re-scaned.
+ * @unreg_fcf: Unregister FCF if FCF table need to be re-scanned.
*
* This function check if there is any fcoe event pending while driver
* scan FCF entries. If there is any pending event, it will restart the
* @vlan_id: the lowest vlan identifier associated to this fcf record.
* @next_fcf_index: the index to the next fcf record in hba's fcf table.
*
- * This routine logs the detailed FCF record if the LOG_FIP loggin is
+ * This routine logs the detailed FCF record if the LOG_FIP login is
* enabled.
**/
static void
phba->fc_edtov = ed_tov;
phba->fc_ratov = (2 * ed_tov) / 1000;
if (phba->fc_ratov < FF_DEF_RATOV) {
- /* RA_TOV should be atleast 10sec for initial flogi */
+ /* RA_TOV should be at least 10sec for initial flogi */
phba->fc_ratov = FF_DEF_RATOV;
}
* Free rpi associated with LPFC_NODELIST entry.
* This routine is called if the driver initiates a LOGO that completes
* successfully, and we are waiting to PLOGI back to the remote NPort.
- * In addition, it is called after we receive and unsolicated ELS cmd,
+ * In addition, it is called after we receive and unsolicited ELS cmd,
* send back a rsp, the rsp completes and we are waiting to PLOGI back
* to the remote NPort.
*/
return ndlp;
}
-/* This routine releases all resources associated with a specifc NPort's ndlp
+/* This routine releases all resources associated with a specific NPort's ndlp
* and mempool_free's the nodelist.
*/
static void
/*
- * Tranceiver codes Fibre Channel SFF-8472
+ * Transceiver codes Fibre Channel SFF-8472
* Table 3.5.
*/
&phba->sli4_hba.lpfc_els_sgl_list);
spin_unlock_irq(&phba->sli4_hba.sgl_list_lock);
} else if (els_xri_cnt < phba->sli4_hba.els_xri_cnt) {
- /* els xri-sgl shrinked */
+ /* els xri-sgl shrunk */
xri_cnt = phba->sli4_hba.els_xri_cnt - els_xri_cnt;
lpfc_printf_log(phba, KERN_INFO, LOG_SLI,
"3158 ELS xri-sgl count decreased from "
* Initialize driver internal slow-path work queues
*/
- /* Driver internel slow-path CQ Event pool */
+ /* Driver internal slow-path CQ Event pool */
INIT_LIST_HEAD(&phba->sli4_hba.sp_cqe_event_pool);
/* Response IOCB work queue list */
INIT_LIST_HEAD(&phba->sli4_hba.sp_queue_event);
* Initialize the bootstrap mailbox pointers now so that the register
* operations are simple later. The mailbox dma address is required
* to be 16-byte aligned. Also align the virtual memory as each
- * maibox is copied into the bmbx mailbox region before issuing the
+ * mailbox is copied into the bmbx mailbox region before issuing the
* command to the port.
*/
phba->sli4_hba.bmbx.dmabuf = dmabuf;
goto read_cfg_out;
}
- /* search for fc_fcoe resrouce descriptor */
+ /* search for fc_fcoe resource descriptor */
get_func_cfg = &pmb->u.mqe.un.get_func_cfg;
pdesc_0 = (char *)&get_func_cfg->func_cfg.desc[0];
*
* Return codes
* 0 - successful
- * -ENOMEM - No availble memory
+ * -ENOMEM - No available memory
* -EIO - The mailbox failed to complete successfully.
**/
int
/* If so, find a new_cpup that is on the SAME
* phys_id as cpup. start_cpu will start where we
- * left off so all unassigned entries don't get assgined
+ * left off so all unassigned entries don't get assigned
* the IRQ of the first entry.
*/
new_cpu = start_cpu;
/*
* If we are in DIF Type 1 mode every data block has a 8 byte
- * DIF (trailer) attached to it. Must ajust FCP data length
+ * DIF (trailer) attached to it. Must adjust FCP data length
* to account for the protection data.
*/
fcpdl += (fcpdl / scsi_prot_interval(sc)) * 8;
lpfc_cmd->prot_seg_cnt = protsegcnt;
/*
- * There is a minimun of 4 BPLs used for every
+ * There is a minimum of 4 BPLs used for every
* protection data segment.
*/
if ((lpfc_cmd->prot_seg_cnt * 4) >
/*
* This function calcuates the T10 DIF guard tag
- * on the specified data using a CRC algorithmn
+ * on the specified data using a CRC algorithm
* using crc_t10dif.
*/
static uint16_t
/*
* This function calcuates the T10 DIF guard tag
- * on the specified data using a CSUM algorithmn
+ * on the specified data using a CSUM algorithm
* using ip_compute_csum.
*/
static uint16_t
lpfc_cmd->prot_seg_cnt = protsegcnt;
/*
- * There is a minimun of 3 SGEs used for every
+ * There is a minimum of 3 SGEs used for every
* protection data segment.
*/
if (((lpfc_cmd->prot_seg_cnt * 3) >
* @vport: The virtual port for which this call is being executed.
* @lpfc_cmd: Pointer to lpfc_io_buf data structure.
*
- * This routine checks the FCP RSP INFO to see if the tsk mgmt command succeded
+ * This routine checks the FCP RSP INFO to see if the tsk mgmt command succeeded
*
* Return code :
* 0x2003 - Error
*
* This function takes the hbalock.
* The active bit is always set in the active rrq xri_bitmap even
- * if there is no slot avaiable for the other rrq information.
+ * if there is no slot available for the other rrq information.
*
- * returns 0 rrq actived for this xri
+ * returns 0 rrq activated for this xri
* < 0 No memory or invalid ndlp.
**/
int
}
/**
- * lpfc_sli_brdready - Wrapper func for checking the hba readyness
+ * lpfc_sli_brdready - Wrapper func for checking the hba readiness
* @phba: Pointer to HBA context object.
* @mask: Bit mask to be checked.
*
- * This routine wraps the actual SLI3 or SLI4 hba readyness check routine
+ * This routine wraps the actual SLI3 or SLI4 hba readiness check routine
* from the API jump table function pointer from the lpfc_hba struct.
**/
int
if (unlikely(rc))
return -ENODEV;
- /* Check the HBA Host Status Register for readyness */
+ /* Check the HBA Host Status Register for readiness */
rc = lpfc_sli4_post_status_check(phba);
if (unlikely(rc))
return -ENODEV;
phba->sli.mbox_active = mboxq;
spin_unlock_irqrestore(&phba->hbalock, iflag);
- /* wait for bootstrap mbox register for readyness */
+ /* wait for bootstrap mbox register for readiness */
rc = lpfc_sli4_wait_bmbx_ready(phba, mboxq);
if (rc)
goto exit;
* device-level interrupt handler. When the PCI slot is in error recovery
* or the HBA is undergoing initialization, the interrupt handler will not
* process the interrupt. The SCSI FCP fast-path ring event are handled in
- * the intrrupt context. This function is called without any lock held.
+ * the interrupt context. This function is called without any lock held.
* It gets the hbalock to access and update SLI data structures.
*
* This function returns IRQ_HANDLED when interrupt is handled else it
* device-level interrupt handler. When the PCI slot is in error recovery
* or the HBA is undergoing initialization, the interrupt handler will not
* process the interrupt. The SCSI FCP fast-path ring event are handled in
- * the intrrupt context. This function is called without any lock held.
+ * the interrupt context. This function is called without any lock held.
* It gets the hbalock to access and update SLI data structures. Note that,
* the FCP EQ to FCP CQ are one-to-one map such that the FCP EQ index is
* equal to that of FCP CQ index.
* On success this function will return a zero. If unable to allocate
* enough memory this function will return -ENOMEM. If a mailbox command
* fails this function will return -ENXIO. Note: on ENXIO, some EQs may
- * have had their delay multipler changed.
+ * have had their delay multiplier changed.
**/
void
lpfc_modify_hba_eq_delay(struct lpfc_hba *phba, uint32_t startq,
/*
* If next fcf index is not found check if there are lower
* Priority level fcf's in the fcf_priority list.
- * Set up the rr_bmask with all of the avaiable fcf bits
+ * Set up the rr_bmask with all of the available fcf bits
* at that level and continue the selection process.
*/
} while (lpfc_check_next_fcf_pri_level(phba));
* @phba: pointer to lpfc hba data structure.
* @hwqid: belong to which HWQ.
*
- * This routine is called from hearbeat timer when pvt_pool is idle.
+ * This routine is called from heartbeat timer when pvt_pool is idle.
* All free XRIs are moved from private to public pool on hwqid with 2 steps.
* The first step moves (all - low_watermark) amount of XRIs.
* The second step moves the rest of XRIs.
#define FCF_AVAILABLE 0x01 /* FCF available for discovery */
#define FCF_REGISTERED 0x02 /* FCF registered with FW */
#define FCF_SCAN_DONE 0x04 /* FCF table scan done */
-#define FCF_IN_USE 0x08 /* Atleast one discovery completed */
+#define FCF_IN_USE 0x08 /* At Least one discovery completed */
#define FCF_INIT_DISC 0x10 /* Initial FCF discovery */
#define FCF_DEAD_DISC 0x20 /* FCF DEAD fast FCF failover discovery */
#define FCF_ACVL_DISC 0x40 /* All CVL fast FCF failover discovery */