Searched refs:pmb (Results 1 – 8 of 8) sorted by relevance
/drivers/scsi/lpfc/ |
D | lpfc_mbox.c | 56 lpfc_dump_mem(struct lpfc_hba * phba, LPFC_MBOXQ_t * pmb, uint16_t offset) in lpfc_dump_mem() argument 61 mb = &pmb->mb; in lpfc_dump_mem() 62 ctx = pmb->context2; in lpfc_dump_mem() 65 memset(pmb, 0, sizeof (LPFC_MBOXQ_t)); in lpfc_dump_mem() 74 pmb->context2 = ctx; in lpfc_dump_mem() 87 lpfc_dump_wakeup_param(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb) in lpfc_dump_wakeup_param() argument 92 mb = &pmb->mb; in lpfc_dump_wakeup_param() 94 ctx = pmb->context2; in lpfc_dump_wakeup_param() 97 memset(pmb, 0, sizeof(LPFC_MBOXQ_t)); in lpfc_dump_wakeup_param() 107 pmb->context2 = ctx; in lpfc_dump_wakeup_param() [all …]
|
D | lpfc_init.c | 81 LPFC_MBOXQ_t *pmb; in lpfc_config_port_prep() local 89 pmb = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_config_port_prep() 90 if (!pmb) { in lpfc_config_port_prep() 95 mb = &pmb->mb; in lpfc_config_port_prep() 107 lpfc_read_nv(phba, pmb); in lpfc_config_port_prep() 113 rc = lpfc_sli_issue_mbox(phba, pmb, MBX_POLL); in lpfc_config_port_prep() 121 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_config_port_prep() 133 lpfc_read_rev(phba, pmb); in lpfc_config_port_prep() 134 rc = lpfc_sli_issue_mbox(phba, pmb, MBX_POLL); in lpfc_config_port_prep() 140 mempool_free( pmb, phba->mbox_mem_pool); in lpfc_config_port_prep() [all …]
|
D | lpfc_sli.c | 312 LPFC_MBOXQ_t *pmb; in lpfc_sli_ring_map() local 316 pmb = (LPFC_MBOXQ_t *) mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_sli_ring_map() 317 if (!pmb) in lpfc_sli_ring_map() 319 pmbox = &pmb->mb; in lpfc_sli_ring_map() 322 lpfc_config_ring(phba, i, pmb); in lpfc_sli_ring_map() 323 rc = lpfc_sli_issue_mbox(phba, pmb, MBX_POLL); in lpfc_sli_ring_map() 336 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_sli_ring_map() 1109 lpfc_sli_def_mbox_cmpl(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb) in lpfc_sli_def_mbox_cmpl() argument 1115 mp = (struct lpfc_dmabuf *) (pmb->context1); in lpfc_sli_def_mbox_cmpl() 1127 pmb->mb.mbxCommand == MBX_REG_LOGIN64 && in lpfc_sli_def_mbox_cmpl() [all …]
|
D | lpfc_hbadisc.c | 852 lpfc_mbx_cmpl_clear_la(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb) in lpfc_mbx_cmpl_clear_la() argument 854 struct lpfc_vport *vport = pmb->vport; in lpfc_mbx_cmpl_clear_la() 857 MAILBOX_t *mb = &pmb->mb; in lpfc_mbx_cmpl_clear_la() 886 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_mbx_cmpl_clear_la() 893 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_mbx_cmpl_clear_la() 916 lpfc_mbx_cmpl_local_config_link(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb) in lpfc_mbx_cmpl_local_config_link() argument 918 struct lpfc_vport *vport = pmb->vport; in lpfc_mbx_cmpl_local_config_link() 920 if (pmb->mb.mbxStatus) in lpfc_mbx_cmpl_local_config_link() 923 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_mbx_cmpl_local_config_link() 948 pmb->mb.mbxStatus, vport->port_state); in lpfc_mbx_cmpl_local_config_link() [all …]
|
D | lpfc_vport.c | 107 LPFC_MBOXQ_t *pmb; in lpfc_vport_sparm() local 112 pmb = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_vport_sparm() 113 if (!pmb) { in lpfc_vport_sparm() 116 mb = &pmb->mb; in lpfc_vport_sparm() 118 lpfc_read_sparam(phba, pmb, vport->vpi); in lpfc_vport_sparm() 123 mp = (struct lpfc_dmabuf *) pmb->context1; in lpfc_vport_sparm() 124 pmb->context1 = NULL; in lpfc_vport_sparm() 126 pmb->vport = vport; in lpfc_vport_sparm() 127 rc = lpfc_sli_issue_mbox_wait(phba, pmb, phba->fc_ratov * 2); in lpfc_vport_sparm() 136 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_vport_sparm() [all …]
|
D | lpfc_attr.c | 794 MAILBOX_t *pmb; in lpfc_get_hba_info() local 814 pmb = &pmboxq->mb; in lpfc_get_hba_info() 815 pmb->mbxCommand = MBX_READ_CONFIG; in lpfc_get_hba_info() 816 pmb->mbxOwner = OWN_HOST; in lpfc_get_hba_info() 832 *mrpi = pmb->un.varRdConfig.max_rpi; in lpfc_get_hba_info() 834 *arpi = pmb->un.varRdConfig.avail_rpi; in lpfc_get_hba_info() 836 *mxri = pmb->un.varRdConfig.max_xri; in lpfc_get_hba_info() 838 *axri = pmb->un.varRdConfig.avail_xri; in lpfc_get_hba_info() 840 *mvpi = pmb->un.varRdConfig.max_vpi; in lpfc_get_hba_info() 842 *avpi = pmb->un.varRdConfig.avail_vpi; in lpfc_get_hba_info() [all …]
|
D | lpfc_els.c | 2947 lpfc_mbx_cmpl_dflt_rpi(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb) in lpfc_mbx_cmpl_dflt_rpi() argument 2949 struct lpfc_dmabuf *mp = (struct lpfc_dmabuf *) (pmb->context1); in lpfc_mbx_cmpl_dflt_rpi() 2950 struct lpfc_nodelist *ndlp = (struct lpfc_nodelist *) pmb->context2; in lpfc_mbx_cmpl_dflt_rpi() 2952 pmb->context1 = NULL; in lpfc_mbx_cmpl_dflt_rpi() 2955 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_mbx_cmpl_dflt_rpi() 4441 lpfc_els_rsp_rps_acc(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb) in lpfc_els_rsp_rps_acc() argument 4454 mb = &pmb->mb; in lpfc_els_rsp_rps_acc() 4456 ndlp = (struct lpfc_nodelist *) pmb->context2; in lpfc_els_rsp_rps_acc() 4457 xri = (uint16_t) ((unsigned long)(pmb->context1)); in lpfc_els_rsp_rps_acc() 4458 pmb->context1 = NULL; in lpfc_els_rsp_rps_acc() [all …]
|
D | lpfc_nportdisc.c | 1263 LPFC_MBOXQ_t *pmb = (LPFC_MBOXQ_t *) arg; in lpfc_cmpl_reglogin_reglogin_issue() local 1264 MAILBOX_t *mb = &pmb->mb; in lpfc_cmpl_reglogin_reglogin_issue() 1890 LPFC_MBOXQ_t *pmb = (LPFC_MBOXQ_t *) arg; in lpfc_cmpl_reglogin_npr_node() local 1891 MAILBOX_t *mb = &pmb->mb; in lpfc_cmpl_reglogin_npr_node()
|