aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/lpfc/lpfc_bsg.c8
-rw-r--r--drivers/scsi/lpfc/lpfc_els.c5
-rw-r--r--drivers/scsi/lpfc/lpfc_init.c32
-rw-r--r--drivers/scsi/lpfc/lpfc_nportdisc.c2
-rw-r--r--drivers/scsi/lpfc/lpfc_sli.c26
-rw-r--r--drivers/scsi/lpfc/lpfc_sli4.h20
6 files changed, 53 insertions, 40 deletions
diff --git a/drivers/scsi/lpfc/lpfc_bsg.c b/drivers/scsi/lpfc/lpfc_bsg.c
index d236448b05b9..a58bffb3f68f 100644
--- a/drivers/scsi/lpfc/lpfc_bsg.c
+++ b/drivers/scsi/lpfc/lpfc_bsg.c
@@ -2827,8 +2827,10 @@ diag_cmd_data_alloc(struct lpfc_hba *phba,
2827 size -= cnt; 2827 size -= cnt;
2828 } 2828 }
2829 2829
2830 mlist->flag = i; 2830 if (mlist) {
2831 return mlist; 2831 mlist->flag = i;
2832 return mlist;
2833 }
2832out: 2834out:
2833 diag_cmd_data_free(phba, mlist); 2835 diag_cmd_data_free(phba, mlist);
2834 return NULL; 2836 return NULL;
@@ -4592,7 +4594,7 @@ sli_cfg_ext_error:
4592 * being reset) and com-plete the job, otherwise issue the mailbox command and 4594 * being reset) and com-plete the job, otherwise issue the mailbox command and
4593 * let our completion handler finish the command. 4595 * let our completion handler finish the command.
4594 **/ 4596 **/
4595static uint32_t 4597static int
4596lpfc_bsg_issue_mbox(struct lpfc_hba *phba, struct fc_bsg_job *job, 4598lpfc_bsg_issue_mbox(struct lpfc_hba *phba, struct fc_bsg_job *job,
4597 struct lpfc_vport *vport) 4599 struct lpfc_vport *vport)
4598{ 4600{
diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c
index 9d03e7250fb4..c7e508085413 100644
--- a/drivers/scsi/lpfc/lpfc_els.c
+++ b/drivers/scsi/lpfc/lpfc_els.c
@@ -1084,7 +1084,8 @@ stop_rr_fcf_flogi:
1084 * accessing it. 1084 * accessing it.
1085 */ 1085 */
1086 prsp = list_get_first(&pcmd->list, struct lpfc_dmabuf, list); 1086 prsp = list_get_first(&pcmd->list, struct lpfc_dmabuf, list);
1087 1087 if (!prsp)
1088 goto out;
1088 sp = prsp->virt + sizeof(uint32_t); 1089 sp = prsp->virt + sizeof(uint32_t);
1089 1090
1090 /* FLOGI completes successfully */ 1091 /* FLOGI completes successfully */
@@ -7521,6 +7522,8 @@ lpfc_cmpl_els_fdisc(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
7521 vport->fc_myDID = irsp->un.ulpWord[4] & Mask_DID; 7522 vport->fc_myDID = irsp->un.ulpWord[4] & Mask_DID;
7522 lpfc_vport_set_state(vport, FC_VPORT_ACTIVE); 7523 lpfc_vport_set_state(vport, FC_VPORT_ACTIVE);
7523 prsp = list_get_first(&pcmd->list, struct lpfc_dmabuf, list); 7524 prsp = list_get_first(&pcmd->list, struct lpfc_dmabuf, list);
7525 if (!prsp)
7526 goto out;
7524 sp = prsp->virt + sizeof(uint32_t); 7527 sp = prsp->virt + sizeof(uint32_t);
7525 fabric_param_changed = lpfc_check_clean_addr_bit(vport, sp); 7528 fabric_param_changed = lpfc_check_clean_addr_bit(vport, sp);
7526 memcpy(&vport->fabric_portname, &sp->portName, 7529 memcpy(&vport->fabric_portname, &sp->portName,
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
index 33a24fc0afec..0d9230486d6e 100644
--- a/drivers/scsi/lpfc/lpfc_init.c
+++ b/drivers/scsi/lpfc/lpfc_init.c
@@ -306,10 +306,10 @@ lpfc_dump_wakeup_param_cmpl(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmboxq)
306 dist = dist_char[prg->dist]; 306 dist = dist_char[prg->dist];
307 307
308 if ((prg->dist == 3) && (prg->num == 0)) 308 if ((prg->dist == 3) && (prg->num == 0))
309 sprintf(phba->OptionROMVersion, "%d.%d%d", 309 snprintf(phba->OptionROMVersion, 32, "%d.%d%d",
310 prg->ver, prg->rev, prg->lev); 310 prg->ver, prg->rev, prg->lev);
311 else 311 else
312 sprintf(phba->OptionROMVersion, "%d.%d%d%c%d", 312 snprintf(phba->OptionROMVersion, 32, "%d.%d%d%c%d",
313 prg->ver, prg->rev, prg->lev, 313 prg->ver, prg->rev, prg->lev,
314 dist, prg->num); 314 dist, prg->num);
315 mempool_free(pmboxq, phba->mbox_mem_pool); 315 mempool_free(pmboxq, phba->mbox_mem_pool);
@@ -3177,9 +3177,11 @@ lpfc_sli4_xri_sgl_update(struct lpfc_hba *phba)
3177 for (i = 0; i < scsi_xri_cnt; i++) { 3177 for (i = 0; i < scsi_xri_cnt; i++) {
3178 list_remove_head(&scsi_sgl_list, psb, 3178 list_remove_head(&scsi_sgl_list, psb,
3179 struct lpfc_scsi_buf, list); 3179 struct lpfc_scsi_buf, list);
3180 pci_pool_free(phba->lpfc_scsi_dma_buf_pool, psb->data, 3180 if (psb) {
3181 psb->dma_handle); 3181 pci_pool_free(phba->lpfc_scsi_dma_buf_pool,
3182 kfree(psb); 3182 psb->data, psb->dma_handle);
3183 kfree(psb);
3184 }
3183 } 3185 }
3184 spin_lock_irq(&phba->scsi_buf_list_get_lock); 3186 spin_lock_irq(&phba->scsi_buf_list_get_lock);
3185 phba->sli4_hba.scsi_xri_cnt -= scsi_xri_cnt; 3187 phba->sli4_hba.scsi_xri_cnt -= scsi_xri_cnt;
@@ -7424,7 +7426,8 @@ lpfc_sli4_queue_setup(struct lpfc_hba *phba)
7424 if (rc) { 7426 if (rc) {
7425 lpfc_printf_log(phba, KERN_ERR, LOG_INIT, 7427 lpfc_printf_log(phba, KERN_ERR, LOG_INIT,
7426 "0523 Failed setup of fast-path EQ " 7428 "0523 Failed setup of fast-path EQ "
7427 "(%d), rc = 0x%x\n", fcp_eqidx, rc); 7429 "(%d), rc = 0x%x\n", fcp_eqidx,
7430 (uint32_t)rc);
7428 goto out_destroy_hba_eq; 7431 goto out_destroy_hba_eq;
7429 } 7432 }
7430 lpfc_printf_log(phba, KERN_INFO, LOG_INIT, 7433 lpfc_printf_log(phba, KERN_INFO, LOG_INIT,
@@ -7455,7 +7458,8 @@ lpfc_sli4_queue_setup(struct lpfc_hba *phba)
7455 if (rc) { 7458 if (rc) {
7456 lpfc_printf_log(phba, KERN_ERR, LOG_INIT, 7459 lpfc_printf_log(phba, KERN_ERR, LOG_INIT,
7457 "0527 Failed setup of fast-path FCP " 7460 "0527 Failed setup of fast-path FCP "
7458 "CQ (%d), rc = 0x%x\n", fcp_cqidx, rc); 7461 "CQ (%d), rc = 0x%x\n", fcp_cqidx,
7462 (uint32_t)rc);
7459 goto out_destroy_fcp_cq; 7463 goto out_destroy_fcp_cq;
7460 } 7464 }
7461 7465
@@ -7495,7 +7499,8 @@ lpfc_sli4_queue_setup(struct lpfc_hba *phba)
7495 if (rc) { 7499 if (rc) {
7496 lpfc_printf_log(phba, KERN_ERR, LOG_INIT, 7500 lpfc_printf_log(phba, KERN_ERR, LOG_INIT,
7497 "0535 Failed setup of fast-path FCP " 7501 "0535 Failed setup of fast-path FCP "
7498 "WQ (%d), rc = 0x%x\n", fcp_wqidx, rc); 7502 "WQ (%d), rc = 0x%x\n", fcp_wqidx,
7503 (uint32_t)rc);
7499 goto out_destroy_fcp_wq; 7504 goto out_destroy_fcp_wq;
7500 } 7505 }
7501 7506
@@ -7528,7 +7533,7 @@ lpfc_sli4_queue_setup(struct lpfc_hba *phba)
7528 if (rc) { 7533 if (rc) {
7529 lpfc_printf_log(phba, KERN_ERR, LOG_INIT, 7534 lpfc_printf_log(phba, KERN_ERR, LOG_INIT,
7530 "0529 Failed setup of slow-path mailbox CQ: " 7535 "0529 Failed setup of slow-path mailbox CQ: "
7531 "rc = 0x%x\n", rc); 7536 "rc = 0x%x\n", (uint32_t)rc);
7532 goto out_destroy_fcp_wq; 7537 goto out_destroy_fcp_wq;
7533 } 7538 }
7534 lpfc_printf_log(phba, KERN_INFO, LOG_INIT, 7539 lpfc_printf_log(phba, KERN_INFO, LOG_INIT,
@@ -7548,7 +7553,7 @@ lpfc_sli4_queue_setup(struct lpfc_hba *phba)
7548 if (rc) { 7553 if (rc) {
7549 lpfc_printf_log(phba, KERN_ERR, LOG_INIT, 7554 lpfc_printf_log(phba, KERN_ERR, LOG_INIT,
7550 "0531 Failed setup of slow-path ELS CQ: " 7555 "0531 Failed setup of slow-path ELS CQ: "
7551 "rc = 0x%x\n", rc); 7556 "rc = 0x%x\n", (uint32_t)rc);
7552 goto out_destroy_mbx_cq; 7557 goto out_destroy_mbx_cq;
7553 } 7558 }
7554 lpfc_printf_log(phba, KERN_INFO, LOG_INIT, 7559 lpfc_printf_log(phba, KERN_INFO, LOG_INIT,
@@ -7592,7 +7597,7 @@ lpfc_sli4_queue_setup(struct lpfc_hba *phba)
7592 if (rc) { 7597 if (rc) {
7593 lpfc_printf_log(phba, KERN_ERR, LOG_INIT, 7598 lpfc_printf_log(phba, KERN_ERR, LOG_INIT,
7594 "0537 Failed setup of slow-path ELS WQ: " 7599 "0537 Failed setup of slow-path ELS WQ: "
7595 "rc = 0x%x\n", rc); 7600 "rc = 0x%x\n", (uint32_t)rc);
7596 goto out_destroy_mbx_wq; 7601 goto out_destroy_mbx_wq;
7597 } 7602 }
7598 7603
@@ -7624,7 +7629,7 @@ lpfc_sli4_queue_setup(struct lpfc_hba *phba)
7624 if (rc) { 7629 if (rc) {
7625 lpfc_printf_log(phba, KERN_ERR, LOG_INIT, 7630 lpfc_printf_log(phba, KERN_ERR, LOG_INIT,
7626 "0541 Failed setup of Receive Queue: " 7631 "0541 Failed setup of Receive Queue: "
7627 "rc = 0x%x\n", rc); 7632 "rc = 0x%x\n", (uint32_t)rc);
7628 goto out_destroy_fcp_wq; 7633 goto out_destroy_fcp_wq;
7629 } 7634 }
7630 7635
@@ -8815,7 +8820,8 @@ lpfc_sli4_enable_msix(struct lpfc_hba *phba)
8815 /* Assign MSI-X vectors to interrupt handlers */ 8820 /* Assign MSI-X vectors to interrupt handlers */
8816 for (index = 0; index < vectors; index++) { 8821 for (index = 0; index < vectors; index++) {
8817 memset(&phba->sli4_hba.handler_name[index], 0, 16); 8822 memset(&phba->sli4_hba.handler_name[index], 0, 16);
8818 sprintf((char *)&phba->sli4_hba.handler_name[index], 8823 snprintf((char *)&phba->sli4_hba.handler_name[index],
8824 LPFC_SLI4_HANDLER_NAME_SZ,
8819 LPFC_DRIVER_HANDLER_NAME"%d", index); 8825 LPFC_DRIVER_HANDLER_NAME"%d", index);
8820 8826
8821 phba->sli4_hba.fcp_eq_hdl[index].idx = index; 8827 phba->sli4_hba.fcp_eq_hdl[index].idx = index;
diff --git a/drivers/scsi/lpfc/lpfc_nportdisc.c b/drivers/scsi/lpfc/lpfc_nportdisc.c
index c342f6afd747..5cc1103d811e 100644
--- a/drivers/scsi/lpfc/lpfc_nportdisc.c
+++ b/drivers/scsi/lpfc/lpfc_nportdisc.c
@@ -1031,6 +1031,8 @@ lpfc_cmpl_plogi_plogi_issue(struct lpfc_vport *vport,
1031 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2; 1031 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2;
1032 1032
1033 prsp = list_get_first(&pcmd->list, struct lpfc_dmabuf, list); 1033 prsp = list_get_first(&pcmd->list, struct lpfc_dmabuf, list);
1034 if (!prsp)
1035 goto out;
1034 1036
1035 lp = (uint32_t *) prsp->virt; 1037 lp = (uint32_t *) prsp->virt;
1036 sp = (struct serv_parm *) ((uint8_t *) lp + sizeof (uint32_t)); 1038 sp = (struct serv_parm *) ((uint8_t *) lp + sizeof (uint32_t));
diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c
index 7185aac24324..2c7057fa2adb 100644
--- a/drivers/scsi/lpfc/lpfc_sli.c
+++ b/drivers/scsi/lpfc/lpfc_sli.c
@@ -8107,7 +8107,7 @@ lpfc_sli4_bpl2sgl(struct lpfc_hba *phba, struct lpfc_iocbq *piocbq,
8107 * 8107 *
8108 * Return: index into SLI4 fast-path FCP queue index. 8108 * Return: index into SLI4 fast-path FCP queue index.
8109 **/ 8109 **/
8110static inline uint32_t 8110static inline int
8111lpfc_sli4_scmd_to_wqidx_distr(struct lpfc_hba *phba) 8111lpfc_sli4_scmd_to_wqidx_distr(struct lpfc_hba *phba)
8112{ 8112{
8113 struct lpfc_vector_map_info *cpup; 8113 struct lpfc_vector_map_info *cpup;
@@ -12837,7 +12837,7 @@ lpfc_dual_chute_pci_bar_map(struct lpfc_hba *phba, uint16_t pci_barset)
12837 * memory this function will return -ENOMEM. If the queue create mailbox command 12837 * memory this function will return -ENOMEM. If the queue create mailbox command
12838 * fails this function will return -ENXIO. 12838 * fails this function will return -ENXIO.
12839 **/ 12839 **/
12840uint32_t 12840int
12841lpfc_modify_fcp_eq_delay(struct lpfc_hba *phba, uint16_t startq) 12841lpfc_modify_fcp_eq_delay(struct lpfc_hba *phba, uint16_t startq)
12842{ 12842{
12843 struct lpfc_mbx_modify_eq_delay *eq_delay; 12843 struct lpfc_mbx_modify_eq_delay *eq_delay;
@@ -12923,7 +12923,7 @@ lpfc_modify_fcp_eq_delay(struct lpfc_hba *phba, uint16_t startq)
12923 * memory this function will return -ENOMEM. If the queue create mailbox command 12923 * memory this function will return -ENOMEM. If the queue create mailbox command
12924 * fails this function will return -ENXIO. 12924 * fails this function will return -ENXIO.
12925 **/ 12925 **/
12926uint32_t 12926int
12927lpfc_eq_create(struct lpfc_hba *phba, struct lpfc_queue *eq, uint32_t imax) 12927lpfc_eq_create(struct lpfc_hba *phba, struct lpfc_queue *eq, uint32_t imax)
12928{ 12928{
12929 struct lpfc_mbx_eq_create *eq_create; 12929 struct lpfc_mbx_eq_create *eq_create;
@@ -13045,7 +13045,7 @@ lpfc_eq_create(struct lpfc_hba *phba, struct lpfc_queue *eq, uint32_t imax)
13045 * memory this function will return -ENOMEM. If the queue create mailbox command 13045 * memory this function will return -ENOMEM. If the queue create mailbox command
13046 * fails this function will return -ENXIO. 13046 * fails this function will return -ENXIO.
13047 **/ 13047 **/
13048uint32_t 13048int
13049lpfc_cq_create(struct lpfc_hba *phba, struct lpfc_queue *cq, 13049lpfc_cq_create(struct lpfc_hba *phba, struct lpfc_queue *cq,
13050 struct lpfc_queue *eq, uint32_t type, uint32_t subtype) 13050 struct lpfc_queue *eq, uint32_t type, uint32_t subtype)
13051{ 13051{
@@ -13386,7 +13386,7 @@ out:
13386 * memory this function will return -ENOMEM. If the queue create mailbox command 13386 * memory this function will return -ENOMEM. If the queue create mailbox command
13387 * fails this function will return -ENXIO. 13387 * fails this function will return -ENXIO.
13388 **/ 13388 **/
13389uint32_t 13389int
13390lpfc_wq_create(struct lpfc_hba *phba, struct lpfc_queue *wq, 13390lpfc_wq_create(struct lpfc_hba *phba, struct lpfc_queue *wq,
13391 struct lpfc_queue *cq, uint32_t subtype) 13391 struct lpfc_queue *cq, uint32_t subtype)
13392{ 13392{
@@ -13622,7 +13622,7 @@ lpfc_rq_adjust_repost(struct lpfc_hba *phba, struct lpfc_queue *rq, int qno)
13622 * memory this function will return -ENOMEM. If the queue create mailbox command 13622 * memory this function will return -ENOMEM. If the queue create mailbox command
13623 * fails this function will return -ENXIO. 13623 * fails this function will return -ENXIO.
13624 **/ 13624 **/
13625uint32_t 13625int
13626lpfc_rq_create(struct lpfc_hba *phba, struct lpfc_queue *hrq, 13626lpfc_rq_create(struct lpfc_hba *phba, struct lpfc_queue *hrq,
13627 struct lpfc_queue *drq, struct lpfc_queue *cq, uint32_t subtype) 13627 struct lpfc_queue *drq, struct lpfc_queue *cq, uint32_t subtype)
13628{ 13628{
@@ -13887,7 +13887,7 @@ out:
13887 * On success this function will return a zero. If the queue destroy mailbox 13887 * On success this function will return a zero. If the queue destroy mailbox
13888 * command fails this function will return -ENXIO. 13888 * command fails this function will return -ENXIO.
13889 **/ 13889 **/
13890uint32_t 13890int
13891lpfc_eq_destroy(struct lpfc_hba *phba, struct lpfc_queue *eq) 13891lpfc_eq_destroy(struct lpfc_hba *phba, struct lpfc_queue *eq)
13892{ 13892{
13893 LPFC_MBOXQ_t *mbox; 13893 LPFC_MBOXQ_t *mbox;
@@ -13943,7 +13943,7 @@ lpfc_eq_destroy(struct lpfc_hba *phba, struct lpfc_queue *eq)
13943 * On success this function will return a zero. If the queue destroy mailbox 13943 * On success this function will return a zero. If the queue destroy mailbox
13944 * command fails this function will return -ENXIO. 13944 * command fails this function will return -ENXIO.
13945 **/ 13945 **/
13946uint32_t 13946int
13947lpfc_cq_destroy(struct lpfc_hba *phba, struct lpfc_queue *cq) 13947lpfc_cq_destroy(struct lpfc_hba *phba, struct lpfc_queue *cq)
13948{ 13948{
13949 LPFC_MBOXQ_t *mbox; 13949 LPFC_MBOXQ_t *mbox;
@@ -13997,7 +13997,7 @@ lpfc_cq_destroy(struct lpfc_hba *phba, struct lpfc_queue *cq)
13997 * On success this function will return a zero. If the queue destroy mailbox 13997 * On success this function will return a zero. If the queue destroy mailbox
13998 * command fails this function will return -ENXIO. 13998 * command fails this function will return -ENXIO.
13999 **/ 13999 **/
14000uint32_t 14000int
14001lpfc_mq_destroy(struct lpfc_hba *phba, struct lpfc_queue *mq) 14001lpfc_mq_destroy(struct lpfc_hba *phba, struct lpfc_queue *mq)
14002{ 14002{
14003 LPFC_MBOXQ_t *mbox; 14003 LPFC_MBOXQ_t *mbox;
@@ -14051,7 +14051,7 @@ lpfc_mq_destroy(struct lpfc_hba *phba, struct lpfc_queue *mq)
14051 * On success this function will return a zero. If the queue destroy mailbox 14051 * On success this function will return a zero. If the queue destroy mailbox
14052 * command fails this function will return -ENXIO. 14052 * command fails this function will return -ENXIO.
14053 **/ 14053 **/
14054uint32_t 14054int
14055lpfc_wq_destroy(struct lpfc_hba *phba, struct lpfc_queue *wq) 14055lpfc_wq_destroy(struct lpfc_hba *phba, struct lpfc_queue *wq)
14056{ 14056{
14057 LPFC_MBOXQ_t *mbox; 14057 LPFC_MBOXQ_t *mbox;
@@ -14104,7 +14104,7 @@ lpfc_wq_destroy(struct lpfc_hba *phba, struct lpfc_queue *wq)
14104 * On success this function will return a zero. If the queue destroy mailbox 14104 * On success this function will return a zero. If the queue destroy mailbox
14105 * command fails this function will return -ENXIO. 14105 * command fails this function will return -ENXIO.
14106 **/ 14106 **/
14107uint32_t 14107int
14108lpfc_rq_destroy(struct lpfc_hba *phba, struct lpfc_queue *hrq, 14108lpfc_rq_destroy(struct lpfc_hba *phba, struct lpfc_queue *hrq,
14109 struct lpfc_queue *drq) 14109 struct lpfc_queue *drq)
14110{ 14110{
@@ -15011,7 +15011,7 @@ uint16_t
15011lpfc_sli4_xri_inrange(struct lpfc_hba *phba, 15011lpfc_sli4_xri_inrange(struct lpfc_hba *phba,
15012 uint16_t xri) 15012 uint16_t xri)
15013{ 15013{
15014 int i; 15014 uint16_t i;
15015 15015
15016 for (i = 0; i < phba->sli4_hba.max_cfg_param.max_xri; i++) { 15016 for (i = 0; i < phba->sli4_hba.max_cfg_param.max_xri; i++) {
15017 if (xri == phba->sli4_hba.xri_ids[i]) 15017 if (xri == phba->sli4_hba.xri_ids[i])
@@ -16948,7 +16948,7 @@ lpfc_drain_txq(struct lpfc_hba *phba)
16948 char *fail_msg = NULL; 16948 char *fail_msg = NULL;
16949 struct lpfc_sglq *sglq; 16949 struct lpfc_sglq *sglq;
16950 union lpfc_wqe wqe; 16950 union lpfc_wqe wqe;
16951 int txq_cnt = 0; 16951 uint32_t txq_cnt = 0;
16952 16952
16953 spin_lock_irqsave(&pring->ring_lock, iflags); 16953 spin_lock_irqsave(&pring->ring_lock, iflags);
16954 list_for_each_entry(piocbq, &pring->txq, list) { 16954 list_for_each_entry(piocbq, &pring->txq, list) {
diff --git a/drivers/scsi/lpfc/lpfc_sli4.h b/drivers/scsi/lpfc/lpfc_sli4.h
index 7f50aa04d66a..22ceb2b05ba1 100644
--- a/drivers/scsi/lpfc/lpfc_sli4.h
+++ b/drivers/scsi/lpfc/lpfc_sli4.h
@@ -670,22 +670,22 @@ void lpfc_sli4_hba_reset(struct lpfc_hba *);
670struct lpfc_queue *lpfc_sli4_queue_alloc(struct lpfc_hba *, uint32_t, 670struct lpfc_queue *lpfc_sli4_queue_alloc(struct lpfc_hba *, uint32_t,
671 uint32_t); 671 uint32_t);
672void lpfc_sli4_queue_free(struct lpfc_queue *); 672void lpfc_sli4_queue_free(struct lpfc_queue *);
673uint32_t lpfc_eq_create(struct lpfc_hba *, struct lpfc_queue *, uint32_t); 673int lpfc_eq_create(struct lpfc_hba *, struct lpfc_queue *, uint32_t);
674uint32_t lpfc_modify_fcp_eq_delay(struct lpfc_hba *, uint16_t); 674int lpfc_modify_fcp_eq_delay(struct lpfc_hba *, uint16_t);
675uint32_t lpfc_cq_create(struct lpfc_hba *, struct lpfc_queue *, 675int lpfc_cq_create(struct lpfc_hba *, struct lpfc_queue *,
676 struct lpfc_queue *, uint32_t, uint32_t); 676 struct lpfc_queue *, uint32_t, uint32_t);
677int32_t lpfc_mq_create(struct lpfc_hba *, struct lpfc_queue *, 677int32_t lpfc_mq_create(struct lpfc_hba *, struct lpfc_queue *,
678 struct lpfc_queue *, uint32_t); 678 struct lpfc_queue *, uint32_t);
679uint32_t lpfc_wq_create(struct lpfc_hba *, struct lpfc_queue *, 679int lpfc_wq_create(struct lpfc_hba *, struct lpfc_queue *,
680 struct lpfc_queue *, uint32_t); 680 struct lpfc_queue *, uint32_t);
681uint32_t lpfc_rq_create(struct lpfc_hba *, struct lpfc_queue *, 681int lpfc_rq_create(struct lpfc_hba *, struct lpfc_queue *,
682 struct lpfc_queue *, struct lpfc_queue *, uint32_t); 682 struct lpfc_queue *, struct lpfc_queue *, uint32_t);
683void lpfc_rq_adjust_repost(struct lpfc_hba *, struct lpfc_queue *, int); 683void lpfc_rq_adjust_repost(struct lpfc_hba *, struct lpfc_queue *, int);
684uint32_t lpfc_eq_destroy(struct lpfc_hba *, struct lpfc_queue *); 684int lpfc_eq_destroy(struct lpfc_hba *, struct lpfc_queue *);
685uint32_t lpfc_cq_destroy(struct lpfc_hba *, struct lpfc_queue *); 685int lpfc_cq_destroy(struct lpfc_hba *, struct lpfc_queue *);
686uint32_t lpfc_mq_destroy(struct lpfc_hba *, struct lpfc_queue *); 686int lpfc_mq_destroy(struct lpfc_hba *, struct lpfc_queue *);
687uint32_t lpfc_wq_destroy(struct lpfc_hba *, struct lpfc_queue *); 687int lpfc_wq_destroy(struct lpfc_hba *, struct lpfc_queue *);
688uint32_t lpfc_rq_destroy(struct lpfc_hba *, struct lpfc_queue *, 688int lpfc_rq_destroy(struct lpfc_hba *, struct lpfc_queue *,
689 struct lpfc_queue *); 689 struct lpfc_queue *);
690int lpfc_sli4_queue_setup(struct lpfc_hba *); 690int lpfc_sli4_queue_setup(struct lpfc_hba *);
691void lpfc_sli4_queue_unset(struct lpfc_hba *); 691void lpfc_sli4_queue_unset(struct lpfc_hba *);