/Linux-v5.15/drivers/scsi/lpfc/ |
D | lpfc_debugfs.h | 426 wq = phba->sli4_hba.hdwq[wqidx].io_wq; in lpfc_debug_dump_wq() 429 wq = phba->sli4_hba.mbx_wq; in lpfc_debug_dump_wq() 432 wq = phba->sli4_hba.els_wq; in lpfc_debug_dump_wq() 435 wq = phba->sli4_hba.nvmels_wq; in lpfc_debug_dump_wq() 470 wq = phba->sli4_hba.hdwq[wqidx].io_wq; in lpfc_debug_dump_cq() 471 cq = phba->sli4_hba.hdwq[wqidx].io_cq; in lpfc_debug_dump_cq() 474 wq = phba->sli4_hba.mbx_wq; in lpfc_debug_dump_cq() 475 cq = phba->sli4_hba.mbx_cq; in lpfc_debug_dump_cq() 478 wq = phba->sli4_hba.els_wq; in lpfc_debug_dump_cq() 479 cq = phba->sli4_hba.els_cq; in lpfc_debug_dump_cq() [all …]
|
D | lpfc_init.c | 874 while (!list_empty(&phba->sli4_hba.sp_queue_event)) { in lpfc_sli4_free_sp_events() 877 list_remove_head(&phba->sli4_hba.sp_queue_event, in lpfc_sli4_free_sp_events() 978 list_for_each_entry(qp, &phba->sli4_hba.lpfc_wq_list, wq_list) { in lpfc_hba_clean_txcmplq() 1052 spin_lock_irq(&phba->sli4_hba.sgl_list_lock); in lpfc_hba_down_post_s4() 1054 &phba->sli4_hba.lpfc_abts_els_sgl_list, list) in lpfc_hba_down_post_s4() 1057 list_splice_init(&phba->sli4_hba.lpfc_abts_els_sgl_list, in lpfc_hba_down_post_s4() 1058 &phba->sli4_hba.lpfc_els_sgl_list); in lpfc_hba_down_post_s4() 1061 spin_unlock_irq(&phba->sli4_hba.sgl_list_lock); in lpfc_hba_down_post_s4() 1069 qp = &phba->sli4_hba.hdwq[idx]; in lpfc_hba_down_post_s4() 1092 spin_lock_irq(&phba->sli4_hba.abts_nvmet_buf_list_lock); in lpfc_hba_down_post_s4() [all …]
|
D | lpfc_sli.c | 334 &q->phba->sli4_hba.sli_intf); in lpfc_sli4_wq_put() 407 writel(doorbell.word0, q->phba->sli4_hba.MQDBregaddr); in lpfc_sli4_mq_put() 486 writel(doorbell.word0, q->phba->sli4_hba.EQDBregaddr); in lpfc_sli4_eq_clr_intr() 501 writel(doorbell.word0, q->phba->sli4_hba.EQDBregaddr); in lpfc_sli4_if6_eq_clr_intr() 536 writel(doorbell.word0, q->phba->sli4_hba.EQDBregaddr); in lpfc_sli4_write_eq_db() 539 readl(q->phba->sli4_hba.EQDBregaddr); in lpfc_sli4_write_eq_db() 569 writel(doorbell.word0, q->phba->sli4_hba.EQDBregaddr); in lpfc_sli4_if6_write_eq_db() 572 readl(q->phba->sli4_hba.EQDBregaddr); in lpfc_sli4_if6_write_eq_db() 579 if (!phba->sli4_hba.pc_sli4_params.eqav) in __lpfc_sli4_consume_eqe() 585 if (phba->sli4_hba.pc_sli4_params.eqav && !eq->host_index) in __lpfc_sli4_consume_eqe() [all …]
|
D | lpfc_nvmet.c | 223 spin_lock_irqsave(&phba->sli4_hba.t_active_list_lock, iflag); in lpfc_nvmet_get_ctx_for_xri() 224 list_for_each_entry(ctxp, &phba->sli4_hba.t_active_ctx_list, list) { in lpfc_nvmet_get_ctx_for_xri() 231 spin_unlock_irqrestore(&phba->sli4_hba.t_active_list_lock, iflag); in lpfc_nvmet_get_ctx_for_xri() 245 spin_lock_irqsave(&phba->sli4_hba.t_active_list_lock, iflag); in lpfc_nvmet_get_ctx_for_oxid() 246 list_for_each_entry(ctxp, &phba->sli4_hba.t_active_ctx_list, list) { in lpfc_nvmet_get_ctx_for_oxid() 253 spin_unlock_irqrestore(&phba->sli4_hba.t_active_list_lock, iflag); in lpfc_nvmet_get_ctx_for_oxid() 275 spin_lock(&phba->sli4_hba.t_active_list_lock); in lpfc_nvmet_defer_release() 277 spin_unlock(&phba->sli4_hba.t_active_list_lock); in lpfc_nvmet_defer_release() 278 spin_lock(&phba->sli4_hba.abts_nvmet_buf_list_lock); in lpfc_nvmet_defer_release() 279 list_add_tail(&ctxp->list, &phba->sli4_hba.lpfc_abts_nvmet_ctx_list); in lpfc_nvmet_defer_release() [all …]
|
D | lpfc_debugfs.c | 414 qp = &phba->sli4_hba.hdwq[lpfc_debugfs_last_xripool]; in lpfc_debugfs_commonxripools_data() 470 if (!phba->sli4_hba.hdwq) in lpfc_debugfs_multixripools_data() 526 qp = &phba->sli4_hba.hdwq[i]; in lpfc_debugfs_multixripools_data() 603 if (!phba->sli4_hba.hdwq) in lpfc_debugfs_lockstat_data() 609 qp = &phba->sli4_hba.hdwq[lpfc_debugfs_last_lock]; in lpfc_debugfs_lockstat_data() 1125 spin_lock(&phba->sli4_hba.abts_nvmet_buf_list_lock); in lpfc_debugfs_nvmestat_data() 1127 &phba->sli4_hba.lpfc_abts_nvmet_ctx_list, in lpfc_debugfs_nvmestat_data() 1131 spin_unlock(&phba->sli4_hba.abts_nvmet_buf_list_lock); in lpfc_debugfs_nvmestat_data() 1135 spin_lock(&phba->sli4_hba.abts_nvmet_buf_list_lock); in lpfc_debugfs_nvmestat_data() 1137 &phba->sli4_hba.lpfc_abts_nvmet_ctx_list, in lpfc_debugfs_nvmestat_data() [all …]
|
D | lpfc_attr.c | 137 phba->sli4_hba.pc_sli4_params.mi_ver, in lpfc_cmf_info_show() 139 phba->sli4_hba.pc_sli4_params.cmf, phba->cmf_timer_cnt); in lpfc_cmf_info_show() 144 if (!phba->sli4_hba.pc_sli4_params.cmf) in lpfc_cmf_info_show() 502 phba->sli4_hba.nvmet_xri_cnt, in lpfc_nvme_info_show() 503 phba->sli4_hba.nvmet_io_wait_cnt, in lpfc_nvme_info_show() 504 phba->sli4_hba.nvmet_io_wait_total, in lpfc_nvme_info_show() 524 phba->sli4_hba.max_cfg_param.max_xri, in lpfc_nvme_info_show() 525 phba->sli4_hba.io_xri_max, in lpfc_nvme_info_show() 647 cstat = &phba->sli4_hba.hdwq[i].nvme_cstat; in lpfc_nvme_info_show() 725 cstat = &phba->sli4_hba.hdwq[i].scsi_cstat; in lpfc_scsi_stat_show() [all …]
|
D | lpfc_mbox.c | 383 &phba->sli4_hba.bbscn_params); in lpfc_config_link() 517 if ((phba->sli4_hba.pc_sli4_params.sli_family == LPFC_SLI_INTF_FAMILY_G6 || in lpfc_init_link() 518 phba->sli4_hba.pc_sli4_params.if_type == LPFC_SLI_INTF_IF_TYPE_6) && in lpfc_init_link() 519 !(phba->sli4_hba.pc_sli4_params.pls) && in lpfc_init_link() 764 mb->un.varRegLogin.rpi = phba->sli4_hba.rpi_ids[rpi]; in lpfc_reg_rpi() 901 mb->un.varRegVpi.vfi = phba->sli4_hba.vfi_ids[vport->vfi]; in lpfc_reg_vpi() 2109 bf_set(lpfc_ftr_ashdr, &phba->sli4_hba.sli4_flags, 1); in lpfc_request_features() 2138 vport->phba->sli4_hba.vfi_ids[vport->vfi]); in lpfc_init_vfi() 2168 phba->sli4_hba.vfi_ids[vport->vfi]); in lpfc_reg_vfi() 2185 if ((phba->sli4_hba.lnk_info.lnk_tp == LPFC_LNK_TYPE_FC) && in lpfc_reg_vfi() [all …]
|
D | lpfc_nvme.c | 457 phba->sli4_hba.rpi_ids[ndlp->nlp_rpi]); in lpfc_nvme_gen_req() 494 rc = lpfc_sli4_issue_wqe(phba, &phba->sli4_hba.hdwq[0], genwqe); in lpfc_nvme_gen_req() 562 if (!vport->phba->sli4_hba.nvmels_wq) in __lpfc_nvme_ls_req() 719 pring = phba->sli4_hba.nvmels_wq->pring; in __lpfc_nvme_ls_abort() 966 phba->sli4_hba.hdwq[idx].nvme_cstat.io_cmpls++; in lpfc_nvme_io_cmd_wqe_cmpl() 1122 this_cpu_inc(phba->sli4_hba.c_stat->cmpl_io); in lpfc_nvme_io_cmd_wqe_cmpl() 1254 phba->sli4_hba.rpi_ids[pnode->nlp_rpi]); in lpfc_nvme_prep_io_cmd() 1616 idx = phba->sli4_hba.cpu_map[cpu].hdwq; in lpfc_nvme_fcp_io_submit() 1659 cstat = &phba->sli4_hba.hdwq[idx].nvme_cstat; in lpfc_nvme_fcp_io_submit() 1697 this_cpu_inc(phba->sli4_hba.c_stat->xmt_io); in lpfc_nvme_fcp_io_submit() [all …]
|
D | lpfc_bsg.c | 480 cmd->ulpContext = phba->sli4_hba.rpi_ids[ndlp->nlp_rpi]; in lpfc_bsg_send_mgmt_cmd() 726 cmdiocbq->iocb.ulpContext = phba->sli4_hba.rpi_ids[rpi]; in lpfc_bsg_rport_els() 1538 phba->sli4_hba.rpi_ids[ndlp->nlp_rpi]; in lpfc_issue_ct_rsp() 1722 list_for_each_entry(qp, &phba->sli4_hba.lpfc_wq_list, wq_list) { in lpfc_bsg_diag_mode_enter() 1920 diag, phba->sli4_hba.lnk_info.lnk_tp, in lpfc_sli4_bsg_set_link_diag_state() 1921 phba->sli4_hba.lnk_info.lnk_no); in lpfc_sli4_bsg_set_link_diag_state() 1927 phba->sli4_hba.lnk_info.lnk_no); in lpfc_sli4_bsg_set_link_diag_state() 1929 phba->sli4_hba.lnk_info.lnk_tp); in lpfc_sli4_bsg_set_link_diag_state() 1985 if (phba->sli4_hba.conf_trunk & (1 << link_no)) { in lpfc_sli4_bsg_set_loopback_mode() 1991 phba->sli4_hba.lnk_info.lnk_tp); in lpfc_sli4_bsg_set_loopback_mode() [all …]
|
D | lpfc_disc.h | 169 (ndlp->cmd_qdepth < phba->sli4_hba.max_cfg_param.max_xri)
|
D | lpfc_scsi.c | 466 qp = &phba->sli4_hba.hdwq[idx]; in lpfc_sli4_vport_delete_fcp_xri_aborted() 505 struct lpfc_sli_ring *pring = phba->sli4_hba.els_wq->pring; in lpfc_sli4_io_xri_aborted() 511 qp = &phba->sli4_hba.hdwq[idx]; in lpfc_sli4_io_xri_aborted() 665 idx = phba->sli4_hba.cpu_map[cpu].hdwq; in lpfc_get_scsi_buf_s4() 671 qp = &phba->sli4_hba.hdwq[idx]; in lpfc_get_scsi_buf_s4() 3846 !phba->sli4_hba.max_cfg_param.vpi_used) { in lpfc_unblock_requests() 3879 !phba->sli4_hba.max_cfg_param.vpi_used) { in lpfc_block_requests() 4217 if (phba->sli4_hba.hdwq) in lpfc_fcp_io_cmd_wqe_cmpl() 4218 phba->sli4_hba.hdwq[idx].scsi_cstat.io_cmpls++; in lpfc_fcp_io_cmd_wqe_cmpl() 4222 this_cpu_inc(phba->sli4_hba.c_stat->cmpl_io); in lpfc_fcp_io_cmd_wqe_cmpl() [all …]
|
D | lpfc_nvme.h | 169 (phba->sli4_hba.nvmet_ctx_info + ((cpu * phba->cfg_nvmet_mrq) + mrq))
|
D | lpfc.h | 973 struct lpfc_sli4_hba sli4_hba; member 1697 if (phba->sli4_hba.els_wq) in lpfc_phba_elsring() 1698 return phba->sli4_hba.els_wq->pring; in lpfc_phba_elsring() 1741 writel(reg_data.word0, phba->sli4_hba.u.if_type2.EQDregaddr); in lpfc_sli4_mod_hba_eq_delay()
|
D | lpfc_sli4.h | 499 #define lpfc_get_eq_hdl(eqidx) (&phba->sli4_hba.hba_eq_hdl[eqidx]) 500 #define lpfc_get_aff_mask(eqidx) (&phba->sli4_hba.hba_eq_hdl[eqidx].aff_mask) 501 #define lpfc_get_irq(eqidx) (phba->sli4_hba.hba_eq_hdl[eqidx].irq)
|
D | lpfc_vport.c | 100 phba->sli4_hba.max_cfg_param.vpi_used++; in lpfc_alloc_vpi() 113 phba->sli4_hba.max_cfg_param.vpi_used--; in lpfc_free_vpi()
|
D | lpfc_els.c | 761 (phba->sli4_hba.lnk_info.lnk_tp == LPFC_LNK_TYPE_FC)) { in lpfc_cmpl_els_flogi_fabric() 1338 if (bf_get(lpfc_sli_intf_if_type, &phba->sli4_hba.sli_intf) == in lpfc_issue_els_flogi() 2212 bf_get(lpfc_ftr_ashdr, &phba->sli4_hba.sli4_flags)) in lpfc_issue_els_plogi() 6941 bf_get(lpfc_sli_intf_if_type, &phba->sli4_hba.sli_intf) < in lpfc_els_rcv_rdp() 7159 phba->sli4_hba.physical_port); in lpfc_sli4_set_beacon() 7170 if (phba->sli4_hba.pc_sli4_params.bv1s) { in lpfc_sli4_set_beacon() 7254 (bf_get(lpfc_sli_intf_if_type, &phba->sli4_hba.sli_intf) < in lpfc_els_rcv_lcb() 8402 bf_set(rrq_oxid, els_rrq, phba->sli4_hba.xri_ids[rrq->xritag]); in lpfc_issue_els_rrq() 11390 spin_lock_irqsave(&phba->sli4_hba.sgl_list_lock, iflag); in lpfc_sli4_vport_delete_els_xri_aborted() 11392 &phba->sli4_hba.lpfc_abts_els_sgl_list, list) { in lpfc_sli4_vport_delete_els_xri_aborted() [all …]
|
D | lpfc_ct.c | 246 phba->sli4_hba.rpi_ids[ndlp->nlp_rpi]; in lpfc_ct_reject_event() 641 icmd->ulpContext = phba->sli4_hba.rpi_ids[ndlp->nlp_rpi]; in lpfc_gen_req() 2337 phba->sli4_hba.pc_sli4_params.mi_ver) { in lpfc_cmpl_ct_disc_fdmi() 2350 phba->sli4_hba.pc_sli4_params.mi_ver); in lpfc_cmpl_ct_disc_fdmi() 2359 phba->sli4_hba.pc_sli4_params.mi_ver, in lpfc_cmpl_ct_disc_fdmi() 2835 phba->sli4_hba.pc_sli4_params.nvme) in lpfc_fdmi_port_attr_fc4type() 3358 phba->sli4_hba.pc_sli4_params.mi_ver); in lpfc_fdmi_vendor_attr_mi()
|
D | lpfc_mem.c | 54 int max_xri = phba->sli4_hba.max_cfg_param.max_xri; in lpfc_mem_alloc_active_rrq_pool_s4()
|
D | lpfc_hbadisc.c | 1068 if (phba->sli4_hba.conf_trunk) { in lpfc_linkdown() 1073 phba->sli4_hba.link_state.logical_speed = in lpfc_linkdown() 2048 if_type = bf_get(lpfc_sli_intf_if_type, &phba->sli4_hba.sli_intf); in lpfc_sli4_fcf_rec_mbox_parse() 2963 (bf_get(lpfc_sli_intf_if_type, &phba->sli4_hba.sli_intf) != in lpfc_init_vfi_cmpl() 3163 (bf_get(lpfc_sli_intf_if_type, &phba->sli4_hba.sli_intf) != in lpfc_mbx_cmpl_reg_vfi() 5032 list_for_each_entry(qp, &phba->sli4_hba.lpfc_wq_list, wq_list) { in lpfc_sli4_dequeue_nport_iocbs() 5142 (bf_get(lpfc_sli_intf_if_type, &phba->sli4_hba.sli_intf) >= in lpfc_set_unreg_login_mbx_cmpl() 5206 rpi = phba->sli4_hba.rpi_ids[ndlp->nlp_rpi]; in lpfc_unreg_rpi()
|