Home
last modified time | relevance | path

Searched refs:max_vpi (Results 1 – 10 of 10) sorted by relevance

/Linux-v5.4/drivers/scsi/lpfc/
Dlpfc_vport.c94 vpi = find_next_zero_bit(phba->vpi_bmask, (phba->max_vpi + 1), 1); in lpfc_alloc_vpi()
95 if (vpi > phba->max_vpi) in lpfc_alloc_vpi()
330 phba->max_vpi); in lpfc_vport_create()
Dlpfc_attr.c1843 uint32_t max_vpi; in lpfc_get_hba_info() local
1894 max_vpi = (bf_get(lpfc_mbx_rd_conf_vpi_count, rd_config) > 0) ? in lpfc_get_hba_info()
1898 if (max_vpi > LPFC_MAX_VPI) in lpfc_get_hba_info()
1899 max_vpi = LPFC_MAX_VPI; in lpfc_get_hba_info()
1901 *mvpi = max_vpi; in lpfc_get_hba_info()
1903 *avpi = max_vpi - phba->sli4_hba.max_cfg_param.vpi_used; in lpfc_get_hba_info()
1914 *mvpi = pmb->un.varRdConfig.max_vpi; in lpfc_get_hba_info()
1920 *avpi = pmb->un.varRdConfig.max_vpi; in lpfc_get_hba_info()
2117 if (!(phba->max_vpi)) in lpfc_npiv_info_show()
2698 static DEVICE_ATTR(max_vpi, S_IRUGO, lpfc_max_vpi_show, NULL);
Dlpfc_mbox.c1306 if (phba->max_vpi && phba->cfg_enable_npiv && in lpfc_config_port()
1308 mb->un.varCfgPort.max_vpi = LPFC_MAX_VPI; in lpfc_config_port()
1311 mb->un.varCfgPort.max_vpi = phba->max_vpi = 0; in lpfc_config_port()
2092 if (phba->max_vpi && phba->cfg_enable_npiv) in lpfc_request_features()
Dlpfc_init.c465 fc_host_max_npiv_vports(shost) = phba->max_vpi; in lpfc_config_port_post()
4534 fc_host_max_npiv_vports(shost) = phba->max_vpi; in lpfc_host_attrib_init()
6318 phba->max_vpi = LPFC_MAX_VPI; in lpfc_sli_driver_resource_setup()
6457 phba->max_vpi = LPFC_MAX_VPI; in lpfc_sli4_driver_resource_setup()
8317 phba->sli4_hba.max_cfg_param.max_vpi = in lpfc_sli4_read_config()
8320 if (phba->sli4_hba.max_cfg_param.max_vpi > LPFC_MAX_VPORTS) in lpfc_sli4_read_config()
8321 phba->sli4_hba.max_cfg_param.max_vpi = LPFC_MAX_VPORTS; in lpfc_sli4_read_config()
8346 phba->max_vpi = (phba->sli4_hba.max_cfg_param.max_vpi > 0) ? in lpfc_sli4_read_config()
8347 (phba->sli4_hba.max_cfg_param.max_vpi - 1) : 0; in lpfc_sli4_read_config()
8348 phba->max_vports = phba->max_vpi; in lpfc_sli4_read_config()
[all …]
Dlpfc_hw.h2473 uint32_t max_vpi; member
3367 uint32_t max_vpi : 16; /* Max number of virt N-Ports */ member
3369 uint32_t max_vpi : 16; /* Max number of virt N-Ports */ member
Dlpfc_sli4.h435 uint16_t max_vpi; member
Dlpfc.h1009 uint16_t max_vpi; /* Maximum virtual nports */ member
Dlpfc_sli.c4984 if (phba->max_vpi && pmb->u.mb.un.varCfgPort.gmv) { in lpfc_sli_config_port()
4986 phba->max_vpi = pmb->u.mb.un.varCfgPort.max_vpi; in lpfc_sli_config_port()
4987 phba->max_vports = (phba->max_vpi > phba->max_vports) ? in lpfc_sli_config_port()
4988 phba->max_vpi : phba->max_vports; in lpfc_sli_config_port()
4991 phba->max_vpi = 0; in lpfc_sli_config_port()
5029 phba->max_vpi = 0; in lpfc_sli_config_port()
5123 phba->sli_rev, phba->max_vpi); in lpfc_sli_hba_setup()
5137 longs = (phba->max_vpi + BITS_PER_LONG) / BITS_PER_LONG; in lpfc_sli_hba_setup()
5146 phba->vpi_ids = kcalloc(phba->max_vpi + 1, in lpfc_sli_hba_setup()
5154 for (i = 0; i < phba->max_vpi; i++) in lpfc_sli_hba_setup()
[all …]
Dlpfc_hbadisc.c2934 if (vports[i]->vpi > phba->max_vpi) { in lpfc_start_fdiscs()
3164 if (phba->cfg_enable_npiv && phba->max_vpi) in lpfc_mbx_process_link_up()
3214 if (phba->max_vpi && phba->cfg_enable_npiv && in lpfc_mbx_process_link_up()
6139 for (i = 0; i < phba->max_vpi; i++) { in lpfc_find_vport_by_vpid()
6144 if (i >= phba->max_vpi) { in lpfc_find_vport_by_vpid()
Dlpfc_bsg.c1723 for (i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { in lpfc_bsg_diag_mode_enter()
1765 for (i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { in lpfc_bsg_diag_mode_exit()