Lines Matching refs:sas_hba
398 if (handle <= ioc->sas_hba.num_phys) { in _scsih_get_sas_address()
399 *sas_address = ioc->sas_hba.sas_address; in _scsih_get_sas_address()
3172 if (expander_handle < ioc->sas_hba.num_phys) { in _scsih_check_topo_delete_events()
4233 ioc->name, (unsigned long long)ioc->sas_hba.sas_address)); in _scsih_sas_host_refresh()
4235 sz = offsetof(Mpi2SasIOUnitPage0_t, PhyData) + (ioc->sas_hba.num_phys in _scsih_sas_host_refresh()
4250 for (i = 0; i < ioc->sas_hba.num_phys ; i++) { in _scsih_sas_host_refresh()
4253 ioc->sas_hba.handle = le16_to_cpu(sas_iounit_pg0-> in _scsih_sas_host_refresh()
4255 ioc->sas_hba.phy[i].handle = ioc->sas_hba.handle; in _scsih_sas_host_refresh()
4260 mpt3sas_transport_update_links(ioc, ioc->sas_hba.sas_address, in _scsih_sas_host_refresh()
4289 mpt3sas_config_get_number_hba_phys(ioc, &ioc->sas_hba.num_phys); in _scsih_sas_host_add()
4290 if (!ioc->sas_hba.num_phys) { in _scsih_sas_host_add()
4297 sz = offsetof(Mpi2SasIOUnitPage0_t, PhyData) + (ioc->sas_hba.num_phys * in _scsih_sas_host_add()
4320 sz = offsetof(Mpi2SasIOUnitPage1_t, PhyData) + (ioc->sas_hba.num_phys * in _scsih_sas_host_add()
4353 ioc->sas_hba.parent_dev = &ioc->shost->shost_gendev; in _scsih_sas_host_add()
4354 ioc->sas_hba.phy = kcalloc(ioc->sas_hba.num_phys, in _scsih_sas_host_add()
4356 if (!ioc->sas_hba.phy) { in _scsih_sas_host_add()
4361 for (i = 0; i < ioc->sas_hba.num_phys ; i++) { in _scsih_sas_host_add()
4377 ioc->sas_hba.handle = le16_to_cpu(sas_iounit_pg0-> in _scsih_sas_host_add()
4379 ioc->sas_hba.phy[i].handle = ioc->sas_hba.handle; in _scsih_sas_host_add()
4380 ioc->sas_hba.phy[i].phy_id = i; in _scsih_sas_host_add()
4381 mpt3sas_transport_add_host_phy(ioc, &ioc->sas_hba.phy[i], in _scsih_sas_host_add()
4382 phy_pg0, ioc->sas_hba.parent_dev); in _scsih_sas_host_add()
4385 MPI2_SAS_DEVICE_PGAD_FORM_HANDLE, ioc->sas_hba.handle))) { in _scsih_sas_host_add()
4390 ioc->sas_hba.enclosure_handle = in _scsih_sas_host_add()
4392 ioc->sas_hba.sas_address = le64_to_cpu(sas_device_pg0.SASAddress); in _scsih_sas_host_add()
4395 ioc->name, ioc->sas_hba.handle, in _scsih_sas_host_add()
4396 (unsigned long long) ioc->sas_hba.sas_address, in _scsih_sas_host_add()
4397 ioc->sas_hba.num_phys) ; in _scsih_sas_host_add()
4399 if (ioc->sas_hba.enclosure_handle) { in _scsih_sas_host_add()
4402 ioc->sas_hba.enclosure_handle))) in _scsih_sas_host_add()
4403 ioc->sas_hba.enclosure_logical_id = in _scsih_sas_host_add()
4467 if (sas_address_parent != ioc->sas_hba.sas_address) { in _scsih_expander_add()
5047 if (!ioc->sas_hba.num_phys) in _scsih_sas_topology_change_event()
5071 } else if (parent_handle < ioc->sas_hba.num_phys) { in _scsih_sas_topology_change_event()
5072 sas_address = ioc->sas_hba.sas_address; in _scsih_sas_topology_change_event()
5073 max_phys = ioc->sas_hba.num_phys; in _scsih_sas_topology_change_event()
5522 !ioc->sas_hba.num_phys) { in _scsih_sas_discovery_event()
7005 !ioc->sas_hba.num_phys)) { in mpt3sas_scsih_reset_handler()
7412 &ioc->sas_hba.sas_port_list, port_list) { in _scsih_remove()
7426 if (ioc->sas_hba.num_phys) { in _scsih_remove()
7427 kfree(ioc->sas_hba.phy); in _scsih_remove()
7428 ioc->sas_hba.phy = NULL; in _scsih_remove()
7429 ioc->sas_hba.num_phys = 0; in _scsih_remove()
7769 INIT_LIST_HEAD(&ioc->sas_hba.sas_port_list); in _scsih_probe()