Lines Matching refs:handle

73 static int _scsih_add_device(struct MPT3SAS_ADAPTER *ioc, u16 handle,
226 u16 handle; member
390 _scsih_get_sas_address(struct MPT3SAS_ADAPTER *ioc, u16 handle, in _scsih_get_sas_address() argument
399 if (handle <= ioc->sas_hba.num_phys) { in _scsih_get_sas_address()
405 MPI2_SAS_DEVICE_PGAD_FORM_HANDLE, handle))) { in _scsih_get_sas_address()
424 ioc->name, handle, ioc_status, in _scsih_get_sas_address()
557 _scsih_sas_device_find_by_handle(struct MPT3SAS_ADAPTER *ioc, u16 handle) in _scsih_sas_device_find_by_handle() argument
562 if (sas_device->handle == handle) in _scsih_sas_device_find_by_handle()
566 if (sas_device->handle == handle) in _scsih_sas_device_find_by_handle()
603 _scsih_device_remove_by_handle(struct MPT3SAS_ADAPTER *ioc, u16 handle) in _scsih_device_remove_by_handle() argument
612 sas_device = _scsih_sas_device_find_by_handle(ioc, handle); in _scsih_device_remove_by_handle()
663 ioc->name, __func__, sas_device->handle, in _scsih_sas_device_add()
670 if (!mpt3sas_transport_port_add(ioc, sas_device->handle, in _scsih_sas_device_add()
704 __func__, sas_device->handle, in _scsih_sas_device_init_add()
750 _scsih_raid_device_find_by_handle(struct MPT3SAS_ADAPTER *ioc, u16 handle) in _scsih_raid_device_find_by_handle() argument
756 if (raid_device->handle != handle) in _scsih_raid_device_find_by_handle()
807 raid_device->handle, (unsigned long long)raid_device->wwid)); in _scsih_raid_device_add()
842 mpt3sas_scsih_expander_find_by_handle(struct MPT3SAS_ADAPTER *ioc, u16 handle) in mpt3sas_scsih_expander_find_by_handle() argument
848 if (sas_expander->handle != handle) in mpt3sas_scsih_expander_find_by_handle()
1128 sas_target_priv_data->handle = MPT3SAS_INVALID_DEVICE_HANDLE; in _scsih_target_alloc()
1136 sas_target_priv_data->handle = raid_device->handle; in _scsih_target_alloc()
1152 sas_target_priv_data->handle = sas_device->handle; in _scsih_target_alloc()
1157 if (test_bit(sas_device->handle, ioc->pd_handles)) in _scsih_target_alloc()
1326 u16 handle, struct scsi_device *sdev) in _scsih_display_sata_capabilities() argument
1335 MPI2_SAS_DEVICE_PGAD_FORM_HANDLE, handle))) { in _scsih_display_sata_capabilities()
1398 u16 handle; in _scsih_get_resync() local
1401 handle = 0; in _scsih_get_resync()
1406 handle = raid_device->handle; in _scsih_get_resync()
1411 if (!handle) in _scsih_get_resync()
1415 MPI2_RAID_VOLUME_PGAD_FORM_HANDLE, handle, in _scsih_get_resync()
1447 u16 handle = 0; in _scsih_get_state() local
1453 handle = raid_device->handle; in _scsih_get_state()
1460 MPI2_RAID_VOLUME_PGAD_FORM_HANDLE, handle, in _scsih_get_state()
1537 if ((mpt3sas_config_get_number_pds(ioc, raid_device->handle, in _scsih_get_volume_capabilities()
1557 MPI2_RAID_VOLUME_PGAD_FORM_HANDLE, raid_device->handle, sz))) { in _scsih_get_volume_capabilities()
1635 u16 handle, volume_handle = 0; in _scsih_slave_configure() local
1643 handle = sas_target_priv_data->handle; in _scsih_slave_configure()
1649 raid_device = _scsih_raid_device_find_by_handle(ioc, handle); in _scsih_slave_configure()
1715 r_level, raid_device->handle, in _scsih_slave_configure()
1729 if (mpt3sas_config_get_volume_handle(ioc, handle, in _scsih_slave_configure()
1773 ds, handle, (unsigned long long)sas_device->sas_address, in _scsih_slave_configure()
1783 _scsih_display_sata_capabilities(ioc, handle, sdev); in _scsih_slave_configure()
1931 mpt3sas_scsih_set_tm_flag(struct MPT3SAS_ADAPTER *ioc, u16 handle) in mpt3sas_scsih_set_tm_flag() argument
1943 if (sas_device_priv_data->sas_target->handle == handle) { in mpt3sas_scsih_set_tm_flag()
1959 mpt3sas_scsih_clear_tm_flag(struct MPT3SAS_ADAPTER *ioc, u16 handle) in mpt3sas_scsih_clear_tm_flag() argument
1971 if (sas_device_priv_data->sas_target->handle == handle) { in mpt3sas_scsih_clear_tm_flag()
1999 mpt3sas_scsih_issue_tm(struct MPT3SAS_ADAPTER *ioc, u16 handle, uint channel, in mpt3sas_scsih_issue_tm() argument
2060 ioc->name, handle, type, smid_task)); in mpt3sas_scsih_issue_tm()
2067 mpi_request->DevHandle = cpu_to_le16(handle); in mpt3sas_scsih_issue_tm()
2071 mpt3sas_scsih_set_tm_flag(ioc, handle); in mpt3sas_scsih_issue_tm()
2085 mpt3sas_scsih_clear_tm_flag(ioc, handle); in mpt3sas_scsih_issue_tm()
2135 mpt3sas_scsih_clear_tm_flag(ioc, handle); in mpt3sas_scsih_issue_tm()
2172 device_str, priv_target->handle, in _scsih_tm_display_info()
2189 sas_device->handle, in _scsih_tm_display_info()
2213 u16 handle; in _scsih_abort() local
2249 handle = sas_device_priv_data->sas_target->handle; in _scsih_abort()
2250 r = mpt3sas_scsih_issue_tm(ioc, handle, scmd->device->channel, in _scsih_abort()
2273 u16 handle; in _scsih_dev_reset() local
2291 handle = 0; in _scsih_dev_reset()
2296 sas_device_priv_data->sas_target->handle); in _scsih_dev_reset()
2298 handle = sas_device->volume_handle; in _scsih_dev_reset()
2301 handle = sas_device_priv_data->sas_target->handle; in _scsih_dev_reset()
2303 if (!handle) { in _scsih_dev_reset()
2309 r = mpt3sas_scsih_issue_tm(ioc, handle, scmd->device->channel, in _scsih_dev_reset()
2332 u16 handle; in _scsih_target_reset() local
2351 handle = 0; in _scsih_target_reset()
2356 sas_device_priv_data->sas_target->handle); in _scsih_target_reset()
2358 handle = sas_device->volume_handle; in _scsih_target_reset()
2361 handle = sas_device_priv_data->sas_target->handle; in _scsih_target_reset()
2363 if (!handle) { in _scsih_target_reset()
2369 r = mpt3sas_scsih_issue_tm(ioc, handle, scmd->device->channel, in _scsih_target_reset()
2576 sas_device_priv_data->sas_target->handle)); in _scsih_ublock_io_all_device()
2631 sas_device_priv_data->sas_target->handle); in _scsih_block_io_all_device()
2643 _scsih_block_io_device(struct MPT3SAS_ADAPTER *ioc, u16 handle) in _scsih_block_io_device() argument
2652 if (sas_device_priv_data->sas_target->handle != handle) in _scsih_block_io_device()
2659 "device_blocked, handle(0x%04x)\n", handle); in _scsih_block_io_device()
2693 set_bit(sas_device->handle, in _scsih_block_io_to_children_attached_to_ex()
2728 u16 handle; in _scsih_block_io_to_children_attached_directly() local
2732 handle = le16_to_cpu(event_data->PHY[i].AttachedDevHandle); in _scsih_block_io_to_children_attached_directly()
2733 if (!handle) in _scsih_block_io_to_children_attached_directly()
2738 _scsih_block_io_device(ioc, handle); in _scsih_block_io_to_children_attached_directly()
2758 _scsih_tm_tr_send(struct MPT3SAS_ADAPTER *ioc, u16 handle) in _scsih_tm_tr_send() argument
2772 __func__, ioc->name, handle)); in _scsih_tm_tr_send()
2778 handle)); in _scsih_tm_tr_send()
2786 handle)); in _scsih_tm_tr_send()
2791 if (test_bit(handle, ioc->pd_handles)) in _scsih_tm_tr_send()
2795 sas_device = _scsih_sas_device_find_by_handle(ioc, handle); in _scsih_tm_tr_send()
2807 ioc->name, handle, in _scsih_tm_tr_send()
2810 sas_target_priv_data->handle = MPT3SAS_INVALID_DEVICE_HANDLE; in _scsih_tm_tr_send()
2819 delayed_tr->handle = handle; in _scsih_tm_tr_send()
2823 ioc->name, handle)); in _scsih_tm_tr_send()
2829 ioc->name, handle, smid, in _scsih_tm_tr_send()
2834 mpi_request->DevHandle = cpu_to_le16(handle); in _scsih_tm_tr_send()
2860 u16 handle; in _scsih_tm_tr_complete() local
2890 handle = le16_to_cpu(mpi_request_tm->DevHandle); in _scsih_tm_tr_complete()
2891 if (handle != le16_to_cpu(mpi_reply->DevHandle)) { in _scsih_tm_tr_complete()
2894 ioc->name, handle, in _scsih_tm_tr_complete()
2903 handle, smid, le16_to_cpu(mpi_reply->IOCStatus), in _scsih_tm_tr_complete()
2916 ioc->name, handle, smid_sas_ctrl, in _scsih_tm_tr_complete()
2976 _scsih_tm_tr_volume_send(struct MPT3SAS_ADAPTER *ioc, u16 handle) in _scsih_tm_tr_volume_send() argument
2996 delayed_tr->handle = handle; in _scsih_tm_tr_volume_send()
3000 ioc->name, handle)); in _scsih_tm_tr_volume_send()
3006 ioc->name, handle, smid, in _scsih_tm_tr_volume_send()
3011 mpi_request->DevHandle = cpu_to_le16(handle); in _scsih_tm_tr_volume_send()
3031 u16 handle; in _scsih_tm_volume_tr_complete() local
3050 handle = le16_to_cpu(mpi_request_tm->DevHandle); in _scsih_tm_volume_tr_complete()
3051 if (handle != le16_to_cpu(mpi_reply->DevHandle)) { in _scsih_tm_volume_tr_complete()
3054 ioc->name, handle, in _scsih_tm_volume_tr_complete()
3062 handle, smid, le16_to_cpu(mpi_reply->IOCStatus), in _scsih_tm_volume_tr_complete()
3090 _scsih_tm_tr_volume_send(ioc, delayed_tr->handle); in _scsih_check_for_pending_tm()
3100 _scsih_tm_tr_send(ioc, delayed_tr->handle); in _scsih_check_for_pending_tm()
3132 u16 handle; in _scsih_check_topo_delete_events() local
3135 handle = le16_to_cpu(event_data->PHY[i].AttachedDevHandle); in _scsih_check_topo_delete_events()
3136 if (!handle) in _scsih_check_topo_delete_events()
3141 _scsih_tm_tr_send(ioc, handle); in _scsih_check_topo_delete_events()
3158 handle = find_first_bit(ioc->blocking_handles, in _scsih_check_topo_delete_events()
3160 if (handle < ioc->facts.MaxDevHandle) in _scsih_check_topo_delete_events()
3161 _scsih_block_io_device(ioc, handle); in _scsih_check_topo_delete_events()
3162 } while (test_and_clear_bit(handle, ioc->blocking_handles)); in _scsih_check_topo_delete_events()
3200 _scsih_set_volume_delete_flag(struct MPT3SAS_ADAPTER *ioc, u16 handle) in _scsih_set_volume_delete_flag() argument
3207 raid_device = _scsih_raid_device_find_by_handle(ioc, handle); in _scsih_set_volume_delete_flag()
3215 "wwid(0x%016llx)\n", ioc->name, handle, in _scsih_set_volume_delete_flag()
3232 _scsih_set_volume_handle_for_tr(u16 handle, u16 *a, u16 *b) in _scsih_set_volume_handle_for_tr() argument
3234 if (!handle || handle == *a || handle == *b) in _scsih_set_volume_handle_for_tr()
3237 *a = handle; in _scsih_set_volume_handle_for_tr()
3239 *b = handle; in _scsih_set_volume_handle_for_tr()
3262 u16 handle, volume_handle, a, b; in _scsih_check_ir_config_unhide_events() local
3306 handle = le16_to_cpu(element->PhysDiskDevHandle); in _scsih_check_ir_config_unhide_events()
3308 clear_bit(handle, ioc->pd_handles); in _scsih_check_ir_config_unhide_events()
3310 _scsih_tm_tr_send(ioc, handle); in _scsih_check_ir_config_unhide_events()
3315 delayed_tr->handle = handle; in _scsih_check_ir_config_unhide_events()
3319 handle)); in _scsih_check_ir_config_unhide_events()
3321 _scsih_tm_tr_send(ioc, handle); in _scsih_check_ir_config_unhide_events()
3524 u16 handle; in _scsih_qcmd() local
3547 handle = sas_target_priv_data->handle; in _scsih_qcmd()
3548 if (handle == MPT3SAS_INVALID_DEVICE_HANDLE) { in _scsih_qcmd()
3601 mpi_request->DevHandle = cpu_to_le16(handle); in _scsih_qcmd()
3626 mpt3sas_base_put_smid_fast_path(ioc, smid, handle); in _scsih_qcmd()
3628 mpt3sas_base_put_smid_scsi_io(ioc, smid, handle); in _scsih_qcmd()
3875 _scsih_turn_on_pfa_led(struct MPT3SAS_ADAPTER *ioc, u16 handle) in _scsih_turn_on_pfa_led() argument
3881 sas_device = _scsih_sas_device_find_by_handle(ioc, handle); in _scsih_turn_on_pfa_led()
3890 mpi_request.DevHandle = cpu_to_le16(handle); in _scsih_turn_on_pfa_led()
3955 _scsih_send_event_to_turn_on_pfa_led(struct MPT3SAS_ADAPTER *ioc, u16 handle) in _scsih_send_event_to_turn_on_pfa_led() argument
3963 fw_event->device_handle = handle; in _scsih_send_event_to_turn_on_pfa_led()
3977 _scsih_smart_predicted_fault(struct MPT3SAS_ADAPTER *ioc, u16 handle) in _scsih_smart_predicted_fault() argument
3989 sas_device = _scsih_sas_device_find_by_handle(ioc, handle); in _scsih_smart_predicted_fault()
4006 _scsih_send_event_to_turn_on_pfa_led(ioc, handle); in _scsih_smart_predicted_fault()
4028 event_data->DevHandle = cpu_to_le16(handle); in _scsih_smart_predicted_fault()
4283 ioc->sas_hba.handle = le16_to_cpu(sas_iounit_pg0-> in _scsih_sas_host_refresh()
4285 ioc->sas_hba.phy[i].handle = ioc->sas_hba.handle; in _scsih_sas_host_refresh()
4407 ioc->sas_hba.handle = le16_to_cpu(sas_iounit_pg0-> in _scsih_sas_host_add()
4409 ioc->sas_hba.phy[i].handle = ioc->sas_hba.handle; in _scsih_sas_host_add()
4415 MPI2_SAS_DEVICE_PGAD_FORM_HANDLE, ioc->sas_hba.handle))) { in _scsih_sas_host_add()
4425 ioc->name, ioc->sas_hba.handle, in _scsih_sas_host_add()
4452 _scsih_expander_add(struct MPT3SAS_ADAPTER *ioc, u16 handle) in _scsih_expander_add() argument
4468 if (!handle) in _scsih_expander_add()
4475 MPI2_SAS_EXPAND_PGAD_FORM_HNDL, handle))) { in _scsih_expander_add()
4526 sas_expander->handle = handle; in _scsih_expander_add()
4533 handle, parent_handle, (unsigned long long) in _scsih_expander_add()
4548 mpt3sas_port = mpt3sas_transport_port_add(ioc, handle, in _scsih_expander_add()
4560 &expander_pg1, i, handle))) { in _scsih_expander_add()
4566 sas_expander->phy[i].handle = handle; in _scsih_expander_add()
4676 u16 handle, u8 access_status) in _scsih_check_access_status() argument
4725 ioc->name, desc, (unsigned long long)sas_address, handle); in _scsih_check_access_status()
4741 u64 parent_sas_address, u16 handle, u8 phy_number, u8 link_rate) in _scsih_check_device() argument
4755 MPI2_SAS_DEVICE_PGAD_FORM_HANDLE, handle))) in _scsih_check_device()
4783 if (unlikely(sas_device->handle != handle)) { in _scsih_check_device()
4788 sas_device->handle, handle); in _scsih_check_device()
4789 sas_target_priv_data->handle = handle; in _scsih_check_device()
4790 sas_device->handle = handle; in _scsih_check_device()
4798 ioc->name, handle); in _scsih_check_device()
4804 if (_scsih_check_access_status(ioc, sas_address, handle, in _scsih_check_device()
4827 _scsih_add_device(struct MPT3SAS_ADAPTER *ioc, u16 handle, u8 phy_num, in _scsih_add_device() argument
4840 MPI2_SAS_DEVICE_PGAD_FORM_HANDLE, handle))) { in _scsih_add_device()
4864 ioc->name, handle); in _scsih_add_device()
4869 if (_scsih_check_access_status(ioc, sas_address, handle, in _scsih_add_device()
4889 sas_device->handle = handle; in _scsih_add_device()
4944 sas_device->handle, (unsigned long long) in _scsih_remove_device()
4951 sas_target_priv_data->handle = in _scsih_remove_device()
4960 ioc->name, sas_device->handle, in _scsih_remove_device()
4966 sas_device->handle, (unsigned long long) in _scsih_remove_device()
4984 u16 handle; in _scsih_sas_topology_change_event_debug() local
5016 handle = le16_to_cpu(event_data->PHY[i].AttachedDevHandle); in _scsih_sas_topology_change_event_debug()
5017 if (!handle) in _scsih_sas_topology_change_event_debug()
5046 handle, status_str, link_rate, prev_link_rate); in _scsih_sas_topology_change_event_debug()
5064 u16 parent_handle, handle; in _scsih_sas_topology_change_event() local
5134 handle = le16_to_cpu(event_data->PHY[i].AttachedDevHandle); in _scsih_sas_topology_change_event()
5135 if (!handle) in _scsih_sas_topology_change_event()
5149 handle, phy_number, link_rate); in _scsih_sas_topology_change_event()
5154 _scsih_check_device(ioc, sas_address, handle, in _scsih_sas_topology_change_event()
5164 handle, phy_number, link_rate); in _scsih_sas_topology_change_event()
5166 _scsih_add_device(ioc, handle, phy_number, 0); in _scsih_sas_topology_change_event()
5171 _scsih_device_remove_by_handle(ioc, handle); in _scsih_sas_topology_change_event()
5387 u16 smid, handle; in _scsih_sas_broadcast_primitive_event() local
5444 handle = sas_device_priv_data->sas_target->handle; in _scsih_sas_broadcast_primitive_event()
5452 r = mpt3sas_scsih_issue_tm(ioc, handle, 0, 0, lun, in _scsih_sas_broadcast_primitive_event()
5493 r = mpt3sas_scsih_issue_tm(ioc, handle, sdev->channel, sdev->id, in _scsih_sas_broadcast_primitive_event()
5582 _scsih_ir_fastpath(struct MPT3SAS_ADAPTER *ioc, u16 handle, u8 phys_disk_num) in _scsih_ir_fastpath() argument
5622 handle, phys_disk_num)); in _scsih_ir_fastpath()
5699 u16 handle = le16_to_cpu(element->VolDevHandle); in _scsih_sas_volume_add() local
5702 mpt3sas_config_get_volume_wwid(ioc, handle, &wwid); in _scsih_sas_volume_add()
5727 raid_device->handle = handle; in _scsih_sas_volume_add()
5751 _scsih_sas_volume_delete(struct MPT3SAS_ADAPTER *ioc, u16 handle) in _scsih_sas_volume_delete() argument
5759 raid_device = _scsih_raid_device_find_by_handle(ioc, handle); in _scsih_sas_volume_delete()
5767 ioc->name, raid_device->handle, in _scsih_sas_volume_delete()
5793 u16 handle = le16_to_cpu(element->PhysDiskDevHandle); in _scsih_sas_pd_expose() local
5796 sas_device = _scsih_sas_device_find_by_handle(ioc, handle); in _scsih_sas_pd_expose()
5800 clear_bit(handle, ioc->pd_handles); in _scsih_sas_pd_expose()
5833 u16 handle = le16_to_cpu(element->PhysDiskDevHandle); in _scsih_sas_pd_hide() local
5837 mpt3sas_config_get_volume_handle(ioc, handle, &volume_handle); in _scsih_sas_pd_hide()
5843 sas_device = _scsih_sas_device_find_by_handle(ioc, handle); in _scsih_sas_pd_hide()
5845 set_bit(handle, ioc->pd_handles); in _scsih_sas_pd_hide()
5860 _scsih_ir_fastpath(ioc, handle, element->PhysDiskNum); in _scsih_sas_pd_hide()
5877 u16 handle = le16_to_cpu(element->PhysDiskDevHandle); in _scsih_sas_pd_delete() local
5879 _scsih_device_remove_by_handle(ioc, handle); in _scsih_sas_pd_delete()
5896 u16 handle = le16_to_cpu(element->PhysDiskDevHandle); in _scsih_sas_pd_add() local
5903 set_bit(handle, ioc->pd_handles); in _scsih_sas_pd_add()
5906 sas_device = _scsih_sas_device_find_by_handle(ioc, handle); in _scsih_sas_pd_add()
5909 _scsih_ir_fastpath(ioc, handle, element->PhysDiskNum); in _scsih_sas_pd_add()
5914 MPI2_SAS_DEVICE_PGAD_FORM_HANDLE, handle))) { in _scsih_sas_pd_add()
5930 mpt3sas_transport_update_links(ioc, sas_address, handle, in _scsih_sas_pd_add()
5933 _scsih_ir_fastpath(ioc, handle, element->PhysDiskNum); in _scsih_sas_pd_add()
5934 _scsih_add_device(ioc, handle, 0, 1); in _scsih_sas_pd_add()
6103 u16 handle; in _scsih_sas_ir_volume_event() local
6115 handle = le16_to_cpu(event_data->VolDevHandle); in _scsih_sas_ir_volume_event()
6119 ioc->name, __func__, handle, in _scsih_sas_ir_volume_event()
6124 _scsih_sas_volume_delete(ioc, handle); in _scsih_sas_ir_volume_event()
6132 raid_device = _scsih_raid_device_find_by_handle(ioc, handle); in _scsih_sas_ir_volume_event()
6138 mpt3sas_config_get_volume_wwid(ioc, handle, &wwid); in _scsih_sas_ir_volume_event()
6156 raid_device->handle = handle; in _scsih_sas_ir_volume_event()
6183 u16 handle, parent_handle; in _scsih_sas_ir_physical_disk_event() local
6200 handle = le16_to_cpu(event_data->PhysDiskDevHandle); in _scsih_sas_ir_physical_disk_event()
6205 ioc->name, __func__, handle, in _scsih_sas_ir_physical_disk_event()
6214 set_bit(handle, ioc->pd_handles); in _scsih_sas_ir_physical_disk_event()
6216 sas_device = _scsih_sas_device_find_by_handle(ioc, handle); in _scsih_sas_ir_physical_disk_event()
6224 handle))) { in _scsih_sas_ir_physical_disk_event()
6240 mpt3sas_transport_update_links(ioc, sas_address, handle, in _scsih_sas_ir_physical_disk_event()
6243 _scsih_add_device(ioc, handle, 0, 1); in _scsih_sas_ir_physical_disk_event()
6316 u16 handle; in _scsih_sas_ir_operation_status_event() local
6328 handle = le16_to_cpu(event_data->VolDevHandle); in _scsih_sas_ir_operation_status_event()
6329 raid_device = _scsih_raid_device_find_by_handle(ioc, handle); in _scsih_sas_ir_operation_status_event()
6371 u16 slot, u16 handle) in _scsih_mark_responding_sas_device() argument
6394 "slot(%d)\n", handle, in _scsih_mark_responding_sas_device()
6399 if (sas_device->handle == handle) in _scsih_mark_responding_sas_device()
6402 sas_device->handle); in _scsih_mark_responding_sas_device()
6403 sas_device->handle = handle; in _scsih_mark_responding_sas_device()
6405 sas_target_priv_data->handle = handle; in _scsih_mark_responding_sas_device()
6428 u16 handle; in _scsih_search_responding_sas_devices() local
6436 handle = 0xFFFF; in _scsih_search_responding_sas_devices()
6439 handle))) { in _scsih_search_responding_sas_devices()
6444 handle = le16_to_cpu(sas_device_pg0.DevHandle); in _scsih_search_responding_sas_devices()
6450 le16_to_cpu(sas_device_pg0.Slot), handle); in _scsih_search_responding_sas_devices()
6471 u16 handle) in _scsih_mark_responding_raid_device() argument
6490 "handle(0x%04x), wwid(0x%016llx)\n", handle, in _scsih_mark_responding_raid_device()
6493 if (raid_device->handle == handle) { in _scsih_mark_responding_raid_device()
6499 raid_device->handle); in _scsih_mark_responding_raid_device()
6500 raid_device->handle = handle; in _scsih_mark_responding_raid_device()
6502 sas_target_priv_data->handle = handle; in _scsih_mark_responding_raid_device()
6527 u16 handle; in _scsih_search_responding_raid_devices() local
6539 handle = 0xFFFF; in _scsih_search_responding_raid_devices()
6541 &volume_pg1, MPI2_RAID_VOLUME_PGAD_FORM_GET_NEXT_HANDLE, handle))) { in _scsih_search_responding_raid_devices()
6546 handle = le16_to_cpu(volume_pg1.DevHandle); in _scsih_search_responding_raid_devices()
6549 &volume_pg0, MPI2_RAID_VOLUME_PGAD_FORM_HANDLE, handle, in _scsih_search_responding_raid_devices()
6557 le64_to_cpu(volume_pg1.WWID), handle); in _scsih_search_responding_raid_devices()
6571 handle = le16_to_cpu(pd_pg0.DevHandle); in _scsih_search_responding_raid_devices()
6572 set_bit(handle, ioc->pd_handles); in _scsih_search_responding_raid_devices()
6592 u16 handle) in _scsih_mark_responding_expander() argument
6603 if (sas_expander->handle == handle) in _scsih_mark_responding_expander()
6608 sas_expander->handle, handle); in _scsih_mark_responding_expander()
6609 sas_expander->handle = handle; in _scsih_mark_responding_expander()
6611 sas_expander->phy[i].handle = handle; in _scsih_mark_responding_expander()
6634 u16 handle; in _scsih_search_responding_expanders() local
6641 handle = 0xFFFF; in _scsih_search_responding_expanders()
6643 MPI2_SAS_EXPAND_PGAD_FORM_GET_NEXT_HNDL, handle))) { in _scsih_search_responding_expanders()
6650 handle = le16_to_cpu(expander_pg0.DevHandle); in _scsih_search_responding_expanders()
6653 handle, in _scsih_search_responding_expanders()
6655 _scsih_mark_responding_expander(ioc, sas_address, handle); in _scsih_search_responding_expanders()
6700 raid_device->handle); in _scsih_remove_unresponding_sas_devices()
6734 struct _sas_node *sas_expander, u16 handle) in _scsih_refresh_expander_links() argument
6742 &expander_pg1, i, handle))) { in _scsih_refresh_expander_links()
6772 u16 handle, parent_handle; in _scsih_scan_for_devices_after_reset() local
6787 handle = 0xFFFF; in _scsih_scan_for_devices_after_reset()
6789 MPI2_SAS_EXPAND_PGAD_FORM_GET_NEXT_HNDL, handle))) { in _scsih_scan_for_devices_after_reset()
6799 handle = le16_to_cpu(expander_pg0.DevHandle); in _scsih_scan_for_devices_after_reset()
6806 handle); in _scsih_scan_for_devices_after_reset()
6810 handle, (unsigned long long) in _scsih_scan_for_devices_after_reset()
6812 _scsih_expander_add(ioc, handle); in _scsih_scan_for_devices_after_reset()
6815 handle, (unsigned long long) in _scsih_scan_for_devices_after_reset()
6843 handle = le16_to_cpu(pd_pg0.DevHandle); in _scsih_scan_for_devices_after_reset()
6845 sas_device = _scsih_sas_device_find_by_handle(ioc, handle); in _scsih_scan_for_devices_after_reset()
6851 handle) != 0) in _scsih_scan_for_devices_after_reset()
6867 ioc->name, handle, (unsigned long long) in _scsih_scan_for_devices_after_reset()
6870 handle, sas_device_pg0.PhyNum, in _scsih_scan_for_devices_after_reset()
6872 set_bit(handle, ioc->pd_handles); in _scsih_scan_for_devices_after_reset()
6878 while (_scsih_add_device(ioc, handle, retry_count++, in _scsih_scan_for_devices_after_reset()
6884 ioc->name, handle, (unsigned long long) in _scsih_scan_for_devices_after_reset()
6895 handle = 0xFFFF; in _scsih_scan_for_devices_after_reset()
6897 &volume_pg1, MPI2_RAID_VOLUME_PGAD_FORM_GET_NEXT_HANDLE, handle))) { in _scsih_scan_for_devices_after_reset()
6907 handle = le16_to_cpu(volume_pg1.DevHandle); in _scsih_scan_for_devices_after_reset()
6915 &volume_pg0, MPI2_RAID_VOLUME_PGAD_FORM_HANDLE, handle, in _scsih_scan_for_devices_after_reset()
6952 handle = 0xFFFF; in _scsih_scan_for_devices_after_reset()
6955 handle))) { in _scsih_scan_for_devices_after_reset()
6965 handle = le16_to_cpu(sas_device_pg0.DevHandle); in _scsih_scan_for_devices_after_reset()
6979 handle, (unsigned long long) in _scsih_scan_for_devices_after_reset()
6981 mpt3sas_transport_update_links(ioc, sas_address, handle, in _scsih_scan_for_devices_after_reset()
6988 while (_scsih_add_device(ioc, handle, retry_count++, in _scsih_scan_for_devices_after_reset()
6994 handle, (unsigned long long) in _scsih_scan_for_devices_after_reset()
7328 sas_expander->handle, (unsigned long long) in _scsih_expander_node_remove()
7445 ioc->name, raid_device->handle, in _scsih_remove()
7523 u16 handle; in _scsih_probe_boot_devices() local
7558 handle = sas_device->handle; in _scsih_probe_boot_devices()
7564 if (!mpt3sas_transport_port_add(ioc, handle, in _scsih_probe_boot_devices()
7617 if (!mpt3sas_transport_port_add(ioc, sas_device->handle, in _scsih_probe_sas()