Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/scsi/hisi_sas/
Dhisi_sas_main.c211 struct hisi_sas_device *sas_dev = &hisi_hba->devices[device_id]; in hisi_sas_slot_task_free() local
243 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() argument
413 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() local
507 if (DEV_IS_GONE(sas_dev)) { in hisi_sas_queue_command()
[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.c820 struct hisi_sas_device *sas_dev) in setup_itct_v3_hw() argument
822 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() argument
875 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 …]
Dhisi_sas.h336 void (*free_device)(struct hisi_sas_device *sas_dev);
/linux-6.12.1/drivers/scsi/mpt3sas/
Dmpt3sas_base.h449 struct _sas_device *sas_dev; member
Dmpt3sas_scsih.c653 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()
Dmpt3sas_ctl.c3971 qdepth = (sas_target_priv_data->sas_dev->port_type > 1) ? in enable_sdev_max_qd_store()