/drivers/scsi/lpfc/ |
D | lpfc_mbox.c | 57 lpfc_dump_static_vport(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb, in lpfc_dump_static_vport() argument 63 mb = &pmb->u.mb; in lpfc_dump_static_vport() 66 memset(pmb, 0, sizeof(LPFC_MBOXQ_t)); in lpfc_dump_static_vport() 95 pmb->context1 = (uint8_t *)mp; in lpfc_dump_static_vport() 111 lpfc_down_link(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb) in lpfc_down_link() argument 114 memset(pmb, 0, sizeof(LPFC_MBOXQ_t)); in lpfc_down_link() 115 mb = &pmb->u.mb; in lpfc_down_link() 133 lpfc_dump_mem(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb, uint16_t offset, in lpfc_dump_mem() argument 139 mb = &pmb->u.mb; in lpfc_dump_mem() 140 ctx = pmb->context2; in lpfc_dump_mem() [all …]
|
D | lpfc_hbadisc.c | 1023 lpfc_mbx_cmpl_clear_la(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb) in lpfc_mbx_cmpl_clear_la() argument 1025 struct lpfc_vport *vport = pmb->vport; in lpfc_mbx_cmpl_clear_la() 1028 MAILBOX_t *mb = &pmb->u.mb; in lpfc_mbx_cmpl_clear_la() 1057 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_mbx_cmpl_clear_la() 1064 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_mbx_cmpl_clear_la() 1087 lpfc_mbx_cmpl_local_config_link(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb) in lpfc_mbx_cmpl_local_config_link() argument 1089 struct lpfc_vport *vport = pmb->vport; in lpfc_mbx_cmpl_local_config_link() 1091 if (pmb->u.mb.mbxStatus) in lpfc_mbx_cmpl_local_config_link() 1094 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_mbx_cmpl_local_config_link() 1124 pmb->u.mb.mbxStatus, vport->port_state); in lpfc_mbx_cmpl_local_config_link() [all …]
|
D | lpfc_vport.c | 116 LPFC_MBOXQ_t *pmb; in lpfc_vport_sparm() local 121 pmb = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_vport_sparm() 122 if (!pmb) { in lpfc_vport_sparm() 125 mb = &pmb->u.mb; in lpfc_vport_sparm() 127 rc = lpfc_read_sparam(phba, pmb, vport->vpi); in lpfc_vport_sparm() 129 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_vport_sparm() 137 mp = (struct lpfc_dmabuf *) pmb->context1; in lpfc_vport_sparm() 138 pmb->context1 = NULL; in lpfc_vport_sparm() 140 pmb->vport = vport; in lpfc_vport_sparm() 141 rc = lpfc_sli_issue_mbox_wait(phba, pmb, phba->fc_ratov * 2); in lpfc_vport_sparm() [all …]
|
D | lpfc_init.c | 106 LPFC_MBOXQ_t *pmb; in lpfc_config_port_prep() local 114 pmb = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_config_port_prep() 115 if (!pmb) { in lpfc_config_port_prep() 120 mb = &pmb->u.mb; in lpfc_config_port_prep() 132 lpfc_read_nv(phba, pmb); in lpfc_config_port_prep() 138 rc = lpfc_sli_issue_mbox(phba, pmb, MBX_POLL); in lpfc_config_port_prep() 146 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_config_port_prep() 158 lpfc_read_rev(phba, pmb); in lpfc_config_port_prep() 159 rc = lpfc_sli_issue_mbox(phba, pmb, MBX_POLL); in lpfc_config_port_prep() 165 mempool_free( pmb, phba->mbox_mem_pool); in lpfc_config_port_prep() [all …]
|
D | lpfc_bsg.c | 3302 uint8_t *pmb, *pmb_buf; in lpfc_bsg_issue_mbox_cmpl() local 3310 pmb = (uint8_t *)&pmboxq->u.mb; in lpfc_bsg_issue_mbox_cmpl() 3312 memcpy(pmb_buf, pmb, sizeof(MAILBOX_t)); in lpfc_bsg_issue_mbox_cmpl() 3478 uint8_t *pmb, *pmb_buf; in lpfc_bsg_issue_mbox_ext_handle_job() local 3502 pmb = (uint8_t *)&pmboxq->u.mb; in lpfc_bsg_issue_mbox_ext_handle_job() 3505 memcpy(pmb_buf, pmb, sizeof(MAILBOX_t)); in lpfc_bsg_issue_mbox_ext_handle_job() 3742 MAILBOX_t *pmb; in lpfc_bsg_sli_cfg_read_cmd_ext() local 3846 pmb = &pmboxq->u.mb; in lpfc_bsg_sli_cfg_read_cmd_ext() 3848 memcpy(pmb, pmbx, sizeof(*pmb)); in lpfc_bsg_sli_cfg_read_cmd_ext() 3849 pmb->mbxOwner = OWN_HOST; in lpfc_bsg_sli_cfg_read_cmd_ext() [all …]
|
D | lpfc_sli.c | 1288 LPFC_MBOXQ_t *pmb; in lpfc_sli_ring_map() local 1292 pmb = (LPFC_MBOXQ_t *) mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_sli_ring_map() 1293 if (!pmb) in lpfc_sli_ring_map() 1295 pmbox = &pmb->u.mb; in lpfc_sli_ring_map() 1298 lpfc_config_ring(phba, i, pmb); in lpfc_sli_ring_map() 1299 rc = lpfc_sli_issue_mbox(phba, pmb, MBX_POLL); in lpfc_sli_ring_map() 1312 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_sli_ring_map() 2178 lpfc_sli_def_mbox_cmpl(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb) in lpfc_sli_def_mbox_cmpl() argument 2180 struct lpfc_vport *vport = pmb->vport; in lpfc_sli_def_mbox_cmpl() 2187 mp = (struct lpfc_dmabuf *) (pmb->context1); in lpfc_sli_def_mbox_cmpl() [all …]
|
D | lpfc_attr.c | 1126 MAILBOX_t *pmb; in lpfc_get_hba_info() local 1147 pmb = &pmboxq->u.mb; in lpfc_get_hba_info() 1148 pmb->mbxCommand = MBX_READ_CONFIG; in lpfc_get_hba_info() 1149 pmb->mbxOwner = OWN_HOST; in lpfc_get_hba_info() 1188 *mrpi = pmb->un.varRdConfig.max_rpi; in lpfc_get_hba_info() 1190 *arpi = pmb->un.varRdConfig.avail_rpi; in lpfc_get_hba_info() 1192 *mxri = pmb->un.varRdConfig.max_xri; in lpfc_get_hba_info() 1194 *axri = pmb->un.varRdConfig.avail_xri; in lpfc_get_hba_info() 1196 *mvpi = pmb->un.varRdConfig.max_vpi; in lpfc_get_hba_info() 1198 *avpi = pmb->un.varRdConfig.avail_vpi; in lpfc_get_hba_info() [all …]
|
D | lpfc_nportdisc.c | 757 LPFC_MBOXQ_t *pmb; in lpfc_release_rpi() local 760 pmb = (LPFC_MBOXQ_t *) mempool_alloc(phba->mbox_mem_pool, in lpfc_release_rpi() 762 if (!pmb) in lpfc_release_rpi() 766 lpfc_unreg_login(phba, vport->vpi, rpi, pmb); in lpfc_release_rpi() 767 pmb->mbox_cmpl = lpfc_sli_def_mbox_cmpl; in lpfc_release_rpi() 768 rc = lpfc_sli_issue_mbox(phba, pmb, MBX_NOWAIT); in lpfc_release_rpi() 770 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_release_rpi() 779 LPFC_MBOXQ_t *pmb = (LPFC_MBOXQ_t *) arg; in lpfc_disc_illegal() local 787 (!pmb->u.mb.mbxStatus)) { in lpfc_disc_illegal() 788 mb = &pmb->u.mb; in lpfc_disc_illegal() [all …]
|
D | lpfc_els.c | 3657 lpfc_mbx_cmpl_dflt_rpi(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb) in lpfc_mbx_cmpl_dflt_rpi() argument 3659 struct lpfc_dmabuf *mp = (struct lpfc_dmabuf *) (pmb->context1); in lpfc_mbx_cmpl_dflt_rpi() 3660 struct lpfc_nodelist *ndlp = (struct lpfc_nodelist *) pmb->context2; in lpfc_mbx_cmpl_dflt_rpi() 3662 pmb->context1 = NULL; in lpfc_mbx_cmpl_dflt_rpi() 3663 pmb->context2 = NULL; in lpfc_mbx_cmpl_dflt_rpi() 3667 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_mbx_cmpl_dflt_rpi() 5386 lpfc_els_rsp_rls_acc(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb) in lpfc_els_rsp_rls_acc() argument 5398 mb = &pmb->u.mb; in lpfc_els_rsp_rls_acc() 5400 ndlp = (struct lpfc_nodelist *) pmb->context2; in lpfc_els_rsp_rls_acc() 5401 rxid = (uint16_t) ((unsigned long)(pmb->context1) & 0xffff); in lpfc_els_rsp_rls_acc() [all …]
|