/kernel/linux/linux-6.6/drivers/scsi/lpfc/ |
H A D | lpfc_vport.c | 94 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() 327 phba->max_vpi); in lpfc_vport_create()
|
H A D | lpfc_attr.c | 2135 u16 rsrc_ext_cnt, rsrc_ext_size, max_vpi; in lpfc_get_hba_info() local 2181 max_vpi = max_cfg_param->max_vpi; in lpfc_get_hba_info() 2184 if (max_vpi > LPFC_MAX_VPI) in lpfc_get_hba_info() 2185 max_vpi = LPFC_MAX_VPI; in lpfc_get_hba_info() 2186 *mvpi = max_vpi; in lpfc_get_hba_info() 2222 max_vpi = rsrc_ext_cnt * rsrc_ext_size; in lpfc_get_hba_info() 2225 if (max_vpi > LPFC_MAX_VPI) in lpfc_get_hba_info() 2226 max_vpi = LPFC_MAX_VPI; in lpfc_get_hba_info() 2227 *mvpi = max_vpi; in lpfc_get_hba_info() [all...] |
H A D | lpfc_mbox.c | 1362 if (phba->max_vpi && phba->cfg_enable_npiv && in lpfc_config_port() 1364 mb->un.varCfgPort.max_vpi = LPFC_MAX_VPI; in lpfc_config_port() 1367 mb->un.varCfgPort.max_vpi = phba->max_vpi = 0; in lpfc_config_port() 2155 if (phba->max_vpi && phba->cfg_enable_npiv) in lpfc_request_features()
|
H A D | lpfc_sli4.h | 472 uint16_t max_vpi; member
|
H A D | lpfc_init.c | 477 fc_host_max_npiv_vports(shost) = phba->max_vpi; in lpfc_config_port_post() 5036 fc_host_max_npiv_vports(shost) = phba->max_vpi; in lpfc_host_attrib_init() 7828 phba->max_vpi = LPFC_MAX_VPI; in lpfc_sli_driver_resource_setup() 7974 phba->max_vpi = LPFC_MAX_VPI; in lpfc_sli4_driver_resource_setup() 9992 phba->sli4_hba.max_cfg_param.max_vpi = in lpfc_sli4_read_config() 9995 if (phba->sli4_hba.max_cfg_param.max_vpi > LPFC_MAX_VPORTS) in lpfc_sli4_read_config() 9996 phba->sli4_hba.max_cfg_param.max_vpi = LPFC_MAX_VPORTS; in lpfc_sli4_read_config() 10021 phba->max_vpi = (phba->sli4_hba.max_cfg_param.max_vpi > 0) ? in lpfc_sli4_read_config() 10022 (phba->sli4_hba.max_cfg_param.max_vpi in lpfc_sli4_read_config() [all...] |
H A D | lpfc_hw.h | 2623 uint32_t max_vpi; member 3525 uint32_t max_vpi : 16; /* Max number of virt N-Ports */ member 3527 uint32_t max_vpi : 16; /* Max number of virt N-Ports */ member
|
H A D | lpfc_sli.c | 5649 if (phba->max_vpi && pmb->u.mb.un.varCfgPort.gmv) { in lpfc_sli_config_port() 5651 phba->max_vpi = pmb->u.mb.un.varCfgPort.max_vpi; in lpfc_sli_config_port() 5652 phba->max_vports = (phba->max_vpi > phba->max_vports) ? in lpfc_sli_config_port() 5653 phba->max_vpi : phba->max_vports; in lpfc_sli_config_port() 5656 phba->max_vpi = 0; in lpfc_sli_config_port() 5677 phba->max_vpi = 0; in lpfc_sli_config_port() 5725 phba->sli_rev, phba->max_vpi); in lpfc_sli_hba_setup() 5739 longs = (phba->max_vpi + BITS_PER_LONG) / BITS_PER_LONG; in lpfc_sli_hba_setup() 5748 phba->vpi_ids = kcalloc(phba->max_vpi in lpfc_sli_hba_setup() [all...] |
H A D | lpfc.h | 1306 uint16_t max_vpi; /* Maximum virtual nports */ member 1310 * For IOV HBAs max_vpi can change 1313 * be greater than max_vpi.
|
H A D | lpfc_hbadisc.c | 3321 if (vports[i]->vpi > phba->max_vpi) { in lpfc_start_fdiscs() 3547 if (phba->cfg_enable_npiv && phba->max_vpi) in lpfc_mbx_process_link_up() 3597 if (phba->max_vpi && phba->cfg_enable_npiv && in lpfc_mbx_process_link_up() 6557 for (i = 0; i <= phba->max_vpi; i++) { in lpfc_find_vport_by_vpid() 6562 if (i > phba->max_vpi) { in lpfc_find_vport_by_vpid()
|
H A D | lpfc_bsg.c | 1667 for (i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { in lpfc_bsg_diag_mode_enter() 1709 for (i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { in lpfc_bsg_diag_mode_exit()
|
/kernel/linux/linux-5.10/drivers/scsi/lpfc/ |
H A D | lpfc_vport.c | 94 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()
|
H A D | lpfc_attr.c | 1862 uint32_t max_vpi; in lpfc_get_hba_info() local 1913 max_vpi = (bf_get(lpfc_mbx_rd_conf_vpi_count, rd_config) > 0) ? in lpfc_get_hba_info() 1917 if (max_vpi > LPFC_MAX_VPI) in lpfc_get_hba_info() 1918 max_vpi = LPFC_MAX_VPI; in lpfc_get_hba_info() 1920 *mvpi = max_vpi; in lpfc_get_hba_info() 1922 *avpi = max_vpi - phba->sli4_hba.max_cfg_param.vpi_used; in lpfc_get_hba_info() 1933 *mvpi = pmb->un.varRdConfig.max_vpi; in lpfc_get_hba_info() 1939 *avpi = pmb->un.varRdConfig.max_vpi; in lpfc_get_hba_info() 2136 if (!(phba->max_vpi)) in lpfc_npiv_info_show() 2657 static DEVICE_ATTR(max_vpi, S_IRUG [all...] |
H A D | lpfc_mbox.c | 1303 if (phba->max_vpi && phba->cfg_enable_npiv && in lpfc_config_port() 1305 mb->un.varCfgPort.max_vpi = LPFC_MAX_VPI; in lpfc_config_port() 1308 mb->un.varCfgPort.max_vpi = phba->max_vpi = 0; in lpfc_config_port() 2094 if (phba->max_vpi && phba->cfg_enable_npiv) in lpfc_request_features()
|
H A D | lpfc_init.c | 470 fc_host_max_npiv_vports(shost) = phba->max_vpi; in lpfc_config_port_post() 4648 fc_host_max_npiv_vports(shost) = phba->max_vpi; in lpfc_host_attrib_init() 6459 phba->max_vpi = LPFC_MAX_VPI; in lpfc_sli_driver_resource_setup() 6596 phba->max_vpi = LPFC_MAX_VPI; in lpfc_sli4_driver_resource_setup() 8544 phba->sli4_hba.max_cfg_param.max_vpi = in lpfc_sli4_read_config() 8547 if (phba->sli4_hba.max_cfg_param.max_vpi > LPFC_MAX_VPORTS) in lpfc_sli4_read_config() 8548 phba->sli4_hba.max_cfg_param.max_vpi = LPFC_MAX_VPORTS; in lpfc_sli4_read_config() 8573 phba->max_vpi = (phba->sli4_hba.max_cfg_param.max_vpi > 0) ? in lpfc_sli4_read_config() 8574 (phba->sli4_hba.max_cfg_param.max_vpi in lpfc_sli4_read_config() [all...] |
H A D | lpfc_sli4.h | 473 uint16_t max_vpi; member
|
H A D | lpfc_hw.h | 2451 uint32_t max_vpi; member 3339 uint32_t max_vpi : 16; /* Max number of virt N-Ports */ member 3341 uint32_t max_vpi : 16; /* Max number of virt N-Ports */ member
|
H A D | lpfc_sli.c | 5128 if (phba->max_vpi && pmb->u.mb.un.varCfgPort.gmv) { in lpfc_sli_config_port() 5130 phba->max_vpi = pmb->u.mb.un.varCfgPort.max_vpi; in lpfc_sli_config_port() 5131 phba->max_vports = (phba->max_vpi > phba->max_vports) ? in lpfc_sli_config_port() 5132 phba->max_vpi : phba->max_vports; in lpfc_sli_config_port() 5135 phba->max_vpi = 0; in lpfc_sli_config_port() 5156 phba->max_vpi = 0; in lpfc_sli_config_port() 5250 phba->sli_rev, phba->max_vpi); in lpfc_sli_hba_setup() 5264 longs = (phba->max_vpi + BITS_PER_LONG) / BITS_PER_LONG; in lpfc_sli_hba_setup() 5273 phba->vpi_ids = kcalloc(phba->max_vpi in lpfc_sli_hba_setup() [all...] |
H A D | lpfc.h | 1045 uint16_t max_vpi; /* Maximum virtual nports */ member 1049 * For IOV HBAs max_vpi can change 1052 * be greater than max_vpi.
|
H A D | lpfc_hbadisc.c | 2984 if (vports[i]->vpi > phba->max_vpi) { in lpfc_start_fdiscs() 3222 if (phba->cfg_enable_npiv && phba->max_vpi) in lpfc_mbx_process_link_up() 3272 if (phba->max_vpi && phba->cfg_enable_npiv && in lpfc_mbx_process_link_up() 6318 for (i = 0; i < phba->max_vpi; i++) { in lpfc_find_vport_by_vpid() 6323 if (i >= phba->max_vpi) { in lpfc_find_vport_by_vpid()
|
H A D | lpfc_bsg.c | 1723 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()
|