Lines Matching refs:handle

211 	u16	handle;  member
401 _scsih_get_sas_address(struct MPT2SAS_ADAPTER *ioc, u16 handle, in _scsih_get_sas_address() argument
409 if (handle <= ioc->sas_hba.num_phys) { in _scsih_get_sas_address()
415 MPI2_SAS_DEVICE_PGAD_FORM_HANDLE, handle))) { in _scsih_get_sas_address()
432 "failure at %s:%d/%s()!\n", ioc->name, handle, ioc_status, in _scsih_get_sas_address()
565 _scsih_sas_device_find_by_handle(struct MPT2SAS_ADAPTER *ioc, u16 handle) in _scsih_sas_device_find_by_handle() argument
570 if (sas_device->handle == handle) in _scsih_sas_device_find_by_handle()
574 if (sas_device->handle == handle) in _scsih_sas_device_find_by_handle()
620 sas_device->handle, (unsigned long long)sas_device->sas_address)); in _scsih_sas_device_add()
626 if (!mpt2sas_transport_port_add(ioc, sas_device->handle, in _scsih_sas_device_add()
659 sas_device->handle, (unsigned long long)sas_device->sas_address)); in _scsih_sas_device_init_add()
704 _scsih_raid_device_find_by_handle(struct MPT2SAS_ADAPTER *ioc, u16 handle) in _scsih_raid_device_find_by_handle() argument
710 if (raid_device->handle != handle) in _scsih_raid_device_find_by_handle()
761 raid_device->handle, (unsigned long long)raid_device->wwid)); in _scsih_raid_device_add()
796 mpt2sas_scsih_expander_find_by_handle(struct MPT2SAS_ADAPTER *ioc, u16 handle) in mpt2sas_scsih_expander_find_by_handle() argument
802 if (sas_expander->handle != handle) in mpt2sas_scsih_expander_find_by_handle()
1252 sas_target_priv_data->handle = MPT2SAS_INVALID_DEVICE_HANDLE; in _scsih_target_alloc()
1260 sas_target_priv_data->handle = raid_device->handle; in _scsih_target_alloc()
1278 sas_target_priv_data->handle = sas_device->handle; in _scsih_target_alloc()
1283 if (test_bit(sas_device->handle, ioc->pd_handles)) in _scsih_target_alloc()
1450 u16 handle, struct scsi_device *sdev) in _scsih_display_sata_capabilities() argument
1459 MPI2_SAS_DEVICE_PGAD_FORM_HANDLE, handle))) { in _scsih_display_sata_capabilities()
1518 u16 handle; in _scsih_get_resync() local
1521 handle = 0; in _scsih_get_resync()
1529 handle = raid_device->handle; in _scsih_get_resync()
1534 if (!handle) in _scsih_get_resync()
1538 MPI2_RAID_VOLUME_PGAD_FORM_HANDLE, handle, in _scsih_get_resync()
1570 u16 handle = 0; in _scsih_get_state() local
1576 handle = raid_device->handle; in _scsih_get_state()
1583 MPI2_RAID_VOLUME_PGAD_FORM_HANDLE, handle, in _scsih_get_state()
1659 if ((mpt2sas_config_get_number_pds(ioc, raid_device->handle, in _scsih_get_volume_capabilities()
1679 MPI2_RAID_VOLUME_PGAD_FORM_HANDLE, raid_device->handle, sz))) { in _scsih_get_volume_capabilities()
1716 u16 handle; in _scsih_disable_ddio() local
1720 handle = 0xFFFF; in _scsih_disable_ddio()
1722 &vol_pg1, MPI2_RAID_VOLUME_PGAD_FORM_GET_NEXT_HANDLE, handle))) { in _scsih_disable_ddio()
1727 handle = le16_to_cpu(vol_pg1.DevHandle); in _scsih_disable_ddio()
1729 raid_device = _scsih_raid_device_find_by_handle(ioc, handle); in _scsih_disable_ddio()
1747 u16 handle; in _scsih_get_num_volumes() local
1751 handle = 0xFFFF; in _scsih_get_num_volumes()
1753 &vol_pg1, MPI2_RAID_VOLUME_PGAD_FORM_GET_NEXT_HANDLE, handle))) { in _scsih_get_num_volumes()
1759 handle = le16_to_cpu(vol_pg1.DevHandle); in _scsih_get_num_volumes()
1797 if ((mpt2sas_config_get_number_pds(ioc, raid_device->handle, in _scsih_init_warpdrive_properties()
1814 MPI2_RAID_VOLUME_PGAD_FORM_HANDLE, raid_device->handle, sz))) { in _scsih_init_warpdrive_properties()
1828 "max_mem_allowed=%d\n", ioc->name, raid_device->handle, in _scsih_init_warpdrive_properties()
1842 ioc->name, raid_device->handle, in _scsih_init_warpdrive_properties()
1852 ioc->name, raid_device->handle, in _scsih_init_warpdrive_properties()
1869 raid_device->handle, raid_device->volume_type, in _scsih_init_warpdrive_properties()
1881 ioc->name, raid_device->handle, in _scsih_init_warpdrive_properties()
1892 ioc->name, raid_device->handle, in _scsih_init_warpdrive_properties()
1900 " with handle(0x%04x)\n", ioc->name, raid_device->handle); in _scsih_init_warpdrive_properties()
1968 u16 handle, volume_handle = 0; in _scsih_slave_configure() local
1976 handle = sas_target_priv_data->handle; in _scsih_slave_configure()
1982 raid_device = _scsih_raid_device_find_by_handle(ioc, handle); in _scsih_slave_configure()
2052 r_level, raid_device->handle, in _scsih_slave_configure()
2064 if (mpt2sas_config_get_volume_handle(ioc, handle, in _scsih_slave_configure()
2106 ds, sas_device->handle, in _scsih_slave_configure()
2117 _scsih_display_sata_capabilities(ioc, handle, sdev); in _scsih_slave_configure()
2264 mpt2sas_scsih_set_tm_flag(struct MPT2SAS_ADAPTER *ioc, u16 handle) in mpt2sas_scsih_set_tm_flag() argument
2276 if (sas_device_priv_data->sas_target->handle == handle) { in mpt2sas_scsih_set_tm_flag()
2292 mpt2sas_scsih_clear_tm_flag(struct MPT2SAS_ADAPTER *ioc, u16 handle) in mpt2sas_scsih_clear_tm_flag() argument
2304 if (sas_device_priv_data->sas_target->handle == handle) { in mpt2sas_scsih_clear_tm_flag()
2333 mpt2sas_scsih_issue_tm(struct MPT2SAS_ADAPTER *ioc, u16 handle, uint channel, in mpt2sas_scsih_issue_tm() argument
2393 " task_type(0x%02x), smid(%d)\n", ioc->name, handle, type, in mpt2sas_scsih_issue_tm()
2401 mpi_request->DevHandle = cpu_to_le16(handle); in mpt2sas_scsih_issue_tm()
2405 mpt2sas_scsih_set_tm_flag(ioc, handle); in mpt2sas_scsih_issue_tm()
2419 mpt2sas_scsih_clear_tm_flag(ioc, handle); in mpt2sas_scsih_issue_tm()
2469 mpt2sas_scsih_clear_tm_flag(ioc, handle); in mpt2sas_scsih_issue_tm()
2508 "%s wwid(0x%016llx)\n", device_str, priv_target->handle, in _scsih_tm_display_info()
2525 sas_device->handle, in _scsih_tm_display_info()
2549 u16 handle; in _scsih_abort() local
2585 handle = sas_device_priv_data->sas_target->handle; in _scsih_abort()
2586 r = mpt2sas_scsih_issue_tm(ioc, handle, scmd->device->channel, in _scsih_abort()
2609 u16 handle; in _scsih_dev_reset() local
2629 handle = 0; in _scsih_dev_reset()
2634 sas_device_priv_data->sas_target->handle); in _scsih_dev_reset()
2636 handle = sas_device->volume_handle; in _scsih_dev_reset()
2639 handle = sas_device_priv_data->sas_target->handle; in _scsih_dev_reset()
2641 if (!handle) { in _scsih_dev_reset()
2647 r = mpt2sas_scsih_issue_tm(ioc, handle, scmd->device->channel, in _scsih_dev_reset()
2670 u16 handle; in _scsih_target_reset() local
2689 handle = 0; in _scsih_target_reset()
2694 sas_device_priv_data->sas_target->handle); in _scsih_target_reset()
2696 handle = sas_device->volume_handle; in _scsih_target_reset()
2699 handle = sas_device_priv_data->sas_target->handle; in _scsih_target_reset()
2701 if (!handle) { in _scsih_target_reset()
2707 r = mpt2sas_scsih_issue_tm(ioc, handle, scmd->device->channel, in _scsih_target_reset()
2890 sas_device_priv_data->sas_target->handle)); in _scsih_ublock_io_all_device()
2947 sas_device_priv_data->sas_target->handle)); in _scsih_block_io_all_device()
2961 _scsih_block_io_device(struct MPT2SAS_ADAPTER *ioc, u16 handle) in _scsih_block_io_device() argument
2972 if (sas_device_priv_data->sas_target->handle == handle) { in _scsih_block_io_device()
2975 "handle(0x%04x)\n", ioc->name, handle)); in _scsih_block_io_device()
3012 set_bit(sas_device->handle, in _scsih_block_io_to_children_attached_to_ex()
3047 u16 handle; in _scsih_block_io_to_children_attached_directly() local
3052 handle = le16_to_cpu(event_data->PHY[i].AttachedDevHandle); in _scsih_block_io_to_children_attached_directly()
3053 if (!handle) in _scsih_block_io_to_children_attached_directly()
3059 _scsih_block_io_device(ioc, handle); in _scsih_block_io_to_children_attached_directly()
3079 _scsih_tm_tr_send(struct MPT2SAS_ADAPTER *ioc, u16 handle) in _scsih_tm_tr_send() argument
3092 "removed: handle(0x%04x)\n", __func__, ioc->name, handle)); in _scsih_tm_tr_send()
3097 handle)); in _scsih_tm_tr_send()
3104 handle)); in _scsih_tm_tr_send()
3109 if (test_bit(handle, ioc->pd_handles)) in _scsih_tm_tr_send()
3113 sas_device = _scsih_sas_device_find_by_handle(ioc, handle); in _scsih_tm_tr_send()
3124 "handle(0x%04x), sas_addr(0x%016llx)\n", ioc->name, handle, in _scsih_tm_tr_send()
3127 sas_target_priv_data->handle = MPT2SAS_INVALID_DEVICE_HANDLE; in _scsih_tm_tr_send()
3136 delayed_tr->handle = handle; in _scsih_tm_tr_send()
3140 ioc->name, handle)); in _scsih_tm_tr_send()
3145 "(open), smid(%d), cb(%d)\n", ioc->name, handle, smid, in _scsih_tm_tr_send()
3150 mpi_request->DevHandle = cpu_to_le16(handle); in _scsih_tm_tr_send()
3203 _scsih_tm_tr_volume_send(struct MPT2SAS_ADAPTER *ioc, u16 handle) in _scsih_tm_tr_volume_send() argument
3222 delayed_tr->handle = handle; in _scsih_tm_tr_volume_send()
3226 ioc->name, handle)); in _scsih_tm_tr_volume_send()
3231 "(open), smid(%d), cb(%d)\n", ioc->name, handle, smid, in _scsih_tm_tr_volume_send()
3236 mpi_request->DevHandle = cpu_to_le16(handle); in _scsih_tm_tr_volume_send()
3256 u16 handle; in _scsih_tm_volume_tr_complete() local
3273 handle = le16_to_cpu(mpi_request_tm->DevHandle); in _scsih_tm_volume_tr_complete()
3274 if (handle != le16_to_cpu(mpi_reply->DevHandle)) { in _scsih_tm_volume_tr_complete()
3276 "handle(0x%04x:0x%04x), smid(%d)!!!\n", handle, in _scsih_tm_volume_tr_complete()
3284 handle, smid, le16_to_cpu(mpi_reply->IOCStatus), in _scsih_tm_volume_tr_complete()
3311 u16 handle; in _scsih_tm_tr_complete() local
3340 handle = le16_to_cpu(mpi_request_tm->DevHandle); in _scsih_tm_tr_complete()
3341 if (handle != le16_to_cpu(mpi_reply->DevHandle)) { in _scsih_tm_tr_complete()
3343 "handle(0x%04x:0x%04x), smid(%d)!!!\n", ioc->name, handle, in _scsih_tm_tr_complete()
3351 handle, smid, le16_to_cpu(mpi_reply->IOCStatus), in _scsih_tm_tr_complete()
3363 "(open), smid(%d), cb(%d)\n", ioc->name, handle, smid_sas_ctrl, in _scsih_tm_tr_complete()
3395 _scsih_tm_tr_volume_send(ioc, delayed_tr->handle); in _scsih_check_for_pending_tm()
3405 _scsih_tm_tr_send(ioc, delayed_tr->handle); in _scsih_check_for_pending_tm()
3437 u16 handle; in _scsih_check_topo_delete_events() local
3440 handle = le16_to_cpu(event_data->PHY[i].AttachedDevHandle); in _scsih_check_topo_delete_events()
3441 if (!handle) in _scsih_check_topo_delete_events()
3446 _scsih_tm_tr_send(ioc, handle); in _scsih_check_topo_delete_events()
3463 handle = find_first_bit(ioc->blocking_handles, in _scsih_check_topo_delete_events()
3465 if (handle < ioc->facts.MaxDevHandle) in _scsih_check_topo_delete_events()
3466 _scsih_block_io_device(ioc, handle); in _scsih_check_topo_delete_events()
3467 } while (test_and_clear_bit(handle, ioc->blocking_handles)); in _scsih_check_topo_delete_events()
3506 _scsih_set_volume_delete_flag(struct MPT2SAS_ADAPTER *ioc, u16 handle) in _scsih_set_volume_delete_flag() argument
3513 raid_device = _scsih_raid_device_find_by_handle(ioc, handle); in _scsih_set_volume_delete_flag()
3521 "wwid(0x%016llx)\n", ioc->name, handle, in _scsih_set_volume_delete_flag()
3538 _scsih_set_volume_handle_for_tr(u16 handle, u16 *a, u16 *b) in _scsih_set_volume_handle_for_tr() argument
3540 if (!handle || handle == *a || handle == *b) in _scsih_set_volume_handle_for_tr()
3543 *a = handle; in _scsih_set_volume_handle_for_tr()
3545 *b = handle; in _scsih_set_volume_handle_for_tr()
3568 u16 handle, volume_handle, a, b; in _scsih_check_ir_config_unhide_events() local
3612 handle = le16_to_cpu(element->PhysDiskDevHandle); in _scsih_check_ir_config_unhide_events()
3614 clear_bit(handle, ioc->pd_handles); in _scsih_check_ir_config_unhide_events()
3616 _scsih_tm_tr_send(ioc, handle); in _scsih_check_ir_config_unhide_events()
3621 delayed_tr->handle = handle; in _scsih_check_ir_config_unhide_events()
3625 handle)); in _scsih_check_ir_config_unhide_events()
3627 _scsih_tm_tr_send(ioc, handle); in _scsih_check_ir_config_unhide_events()
3924 if (sas_target_priv_data->handle == MPT2SAS_INVALID_DEVICE_HANDLE) { in _scsih_qcmd()
3978 cpu_to_le16(sas_device_priv_data->sas_target->handle); in _scsih_qcmd()
4256 _scsih_turn_on_pfa_led(struct MPT2SAS_ADAPTER *ioc, u16 handle) in _scsih_turn_on_pfa_led() argument
4262 sas_device = _scsih_sas_device_find_by_handle(ioc, handle); in _scsih_turn_on_pfa_led()
4271 mpi_request.DevHandle = cpu_to_le16(handle); in _scsih_turn_on_pfa_led()
4339 _scsih_send_event_to_turn_on_pfa_led(struct MPT2SAS_ADAPTER *ioc, u16 handle) in _scsih_send_event_to_turn_on_pfa_led() argument
4347 fw_event->device_handle = handle; in _scsih_send_event_to_turn_on_pfa_led()
4361 _scsih_smart_predicted_fault(struct MPT2SAS_ADAPTER *ioc, u16 handle) in _scsih_smart_predicted_fault() argument
4373 sas_device = _scsih_sas_device_find_by_handle(ioc, handle); in _scsih_smart_predicted_fault()
4390 _scsih_send_event_to_turn_on_pfa_led(ioc, handle); in _scsih_smart_predicted_fault()
4412 event_data->DevHandle = cpu_to_le16(handle); in _scsih_smart_predicted_fault()
4477 cpu_to_le16(sas_device_priv_data->sas_target->handle); in _scsih_io_done()
4479 sas_device_priv_data->sas_target->handle); in _scsih_io_done()
4681 ioc->sas_hba.handle = le16_to_cpu(sas_iounit_pg0-> in _scsih_sas_host_refresh()
4683 ioc->sas_hba.phy[i].handle = ioc->sas_hba.handle; in _scsih_sas_host_refresh()
4805 ioc->sas_hba.handle = le16_to_cpu(sas_iounit_pg0-> in _scsih_sas_host_add()
4807 ioc->sas_hba.phy[i].handle = ioc->sas_hba.handle; in _scsih_sas_host_add()
4813 MPI2_SAS_DEVICE_PGAD_FORM_HANDLE, ioc->sas_hba.handle))) { in _scsih_sas_host_add()
4822 "sas_addr(0x%016llx), phys(%d)\n", ioc->name, ioc->sas_hba.handle, in _scsih_sas_host_add()
4851 _scsih_expander_add(struct MPT2SAS_ADAPTER *ioc, u16 handle) in _scsih_expander_add() argument
4866 if (!handle) in _scsih_expander_add()
4873 MPI2_SAS_EXPAND_PGAD_FORM_HNDL, handle))) { in _scsih_expander_add()
4924 sas_expander->handle = handle; in _scsih_expander_add()
4931 handle, parent_handle, (unsigned long long) in _scsih_expander_add()
4946 mpt2sas_port = mpt2sas_transport_port_add(ioc, handle, in _scsih_expander_add()
4958 &expander_pg1, i, handle))) { in _scsih_expander_add()
4964 sas_expander->phy[i].handle = handle; in _scsih_expander_add()
5069 u16 handle, u8 access_status) in _scsih_check_access_status() argument
5118 (unsigned long long)sas_address, handle); in _scsih_check_access_status()
5123 _scsih_check_device(struct MPT2SAS_ADAPTER *ioc, u16 handle) in _scsih_check_device() argument
5137 MPI2_SAS_DEVICE_PGAD_FORM_HANDLE, handle))) in _scsih_check_device()
5156 "handle(0x%04x), no sas_device!!!\n", ioc->name, handle); in _scsih_check_device()
5161 if (unlikely(sas_device->handle != handle)) { in _scsih_check_device()
5165 " to (0x%04x)!!!\n", sas_device->handle, handle); in _scsih_check_device()
5166 sas_target_priv_data->handle = handle; in _scsih_check_device()
5167 sas_device->handle = handle; in _scsih_check_device()
5174 "handle(0x%04x), flags!!!\n", ioc->name, handle); in _scsih_check_device()
5180 if (_scsih_check_access_status(ioc, sas_address, handle, in _scsih_check_device()
5202 _scsih_add_device(struct MPT2SAS_ADAPTER *ioc, u16 handle, u8 phy_num, u8 is_pd) in _scsih_add_device() argument
5214 MPI2_SAS_DEVICE_PGAD_FORM_HANDLE, handle))) { in _scsih_add_device()
5241 if (_scsih_check_access_status(ioc, sas_address, handle, in _scsih_add_device()
5270 sas_device->handle = handle; in _scsih_add_device()
5323 sas_device->handle, (unsigned long long) in _scsih_remove_device()
5330 sas_target_priv_data->handle = in _scsih_remove_device()
5340 "(0x%016llx)\n", ioc->name, sas_device->handle, in _scsih_remove_device()
5345 sas_device->handle, (unsigned long long) in _scsih_remove_device()
5357 _scsih_device_remove_by_handle(struct MPT2SAS_ADAPTER *ioc, u16 handle) in _scsih_device_remove_by_handle() argument
5366 sas_device = _scsih_sas_device_find_by_handle(ioc, handle); in _scsih_device_remove_by_handle()
5412 u16 handle; in _scsih_sas_topology_change_event_debug() local
5444 handle = le16_to_cpu(event_data->PHY[i].AttachedDevHandle); in _scsih_sas_topology_change_event_debug()
5445 if (!handle) in _scsih_sas_topology_change_event_debug()
5474 handle, status_str, link_rate, prev_link_rate); in _scsih_sas_topology_change_event_debug()
5492 u16 parent_handle, handle; in _scsih_sas_topology_change_event() local
5563 handle = le16_to_cpu(event_data->PHY[i].AttachedDevHandle); in _scsih_sas_topology_change_event()
5564 if (!handle) in _scsih_sas_topology_change_event()
5578 handle, phy_number, link_rate); in _scsih_sas_topology_change_event()
5583 _scsih_check_device(ioc, handle); in _scsih_sas_topology_change_event()
5591 handle, phy_number, link_rate); in _scsih_sas_topology_change_event()
5593 _scsih_add_device(ioc, handle, phy_number, 0); in _scsih_sas_topology_change_event()
5597 _scsih_device_remove_by_handle(ioc, handle); in _scsih_sas_topology_change_event()
5811 u16 smid, handle; in _scsih_sas_broadcast_primitive_event() local
5868 handle = sas_device_priv_data->sas_target->handle; in _scsih_sas_broadcast_primitive_event()
5876 r = mpt2sas_scsih_issue_tm(ioc, handle, 0, 0, lun, in _scsih_sas_broadcast_primitive_event()
5917 r = mpt2sas_scsih_issue_tm(ioc, handle, sdev->channel, sdev->id, in _scsih_sas_broadcast_primitive_event()
6029 u16 handle = le16_to_cpu(element->VolDevHandle); in _scsih_sas_volume_add() local
6032 mpt2sas_config_get_volume_wwid(ioc, handle, &wwid); in _scsih_sas_volume_add()
6057 raid_device->handle = handle; in _scsih_sas_volume_add()
6081 _scsih_sas_volume_delete(struct MPT2SAS_ADAPTER *ioc, u16 handle) in _scsih_sas_volume_delete() argument
6089 raid_device = _scsih_raid_device_find_by_handle(ioc, handle); in _scsih_sas_volume_delete()
6097 "(0x%016llx)\n", ioc->name, raid_device->handle, in _scsih_sas_volume_delete()
6123 u16 handle = le16_to_cpu(element->PhysDiskDevHandle); in _scsih_sas_pd_expose() local
6126 sas_device = _scsih_sas_device_find_by_handle(ioc, handle); in _scsih_sas_pd_expose()
6130 clear_bit(handle, ioc->pd_handles); in _scsih_sas_pd_expose()
6163 u16 handle = le16_to_cpu(element->PhysDiskDevHandle); in _scsih_sas_pd_hide() local
6167 mpt2sas_config_get_volume_handle(ioc, handle, &volume_handle); in _scsih_sas_pd_hide()
6173 sas_device = _scsih_sas_device_find_by_handle(ioc, handle); in _scsih_sas_pd_hide()
6175 set_bit(handle, ioc->pd_handles); in _scsih_sas_pd_hide()
6206 u16 handle = le16_to_cpu(element->PhysDiskDevHandle); in _scsih_sas_pd_delete() local
6208 _scsih_device_remove_by_handle(ioc, handle); in _scsih_sas_pd_delete()
6225 u16 handle = le16_to_cpu(element->PhysDiskDevHandle); in _scsih_sas_pd_add() local
6232 set_bit(handle, ioc->pd_handles); in _scsih_sas_pd_add()
6235 sas_device = _scsih_sas_device_find_by_handle(ioc, handle); in _scsih_sas_pd_add()
6241 MPI2_SAS_DEVICE_PGAD_FORM_HANDLE, handle))) { in _scsih_sas_pd_add()
6257 mpt2sas_transport_update_links(ioc, sas_address, handle, in _scsih_sas_pd_add()
6260 _scsih_add_device(ioc, handle, 0, 1); in _scsih_sas_pd_add()
6427 u16 handle; in _scsih_sas_ir_volume_event() local
6440 handle = le16_to_cpu(event_data->VolDevHandle); in _scsih_sas_ir_volume_event()
6444 "old(0x%08x), new(0x%08x)\n", ioc->name, __func__, handle, in _scsih_sas_ir_volume_event()
6450 _scsih_sas_volume_delete(ioc, handle); in _scsih_sas_ir_volume_event()
6458 raid_device = _scsih_raid_device_find_by_handle(ioc, handle); in _scsih_sas_ir_volume_event()
6464 mpt2sas_config_get_volume_wwid(ioc, handle, &wwid); in _scsih_sas_ir_volume_event()
6482 raid_device->handle = handle; in _scsih_sas_ir_volume_event()
6509 u16 handle, parent_handle; in _scsih_sas_ir_physical_disk_event() local
6527 handle = le16_to_cpu(event_data->PhysDiskDevHandle); in _scsih_sas_ir_physical_disk_event()
6532 "old(0x%08x), new(0x%08x)\n", ioc->name, __func__, handle, in _scsih_sas_ir_physical_disk_event()
6543 set_bit(handle, ioc->pd_handles); in _scsih_sas_ir_physical_disk_event()
6546 sas_device = _scsih_sas_device_find_by_handle(ioc, handle); in _scsih_sas_ir_physical_disk_event()
6554 handle))) { in _scsih_sas_ir_physical_disk_event()
6570 mpt2sas_transport_update_links(ioc, sas_address, handle, in _scsih_sas_ir_physical_disk_event()
6573 _scsih_add_device(ioc, handle, 0, 1); in _scsih_sas_ir_physical_disk_event()
6646 u16 handle; in _scsih_sas_ir_operation_status_event() local
6659 handle = le16_to_cpu(event_data->VolDevHandle); in _scsih_sas_ir_operation_status_event()
6660 raid_device = _scsih_raid_device_find_by_handle(ioc, handle); in _scsih_sas_ir_operation_status_event()
6702 u16 slot, u16 handle) in _scsih_mark_responding_sas_device() argument
6725 "slot(%d)\n", handle, in _scsih_mark_responding_sas_device()
6730 if (sas_device->handle == handle) in _scsih_mark_responding_sas_device()
6733 sas_device->handle); in _scsih_mark_responding_sas_device()
6734 sas_device->handle = handle; in _scsih_mark_responding_sas_device()
6736 sas_target_priv_data->handle = handle; in _scsih_mark_responding_sas_device()
6760 u16 handle; in _scsih_search_responding_sas_devices() local
6769 handle = 0xFFFF; in _scsih_search_responding_sas_devices()
6772 handle))) { in _scsih_search_responding_sas_devices()
6777 handle = le16_to_cpu(sas_device_pg0.DevHandle); in _scsih_search_responding_sas_devices()
6784 handle); in _scsih_search_responding_sas_devices()
6804 u16 handle) in _scsih_mark_responding_raid_device() argument
6823 "handle(0x%04x), wwid(0x%016llx)\n", handle, in _scsih_mark_responding_raid_device()
6832 if (raid_device->handle == handle) { in _scsih_mark_responding_raid_device()
6838 raid_device->handle); in _scsih_mark_responding_raid_device()
6839 raid_device->handle = handle; in _scsih_mark_responding_raid_device()
6841 sas_target_priv_data->handle = handle; in _scsih_mark_responding_raid_device()
6867 u16 handle; in _scsih_search_responding_raid_devices() local
6879 handle = 0xFFFF; in _scsih_search_responding_raid_devices()
6881 &volume_pg1, MPI2_RAID_VOLUME_PGAD_FORM_GET_NEXT_HANDLE, handle))) { in _scsih_search_responding_raid_devices()
6886 handle = le16_to_cpu(volume_pg1.DevHandle); in _scsih_search_responding_raid_devices()
6889 &volume_pg0, MPI2_RAID_VOLUME_PGAD_FORM_HANDLE, handle, in _scsih_search_responding_raid_devices()
6897 le64_to_cpu(volume_pg1.WWID), handle); in _scsih_search_responding_raid_devices()
6912 handle = le16_to_cpu(pd_pg0.DevHandle); in _scsih_search_responding_raid_devices()
6913 set_bit(handle, ioc->pd_handles); in _scsih_search_responding_raid_devices()
6934 u16 handle) in _scsih_mark_responding_expander() argument
6945 if (sas_expander->handle == handle) in _scsih_mark_responding_expander()
6950 sas_expander->handle, handle); in _scsih_mark_responding_expander()
6951 sas_expander->handle = handle; in _scsih_mark_responding_expander()
6953 sas_expander->phy[i].handle = handle; in _scsih_mark_responding_expander()
6976 u16 handle; in _scsih_search_responding_expanders() local
6983 handle = 0xFFFF; in _scsih_search_responding_expanders()
6985 MPI2_SAS_EXPAND_PGAD_FORM_GET_NEXT_HNDL, handle))) { in _scsih_search_responding_expanders()
6992 handle = le16_to_cpu(expander_pg0.DevHandle); in _scsih_search_responding_expanders()
6995 "sas_addr(0x%016llx)\n", handle, in _scsih_search_responding_expanders()
6997 _scsih_mark_responding_expander(ioc, sas_address, handle); in _scsih_search_responding_expanders()
7042 raid_device->handle); in _scsih_remove_unresponding_sas_devices()
7073 struct _sas_node *sas_expander, u16 handle) in _scsih_refresh_expander_links() argument
7081 &expander_pg1, i, handle))) { in _scsih_refresh_expander_links()
7111 u16 handle, parent_handle; in _scsih_scan_for_devices_after_reset() local
7126 handle = 0xFFFF; in _scsih_scan_for_devices_after_reset()
7128 MPI2_SAS_EXPAND_PGAD_FORM_GET_NEXT_HNDL, handle))) { in _scsih_scan_for_devices_after_reset()
7138 handle = le16_to_cpu(expander_pg0.DevHandle); in _scsih_scan_for_devices_after_reset()
7145 handle); in _scsih_scan_for_devices_after_reset()
7149 ioc->name, handle, (unsigned long long) in _scsih_scan_for_devices_after_reset()
7151 _scsih_expander_add(ioc, handle); in _scsih_scan_for_devices_after_reset()
7154 ioc->name, handle, (unsigned long long) in _scsih_scan_for_devices_after_reset()
7181 handle = le16_to_cpu(pd_pg0.DevHandle); in _scsih_scan_for_devices_after_reset()
7183 sas_device = _scsih_sas_device_find_by_handle(ioc, handle); in _scsih_scan_for_devices_after_reset()
7189 handle) != 0) in _scsih_scan_for_devices_after_reset()
7205 ioc->name, handle, (unsigned long long) in _scsih_scan_for_devices_after_reset()
7208 handle, sas_device_pg0.PhyNum, in _scsih_scan_for_devices_after_reset()
7210 set_bit(handle, ioc->pd_handles); in _scsih_scan_for_devices_after_reset()
7216 while (_scsih_add_device(ioc, handle, retry_count++, in _scsih_scan_for_devices_after_reset()
7222 ioc->name, handle, (unsigned long long) in _scsih_scan_for_devices_after_reset()
7232 handle = 0xFFFF; in _scsih_scan_for_devices_after_reset()
7234 &volume_pg1, MPI2_RAID_VOLUME_PGAD_FORM_GET_NEXT_HANDLE, handle))) { in _scsih_scan_for_devices_after_reset()
7244 handle = le16_to_cpu(volume_pg1.DevHandle); in _scsih_scan_for_devices_after_reset()
7252 &volume_pg0, MPI2_RAID_VOLUME_PGAD_FORM_HANDLE, handle, in _scsih_scan_for_devices_after_reset()
7288 handle = 0xFFFF; in _scsih_scan_for_devices_after_reset()
7291 handle))) { in _scsih_scan_for_devices_after_reset()
7301 handle = le16_to_cpu(sas_device_pg0.DevHandle); in _scsih_scan_for_devices_after_reset()
7315 ioc->name, handle, (unsigned long long) in _scsih_scan_for_devices_after_reset()
7317 mpt2sas_transport_update_links(ioc, sas_address, handle, in _scsih_scan_for_devices_after_reset()
7324 while (_scsih_add_device(ioc, handle, retry_count++, in _scsih_scan_for_devices_after_reset()
7330 ioc->name, handle, (unsigned long long) in _scsih_scan_for_devices_after_reset()
7695 sas_expander->handle, (unsigned long long) in _scsih_expander_node_remove()
7840 "(0x%016llx)\n", ioc->name, raid_device->handle, in _scsih_remove()
7889 u16 handle; in _scsih_probe_boot_devices() local
7924 handle = sas_device->handle; in _scsih_probe_boot_devices()
7932 if (!mpt2sas_transport_port_add(ioc, sas_device->handle, in _scsih_probe_boot_devices()
7988 if (!mpt2sas_transport_port_add(ioc, sas_device->handle, in _scsih_probe_sas()