Lines Matching refs:handle
69 static int _scsih_add_device(struct MPT3SAS_ADAPTER *ioc, u16 handle,
257 u16 handle; member
401 _scsih_get_sas_address(struct MPT3SAS_ADAPTER *ioc, u16 handle, in _scsih_get_sas_address() argument
410 if (handle <= ioc->sas_hba.num_phys) { in _scsih_get_sas_address()
416 MPI2_SAS_DEVICE_PGAD_FORM_HANDLE, handle))) { in _scsih_get_sas_address()
435 ioc->name, handle, ioc_status, in _scsih_get_sas_address()
610 __mpt3sas_get_sdev_by_handle(struct MPT3SAS_ADAPTER *ioc, u16 handle) in __mpt3sas_get_sdev_by_handle() argument
617 if (sas_device->handle == handle) in __mpt3sas_get_sdev_by_handle()
621 if (sas_device->handle == handle) in __mpt3sas_get_sdev_by_handle()
641 mpt3sas_get_sdev_by_handle(struct MPT3SAS_ADAPTER *ioc, u16 handle) in mpt3sas_get_sdev_by_handle() argument
647 sas_device = __mpt3sas_get_sdev_by_handle(ioc, handle); in mpt3sas_get_sdev_by_handle()
671 ioc->name, sas_device->handle, in _scsih_sas_device_remove()
706 _scsih_device_remove_by_handle(struct MPT3SAS_ADAPTER *ioc, u16 handle) in _scsih_device_remove_by_handle() argument
715 sas_device = __mpt3sas_get_sdev_by_handle(ioc, handle); in _scsih_device_remove_by_handle()
773 ioc->name, __func__, sas_device->handle, in _scsih_sas_device_add()
793 if (!mpt3sas_transport_port_add(ioc, sas_device->handle, in _scsih_sas_device_add()
827 __func__, sas_device->handle, in _scsih_sas_device_init_add()
886 mpt3sas_raid_device_find_by_handle(struct MPT3SAS_ADAPTER *ioc, u16 handle) in mpt3sas_raid_device_find_by_handle() argument
892 if (raid_device->handle != handle) in mpt3sas_raid_device_find_by_handle()
943 raid_device->handle, (unsigned long long)raid_device->wwid)); in _scsih_raid_device_add()
978 mpt3sas_scsih_expander_find_by_handle(struct MPT3SAS_ADAPTER *ioc, u16 handle) in mpt3sas_scsih_expander_find_by_handle() argument
984 if (sas_expander->handle != handle) in mpt3sas_scsih_expander_find_by_handle()
1267 sas_target_priv_data->handle = MPT3SAS_INVALID_DEVICE_HANDLE; in scsih_target_alloc()
1275 sas_target_priv_data->handle = raid_device->handle; in scsih_target_alloc()
1293 sas_target_priv_data->handle = sas_device->handle; in scsih_target_alloc()
1299 if (test_bit(sas_device->handle, ioc->pd_handles)) in scsih_target_alloc()
1483 u16 handle, struct scsi_device *sdev) in _scsih_display_sata_capabilities() argument
1492 MPI2_SAS_DEVICE_PGAD_FORM_HANDLE, handle))) { in _scsih_display_sata_capabilities()
1558 u16 handle; in scsih_get_resync() local
1561 handle = 0; in scsih_get_resync()
1569 handle = raid_device->handle; in scsih_get_resync()
1574 if (!handle) in scsih_get_resync()
1578 MPI2_RAID_VOLUME_PGAD_FORM_HANDLE, handle, in scsih_get_resync()
1613 u16 handle = 0; in scsih_get_state() local
1619 handle = raid_device->handle; in scsih_get_state()
1626 MPI2_RAID_VOLUME_PGAD_FORM_HANDLE, handle, in scsih_get_state()
1712 if ((mpt3sas_config_get_number_pds(ioc, raid_device->handle, in _scsih_get_volume_capabilities()
1732 MPI2_RAID_VOLUME_PGAD_FORM_HANDLE, raid_device->handle, sz))) { in _scsih_get_volume_capabilities()
1808 u16 handle, volume_handle = 0; in scsih_slave_configure() local
1816 handle = sas_target_priv_data->handle; in scsih_slave_configure()
1822 raid_device = mpt3sas_raid_device_find_by_handle(ioc, handle); in scsih_slave_configure()
1894 r_level, raid_device->handle, in scsih_slave_configure()
1908 if (mpt3sas_config_get_volume_handle(ioc, handle, in scsih_slave_configure()
1952 ds, handle, (unsigned long long)sas_device->sas_address, in scsih_slave_configure()
1969 _scsih_display_sata_capabilities(ioc, handle, sdev); in scsih_slave_configure()
2117 mpt3sas_scsih_set_tm_flag(struct MPT3SAS_ADAPTER *ioc, u16 handle) in mpt3sas_scsih_set_tm_flag() argument
2129 if (sas_device_priv_data->sas_target->handle == handle) { in mpt3sas_scsih_set_tm_flag()
2145 mpt3sas_scsih_clear_tm_flag(struct MPT3SAS_ADAPTER *ioc, u16 handle) in mpt3sas_scsih_clear_tm_flag() argument
2157 if (sas_device_priv_data->sas_target->handle == handle) { in mpt3sas_scsih_clear_tm_flag()
2185 mpt3sas_scsih_issue_tm(struct MPT3SAS_ADAPTER *ioc, u16 handle, uint channel, in mpt3sas_scsih_issue_tm() argument
2246 ioc->name, handle, type, smid_task)); in mpt3sas_scsih_issue_tm()
2253 mpi_request->DevHandle = cpu_to_le16(handle); in mpt3sas_scsih_issue_tm()
2257 mpt3sas_scsih_set_tm_flag(ioc, handle); in mpt3sas_scsih_issue_tm()
2271 mpt3sas_scsih_clear_tm_flag(ioc, handle); in mpt3sas_scsih_issue_tm()
2321 mpt3sas_scsih_clear_tm_flag(ioc, handle); in mpt3sas_scsih_issue_tm()
2361 device_str, priv_target->handle, in _scsih_tm_display_info()
2377 sas_device->handle, in _scsih_tm_display_info()
2410 u16 handle; in scsih_abort() local
2446 handle = sas_device_priv_data->sas_target->handle; in scsih_abort()
2447 r = mpt3sas_scsih_issue_tm(ioc, handle, scmd->device->channel, in scsih_abort()
2469 u16 handle; in scsih_dev_reset() local
2490 handle = 0; in scsih_dev_reset()
2496 handle = sas_device->volume_handle; in scsih_dev_reset()
2498 handle = sas_device_priv_data->sas_target->handle; in scsih_dev_reset()
2500 if (!handle) { in scsih_dev_reset()
2506 r = mpt3sas_scsih_issue_tm(ioc, handle, scmd->device->channel, in scsih_dev_reset()
2532 u16 handle; in scsih_target_reset() local
2552 handle = 0; in scsih_target_reset()
2558 handle = sas_device->volume_handle; in scsih_target_reset()
2560 handle = sas_device_priv_data->sas_target->handle; in scsih_target_reset()
2562 if (!handle) { in scsih_target_reset()
2568 r = mpt3sas_scsih_issue_tm(ioc, handle, scmd->device->channel, in scsih_target_reset()
2804 sas_device_priv_data->sas_target->handle); in _scsih_internal_device_block()
2811 sas_device_priv_data->sas_target->handle, r); in _scsih_internal_device_block()
2829 "handle(0x%04x)\n", sas_device_priv_data->sas_target->handle); in _scsih_internal_device_unblock()
2841 sas_device_priv_data->sas_target->handle, r); in _scsih_internal_device_unblock()
2847 sas_device_priv_data->sas_target->handle, r); in _scsih_internal_device_unblock()
2854 sas_device_priv_data->sas_target->handle, r); in _scsih_internal_device_unblock()
2879 sas_device_priv_data->sas_target->handle)); in _scsih_ublock_io_all_device()
2942 _scsih_block_io_device(struct MPT3SAS_ADAPTER *ioc, u16 handle) in _scsih_block_io_device() argument
2948 sas_device = mpt3sas_get_sdev_by_handle(ioc, handle); in _scsih_block_io_device()
2956 if (sas_device_priv_data->sas_target->handle != handle) in _scsih_block_io_device()
2997 set_bit(sas_device->handle, in _scsih_block_io_to_children_attached_to_ex()
3034 u16 handle; in _scsih_block_io_to_children_attached_directly() local
3038 handle = le16_to_cpu(event_data->PHY[i].AttachedDevHandle); in _scsih_block_io_to_children_attached_directly()
3039 if (!handle) in _scsih_block_io_to_children_attached_directly()
3044 _scsih_block_io_device(ioc, handle); in _scsih_block_io_to_children_attached_directly()
3064 _scsih_tm_tr_send(struct MPT3SAS_ADAPTER *ioc, u16 handle) in _scsih_tm_tr_send() argument
3078 __func__, ioc->name, handle)); in _scsih_tm_tr_send()
3084 handle)); in _scsih_tm_tr_send()
3092 handle)); in _scsih_tm_tr_send()
3097 if (test_bit(handle, ioc->pd_handles)) in _scsih_tm_tr_send()
3101 sas_device = __mpt3sas_get_sdev_by_handle(ioc, handle); in _scsih_tm_tr_send()
3113 ioc->name, handle, in _scsih_tm_tr_send()
3128 sas_target_priv_data->handle = MPT3SAS_INVALID_DEVICE_HANDLE; in _scsih_tm_tr_send()
3137 delayed_tr->handle = handle; in _scsih_tm_tr_send()
3141 ioc->name, handle)); in _scsih_tm_tr_send()
3147 ioc->name, handle, smid, in _scsih_tm_tr_send()
3152 mpi_request->DevHandle = cpu_to_le16(handle); in _scsih_tm_tr_send()
3182 u16 handle; in _scsih_tm_tr_complete() local
3212 handle = le16_to_cpu(mpi_request_tm->DevHandle); in _scsih_tm_tr_complete()
3213 if (handle != le16_to_cpu(mpi_reply->DevHandle)) { in _scsih_tm_tr_complete()
3216 ioc->name, handle, in _scsih_tm_tr_complete()
3225 handle, smid, le16_to_cpu(mpi_reply->IOCStatus), in _scsih_tm_tr_complete()
3238 ioc->name, handle, smid_sas_ctrl, in _scsih_tm_tr_complete()
3298 _scsih_tm_tr_volume_send(struct MPT3SAS_ADAPTER *ioc, u16 handle) in _scsih_tm_tr_volume_send() argument
3318 delayed_tr->handle = handle; in _scsih_tm_tr_volume_send()
3322 ioc->name, handle)); in _scsih_tm_tr_volume_send()
3328 ioc->name, handle, smid, in _scsih_tm_tr_volume_send()
3333 mpi_request->DevHandle = cpu_to_le16(handle); in _scsih_tm_tr_volume_send()
3353 u16 handle; in _scsih_tm_volume_tr_complete() local
3372 handle = le16_to_cpu(mpi_request_tm->DevHandle); in _scsih_tm_volume_tr_complete()
3373 if (handle != le16_to_cpu(mpi_reply->DevHandle)) { in _scsih_tm_volume_tr_complete()
3376 ioc->name, handle, in _scsih_tm_volume_tr_complete()
3384 handle, smid, le16_to_cpu(mpi_reply->IOCStatus), in _scsih_tm_volume_tr_complete()
3412 _scsih_tm_tr_volume_send(ioc, delayed_tr->handle); in _scsih_check_for_pending_tm()
3422 _scsih_tm_tr_send(ioc, delayed_tr->handle); in _scsih_check_for_pending_tm()
3454 u16 handle; in _scsih_check_topo_delete_events() local
3457 handle = le16_to_cpu(event_data->PHY[i].AttachedDevHandle); in _scsih_check_topo_delete_events()
3458 if (!handle) in _scsih_check_topo_delete_events()
3463 _scsih_tm_tr_send(ioc, handle); in _scsih_check_topo_delete_events()
3480 handle = find_first_bit(ioc->blocking_handles, in _scsih_check_topo_delete_events()
3482 if (handle < ioc->facts.MaxDevHandle) in _scsih_check_topo_delete_events()
3483 _scsih_block_io_device(ioc, handle); in _scsih_check_topo_delete_events()
3484 } while (test_and_clear_bit(handle, ioc->blocking_handles)); in _scsih_check_topo_delete_events()
3522 _scsih_set_volume_delete_flag(struct MPT3SAS_ADAPTER *ioc, u16 handle) in _scsih_set_volume_delete_flag() argument
3529 raid_device = mpt3sas_raid_device_find_by_handle(ioc, handle); in _scsih_set_volume_delete_flag()
3537 "wwid(0x%016llx)\n", ioc->name, handle, in _scsih_set_volume_delete_flag()
3554 _scsih_set_volume_handle_for_tr(u16 handle, u16 *a, u16 *b) in _scsih_set_volume_handle_for_tr() argument
3556 if (!handle || handle == *a || handle == *b) in _scsih_set_volume_handle_for_tr()
3559 *a = handle; in _scsih_set_volume_handle_for_tr()
3561 *b = handle; in _scsih_set_volume_handle_for_tr()
3584 u16 handle, volume_handle, a, b; in _scsih_check_ir_config_unhide_events() local
3631 handle = le16_to_cpu(element->PhysDiskDevHandle); in _scsih_check_ir_config_unhide_events()
3633 clear_bit(handle, ioc->pd_handles); in _scsih_check_ir_config_unhide_events()
3635 _scsih_tm_tr_send(ioc, handle); in _scsih_check_ir_config_unhide_events()
3640 delayed_tr->handle = handle; in _scsih_check_ir_config_unhide_events()
3644 handle)); in _scsih_check_ir_config_unhide_events()
3646 _scsih_tm_tr_send(ioc, handle); in _scsih_check_ir_config_unhide_events()
3851 u16 handle; in scsih_qcmd() local
3872 handle = sas_target_priv_data->handle; in scsih_qcmd()
3873 if (handle == MPT3SAS_INVALID_DEVICE_HANDLE) { in scsih_qcmd()
3929 mpi_request->DevHandle = cpu_to_le16(handle); in scsih_qcmd()
3959 mpt3sas_base_put_smid_fast_path(ioc, smid, handle); in scsih_qcmd()
4217 _scsih_turn_on_pfa_led(struct MPT3SAS_ADAPTER *ioc, u16 handle) in _scsih_turn_on_pfa_led() argument
4223 sas_device = mpt3sas_get_sdev_by_handle(ioc, handle); in _scsih_turn_on_pfa_led()
4232 mpi_request.DevHandle = cpu_to_le16(handle); in _scsih_turn_on_pfa_led()
4301 _scsih_send_event_to_turn_on_pfa_led(struct MPT3SAS_ADAPTER *ioc, u16 handle) in _scsih_send_event_to_turn_on_pfa_led() argument
4309 fw_event->device_handle = handle; in _scsih_send_event_to_turn_on_pfa_led()
4324 _scsih_smart_predicted_fault(struct MPT3SAS_ADAPTER *ioc, u16 handle) in _scsih_smart_predicted_fault() argument
4336 sas_device = __mpt3sas_get_sdev_by_handle(ioc, handle); in _scsih_smart_predicted_fault()
4360 _scsih_send_event_to_turn_on_pfa_led(ioc, handle); in _scsih_smart_predicted_fault()
4382 event_data->DevHandle = cpu_to_le16(handle); in _scsih_smart_predicted_fault()
4456 cpu_to_le16(sas_device_priv_data->sas_target->handle); in _scsih_io_done()
4458 sas_device_priv_data->sas_target->handle); in _scsih_io_done()
4673 ioc->sas_hba.handle = le16_to_cpu(sas_iounit_pg0-> in _scsih_sas_host_refresh()
4675 ioc->sas_hba.phy[i].handle = ioc->sas_hba.handle; in _scsih_sas_host_refresh()
4797 ioc->sas_hba.handle = le16_to_cpu(sas_iounit_pg0-> in _scsih_sas_host_add()
4799 ioc->sas_hba.phy[i].handle = ioc->sas_hba.handle; in _scsih_sas_host_add()
4805 MPI2_SAS_DEVICE_PGAD_FORM_HANDLE, ioc->sas_hba.handle))) { in _scsih_sas_host_add()
4815 ioc->name, ioc->sas_hba.handle, in _scsih_sas_host_add()
4842 _scsih_expander_add(struct MPT3SAS_ADAPTER *ioc, u16 handle) in _scsih_expander_add() argument
4858 if (!handle) in _scsih_expander_add()
4865 MPI2_SAS_EXPAND_PGAD_FORM_HNDL, handle))) { in _scsih_expander_add()
4916 sas_expander->handle = handle; in _scsih_expander_add()
4923 handle, parent_handle, (unsigned long long) in _scsih_expander_add()
4938 mpt3sas_port = mpt3sas_transport_port_add(ioc, handle, in _scsih_expander_add()
4950 &expander_pg1, i, handle))) { in _scsih_expander_add()
4956 sas_expander->phy[i].handle = handle; in _scsih_expander_add()
5066 u16 handle, u8 access_status) in _scsih_check_access_status() argument
5115 ioc->name, desc, (unsigned long long)sas_address, handle); in _scsih_check_access_status()
5131 u64 parent_sas_address, u16 handle, u8 phy_number, u8 link_rate) in _scsih_check_device() argument
5145 MPI2_SAS_DEVICE_PGAD_FORM_HANDLE, handle))) in _scsih_check_device()
5171 if (unlikely(sas_device->handle != handle)) { in _scsih_check_device()
5176 sas_device->handle, handle); in _scsih_check_device()
5177 sas_target_priv_data->handle = handle; in _scsih_check_device()
5178 sas_device->handle = handle; in _scsih_check_device()
5196 ioc->name, handle); in _scsih_check_device()
5201 if (_scsih_check_access_status(ioc, sas_address, handle, in _scsih_check_device()
5230 _scsih_add_device(struct MPT3SAS_ADAPTER *ioc, u16 handle, u8 phy_num, in _scsih_add_device() argument
5242 MPI2_SAS_DEVICE_PGAD_FORM_HANDLE, handle))) { in _scsih_add_device()
5266 ioc->name, handle); in _scsih_add_device()
5271 if (_scsih_check_access_status(ioc, sas_address, handle, in _scsih_add_device()
5291 sas_device->handle = handle; in _scsih_add_device()
5357 sas_device->handle, (unsigned long long) in _scsih_remove_device()
5376 sas_target_priv_data->handle = in _scsih_remove_device()
5387 ioc->name, sas_device->handle, in _scsih_remove_device()
5404 sas_device->handle, (unsigned long long) in _scsih_remove_device()
5430 u16 handle; in _scsih_sas_topology_change_event_debug() local
5462 handle = le16_to_cpu(event_data->PHY[i].AttachedDevHandle); in _scsih_sas_topology_change_event_debug()
5463 if (!handle) in _scsih_sas_topology_change_event_debug()
5492 handle, status_str, link_rate, prev_link_rate); in _scsih_sas_topology_change_event_debug()
5509 u16 parent_handle, handle; in _scsih_sas_topology_change_event() local
5577 handle = le16_to_cpu(event_data->PHY[i].AttachedDevHandle); in _scsih_sas_topology_change_event()
5578 if (!handle) in _scsih_sas_topology_change_event()
5592 handle, phy_number, link_rate); in _scsih_sas_topology_change_event()
5597 _scsih_check_device(ioc, sas_address, handle, in _scsih_sas_topology_change_event()
5607 handle, phy_number, link_rate); in _scsih_sas_topology_change_event()
5609 _scsih_add_device(ioc, handle, phy_number, 0); in _scsih_sas_topology_change_event()
5614 _scsih_device_remove_by_handle(ioc, handle); in _scsih_sas_topology_change_event()
5824 u16 smid, handle; in _scsih_sas_broadcast_primitive_event() local
5881 handle = sas_device_priv_data->sas_target->handle; in _scsih_sas_broadcast_primitive_event()
5889 r = mpt3sas_scsih_issue_tm(ioc, handle, 0, 0, lun, in _scsih_sas_broadcast_primitive_event()
5930 r = mpt3sas_scsih_issue_tm(ioc, handle, sdev->channel, sdev->id, in _scsih_sas_broadcast_primitive_event()
6017 _scsih_ir_fastpath(struct MPT3SAS_ADAPTER *ioc, u16 handle, u8 phys_disk_num) in _scsih_ir_fastpath() argument
6059 handle, phys_disk_num)); in _scsih_ir_fastpath()
6136 u16 handle = le16_to_cpu(element->VolDevHandle); in _scsih_sas_volume_add() local
6139 mpt3sas_config_get_volume_wwid(ioc, handle, &wwid); in _scsih_sas_volume_add()
6164 raid_device->handle = handle; in _scsih_sas_volume_add()
6188 _scsih_sas_volume_delete(struct MPT3SAS_ADAPTER *ioc, u16 handle) in _scsih_sas_volume_delete() argument
6196 raid_device = mpt3sas_raid_device_find_by_handle(ioc, handle); in _scsih_sas_volume_delete()
6204 ioc->name, raid_device->handle, in _scsih_sas_volume_delete()
6230 u16 handle = le16_to_cpu(element->PhysDiskDevHandle); in _scsih_sas_pd_expose() local
6233 sas_device = __mpt3sas_get_sdev_by_handle(ioc, handle); in _scsih_sas_pd_expose()
6237 clear_bit(handle, ioc->pd_handles); in _scsih_sas_pd_expose()
6272 u16 handle = le16_to_cpu(element->PhysDiskDevHandle); in _scsih_sas_pd_hide() local
6276 mpt3sas_config_get_volume_handle(ioc, handle, &volume_handle); in _scsih_sas_pd_hide()
6282 sas_device = __mpt3sas_get_sdev_by_handle(ioc, handle); in _scsih_sas_pd_hide()
6284 set_bit(handle, ioc->pd_handles); in _scsih_sas_pd_hide()
6299 _scsih_ir_fastpath(ioc, handle, element->PhysDiskNum); in _scsih_sas_pd_hide()
6319 u16 handle = le16_to_cpu(element->PhysDiskDevHandle); in _scsih_sas_pd_delete() local
6321 _scsih_device_remove_by_handle(ioc, handle); in _scsih_sas_pd_delete()
6337 u16 handle = le16_to_cpu(element->PhysDiskDevHandle); in _scsih_sas_pd_add() local
6344 set_bit(handle, ioc->pd_handles); in _scsih_sas_pd_add()
6346 sas_device = mpt3sas_get_sdev_by_handle(ioc, handle); in _scsih_sas_pd_add()
6348 _scsih_ir_fastpath(ioc, handle, element->PhysDiskNum); in _scsih_sas_pd_add()
6354 MPI2_SAS_DEVICE_PGAD_FORM_HANDLE, handle))) { in _scsih_sas_pd_add()
6370 mpt3sas_transport_update_links(ioc, sas_address, handle, in _scsih_sas_pd_add()
6373 _scsih_ir_fastpath(ioc, handle, element->PhysDiskNum); in _scsih_sas_pd_add()
6374 _scsih_add_device(ioc, handle, 0, 1); in _scsih_sas_pd_add()
6544 u16 handle; in _scsih_sas_ir_volume_event() local
6556 handle = le16_to_cpu(event_data->VolDevHandle); in _scsih_sas_ir_volume_event()
6561 ioc->name, __func__, handle, in _scsih_sas_ir_volume_event()
6566 _scsih_sas_volume_delete(ioc, handle); in _scsih_sas_ir_volume_event()
6574 raid_device = mpt3sas_raid_device_find_by_handle(ioc, handle); in _scsih_sas_ir_volume_event()
6580 mpt3sas_config_get_volume_wwid(ioc, handle, &wwid); in _scsih_sas_ir_volume_event()
6598 raid_device->handle = handle; in _scsih_sas_ir_volume_event()
6625 u16 handle, parent_handle; in _scsih_sas_ir_physical_disk_event() local
6641 handle = le16_to_cpu(event_data->PhysDiskDevHandle); in _scsih_sas_ir_physical_disk_event()
6647 ioc->name, __func__, handle, in _scsih_sas_ir_physical_disk_event()
6658 set_bit(handle, ioc->pd_handles); in _scsih_sas_ir_physical_disk_event()
6660 sas_device = mpt3sas_get_sdev_by_handle(ioc, handle); in _scsih_sas_ir_physical_disk_event()
6668 handle))) { in _scsih_sas_ir_physical_disk_event()
6684 mpt3sas_transport_update_links(ioc, sas_address, handle, in _scsih_sas_ir_physical_disk_event()
6687 _scsih_add_device(ioc, handle, 0, 1); in _scsih_sas_ir_physical_disk_event()
6758 u16 handle; in _scsih_sas_ir_operation_status_event() local
6769 handle = le16_to_cpu(event_data->VolDevHandle); in _scsih_sas_ir_operation_status_event()
6770 raid_device = mpt3sas_raid_device_find_by_handle(ioc, handle); in _scsih_sas_ir_operation_status_event()
6855 if (sas_device->handle == sas_device_pg0->DevHandle) in _scsih_mark_responding_sas_device()
6858 sas_device->handle); in _scsih_mark_responding_sas_device()
6859 sas_device->handle = sas_device_pg0->DevHandle; in _scsih_mark_responding_sas_device()
6861 sas_target_priv_data->handle = in _scsih_mark_responding_sas_device()
6885 u16 handle; in _scsih_search_responding_sas_devices() local
6893 handle = 0xFFFF; in _scsih_search_responding_sas_devices()
6896 handle))) { in _scsih_search_responding_sas_devices()
6901 handle = sas_device_pg0.DevHandle = in _scsih_search_responding_sas_devices()
6930 u16 handle) in _scsih_mark_responding_raid_device() argument
6949 "handle(0x%04x), wwid(0x%016llx)\n", handle, in _scsih_mark_responding_raid_device()
6959 if (raid_device->handle == handle) { in _scsih_mark_responding_raid_device()
6965 raid_device->handle); in _scsih_mark_responding_raid_device()
6966 raid_device->handle = handle; in _scsih_mark_responding_raid_device()
6968 sas_target_priv_data->handle = handle; in _scsih_mark_responding_raid_device()
6993 u16 handle; in _scsih_search_responding_raid_devices() local
7005 handle = 0xFFFF; in _scsih_search_responding_raid_devices()
7007 &volume_pg1, MPI2_RAID_VOLUME_PGAD_FORM_GET_NEXT_HANDLE, handle))) { in _scsih_search_responding_raid_devices()
7012 handle = le16_to_cpu(volume_pg1.DevHandle); in _scsih_search_responding_raid_devices()
7015 &volume_pg0, MPI2_RAID_VOLUME_PGAD_FORM_HANDLE, handle, in _scsih_search_responding_raid_devices()
7023 le64_to_cpu(volume_pg1.WWID), handle); in _scsih_search_responding_raid_devices()
7038 handle = le16_to_cpu(pd_pg0.DevHandle); in _scsih_search_responding_raid_devices()
7039 set_bit(handle, ioc->pd_handles); in _scsih_search_responding_raid_devices()
7060 u16 handle) in _scsih_mark_responding_expander() argument
7071 if (sas_expander->handle == handle) in _scsih_mark_responding_expander()
7076 sas_expander->handle, handle); in _scsih_mark_responding_expander()
7077 sas_expander->handle = handle; in _scsih_mark_responding_expander()
7079 sas_expander->phy[i].handle = handle; in _scsih_mark_responding_expander()
7102 u16 handle; in _scsih_search_responding_expanders() local
7109 handle = 0xFFFF; in _scsih_search_responding_expanders()
7111 MPI2_SAS_EXPAND_PGAD_FORM_GET_NEXT_HNDL, handle))) { in _scsih_search_responding_expanders()
7118 handle = le16_to_cpu(expander_pg0.DevHandle); in _scsih_search_responding_expanders()
7121 handle, in _scsih_search_responding_expanders()
7123 _scsih_mark_responding_expander(ioc, sas_address, handle); in _scsih_search_responding_expanders()
7183 raid_device->handle); in _scsih_remove_unresponding_sas_devices()
7217 struct _sas_node *sas_expander, u16 handle) in _scsih_refresh_expander_links() argument
7225 &expander_pg1, i, handle))) { in _scsih_refresh_expander_links()
7255 u16 handle, parent_handle; in _scsih_scan_for_devices_after_reset() local
7270 handle = 0xFFFF; in _scsih_scan_for_devices_after_reset()
7272 MPI2_SAS_EXPAND_PGAD_FORM_GET_NEXT_HNDL, handle))) { in _scsih_scan_for_devices_after_reset()
7282 handle = le16_to_cpu(expander_pg0.DevHandle); in _scsih_scan_for_devices_after_reset()
7289 handle); in _scsih_scan_for_devices_after_reset()
7293 handle, (unsigned long long) in _scsih_scan_for_devices_after_reset()
7295 _scsih_expander_add(ioc, handle); in _scsih_scan_for_devices_after_reset()
7298 handle, (unsigned long long) in _scsih_scan_for_devices_after_reset()
7326 handle = le16_to_cpu(pd_pg0.DevHandle); in _scsih_scan_for_devices_after_reset()
7327 sas_device = mpt3sas_get_sdev_by_handle(ioc, handle); in _scsih_scan_for_devices_after_reset()
7334 handle) != 0) in _scsih_scan_for_devices_after_reset()
7350 ioc->name, handle, (unsigned long long) in _scsih_scan_for_devices_after_reset()
7353 handle, sas_device_pg0.PhyNum, in _scsih_scan_for_devices_after_reset()
7355 set_bit(handle, ioc->pd_handles); in _scsih_scan_for_devices_after_reset()
7361 while (_scsih_add_device(ioc, handle, retry_count++, in _scsih_scan_for_devices_after_reset()
7367 ioc->name, handle, (unsigned long long) in _scsih_scan_for_devices_after_reset()
7378 handle = 0xFFFF; in _scsih_scan_for_devices_after_reset()
7380 &volume_pg1, MPI2_RAID_VOLUME_PGAD_FORM_GET_NEXT_HANDLE, handle))) { in _scsih_scan_for_devices_after_reset()
7390 handle = le16_to_cpu(volume_pg1.DevHandle); in _scsih_scan_for_devices_after_reset()
7398 &volume_pg0, MPI2_RAID_VOLUME_PGAD_FORM_HANDLE, handle, in _scsih_scan_for_devices_after_reset()
7435 handle = 0xFFFF; in _scsih_scan_for_devices_after_reset()
7438 handle))) { in _scsih_scan_for_devices_after_reset()
7448 handle = le16_to_cpu(sas_device_pg0.DevHandle); in _scsih_scan_for_devices_after_reset()
7462 handle, (unsigned long long) in _scsih_scan_for_devices_after_reset()
7464 mpt3sas_transport_update_links(ioc, sas_address, handle, in _scsih_scan_for_devices_after_reset()
7471 while (_scsih_add_device(ioc, handle, retry_count++, in _scsih_scan_for_devices_after_reset()
7477 handle, (unsigned long long) in _scsih_scan_for_devices_after_reset()
7838 sas_expander->handle, (unsigned long long) in _scsih_expander_node_remove()
7957 ioc->name, raid_device->handle, in scsih_remove()
8037 u16 handle; in _scsih_probe_boot_devices() local
8072 handle = sas_device->handle; in _scsih_probe_boot_devices()
8080 if (!mpt3sas_transport_port_add(ioc, handle, in _scsih_probe_boot_devices()
8174 if (!mpt3sas_transport_port_add(ioc, sas_device->handle, in _scsih_probe_sas()