Lines Matching refs:sas_address

338 _scsih_srch_boot_sas_address(u64 sas_address,  in _scsih_srch_boot_sas_address()  argument
341 return (sas_address == le64_to_cpu(boot_device->SASAddress)) ? 1 : 0; in _scsih_srch_boot_sas_address()
468 _scsih_is_boot_device(u64 sas_address, u64 device_name, in _scsih_is_boot_device() argument
476 if (!sas_address) in _scsih_is_boot_device()
479 sas_address, &boot_device->SasWwid); in _scsih_is_boot_device()
511 u64 *sas_address) in _scsih_get_sas_address() argument
517 *sas_address = 0; in _scsih_get_sas_address()
534 *sas_address = ioc->sas_hba.sas_address; in _scsih_get_sas_address()
536 *sas_address = le64_to_cpu(sas_device_pg0.SASAddress); in _scsih_get_sas_address()
570 u64 sas_address; in _scsih_determine_boot_device() local
585 sas_address = raid_device->wwid; in _scsih_determine_boot_device()
591 sas_address = pcie_device->wwid; in _scsih_determine_boot_device()
597 sas_address = sas_device->sas_address; in _scsih_determine_boot_device()
604 if (_scsih_is_boot_device(sas_address, device_name, in _scsih_determine_boot_device()
611 __func__, (u64)sas_address)); in _scsih_determine_boot_device()
618 if (_scsih_is_boot_device(sas_address, device_name, in _scsih_determine_boot_device()
625 __func__, (u64)sas_address)); in _scsih_determine_boot_device()
632 if (_scsih_is_boot_device(sas_address, device_name, in _scsih_determine_boot_device()
639 __func__, (u64)sas_address)); in _scsih_determine_boot_device()
764 u64 sas_address, struct hba_port *port) in __mpt3sas_get_sdev_by_addr() argument
774 if (sas_device->sas_address != sas_address) in __mpt3sas_get_sdev_by_addr()
783 if (sas_device->sas_address != sas_address) in __mpt3sas_get_sdev_by_addr()
806 u64 sas_address, struct hba_port *port) in mpt3sas_get_sdev_by_addr() argument
813 sas_address, port); in mpt3sas_get_sdev_by_addr()
938 sas_device->handle, (u64)sas_device->sas_address); in _scsih_sas_device_remove()
992 u64 sas_address, struct hba_port *port) in mpt3sas_device_remove_by_sas_address() argument
1001 sas_device = __mpt3sas_get_sdev_by_addr(ioc, sas_address, port); in mpt3sas_device_remove_by_sas_address()
1030 (u64)sas_device->sas_address)); in _scsih_sas_device_add()
1056 sas_device->sas_address, in _scsih_sas_device_add()
1082 (u64)sas_device->sas_address)); in _scsih_sas_device_init_add()
1603 u64 sas_address, struct hba_port *port) in mpt3sas_scsih_expander_find_by_sas_address() argument
1611 if (sas_expander->sas_address != sas_address) in mpt3sas_scsih_expander_find_by_sas_address()
1896 sas_target_priv_data->sas_address = raid_device->wwid; in scsih_target_alloc()
1913 sas_target_priv_data->sas_address = pcie_device->wwid; in scsih_target_alloc()
1936 sas_target_priv_data->sas_address = sas_device->sas_address; in scsih_target_alloc()
2078 sas_target_priv_data->sas_address); in scsih_slave_alloc()
2093 sas_target_priv_data->sas_address, in scsih_slave_alloc()
2651 sas_device_priv_data->sas_target->sas_address); in scsih_slave_configure()
2699 sas_device_priv_data->sas_target->sas_address, in scsih_slave_configure()
2735 ds, handle, (unsigned long long)sas_device->sas_address, in scsih_slave_configure()
3235 device_str, (unsigned long long)priv_target->sas_address); in _scsih_tm_display_info()
3276 (unsigned long long)sas_device->sas_address, in _scsih_tm_display_info()
3865 u64 sas_address, struct hba_port *port) in _scsih_ublock_io_device() argument
3874 if (sas_device_priv_data->sas_target->sas_address in _scsih_ublock_io_device()
3875 != sas_address) in _scsih_ublock_io_device()
3979 mpt3sas_port->remote_identify.sas_address, in _scsih_block_io_to_children_attached_to_ex()
3999 ioc, mpt3sas_port->remote_identify.sas_address, in _scsih_block_io_to_children_attached_to_ex()
4084 u64 sas_address = 0; in _scsih_tm_tr_send() local
4117 sas_address = sas_device->sas_address; in _scsih_tm_tr_send()
4128 sas_address = pcie_device->wwid; in _scsih_tm_tr_send()
4142 handle, (u64)sas_address)); in _scsih_tm_tr_send()
4166 _scsih_ublock_io_device(ioc, sas_address, port); in _scsih_tm_tr_send()
5467 device_str, (u64)priv_target->sas_address); in _scsih_scsi_ioc_info()
5487 (u64)sas_device->sas_address, sas_device->phy); in _scsih_scsi_ioc_info()
5680 event_data->SASAddress = cpu_to_le64(sas_target_priv_data->sas_address); in _scsih_smart_predicted_fault()
6052 if (vphy->sas_address != attached_sas_addr) in _scsih_update_vphys_after_reset()
6110 mport->sas_address = 0; in _scsih_update_vphys_after_reset()
6181 port_table[j].sas_address == attached_sas_addr) { in _scsih_get_port_table_after_reset()
6194 port_table[port_count].sas_address = attached_sas_addr; in _scsih_get_port_table_after_reset()
6235 if ((port_table_entry->sas_address == port_entry->sas_address) in _scsih_look_and_get_matched_port_entry()
6242 if ((port_table_entry->sas_address == port_entry->sas_address) in _scsih_look_and_get_matched_port_entry()
6250 if ((port_table_entry->sas_address == port_entry->sas_address) in _scsih_look_and_get_matched_port_entry()
6260 if (port_table_entry->sas_address == port_entry->sas_address) { in _scsih_look_and_get_matched_port_entry()
6344 hba_port_entry->sas_address, in _scsih_add_or_del_phys_from_existing_port()
6378 if (!port->vphys_mask && !port->sas_address) in _scsih_del_dirty_vphy()
6426 (unsigned long long)ioc->sas_hba.sas_address)); in _scsih_sas_port_refresh()
6456 port_table[j].phy_mask, port_table[j].sas_address)); in _scsih_sas_port_refresh()
6468 port_table_entry->sas_address)); in _scsih_sas_port_refresh()
6477 port_table[j].sas_address, in _scsih_sas_port_refresh()
6489 sas_addr = port_table[j].sas_address; in _scsih_sas_port_refresh()
6491 if (port_table[i].sas_address == sas_addr) in _scsih_sas_port_refresh()
6581 (u64)ioc->sas_hba.sas_address)); in _scsih_sas_host_refresh()
6673 mpt3sas_transport_update_links(ioc, ioc->sas_hba.sas_address, in _scsih_sas_host_refresh()
6687 ioc->sas_hba.sas_address, 0, i, in _scsih_sas_host_refresh()
6855 ioc->sas_hba.sas_address = le64_to_cpu(sas_device_pg0.SASAddress); in _scsih_sas_host_add()
6858 (u64)ioc->sas_hba.sas_address, in _scsih_sas_host_add()
6893 u64 sas_address, sas_address_parent = 0; in _scsih_expander_add() local
6932 if (sas_address_parent != ioc->sas_hba.sas_address) { in _scsih_expander_add()
6946 sas_address = le64_to_cpu(expander_pg0.SASAddress); in _scsih_expander_add()
6948 sas_address, mpt3sas_get_port_by_id(ioc, port_id, 0)); in _scsih_expander_add()
6965 sas_expander->sas_address = sas_address; in _scsih_expander_add()
6976 (u64)sas_expander->sas_address, sas_expander->num_phys); in _scsih_expander_add()
7041 mpt3sas_transport_port_remove(ioc, sas_expander->sas_address, in _scsih_expander_add()
7054 mpt3sas_expander_remove(struct MPT3SAS_ADAPTER *ioc, u64 sas_address, in mpt3sas_expander_remove() argument
7068 sas_address, port); in mpt3sas_expander_remove()
7124 _scsih_check_access_status(struct MPT3SAS_ADAPTER *ioc, u64 sas_address, in _scsih_check_access_status() argument
7173 desc, (u64)sas_address, handle); in _scsih_check_access_status()
7195 u64 sas_address; in _scsih_check_device() local
7221 sas_address = le64_to_cpu(sas_device_pg0.SASAddress); in _scsih_check_device()
7226 sas_address, port); in _scsih_check_device()
7277 if (_scsih_check_access_status(ioc, sas_address, handle, in _scsih_check_device()
7282 _scsih_ublock_io_device(ioc, sas_address, port); in _scsih_check_device()
7314 u64 sas_address; in _scsih_add_device() local
7338 sas_address = le64_to_cpu(sas_device_pg0.SASAddress); in _scsih_add_device()
7349 if (_scsih_check_access_status(ioc, sas_address, handle, in _scsih_add_device()
7355 sas_address, mpt3sas_get_port_by_id(ioc, port_id, 0)); in _scsih_add_device()
7392 sas_device->sas_address = sas_address; in _scsih_add_device()
7432 handle, sas_device->sas_address, sas_device->port_type); in _scsih_add_device()
7464 sas_device->handle, (u64)sas_device->sas_address)); in _scsih_remove_device()
7472 _scsih_ublock_io_device(ioc, sas_device->sas_address, in _scsih_remove_device()
7480 sas_device->sas_address, in _scsih_remove_device()
7485 sas_device->handle, (u64)sas_device->sas_address); in _scsih_remove_device()
7492 sas_device->handle, (u64)sas_device->sas_address)); in _scsih_remove_device()
7590 u64 sas_address; in _scsih_sas_topology_change_event() local
7626 sas_address = sas_expander->sas_address; in _scsih_sas_topology_change_event()
7630 sas_address = ioc->sas_hba.sas_address; in _scsih_sas_topology_change_event()
7670 mpt3sas_transport_update_links(ioc, sas_address, in _scsih_sas_topology_change_event()
7676 _scsih_check_device(ioc, sas_address, handle, in _scsih_sas_topology_change_event()
7689 mpt3sas_transport_update_links(ioc, sas_address, in _scsih_sas_topology_change_event()
7705 mpt3sas_expander_remove(ioc, sas_address, port); in _scsih_sas_topology_change_event()
7788 u64 sas_address; in _scsih_sas_device_status_change_event() local
7804 sas_address = le64_to_cpu(event_data->SASAddress); in _scsih_sas_device_status_change_event()
7806 sas_address, in _scsih_sas_device_status_change_event()
9217 u64 sas_address; in _scsih_sas_pd_add() local
9245 if (!_scsih_get_sas_address(ioc, parent_handle, &sas_address)) in _scsih_sas_pd_add()
9246 mpt3sas_transport_update_links(ioc, sas_address, handle, in _scsih_sas_pd_add()
9502 u64 sas_address; in _scsih_sas_ir_physical_disk_event() local
9553 if (!_scsih_get_sas_address(ioc, parent_handle, &sas_address)) in _scsih_sas_ir_physical_disk_event()
9554 mpt3sas_transport_update_links(ioc, sas_address, handle, in _scsih_sas_ir_physical_disk_event()
9731 if (sas_device->sas_address != le64_to_cpu( in _scsih_mark_responding_sas_device()
9751 sas_device->sas_address); in _scsih_mark_responding_sas_device()
10145 u64 sas_address = le64_to_cpu(expander_pg0->SASAddress); in _scsih_mark_responding_expander() local
10156 if (sas_expander->sas_address != sas_address) in _scsih_mark_responding_expander()
10173 (unsigned long long)sas_expander->sas_address, in _scsih_mark_responding_expander()
10197 u64 sas_address; in _scsih_search_responding_expanders() local
10216 sas_address = le64_to_cpu(expander_pg0.SASAddress); in _scsih_search_responding_expanders()
10220 handle, (unsigned long long)sas_address, in _scsih_search_responding_expanders()
10363 mpt3sas_transport_update_links(ioc, sas_expander->sas_address, in _scsih_refresh_expander_links()
10388 u64 sas_address; in _scsih_scan_for_devices_after_reset() local
10483 &sas_address)) { in _scsih_scan_for_devices_after_reset()
10488 mpt3sas_transport_update_links(ioc, sas_address, in _scsih_scan_for_devices_after_reset()
10586 if (!_scsih_get_sas_address(ioc, parent_handle, &sas_address)) { in _scsih_scan_for_devices_after_reset()
10590 mpt3sas_transport_update_links(ioc, sas_address, handle, in _scsih_scan_for_devices_after_reset()
11061 mpt3sas_port->remote_identify.sas_address, in _scsih_expander_node_remove()
11068 mpt3sas_port->remote_identify.sas_address, in _scsih_expander_node_remove()
11074 mpt3sas_transport_port_remove(ioc, sas_expander->sas_address, in _scsih_expander_node_remove()
11080 sas_expander->sas_address, in _scsih_expander_node_remove()
11329 mpt3sas_port->remote_identify.sas_address, in scsih_remove()
11336 mpt3sas_port->remote_identify.sas_address, in scsih_remove()
11429 u64 sas_address; in _scsih_probe_boot_devices() local
11495 sas_address = sas_device->sas_address; in _scsih_probe_boot_devices()
11512 sas_address, in _scsih_probe_boot_devices()
11614 sas_device->sas_address, in _scsih_probe_sas()