Lines Matching defs:rc

1681 	int i, rc, ret = 0;
1690 rc = lpfc_sli_issue_mbox(phba, pmb, MBX_POLL);
1691 if (rc != MBX_SUCCESS) {
1696 rc, pmbox->mbxCommand,
2487 int rc;
2503 rc = lpfc_sli4_rq_put(hrq, drq, &hrqe, &drqe);
2504 if (rc < 0)
2505 return rc;
2506 hbq_buf->tag = (rc | (hbqno << 16));
2881 int rc;
2903 rc = lpfc_sli_issue_mbox(phba, pmb, MBX_NOWAIT);
2904 if (rc != MBX_NOT_FINISHED)
3059 int rc;
3140 rc = lpfc_sli_issue_mbox(phba, pmb, MBX_NOWAIT);
3141 if (rc != MBX_NOT_FINISHED)
4006 int rc = 1;
4171 return rc;
4207 int rc;
4291 rc = lpfc_sli_process_sol_iocb(phba, pring, saveq);
4296 rc = lpfc_sli_process_unsol_iocb(phba, pring, saveq);
4298 if (!rc)
5150 int rc = 0;
5185 rc = lpfc_pci_function_reset(phba);
5190 return rc;
5273 int rc;
5280 rc = lpfc_sli4_brdreset(phba);
5281 if (rc) {
5301 return rc;
5578 uint32_t resetcount = 0, rc = 0, done = 0;
5593 rc = lpfc_sli_chipset_init(phba);
5594 if (rc)
5607 rc = lpfc_config_port_prep(phba);
5608 if (rc == -ERESTART) {
5611 } else if (rc)
5616 rc = lpfc_sli_issue_mbox(phba, pmb, MBX_POLL);
5621 if (rc != MBX_SUCCESS) {
5629 rc = -ENXIO;
5644 rc = -EINVAL;
5649 rc = -ENXIO;
5684 return rc;
5704 uint32_t rc;
5710 rc = lpfc_sli_config_port(phba, LPFC_SLI_REV3);
5711 if (rc)
5729 rc = lpfc_sli_ring_map(phba);
5731 if (rc)
5747 rc = -ENOMEM;
5756 rc = -ENOMEM;
5766 rc = lpfc_sli_hbq_setup(phba);
5767 if (rc)
5774 rc = lpfc_config_port_post(phba);
5775 if (rc)
5778 return rc;
5784 return rc;
5802 int rc;
5816 rc = -ENOMEM;
5821 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL);
5844 if (rc) {
5845 rc = -EIO;
5850 rc = -EIO;
5855 rc = 0;
5859 return rc;
5881 int rc = 0;
5915 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL);
5916 if (rc) {
5960 int rc;
5977 rc = -ENOMEM;
5980 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL);
5986 if (shdr_status || shdr_add_status || rc) {
5989 "rc:x%x, status:x%x, add_status:x%x\n",
5993 rc, shdr_status, shdr_add_status);
5994 rc = -ENXIO;
6023 return rc;
6045 int rc;
6065 rc = lpfc_sli4_get_ctl_attr(phba);
6066 if (rc)
6080 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL);
6083 if (shdr_status || shdr_add_status || rc) {
6086 "rc:x%x, status:x%x, add_status:x%x\n",
6090 rc, shdr_status, shdr_add_status);
6091 rc = -ENXIO;
6131 return rc;
6198 int rc = 0;
6219 rc = lpfc_sli4_mbox_rsrc_extent(phba, mbox, 0, type,
6221 if (unlikely(rc)) {
6222 rc = -EIO;
6227 rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL);
6230 rc = lpfc_sli_issue_mbox_wait(phba, mbox, mbox_tmo);
6232 if (unlikely(rc)) {
6233 rc = -EIO;
6247 rc = -EIO;
6262 return rc;
6285 int rc = 0;
6291 rc = lpfc_sli4_get_avail_extnt_rsrc(phba, type,
6294 if (unlikely(rc))
6321 rc = 1;
6323 return rc;
6347 int rc = 0;
6384 rc = lpfc_sli4_mbox_rsrc_extent(phba, mbox, extnt_cnt, type, *emb);
6385 if (unlikely(rc))
6389 rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL);
6392 rc = lpfc_sli_issue_mbox_wait(phba, mbox, mbox_tmo);
6395 if (unlikely(rc))
6396 rc = -EIO;
6397 return rc;
6415 int i, rc;
6427 rc = lpfc_sli4_get_avail_extnt_rsrc(phba, type,
6430 if (unlikely(rc))
6450 rc = lpfc_sli4_cfg_post_extnts(phba, rsrc_cnt, type, &emb, mbox);
6451 if (unlikely(rc)) {
6452 rc = -EIO;
6487 rc = -ENOMEM;
6495 rc = -ENOMEM;
6515 rc = -ENOMEM;
6522 rc = -ENOMEM;
6536 rc = -ENOMEM;
6545 rc = -ENOMEM;
6559 rc = -ENOMEM;
6567 rc = -ENOMEM;
6601 rc = -ENOMEM;
6626 return rc;
6643 int rc;
6665 rc = lpfc_sli4_mbox_rsrc_extent(phba, mbox, 0, type,
6667 if (unlikely(rc)) {
6668 rc = -EIO;
6672 rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL);
6675 rc = lpfc_sli_issue_mbox_wait(phba, mbox, mbox_tmo);
6677 if (unlikely(rc)) {
6678 rc = -EIO;
6694 rc = -EIO;
6746 return rc;
6917 int rc = 0, i = 0;
6939 rc = -ENOMEM;
6950 rc = -ENOMEM;
6960 if (rc)
6963 return rc;
7031 int rc = 0;
7046 rc = lpfc_sli4_ras_dma_alloc(phba, fwlog_entry_count);
7047 if (rc) {
7050 return rc;
7059 rc = -ENOMEM;
7102 rc = lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT);
7104 if (rc == MBX_NOT_FINISHED) {
7107 "status %d mbxStatus : x%x", rc,
7110 rc = -EIO;
7113 rc = 0;
7115 if (rc)
7118 return rc;
7147 int i, rc, error = 0;
7166 rc = lpfc_sli4_chk_avail_extnt_rsrc(phba,
7168 if (rc != 0)
7170 rc = lpfc_sli4_chk_avail_extnt_rsrc(phba,
7172 if (rc != 0)
7174 rc = lpfc_sli4_chk_avail_extnt_rsrc(phba,
7176 if (rc != 0)
7178 rc = lpfc_sli4_chk_avail_extnt_rsrc(phba,
7180 if (rc != 0)
7195 rc = lpfc_sli4_dealloc_extent(phba,
7197 rc = lpfc_sli4_dealloc_extent(phba,
7199 rc = lpfc_sli4_dealloc_extent(phba,
7201 rc = lpfc_sli4_dealloc_extent(phba,
7207 rc = lpfc_sli4_alloc_extent(phba, LPFC_RSC_TYPE_FCOE_VFI);
7208 if (unlikely(rc))
7211 rc = lpfc_sli4_alloc_extent(phba, LPFC_RSC_TYPE_FCOE_VPI);
7212 if (unlikely(rc))
7215 rc = lpfc_sli4_alloc_extent(phba, LPFC_RSC_TYPE_FCOE_RPI);
7216 if (unlikely(rc))
7219 rc = lpfc_sli4_alloc_extent(phba, LPFC_RSC_TYPE_FCOE_XRI);
7220 if (unlikely(rc))
7224 return rc;
7244 rc = -EINVAL;
7253 rc = -ENOMEM;
7259 rc = -ENOMEM;
7272 rc = -EINVAL;
7280 rc = -ENOMEM;
7286 rc = -ENOMEM;
7299 rc = -EINVAL;
7308 rc = -ENOMEM;
7315 rc = -ENOMEM;
7328 rc = -EINVAL;
7337 rc = -ENOMEM;
7343 rc = -ENOMEM;
7381 return rc;
7430 int rc = 0;
7507 rc = -ENOMEM;
7510 rc = lpfc_sli4_mbox_rsrc_extent(phba, mbox, curr_blks, type, emb);
7511 if (unlikely(rc)) {
7512 rc = -EIO;
7517 rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL);
7520 rc = lpfc_sli_issue_mbox_wait(phba, mbox, mbox_tmo);
7523 if (unlikely(rc)) {
7524 rc = -EIO;
7552 rc = -EIO;
7557 return rc;
7727 int num_posted, rc = 0;
7738 rc = -EIO;
7740 return rc;
7767 int rc, i;
7803 rc = lpfc_sli4_rq_put(hrq, drq, &hrqe, &drqe);
7804 if (rc < 0) {
7864 int rc;
7873 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_NOWAIT);
7874 if (rc == MBX_NOT_FINISHED) {
7933 u32 rc;
7949 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_NOWAIT);
7950 if (rc == MBX_NOT_FINISHED)
8207 int rc, cmf, mi_ver;
8209 rc = lpfc_sli4_refresh_params(phba);
8210 if (unlikely(rc))
8211 return rc;
8222 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL);
8226 if (rc == MBX_SUCCESS) {
8243 "failed, rc:x%x mi:x%x\n",
8249 rc, sli4_params->mi_ver);
8263 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL);
8266 if (rc == MBX_SUCCESS && cmf) {
8274 "failed, rc:x%x dd:x%x\n",
8280 rc, cmf);
8314 rc = lpfc_sli4_cgn_params_read(phba);
8315 if (rc < 0) {
8318 rc);
8321 } else if (!rc) {
8337 rc = lpfc_reg_congestion_buf(phba);
8338 if (rc) {
8399 uint32_t len, rc;
8435 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL);
8437 return rc;
8452 int rc, i, cnt, len, dd;
8465 rc = lpfc_pci_function_reset(phba);
8466 if (unlikely(rc))
8470 rc = lpfc_sli4_post_status_check(phba);
8471 if (unlikely(rc))
8504 rc = -ENOMEM;
8508 rc = lpfc_sli4_read_rev(phba, mboxq, vpd, &vpd_size);
8509 if (unlikely(rc)) {
8537 rc = -EIO;
8542 rc = lpfc_set_host_tm(phba);
8544 "6468 Set host date / time: Status x%x:\n", rc);
8560 rc = lpfc_sli4_retrieve_pport_name(phba);
8561 if (!rc)
8566 rc = lpfc_sli4_get_ctl_attr(phba);
8567 if (!rc)
8577 rc = lpfc_parse_vpd(phba, vpd, vpd_size);
8578 if (unlikely(!rc))
8581 "Using defaults.\n", rc);
8626 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL);
8627 if (rc == MBX_SUCCESS) {
8643 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL);
8644 if (rc != MBX_SUCCESS)
8653 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL);
8654 if (unlikely(rc)) {
8655 rc = -EIO;
8722 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL);
8724 if ((rc == MBX_SUCCESS) && (dd == LPFC_ENABLE_DUAL_DUMP))
8730 "rc:x%x dd:x%x\n",
8736 rc, dd);
8741 rc = lpfc_sli4_alloc_resource_identifiers(phba);
8742 if (rc) {
8745 "rc = x%x\n", rc);
8751 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL);
8752 if (rc) {
8755 rc);
8759 rc = lpfc_read_sparam(phba, mboxq, vport->vpi);
8760 if (rc) {
8762 rc = -ENOMEM;
8767 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL);
8769 if (rc == MBX_SUCCESS) {
8771 rc = 0;
8782 if (unlikely(rc)) {
8786 rc, bf_get(lpfc_mqe_status, mqe));
8788 rc = -EIO;
8799 rc = lpfc_sli4_queue_create(phba);
8800 if (rc) {
8803 rc = -ENODEV;
8807 rc = lpfc_sli4_queue_setup(phba);
8808 if (unlikely(rc)) {
8810 "0381 Error %d during queue setup.\n ", rc);
8818 rc = lpfc_sli4_els_sgl_update(phba);
8819 if (unlikely(rc)) {
8822 "mapping: %d\n", rc);
8827 rc = lpfc_sli4_repost_sgl_list(phba, &phba->sli4_hba.lpfc_els_sgl_list,
8829 if (unlikely(rc < 0)) {
8832 "operation\n", rc);
8833 rc = -ENODEV;
8836 phba->sli4_hba.els_xri_cnt = rc;
8840 rc = lpfc_sli4_nvmet_sgl_update(phba);
8841 if (unlikely(rc)) {
8844 "and mapping: %d\n", rc);
8849 rc = lpfc_sli4_repost_sgl_list(
8853 if (unlikely(rc < 0)) {
8856 "sgl post\n", rc);
8857 rc = -ENODEV;
8860 phba->sli4_hba.nvmet_xri_cnt = rc;
8869 rc = lpfc_sli4_io_sgl_update(phba);
8870 if (unlikely(rc)) {
8873 "and mapping: %d\n", rc);
8878 rc = lpfc_sli4_repost_io_sgl_list(phba);
8879 if (unlikely(rc)) {
8882 "operation\n", rc);
8885 rc = -ENODEV;
8899 rc = lpfc_init_iocb_list(phba, cnt);
8900 if (rc) {
8928 rc = lpfc_sli4_post_all_rpi_hdrs(phba);
8929 if (unlikely(rc)) {
8932 rc);
8933 rc = -ENODEV;
8945 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL);
8946 if (rc != MBX_SUCCESS)
8948 rc = 0;
8957 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL);
8958 if (rc != MBX_SUCCESS)
8960 rc = 0;
8967 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL);
8968 if (rc != MBX_SUCCESS)
8970 rc = 0;
8984 rc = -ENOMEM;
9062 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL);
9063 if (rc != MBX_SUCCESS) {
9066 "DOWN_LINK mbox cmd, rc:x%x\n", rc);
9072 rc = phba->lpfc_hba_init_link(phba, MBX_NOWAIT);
9073 if (rc)
9083 return rc;
9099 return rc;
9745 int rc = 0;
9797 rc = 1;
9803 if (rc) {
9808 return rc;
9917 int rc = MBX_SUCCESS;
9949 rc = lpfc_sli4_wait_bmbx_ready(phba, mboxq);
9950 if (rc)
9967 rc = lpfc_sli4_wait_bmbx_ready(phba, mboxq);
9968 if (rc)
9975 rc = lpfc_sli4_wait_bmbx_ready(phba, mboxq);
9976 if (rc)
9999 rc = MBXERR_ERROR;
10026 return rc;
10047 int rc;
10052 rc = lpfc_mbox_dev_check(phba);
10053 if (unlikely(rc)) {
10068 rc = lpfc_sli4_post_sync_mbox(phba, mboxq);
10070 rc = -EIO;
10071 if (rc != MBX_SUCCESS)
10088 return rc;
10100 rc = lpfc_sli4_async_mbox_block(phba);
10101 if (!rc) {
10103 rc = lpfc_sli4_post_sync_mbox(phba, mboxq);
10104 if (rc != MBX_SUCCESS)
10125 return rc;
10129 rc = lpfc_mbox_cmd_check(phba, mboxq);
10130 if (rc) {
10179 int rc = MBX_SUCCESS;
10220 rc = lpfc_mbox_dev_check(phba);
10221 if (unlikely(rc))
10259 rc = lpfc_sli4_mq_put(phba->sli4_hba.mbx_wq, mqe);
10260 if (rc != MBX_SUCCESS) {
10272 return rc;
10544 int rc;
10547 rc = __lpfc_sli_issue_iocb_s3(phba, ring_number, piocb, flag);
10550 return rc;
11294 int rc;
11310 rc = __lpfc_sli_issue_iocb(phba, ring_number, piocb, flag);
11317 rc = __lpfc_sli_issue_iocb(phba, ring_number, piocb, flag);
11320 return rc;
12626 int rc = 1;
12631 return rc;
12638 rc = 0;
12643 rc = 0;
12646 rc = 0;
12654 return rc;
13635 int rc;
13844 rc = lpfc_sli_issue_mbox(phba,
13847 if (rc != MBX_BUSY)
13851 "0350 rc should have"
13853 if (rc != MBX_NOT_FINISHED)
13889 rc = lpfc_sli_issue_mbox(phba, NULL,
13891 } while (rc == MBX_NOT_FINISHED);
13892 if (rc != MBX_SUCCESS)
13895 "0349 rc should be "
14282 int rc;
14351 rc = lpfc_sli_issue_mbox(phba, pmb, MBX_NOWAIT);
14352 if (rc != MBX_BUSY)
14355 "0385 rc should "
14357 if (rc != MBX_NOT_FINISHED)
15945 int cnt = 0, rc, length;
16016 rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL);
16020 if (shdr_status || shdr_add_status || rc) {
16024 shdr_status, shdr_add_status, rc);
16055 int rc, length, status = 0;
16138 rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL);
16141 if (shdr_status || shdr_add_status || rc) {
16145 shdr_status, shdr_add_status, rc);
16256 int rc, length, status = 0;
16335 rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL);
16340 if (shdr_status || shdr_add_status || rc) {
16344 shdr_status, shdr_add_status, rc);
16406 int rc, length, alloclen, status = 0;
16581 rc = 0;
16589 rc++;
16591 page_idx += rc;
16594 rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL);
16599 if (shdr_status || shdr_add_status || rc) {
16603 shdr_status, shdr_add_status, rc);
16607 rc = bf_get(lpfc_mbx_cq_create_set_base_id, &cq_set->u.response);
16608 if (rc == 0xFFFF) {
16615 cq->queue_id = rc + idx;
16713 int rc, length, status = 0;
16794 rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL);
16797 if (rc != MBX_SUCCESS) {
16801 rc);
16804 rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL);
16813 if (shdr_status || shdr_add_status || rc) {
16817 shdr_status, shdr_add_status, rc);
16867 int rc, length, status = 0;
16954 rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL);
16958 if (shdr_status || shdr_add_status || rc) {
16962 shdr_status, shdr_add_status, rc);
17067 rc = set_memory_wc(pg_addr, 1);
17068 if (rc) {
17131 int rc, length, status = 0;
17219 rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL);
17223 if (shdr_status || shdr_add_status || rc) {
17227 shdr_status, shdr_add_status, rc);
17360 rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL);
17365 if (shdr_status || shdr_add_status || rc) {
17423 int rc, length, alloclen, status = 0;
17507 rc = 0;
17515 rc++;
17517 page_idx += rc;
17519 rc = 0;
17527 rc++;
17529 page_idx += rc;
17553 rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL);
17557 if (shdr_status || shdr_add_status || rc) {
17561 shdr_status, shdr_add_status, rc);
17565 rc = bf_get(lpfc_mbx_rq_create_q_id, &rq_create->u.response);
17566 if (rc == 0xFFFF) {
17574 hrq->queue_id = rc + (2 * idx);
17576 drq->queue_id = rc + (2 * idx) + 1;
17601 int rc, length, status = 0;
17622 rc = lpfc_sli_issue_mbox(eq->phba, mbox, MBX_POLL);
17628 if (shdr_status || shdr_add_status || rc) {
17632 shdr_status, shdr_add_status, rc);
17659 int rc, length, status = 0;
17678 rc = lpfc_sli_issue_mbox(cq->phba, mbox, MBX_POLL);
17684 if (shdr_status || shdr_add_status || rc) {
17688 shdr_status, shdr_add_status, rc);
17714 int rc, length, status = 0;
17733 rc = lpfc_sli_issue_mbox(mq->phba, mbox, MBX_POLL);
17739 if (shdr_status || shdr_add_status || rc) {
17743 shdr_status, shdr_add_status, rc);
17769 int rc, length, status = 0;
17788 rc = lpfc_sli_issue_mbox(wq->phba, mbox, MBX_POLL);
17793 if (shdr_status || shdr_add_status || rc) {
17797 shdr_status, shdr_add_status, rc);
17827 int rc, length, status = 0;
17846 rc = lpfc_sli_issue_mbox(hrq->phba, mbox, MBX_POLL);
17852 if (shdr_status || shdr_add_status || rc) {
17856 shdr_status, shdr_add_status, rc);
17862 rc = lpfc_sli_issue_mbox(drq->phba, mbox, MBX_POLL);
17867 if (shdr_status || shdr_add_status || rc) {
17871 shdr_status, shdr_add_status, rc);
17910 int rc;
17945 rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL);
17948 rc = lpfc_sli_issue_mbox_wait(phba, mbox, mbox_tmo);
17956 else if (rc != MBX_TIMEOUT)
17958 if (shdr_status || shdr_add_status || rc) {
17962 shdr_status, shdr_add_status, rc);
18085 int rc = 0;
18145 rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL);
18148 rc = lpfc_sli_issue_mbox_wait(phba, mbox, mbox_tmo);
18155 else if (rc != MBX_TIMEOUT)
18157 if (shdr_status || shdr_add_status || rc) {
18161 shdr_status, shdr_add_status, rc);
18162 rc = -ENXIO;
18164 return rc;
18190 int rc = 0;
18260 rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL);
18263 rc = lpfc_sli_issue_mbox_wait(phba, mbox, mbox_tmo);
18270 else if (rc != MBX_TIMEOUT)
18272 if (shdr_status || shdr_add_status || rc) {
18276 shdr_status, shdr_add_status, rc);
18277 rc = -ENXIO;
18279 return rc;
18901 int rc;
19015 rc = lpfc_sli_issue_iocb(phba, LPFC_ELS_RING, ctiocb, 0);
19016 if (rc == IOCB_ERROR) {
19324 int rc;
19396 rc = lpfc_sli_issue_iocb(phba, LPFC_ELS_RING, iocbq, 0);
19397 if (rc == IOCB_ERROR)
19546 uint32_t rc = 0;
19565 rc = lpfc_sli4_post_rpi_hdr(phba, rpi_page);
19566 if (rc != MBX_SUCCESS) {
19569 "headers\n", rc);
19570 rc = -EIO;
19578 return rc;
19600 uint32_t rc = 0;
19606 return rc;
19636 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL);
19641 if (shdr_status || shdr_add_status || rc) {
19645 shdr_status, shdr_add_status, rc);
19646 rc = -ENXIO;
19656 return rc;
19821 int rc;
19851 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_NOWAIT);
19852 if (rc == MBX_NOT_FINISHED) {
19855 "status %d, mbxStatus x%x\n", rc,
19878 int rc = 0;
19887 rc = lpfc_sli_issue_mbox_wait(phba, mboxq, mbox_tmo);
19888 if (rc != MBX_SUCCESS) {
19891 "status %d, mbxStatus x%x\n", rc,
19895 if (rc != MBX_TIMEOUT)
19945 int rc = 0;
19999 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_NOWAIT);
20000 if (rc == MBX_NOT_FINISHED) {
20003 "status 0x%x\n", rc);
20005 rc = -EIO;
20007 rc = 0;
20009 return rc;
20067 int rc = 0, error;
20081 rc = lpfc_sli4_mbx_read_fcf_rec(phba, mboxq, fcf_index);
20082 if (rc) {
20092 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_NOWAIT);
20093 if (rc == MBX_NOT_FINISHED)
20125 int rc = 0, error;
20137 rc = lpfc_sli4_mbx_read_fcf_rec(phba, mboxq, fcf_index);
20138 if (rc) {
20145 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_NOWAIT);
20146 if (rc == MBX_NOT_FINISHED)
20171 int rc = 0, error;
20183 rc = lpfc_sli4_mbx_read_fcf_rec(phba, mboxq, fcf_index);
20184 if (rc) {
20191 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_NOWAIT);
20192 if (rc == MBX_NOT_FINISHED)
20222 int rc;
20260 rc = lpfc_sli4_fcf_rr_index_set(phba,
20262 if (rc)
20283 rc = lpfc_sli4_fcf_rr_index_set(phba,
20285 if (rc)
20509 int rc, length;
20535 rc = lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT);
20537 if (rc == MBX_NOT_FINISHED) {
20584 int rc;
20599 rc = lpfc_sli_issue_mbox(phba, pmb, MBX_POLL);
20601 if (rc != MBX_SUCCESS) {
20604 "region 23, rc 0x%x Status 0x%x\n",
20605 rc, mb->mbxStatus);
20644 int rc;
20660 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL);
20661 if (rc)
20884 int rc = 0, i = 0;
20938 rc = mbox_status;
20954 if (shdr_status || shdr_add_status || shdr_add_status_2 || rc) {
20960 rc);
20961 rc = -ENXIO;
20967 if (rc || check_change_status)
20977 return rc;
22179 int rc, length, eof, j, byte_cnt = 0;
22227 rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL);
22236 } else if (shdr_status || shdr_add_status || rc) {
22240 shdr_status, shdr_add_status, rc);
22353 int rc = 0;
22370 rc = -EINVAL;
22374 return rc;
22502 int rc = 0;
22519 rc = -EINVAL;
22523 return rc;