Lines Matching refs:sas_hba

434 		if ((handle <= ioc->sas_hba.num_phys) &&
437 *sas_address = ioc->sas_hba.sas_address;
4478 if (expander_handle < ioc->sas_hba.num_phys) {
5761 (u64)ioc->sas_hba.sas_address));
5763 sz = offsetof(Mpi2SasIOUnitPage0_t, PhyData) + (ioc->sas_hba.num_phys
5778 for (i = 0; i < ioc->sas_hba.num_phys ; i++) {
5781 ioc->sas_hba.handle = le16_to_cpu(sas_iounit_pg0->
5783 ioc->sas_hba.phy[i].handle = ioc->sas_hba.handle;
5788 mpt3sas_transport_update_links(ioc, ioc->sas_hba.sas_address,
5799 * Creating host side data object, stored in ioc->sas_hba
5822 ioc->sas_hba.phy = kcalloc(num_phys,
5824 if (!ioc->sas_hba.phy) {
5829 ioc->sas_hba.num_phys = num_phys;
5832 sz = offsetof(Mpi2SasIOUnitPage0_t, PhyData) + (ioc->sas_hba.num_phys *
5855 sz = offsetof(Mpi2SasIOUnitPage1_t, PhyData) + (ioc->sas_hba.num_phys *
5888 ioc->sas_hba.parent_dev = &ioc->shost->shost_gendev;
5889 for (i = 0; i < ioc->sas_hba.num_phys ; i++) {
5905 ioc->sas_hba.handle = le16_to_cpu(sas_iounit_pg0->
5907 ioc->sas_hba.phy[i].handle = ioc->sas_hba.handle;
5908 ioc->sas_hba.phy[i].phy_id = i;
5909 mpt3sas_transport_add_host_phy(ioc, &ioc->sas_hba.phy[i],
5910 phy_pg0, ioc->sas_hba.parent_dev);
5913 MPI2_SAS_DEVICE_PGAD_FORM_HANDLE, ioc->sas_hba.handle))) {
5918 ioc->sas_hba.enclosure_handle =
5920 ioc->sas_hba.sas_address = le64_to_cpu(sas_device_pg0.SASAddress);
5922 ioc->sas_hba.handle,
5923 (u64)ioc->sas_hba.sas_address,
5924 ioc->sas_hba.num_phys);
5926 if (ioc->sas_hba.enclosure_handle) {
5929 ioc->sas_hba.enclosure_handle)))
5930 ioc->sas_hba.enclosure_logical_id =
5994 if (sas_address_parent != ioc->sas_hba.sas_address) {
6630 if (!ioc->sas_hba.num_phys)
6653 } else if (parent_handle < ioc->sas_hba.num_phys) {
6654 sas_address = ioc->sas_hba.sas_address;
6655 max_phys = ioc->sas_hba.num_phys;
7861 !ioc->sas_hba.num_phys) {
9627 !ioc->sas_hba.num_phys)) {
10212 &ioc->sas_hba.sas_port_list, port_list) {
10226 if (ioc->sas_hba.num_phys) {
10227 kfree(ioc->sas_hba.phy);
10228 ioc->sas_hba.phy = NULL;
10229 ioc->sas_hba.num_phys = 0;
11008 INIT_LIST_HEAD(&ioc->sas_hba.sas_port_list);