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() local242 spin_lock(&sas_dev->lock); in hisi_sas_slot_task_free()244 spin_unlock(&sas_dev->lock); in hisi_sas_slot_task_free()397 struct hisi_sas_device *sas_dev) in hisi_sas_task_deliver() argument409 spin_lock(&sas_dev->lock); in hisi_sas_task_deliver()410 list_add_tail(&slot->entry, &sas_dev->list); in hisi_sas_task_deliver()411 spin_unlock(&sas_dev->lock); in hisi_sas_task_deliver()416 slot->device_id = sas_dev->device_id; in hisi_sas_task_deliver()462 struct hisi_sas_device *sas_dev = device->lldd_dev; in hisi_sas_queue_command() local503 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 …]
782 struct hisi_sas_device *sas_dev) in setup_itct_v3_hw() argument784 struct domain_device *device = sas_dev->sas_device; in setup_itct_v3_hw()786 u64 qw0, device_id = sas_dev->device_id; in setup_itct_v3_hw()797 switch (sas_dev->dev_type) { in setup_itct_v3_hw()812 sas_dev->dev_type); in setup_itct_v3_hw()834 struct hisi_sas_device *sas_dev) in clear_itct_v3_hw() argument837 u64 dev_id = sas_dev->device_id; in clear_itct_v3_hw()842 sas_dev->completion = &completion; in clear_itct_v3_hw()853 if (!wait_for_completion_timeout(sas_dev->completion, in clear_itct_v3_hw()867 struct hisi_sas_device *sas_dev = device->lldd_dev; in dereg_device_v3_hw() local[all …]
334 void (*free_device)(struct hisi_sas_device *sas_dev);
449 struct _sas_device *sas_dev; member
654 ret = tgt_priv->sas_dev; in __mpt3sas_get_sdev_from_target()1938 sas_target_priv_data->sas_dev = sas_device; in scsih_target_alloc()2017 sas_target_priv_data->sas_dev = NULL; in scsih_target_destroy()9684 sas_device = sas_device_priv_data->sas_target->sas_dev; in _scsih_update_device_qdepth()
3917 qdepth = (sas_target_priv_data->sas_dev->port_type > 1) ? in enable_sdev_max_qd_store()