Lines Matching refs:sas_dev
820 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
910 spin_lock(&sas_dev->lock); in dereg_device_v3_hw()
911 list_for_each_entry_safe(slot, slot2, &sas_dev->list, entry) { in dereg_device_v3_hw()
918 spin_unlock(&sas_dev->lock); in dereg_device_v3_hw()
1263 struct hisi_sas_device *sas_dev = device->lldd_dev; in prep_ssp_v3_hw() local
1301 dw1 |= sas_dev->device_id << CMD_HDR_DEV_ID_OFF; in prep_ssp_v3_hw()
1387 struct hisi_sas_device *sas_dev = device->lldd_dev; in prep_smp_v3_hw() local
1403 hdr->dw1 = cpu_to_le32((sas_dev->device_id << CMD_HDR_DEV_ID_OFF) | in prep_smp_v3_hw()
1424 struct hisi_sas_device *sas_dev = device->lldd_dev; in prep_ata_v3_hw() local
1458 dw1 |= sas_dev->device_id << CMD_HDR_DEV_ID_OFF; in prep_ata_v3_hw()
1505 struct hisi_sas_device *sas_dev = dev->lldd_dev; in prep_abort_v3_hw() local
1515 hdr->dw1 = cpu_to_le32(sas_dev->device_id in prep_abort_v3_hw()
2177 struct hisi_sas_device *sas_dev = in fatal_axi_int_v3_hw() local
2182 complete(sas_dev->completion); in fatal_axi_int_v3_hw()
2249 struct hisi_sas_device *sas_dev = device->lldd_dev; in slot_err_v3_hw() local
2251 sas_dev->dev_status = HISI_SAS_DEV_NCQ_ERR; in slot_err_v3_hw()
2283 struct hisi_sas_device *sas_dev; in slot_complete_v3_hw() local
2302 sas_dev = device->lldd_dev; in slot_complete_v3_hw()
2311 if (unlikely(!sas_dev)) { in slot_complete_v3_hw()
2353 slot->idx, task, sas_dev->device_id, in slot_complete_v3_hw()
2469 struct hisi_sas_device *sas_dev = in complete_v3_hw() local
2471 struct domain_device *device = sas_dev->sas_device; in complete_v3_hw()
2478 sas_dev->dev_status = HISI_SAS_DEV_NCQ_ERR; in complete_v3_hw()