Home
last modified time | relevance | path

Searched refs:sas_dev (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.10/drivers/scsi/hisi_sas/
Dhisi_sas_main.c221 struct hisi_sas_device *sas_dev = &hisi_hba->devices[device_id]; in hisi_sas_slot_task_free() local
247 spin_lock(&sas_dev->lock); in hisi_sas_slot_task_free()
249 spin_unlock(&sas_dev->lock); in hisi_sas_slot_task_free()
413 struct hisi_sas_device *sas_dev = device->lldd_dev; in hisi_sas_task_prep() local
426 if (DEV_IS_GONE(sas_dev)) { in hisi_sas_task_prep()
427 if (sas_dev) in hisi_sas_task_prep()
429 sas_dev->device_id); in hisi_sas_task_prep()
462 *dq_pointer = dq = sas_dev->dq; in hisi_sas_task_prep()
502 spin_lock(&sas_dev->lock); in hisi_sas_task_prep()
503 list_add_tail(&slot->entry, &sas_dev->list); in hisi_sas_task_prep()
[all …]
Dhisi_sas_v2_hw.c773 struct hisi_sas_device *sas_dev = device->lldd_dev; in slot_index_alloc_quirk_v2_hw() local
774 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() local
863 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 …]
Dhisi_sas_v1_hw.c491 struct hisi_sas_device *sas_dev) in setup_itct_v1_hw() argument
493 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() argument
537 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() local
938 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 …]
Dhisi_sas_v3_hw.c763 struct hisi_sas_device *sas_dev) in setup_itct_v3_hw() argument
765 struct domain_device *device = sas_dev->sas_device; in setup_itct_v3_hw()
767 u64 qw0, device_id = sas_dev->device_id; in setup_itct_v3_hw()
778 switch (sas_dev->dev_type) { in setup_itct_v3_hw()
793 sas_dev->dev_type); in setup_itct_v3_hw()
815 struct hisi_sas_device *sas_dev) in clear_itct_v3_hw() argument
818 u64 dev_id = sas_dev->device_id; in clear_itct_v3_hw()
823 sas_dev->completion = &completion; in clear_itct_v3_hw()
834 if (!wait_for_completion_timeout(sas_dev->completion, in clear_itct_v3_hw()
848 struct hisi_sas_device *sas_dev = device->lldd_dev; in dereg_device_v3_hw() local
[all …]
Dhisi_sas.h341 void (*free_device)(struct hisi_sas_device *sas_dev);
/Linux-v5.10/drivers/scsi/mpt3sas/
Dmpt3sas_base.h435 struct _sas_device *sas_dev; member
Dmpt3sas_scsih.c557 ret = tgt_priv->sas_dev; in __mpt3sas_get_sdev_from_target()
1770 sas_target_priv_data->sas_dev = sas_device; in scsih_target_alloc()
1849 sas_target_priv_data->sas_dev = NULL; in scsih_target_destroy()