Searched refs:sas_dev (Results 1 – 8 of 8) sorted by relevance
211 struct hisi_sas_device *sas_dev = &hisi_hba->devices[device_id]; in hisi_sas_slot_task_free() local243 spin_lock(&sas_dev->lock); in hisi_sas_slot_task_free()245 spin_unlock(&sas_dev->lock); in hisi_sas_slot_task_free()401 struct hisi_sas_device *sas_dev) in hisi_sas_task_deliver() argument413 spin_lock(&sas_dev->lock); in hisi_sas_task_deliver()414 list_add_tail(&slot->entry, &sas_dev->list); in hisi_sas_task_deliver()415 spin_unlock(&sas_dev->lock); in hisi_sas_task_deliver()420 slot->device_id = sas_dev->device_id; in hisi_sas_task_deliver()466 struct hisi_sas_device *sas_dev = device->lldd_dev; in hisi_sas_queue_command() local507 if (DEV_IS_GONE(sas_dev)) { in hisi_sas_queue_command()[all …]
773 struct hisi_sas_device *sas_dev = device->lldd_dev; in slot_index_alloc_quirk_v2_hw() local774 int sata_idx = sas_dev->sata_idx; in slot_index_alloc_quirk_v2_hw()842 struct hisi_sas_device *sas_dev = NULL; in alloc_dev_quirk_v2_hw() local863 sas_dev = &hisi_hba->devices[i]; in alloc_dev_quirk_v2_hw()864 sas_dev->dev_status = HISI_SAS_DEV_INIT; in alloc_dev_quirk_v2_hw()865 sas_dev->dev_type = device->dev_type; in alloc_dev_quirk_v2_hw()866 sas_dev->hisi_hba = hisi_hba; in alloc_dev_quirk_v2_hw()867 sas_dev->sas_device = device; in alloc_dev_quirk_v2_hw()868 sas_dev->sata_idx = sata_idx; in alloc_dev_quirk_v2_hw()869 sas_dev->dq = dq; in alloc_dev_quirk_v2_hw()[all …]
491 struct hisi_sas_device *sas_dev) in setup_itct_v1_hw() argument493 struct domain_device *device = sas_dev->sas_device; in setup_itct_v1_hw()495 u64 qw0, device_id = sas_dev->device_id; in setup_itct_v1_hw()505 switch (sas_dev->dev_type) { in setup_itct_v1_hw()513 sas_dev->dev_type); in setup_itct_v1_hw()535 struct hisi_sas_device *sas_dev) in clear_itct_v1_hw() argument537 u64 dev_id = sas_dev->device_id; in clear_itct_v1_hw()921 struct hisi_sas_device *sas_dev = device->lldd_dev; in prep_smp_v1_hw() local938 hdr->dw1 = cpu_to_le32(sas_dev->device_id << CMD_HDR_DEVICE_ID_OFF); in prep_smp_v1_hw()957 struct hisi_sas_device *sas_dev = device->lldd_dev; in prep_ssp_v1_hw() local[all …]
820 struct hisi_sas_device *sas_dev) in setup_itct_v3_hw() argument822 struct domain_device *device = sas_dev->sas_device; in setup_itct_v3_hw()824 u64 qw0, device_id = sas_dev->device_id; in setup_itct_v3_hw()835 switch (sas_dev->dev_type) { in setup_itct_v3_hw()850 sas_dev->dev_type); in setup_itct_v3_hw()872 struct hisi_sas_device *sas_dev) in clear_itct_v3_hw() argument875 u64 dev_id = sas_dev->device_id; in clear_itct_v3_hw()880 sas_dev->completion = &completion; in clear_itct_v3_hw()891 if (!wait_for_completion_timeout(sas_dev->completion, in clear_itct_v3_hw()905 struct hisi_sas_device *sas_dev = device->lldd_dev; in dereg_device_v3_hw() local[all …]
336 void (*free_device)(struct hisi_sas_device *sas_dev);
449 struct _sas_device *sas_dev; member
653 ret = tgt_priv->sas_dev; in __mpt3sas_get_sdev_from_target()1937 sas_target_priv_data->sas_dev = sas_device; in scsih_target_alloc()2016 sas_target_priv_data->sas_dev = NULL; in scsih_target_destroy()9669 sas_device = sas_device_priv_data->sas_target->sas_dev; in _scsih_update_device_qdepth()
3971 qdepth = (sas_target_priv_data->sas_dev->port_type > 1) ? in enable_sdev_max_qd_store()