Lines Matching refs:sas_target_priv_data
1519 struct MPT3SAS_TARGET *sas_target_priv_data; in scsih_change_queue_depth() local
1535 sas_target_priv_data = sas_device_priv_data->sas_target; in scsih_change_queue_depth()
1536 if (!sas_target_priv_data) in scsih_change_queue_depth()
1538 if ((sas_target_priv_data->flags & MPT_TARGET_FLAGS_VOLUME)) in scsih_change_queue_depth()
1542 sas_device = __mpt3sas_get_sdev_from_target(ioc, sas_target_priv_data); in scsih_change_queue_depth()
1591 struct MPT3SAS_TARGET *sas_target_priv_data; in scsih_target_alloc() local
1598 sas_target_priv_data = kzalloc(sizeof(*sas_target_priv_data), in scsih_target_alloc()
1600 if (!sas_target_priv_data) in scsih_target_alloc()
1603 starget->hostdata = sas_target_priv_data; in scsih_target_alloc()
1604 sas_target_priv_data->starget = starget; in scsih_target_alloc()
1605 sas_target_priv_data->handle = MPT3SAS_INVALID_DEVICE_HANDLE; in scsih_target_alloc()
1613 sas_target_priv_data->handle = raid_device->handle; in scsih_target_alloc()
1614 sas_target_priv_data->sas_address = raid_device->wwid; in scsih_target_alloc()
1615 sas_target_priv_data->flags |= MPT_TARGET_FLAGS_VOLUME; in scsih_target_alloc()
1617 sas_target_priv_data->raid_device = raid_device; in scsih_target_alloc()
1630 sas_target_priv_data->handle = pcie_device->handle; in scsih_target_alloc()
1631 sas_target_priv_data->sas_address = pcie_device->wwid; in scsih_target_alloc()
1632 sas_target_priv_data->pcie_dev = pcie_device; in scsih_target_alloc()
1636 sas_target_priv_data->flags |= in scsih_target_alloc()
1639 sas_target_priv_data->flags |= in scsih_target_alloc()
1653 sas_target_priv_data->handle = sas_device->handle; in scsih_target_alloc()
1654 sas_target_priv_data->sas_address = sas_device->sas_address; in scsih_target_alloc()
1655 sas_target_priv_data->sas_dev = sas_device; in scsih_target_alloc()
1660 sas_target_priv_data->flags |= in scsih_target_alloc()
1663 sas_target_priv_data->flags |= in scsih_target_alloc()
1680 struct MPT3SAS_TARGET *sas_target_priv_data; in scsih_target_destroy() local
1686 sas_target_priv_data = starget->hostdata; in scsih_target_destroy()
1687 if (!sas_target_priv_data) in scsih_target_destroy()
1705 sas_target_priv_data); in scsih_target_destroy()
1715 sas_target_priv_data->pcie_dev = NULL; in scsih_target_destroy()
1724 sas_device = __mpt3sas_get_sdev_from_target(ioc, sas_target_priv_data); in scsih_target_destroy()
1734 sas_target_priv_data->sas_dev = NULL; in scsih_target_destroy()
1742 kfree(sas_target_priv_data); in scsih_target_destroy()
1758 struct MPT3SAS_TARGET *sas_target_priv_data; in scsih_slave_alloc() local
1775 sas_target_priv_data = starget->hostdata; in scsih_slave_alloc()
1776 sas_target_priv_data->num_luns++; in scsih_slave_alloc()
1777 sas_device_priv_data->sas_target = sas_target_priv_data; in scsih_slave_alloc()
1779 if ((sas_target_priv_data->flags & MPT_TARGET_FLAGS_RAID_COMPONENT)) in scsih_slave_alloc()
1795 sas_target_priv_data->sas_address); in scsih_slave_alloc()
1807 } else if (!(sas_target_priv_data->flags & MPT_TARGET_FLAGS_VOLUME)) { in scsih_slave_alloc()
1810 sas_target_priv_data->sas_address); in scsih_slave_alloc()
1834 struct MPT3SAS_TARGET *sas_target_priv_data; in scsih_slave_destroy() local
1846 sas_target_priv_data = starget->hostdata; in scsih_slave_destroy()
1847 sas_target_priv_data->num_luns--; in scsih_slave_destroy()
1852 if (sas_target_priv_data->flags & MPT_TARGET_FLAGS_PCIE_DEVICE) { in scsih_slave_destroy()
1855 sas_target_priv_data); in scsih_slave_destroy()
1856 if (pcie_device && !sas_target_priv_data->num_luns) in scsih_slave_destroy()
1864 } else if (!(sas_target_priv_data->flags & MPT_TARGET_FLAGS_VOLUME)) { in scsih_slave_destroy()
1867 sas_target_priv_data); in scsih_slave_destroy()
1868 if (sas_device && !sas_target_priv_data->num_luns) in scsih_slave_destroy()
2230 struct MPT3SAS_TARGET *sas_target_priv_data; in scsih_slave_configure() local
2246 sas_target_priv_data = sas_device_priv_data->sas_target; in scsih_slave_configure()
2247 handle = sas_target_priv_data->handle; in scsih_slave_configure()
2250 if (sas_target_priv_data->flags & MPT_TARGET_FLAGS_VOLUME) { in scsih_slave_configure()
2346 if (sas_target_priv_data->flags & MPT_TARGET_FLAGS_RAID_COMPONENT) { in scsih_slave_configure()
2364 if (sas_target_priv_data->flags & MPT_TARGET_FLAGS_PCIE_DEVICE) { in scsih_slave_configure()
3597 struct MPT3SAS_TARGET *sas_target_priv_data = NULL; in _scsih_tm_tr_send() local
3628 sas_target_priv_data = sas_device->starget->hostdata; in _scsih_tm_tr_send()
3629 sas_target_priv_data->deleted = 1; in _scsih_tm_tr_send()
3638 sas_target_priv_data = pcie_device->starget->hostdata; in _scsih_tm_tr_send()
3639 sas_target_priv_data->deleted = 1; in _scsih_tm_tr_send()
3651 if (sas_target_priv_data) { in _scsih_tm_tr_send()
3679 sas_target_priv_data->handle = MPT3SAS_INVALID_DEVICE_HANDLE; in _scsih_tm_tr_send()
4320 struct MPT3SAS_TARGET *sas_target_priv_data; in _scsih_set_volume_delete_flag() local
4327 sas_target_priv_data = in _scsih_set_volume_delete_flag()
4329 sas_target_priv_data->deleted = 1; in _scsih_set_volume_delete_flag()
4644 struct MPT3SAS_TARGET *sas_target_priv_data; in scsih_qcmd() local
4670 sas_target_priv_data = sas_device_priv_data->sas_target; in scsih_qcmd()
4673 handle = sas_target_priv_data->handle; in scsih_qcmd()
4684 } else if (sas_target_priv_data->deleted) { in scsih_qcmd()
4689 } else if (sas_target_priv_data->tm_busy || in scsih_qcmd()
4760 pcie_device = sas_target_priv_data->pcie_dev; in scsih_qcmd()
4769 raid_device = sas_target_priv_data->raid_device; in scsih_qcmd()
4775 if (sas_target_priv_data->flags & MPT_TARGET_FASTPATH_IO) { in scsih_qcmd()
5134 struct MPT3SAS_TARGET *sas_target_priv_data; in _scsih_smart_predicted_fault() local
5148 sas_target_priv_data = starget->hostdata; in _scsih_smart_predicted_fault()
5150 if ((sas_target_priv_data->flags & MPT_TARGET_FLAGS_RAID_COMPONENT) || in _scsih_smart_predicted_fault()
5151 ((sas_target_priv_data->flags & MPT_TARGET_FLAGS_VOLUME))) in _scsih_smart_predicted_fault()
5182 event_data->SASAddress = cpu_to_le64(sas_target_priv_data->sas_address); in _scsih_smart_predicted_fault()
5940 struct MPT3SAS_TARGET *sas_target_priv_data; in _scsih_check_device() local
5972 sas_target_priv_data = starget->hostdata; in _scsih_check_device()
5976 sas_target_priv_data->handle = handle; in _scsih_check_device()
6179 struct MPT3SAS_TARGET *sas_target_priv_data; in _scsih_remove_device() local
6196 sas_target_priv_data = sas_device->starget->hostdata; in _scsih_remove_device()
6197 sas_target_priv_data->deleted = 1; in _scsih_remove_device()
6199 sas_target_priv_data->handle = in _scsih_remove_device()
6654 struct MPT3SAS_TARGET *sas_target_priv_data; in _scsih_pcie_device_remove_from_sml() local
6674 sas_target_priv_data = pcie_device->starget->hostdata; in _scsih_pcie_device_remove_from_sml()
6675 sas_target_priv_data->deleted = 1; in _scsih_pcie_device_remove_from_sml()
6677 sas_target_priv_data->handle = MPT3SAS_INVALID_DEVICE_HANDLE; in _scsih_pcie_device_remove_from_sml()
6730 struct MPT3SAS_TARGET *sas_target_priv_data; in _scsih_pcie_check_device() local
6757 sas_target_priv_data = starget->hostdata; in _scsih_pcie_check_device()
6762 sas_target_priv_data->handle = handle; in _scsih_pcie_check_device()
7788 struct MPT3SAS_TARGET *sas_target_priv_data; in _scsih_sas_volume_delete() local
7796 sas_target_priv_data = starget->hostdata; in _scsih_sas_volume_delete()
7797 sas_target_priv_data->deleted = 1; in _scsih_sas_volume_delete()
7821 struct MPT3SAS_TARGET *sas_target_priv_data; in _scsih_sas_pd_expose() local
7833 sas_target_priv_data = starget->hostdata; in _scsih_sas_pd_expose()
7834 sas_target_priv_data->flags &= in _scsih_sas_pd_expose()
7861 struct MPT3SAS_TARGET *sas_target_priv_data; in _scsih_sas_pd_hide() local
7878 sas_target_priv_data = starget->hostdata; in _scsih_sas_pd_hide()
7879 sas_target_priv_data->flags |= in _scsih_sas_pd_hide()
8384 struct MPT3SAS_TARGET *sas_target_priv_data = NULL; in _scsih_mark_responding_sas_device() local
8406 sas_target_priv_data = starget->hostdata; in _scsih_mark_responding_sas_device()
8407 sas_target_priv_data->tm_busy = 0; in _scsih_mark_responding_sas_device()
8408 sas_target_priv_data->deleted = 0; in _scsih_mark_responding_sas_device()
8410 sas_target_priv_data = NULL; in _scsih_mark_responding_sas_device()
8458 if (sas_target_priv_data) in _scsih_mark_responding_sas_device()
8459 sas_target_priv_data->handle = in _scsih_mark_responding_sas_device()
8563 struct MPT3SAS_TARGET *sas_target_priv_data = NULL; in _scsih_mark_responding_pcie_device() local
8578 sas_target_priv_data = starget->hostdata; in _scsih_mark_responding_pcie_device()
8579 sas_target_priv_data->tm_busy = 0; in _scsih_mark_responding_pcie_device()
8580 sas_target_priv_data->deleted = 0; in _scsih_mark_responding_pcie_device()
8582 sas_target_priv_data = NULL; in _scsih_mark_responding_pcie_device()
8616 if (sas_target_priv_data) in _scsih_mark_responding_pcie_device()
8617 sas_target_priv_data->handle = in _scsih_mark_responding_pcie_device()
8683 struct MPT3SAS_TARGET *sas_target_priv_data = NULL; in _scsih_mark_responding_raid_device() local
8693 sas_target_priv_data = starget->hostdata; in _scsih_mark_responding_raid_device()
8694 sas_target_priv_data->deleted = 0; in _scsih_mark_responding_raid_device()
8696 sas_target_priv_data = NULL; in _scsih_mark_responding_raid_device()
8718 if (sas_target_priv_data) in _scsih_mark_responding_raid_device()
8719 sas_target_priv_data->handle = handle; in _scsih_mark_responding_raid_device()
9742 struct MPT3SAS_TARGET *sas_target_priv_data; in scsih_remove() local
9774 sas_target_priv_data = in scsih_remove()
9776 sas_target_priv_data->deleted = 1; in scsih_remove()