Lines Matching refs:sas_hba

530 		if ((handle <= ioc->sas_hba.num_phys) &&
533 *sas_address = ioc->sas_hba.sas_address;
4677 if (expander_handle < ioc->sas_hba.num_phys) {
5970 (ioc->sas_hba.num_phys * sizeof(Mpi2SasIOUnit0PhyData_t));
5986 for (i = 0; i < ioc->sas_hba.num_phys; i++) {
6148 sz = offsetof(Mpi2SasIOUnitPage0_t, PhyData) + (ioc->sas_hba.num_phys
6163 for (i = 0; i < ioc->sas_hba.num_phys; i++) {
6292 struct _sas_node *sas_node = &ioc->sas_hba;
6326 struct _sas_node *sas_node = &ioc->sas_hba;
6330 for (offset = 0; offset < ioc->sas_hba.num_phys; offset++) {
6425 (unsigned long long)ioc->sas_hba.sas_address));
6434 if (num_phys > ioc->sas_hba.nr_phys_allocated) {
6439 ioc->sas_hba.num_phys = num_phys;
6441 port_table = kcalloc(ioc->sas_hba.num_phys,
6580 (u64)ioc->sas_hba.sas_address));
6582 sz = offsetof(Mpi2SasIOUnitPage0_t, PhyData) + (ioc->sas_hba.num_phys
6597 for (i = 0; i < ioc->sas_hba.num_phys ; i++) {
6600 ioc->sas_hba.handle = le16_to_cpu(
6638 ioc->sas_hba.phy[i].hba_vphy = 1;
6645 if (!ioc->sas_hba.phy[i].phy) {
6659 ioc->sas_hba.phy[i].phy_id = i;
6661 &ioc->sas_hba.phy[i], phy_pg0,
6662 ioc->sas_hba.parent_dev);
6665 ioc->sas_hba.phy[i].handle = ioc->sas_hba.handle;
6670 ioc->sas_hba.phy[i].port =
6672 mpt3sas_transport_update_links(ioc, ioc->sas_hba.sas_address,
6674 ioc->sas_hba.phy[i].port);
6680 for (i = ioc->sas_hba.num_phys;
6681 i < ioc->sas_hba.nr_phys_allocated; i++) {
6682 if (ioc->sas_hba.phy[i].phy &&
6683 ioc->sas_hba.phy[i].phy->negotiated_linkrate >=
6686 ioc->sas_hba.sas_address, 0, i,
6697 * Creating host side data object, stored in ioc->sas_hba
6722 ioc->sas_hba.nr_phys_allocated = max_t(u8,
6724 ioc->sas_hba.phy = kcalloc(ioc->sas_hba.nr_phys_allocated,
6726 if (!ioc->sas_hba.phy) {
6731 ioc->sas_hba.num_phys = num_phys;
6734 sz = offsetof(Mpi2SasIOUnitPage0_t, PhyData) + (ioc->sas_hba.num_phys *
6757 sz = offsetof(Mpi2SasIOUnitPage1_t, PhyData) + (ioc->sas_hba.num_phys *
6790 ioc->sas_hba.parent_dev = &ioc->shost->shost_gendev;
6791 for (i = 0; i < ioc->sas_hba.num_phys ; i++) {
6807 ioc->sas_hba.handle = le16_to_cpu(sas_iounit_pg0->
6836 ioc->sas_hba.phy[i].hba_vphy = 1;
6839 ioc->sas_hba.phy[i].handle = ioc->sas_hba.handle;
6840 ioc->sas_hba.phy[i].phy_id = i;
6841 ioc->sas_hba.phy[i].port =
6843 mpt3sas_transport_add_host_phy(ioc, &ioc->sas_hba.phy[i],
6844 phy_pg0, ioc->sas_hba.parent_dev);
6847 MPI2_SAS_DEVICE_PGAD_FORM_HANDLE, ioc->sas_hba.handle))) {
6852 ioc->sas_hba.enclosure_handle =
6854 ioc->sas_hba.sas_address = le64_to_cpu(sas_device_pg0.SASAddress);
6856 ioc->sas_hba.handle,
6857 (u64)ioc->sas_hba.sas_address,
6858 ioc->sas_hba.num_phys);
6860 if (ioc->sas_hba.enclosure_handle) {
6863 ioc->sas_hba.enclosure_handle)))
6864 ioc->sas_hba.enclosure_logical_id =
6931 if (sas_address_parent != ioc->sas_hba.sas_address) {
7603 if (!ioc->sas_hba.num_phys)
7628 } else if (parent_handle < ioc->sas_hba.num_phys) {
7629 sas_address = ioc->sas_hba.sas_address;
7630 max_phys = ioc->sas_hba.num_phys;
8837 !ioc->sas_hba.num_phys) {
10697 if (!(disable_discovery > 0 && !ioc->sas_hba.num_phys)) {
11324 &ioc->sas_hba.sas_port_list, port_list) {
11346 if (ioc->sas_hba.num_phys) {
11347 kfree(ioc->sas_hba.phy);
11348 ioc->sas_hba.phy = NULL;
11349 ioc->sas_hba.num_phys = 0;
12280 INIT_LIST_HEAD(&ioc->sas_hba.sas_port_list);