Lines Matching refs:sas_address
115 (MPT_ADAPTER *ioc, u64 sas_address);
126 (MPT_ADAPTER *ioc, u64 sas_address);
163 __le64 sas_address; in mptsas_print_phy_pg0() local
165 memcpy(&sas_address, &pg0->SASAddress, sizeof(__le64)); in mptsas_print_phy_pg0()
173 ioc->name, (unsigned long long)le64_to_cpu(sas_address))); in mptsas_print_phy_pg0()
206 __le64 sas_address; in mptsas_print_device_pg0() local
208 memcpy(&sas_address, &pg0->SASAddress, sizeof(__le64)); in mptsas_print_device_pg0()
221 ioc->name, (unsigned long long)le64_to_cpu(sas_address))); in mptsas_print_device_pg0()
433 mptsas_find_portinfo_by_sas_address(MPT_ADAPTER *ioc, u64 sas_address) in mptsas_find_portinfo_by_sas_address() argument
438 if (sas_address >= ioc->hba_port_sas_addr && in mptsas_find_portinfo_by_sas_address()
439 sas_address < (ioc->hba_port_sas_addr + in mptsas_find_portinfo_by_sas_address()
446 if (port_info->phy_info[i].identify.sas_address == in mptsas_find_portinfo_by_sas_address()
447 sas_address) { in mptsas_find_portinfo_by_sas_address()
462 if ((attached->sas_address) && in mptsas_is_end_device()
584 u64 sas_address, u32 device_info, u16 slot, u64 enclosure_logical_id) in mptsas_add_device_component() argument
598 (sas_info->sas_address == sas_address || in mptsas_add_device_component()
616 sas_info->sas_address = sas_address; in mptsas_add_device_component()
629 if (rphy->identify.sas_address == sas_address) { in mptsas_add_device_component()
668 sas_device.id, sas_device.sas_address, sas_device.device_info, in mptsas_add_device_component_by_fw()
792 rphy->identify.sas_address); in mptsas_add_device_component_starget()
803 phy_info->attached.id, phy_info->attached.sas_address, in mptsas_add_device_component_starget()
861 u64 sas_address; in mptsas_setup_wide_ports() local
900 sas_address = phy_info->attached.sas_address; in mptsas_setup_wide_ports()
902 ioc->name, i, (unsigned long long)sas_address)); in mptsas_setup_wide_ports()
903 if (!sas_address) in mptsas_setup_wide_ports()
922 ioc->name, i, (unsigned long long)sas_address)); in mptsas_setup_wide_ports()
931 if (!phy_info_cmp->attached.sas_address) in mptsas_setup_wide_ports()
933 if (sas_address != phy_info_cmp->attached.sas_address) in mptsas_setup_wide_ports()
940 phy_info_cmp->attached.sas_address)); in mptsas_setup_wide_ports()
1490 phy_info->attached.sas_address); in mptsas_add_end_device()
1529 u64 sas_address; in mptsas_del_end_device() local
1535 sas_address = phy_info->attached.sas_address; in mptsas_del_end_device()
1571 (unsigned long long) sas_address); in mptsas_del_end_device()
1585 if (phy_info_parent->attached.sas_address != in mptsas_del_end_device()
1586 sas_address) in mptsas_del_end_device()
1597 port->port_identifier, (unsigned long long)sas_address); in mptsas_del_end_device()
1612 sas_device->sas_address); in mptsas_refreshing_device_handles()
1620 if (port_info->phy_info[i].attached.sas_address != in mptsas_refreshing_device_handles()
1621 sas_device->sas_address) in mptsas_refreshing_device_handles()
1625 port_info->phy_info[i].attached.sas_address = in mptsas_refreshing_device_handles()
1626 sas_device->sas_address; in mptsas_refreshing_device_handles()
1787 if (p->phy_info[i].attached.sas_address != in mptsas_target_alloc()
1788 rphy->identify.sas_address) in mptsas_target_alloc()
1846 if (p->phy_info[i].attached.sas_address != in mptsas_target_destroy()
1847 rphy->identify.sas_address) in mptsas_target_destroy()
1856 p->phy_info[i].attached.sas_address); in mptsas_target_destroy()
1897 if (p->phy_info[i].attached.sas_address != in mptsas_slave_alloc()
1898 rphy->identify.sas_address) in mptsas_slave_alloc()
2195 if (p->phy_info[i].attached.sas_address == in mptsas_get_enclosure_identifier()
2196 rphy->identify.sas_address) { in mptsas_get_enclosure_identifier()
2227 if (p->phy_info[i].attached.sas_address == in mptsas_get_bay_identifier()
2228 rphy->identify.sas_address) { in mptsas_get_bay_identifier()
2249 u64 sas_address = 0; in mptsas_smp_handler() local
2280 sas_address = rphy->identify.sas_address; in mptsas_smp_handler()
2287 sas_address = in mptsas_smp_handler()
2288 port_info->phy_info[0].phy->identify.sas_address; in mptsas_smp_handler()
2292 *((u64 *)&smpreq->SASAddress) = cpu_to_le64(sas_address); in mptsas_smp_handler()
2590 __le64 sas_address; in mptsas_sas_device_pg0() local
2650 memcpy(&sas_address, &buffer->SASAddress, sizeof(__le64)); in mptsas_sas_device_pg0()
2651 device_info->sas_address = le64_to_cpu(sas_address); in mptsas_sas_device_pg0()
2672 __le64 sas_address; in mptsas_sas_expander_pg0() local
2728 memcpy(&sas_address, &buffer->SASAddress, sizeof(__le64)); in mptsas_sas_expander_pg0()
2733 port_info->phy_info[i].identify.sas_address = in mptsas_sas_expander_pg0()
2734 le64_to_cpu(sas_address); in mptsas_sas_expander_pg0()
2859 u64 sas_address, struct sas_expander_device *edev) in mptsas_exp_repmanufacture_info() argument
2916 *((u64 *)&smpreq->SASAddress) = cpu_to_le64(sas_address); in mptsas_exp_repmanufacture_info()
3009 identify->sas_address = device_info->sas_address; in mptsas_parse_device_info()
3208 attached.sas_address)); in mptsas_probe_one_phy()
3244 if (port_info->phy_info[i].identify.sas_address == in mptsas_probe_one_phy()
3245 identify.sas_address) { in mptsas_probe_one_phy()
3252 if (identify.sas_address == in mptsas_probe_one_phy()
3253 parent_rphy->identify.sas_address) { in mptsas_probe_one_phy()
3291 identify.sas_address, in mptsas_probe_one_phy()
3359 port_info->phy_info[i].identify.sas_address; in mptsas_probe_hba_phys()
3391 u64 sas_address; /* expander sas address */ in mptsas_expander_refresh() local
3395 sas_address = port_info->phy_info[0].identify.sas_address; in mptsas_expander_refresh()
3429 if (parent->phy_info[i].attached.sas_address == sas_address) { in mptsas_expander_refresh()
3448 __le64 sas_address; in mptsas_expander_event_add() local
3457 memcpy(&sas_address, &expander_data->SASAddress, sizeof(__le64)); in mptsas_expander_event_add()
3462 port_info->phy_info[i].identify.sas_address = in mptsas_expander_event_add()
3463 le64_to_cpu(sas_address); in mptsas_expander_event_add()
3474 (unsigned long long)sas_address); in mptsas_expander_event_add()
3513 rphy->identify.sas_address); in mptsas_delete_expander_siblings()
3569 port_info->phy_info[0].identify.sas_address; in mptsas_expander_delete()
3585 if (phy_info->attached.sas_address != in mptsas_expander_delete()
3634 __le64 sas_address; in mptsas_send_expander_event() local
3640 memcpy(&sas_address, &expander_data->SASAddress, sizeof(__le64)); in mptsas_send_expander_event()
3641 sas_address = le64_to_cpu(sas_address); in mptsas_send_expander_event()
3642 port_info = mptsas_find_portinfo_by_sas_address(ioc, sas_address); in mptsas_send_expander_event()
3650 port_info->phy_info[i].identify.sas_address = in mptsas_send_expander_event()
3651 le64_to_cpu(sas_address); in mptsas_send_expander_event()
3699 (unsigned long long)buffer.phy_info[0].identify.sas_address); in mptsas_expander_add()
3711 __le64 sas_address; in mptsas_send_link_status_event() local
3718 memcpy(&sas_address, &link_data->SASAddress, sizeof(__le64)); in mptsas_send_link_status_event()
3719 sas_address = le64_to_cpu(sas_address); in mptsas_send_link_status_event()
3723 port_info = mptsas_find_portinfo_by_sas_address(ioc, sas_address); in mptsas_send_link_status_event()
3866 sas_info->sas_address)); in mptsas_not_responding_devices()
3878 sas_info->sas_address); in mptsas_not_responding_devices()
3903 if (buffer.phy_info[0].identify.sas_address == in mptsas_not_responding_devices()
3904 port_info->phy_info[0].identify.sas_address) { in mptsas_not_responding_devices()
3937 buffer.phy_info[0].identify.sas_address); in mptsas_probe_expanders()
3967 (unsigned long long)buffer.phy_info[0].identify.sas_address); in mptsas_probe_expanders()
4136 mptsas_find_phyinfo_by_sas_address(MPT_ADAPTER *ioc, u64 sas_address) in mptsas_find_phyinfo_by_sas_address() argument
4148 if (port_info->phy_info[i].attached.sas_address in mptsas_find_phyinfo_by_sas_address()
4149 != sas_address) in mptsas_find_phyinfo_by_sas_address()
4176 u64 sas_address = 0; in mptsas_find_phyinfo_by_phys_disk_num() local
4197 memcpy(&sas_address, &phys_disk->Path[i].WWID, in mptsas_find_phyinfo_by_phys_disk_num()
4200 sas_address); in mptsas_find_phyinfo_by_phys_disk_num()
4317 sas_device.sas_address); in mptsas_adding_inactive_raid_components()
4417 hot_plug_info->sas_address); in mptsas_hotplug_work()
4452 ioc, sas_device.sas_address); in mptsas_hotplug_work()
4483 sas_device.sas_address); in mptsas_hotplug_work()
4512 sas_device.sas_address); in mptsas_hotplug_work()
4549 sas_device.sas_address); in mptsas_hotplug_work()
4600 u64 sas_address; in mptsas_send_sas_event() local
4631 memcpy(&sas_address, &sas_event_data->SASAddress, in mptsas_send_sas_event()
4633 hot_plug_info.sas_address = le64_to_cpu(sas_address); in mptsas_send_sas_event()