Lines Matching refs:num_phys

531 		if ((handle <= ioc->sas_hba.num_phys) &&  in _scsih_get_sas_address()
4678 if (expander_handle < ioc->sas_hba.num_phys) { in _scsih_check_topo_delete_events()
5958 (ioc->sas_hba.num_phys * sizeof(Mpi2SasIOUnit0PhyData_t)); in _scsih_update_vphys_after_reset()
5974 for (i = 0; i < ioc->sas_hba.num_phys; i++) { in _scsih_update_vphys_after_reset()
6136 sz = offsetof(Mpi2SasIOUnitPage0_t, PhyData) + (ioc->sas_hba.num_phys in _scsih_get_port_table_after_reset()
6151 for (i = 0; i < ioc->sas_hba.num_phys; i++) { in _scsih_get_port_table_after_reset()
6318 for (offset = 0; offset < ioc->sas_hba.num_phys; offset++) { in _scsih_add_or_del_phys_from_existing_port()
6409 u8 num_phys; in _scsih_sas_port_refresh() local
6415 mpt3sas_config_get_number_hba_phys(ioc, &num_phys); in _scsih_sas_port_refresh()
6416 if (!num_phys) { in _scsih_sas_port_refresh()
6422 if (num_phys > ioc->sas_hba.nr_phys_allocated) { in _scsih_sas_port_refresh()
6427 ioc->sas_hba.num_phys = num_phys; in _scsih_sas_port_refresh()
6429 port_table = kcalloc(ioc->sas_hba.num_phys, in _scsih_sas_port_refresh()
6570 sz = offsetof(Mpi2SasIOUnitPage0_t, PhyData) + (ioc->sas_hba.num_phys in _scsih_sas_host_refresh()
6585 for (i = 0; i < ioc->sas_hba.num_phys ; i++) { in _scsih_sas_host_refresh()
6668 for (i = ioc->sas_hba.num_phys; in _scsih_sas_host_refresh()
6700 u8 num_phys, port_id; in _scsih_sas_host_add() local
6703 mpt3sas_config_get_number_hba_phys(ioc, &num_phys); in _scsih_sas_host_add()
6704 if (!num_phys) { in _scsih_sas_host_add()
6711 MPT_MAX_HBA_NUM_PHYS, num_phys); in _scsih_sas_host_add()
6719 ioc->sas_hba.num_phys = num_phys; in _scsih_sas_host_add()
6722 sz = offsetof(Mpi2SasIOUnitPage0_t, PhyData) + (ioc->sas_hba.num_phys * in _scsih_sas_host_add()
6745 sz = offsetof(Mpi2SasIOUnitPage1_t, PhyData) + (ioc->sas_hba.num_phys * in _scsih_sas_host_add()
6779 for (i = 0; i < ioc->sas_hba.num_phys ; i++) { in _scsih_sas_host_add()
6846 ioc->sas_hba.num_phys); in _scsih_sas_host_add()
6950 sas_expander->num_phys = expander_pg0.NumPhys; in _scsih_expander_add()
6963 (u64)sas_expander->sas_address, sas_expander->num_phys); in _scsih_expander_add()
6965 if (!sas_expander->num_phys) { in _scsih_expander_add()
6969 sas_expander->phy = kcalloc(sas_expander->num_phys, in _scsih_expander_add()
6990 for (i = 0 ; i < sas_expander->num_phys ; i++) { in _scsih_expander_add()
7591 if (!ioc->sas_hba.num_phys) in _scsih_sas_topology_change_event()
7614 max_phys = sas_expander->num_phys; in _scsih_sas_topology_change_event()
7616 } else if (parent_handle < ioc->sas_hba.num_phys) { in _scsih_sas_topology_change_event()
7618 max_phys = ioc->sas_hba.num_phys; in _scsih_sas_topology_change_event()
8825 !ioc->sas_hba.num_phys) { in _scsih_sas_discovery_event()
10163 for (i = 0 ; i < sas_expander->num_phys ; i++) in _scsih_mark_responding_expander()
10342 for (i = 0 ; i < sas_expander->num_phys ; i++) { in _scsih_refresh_expander_links()
10685 if (!(disable_discovery > 0 && !ioc->sas_hba.num_phys)) { in mpt3sas_scsih_reset_done_handler()
11331 if (ioc->sas_hba.num_phys) { in scsih_remove()
11334 ioc->sas_hba.num_phys = 0; in scsih_remove()