Lines Matching refs:mvi_dev

92 	struct mvs_device *mvi_dev = (struct mvs_device *)dev->lldd_dev;  in mvs_find_dev_phyno()  local
93 struct mvs_info *mvi = mvi_dev->mvi_info; in mvs_find_dev_phyno()
433 struct mvs_device *mvi_dev = dev->lldd_dev; in mvs_task_prep_ata() local
446 if (mvs_assign_reg_set(mvi, mvi_dev) == MVS_ID_NOT_MAPPED) { in mvs_task_prep_ata()
448 mvi_dev->device_id); in mvs_task_prep_ata()
456 (mvi_dev->taskfileset << TXQ_SRS_SHIFT); in mvs_task_prep_ata()
541 *(u16 *)(buf_oaf + 2) = cpu_to_be16(mvi_dev->device_id + 1); in mvs_task_prep_ata()
562 struct mvs_device *mvi_dev = dev->lldd_dev; in mvs_task_prep_ssp() local
649 *(u16 *)(buf_oaf + 2) = cpu_to_be16(mvi_dev->device_id + 1); in mvs_task_prep_ssp()
694 #define DEV_IS_GONE(mvi_dev) ((!mvi_dev || (mvi_dev->dev_type == SAS_PHY_UNUSED))) argument
699 struct mvs_device *mvi_dev = dev->lldd_dev; in mvs_task_prep() local
719 if (DEV_IS_GONE(mvi_dev)) { in mvs_task_prep()
720 if (mvi_dev) in mvs_task_prep()
722 mvi_dev->device_id); in mvs_task_prep()
819 mvi_dev->running_req++; in mvs_task_prep()
1163 static void mvs_free_dev(struct mvs_device *mvi_dev) in mvs_free_dev() argument
1165 u32 id = mvi_dev->device_id; in mvs_free_dev()
1166 memset(mvi_dev, 0, sizeof(*mvi_dev)); in mvs_free_dev()
1167 mvi_dev->device_id = id; in mvs_free_dev()
1168 mvi_dev->dev_type = SAS_PHY_UNUSED; in mvs_free_dev()
1169 mvi_dev->dev_status = MVS_DEV_NORMAL; in mvs_free_dev()
1170 mvi_dev->taskfileset = MVS_ID_NOT_MAPPED; in mvs_free_dev()
1232 struct mvs_device *mvi_dev = dev->lldd_dev; in mvs_dev_gone_notify() local
1235 if (!mvi_dev) { in mvs_dev_gone_notify()
1240 mvi = mvi_dev->mvi_info; in mvs_dev_gone_notify()
1245 mvi_dev->device_id, mvi_dev->dev_type); in mvs_dev_gone_notify()
1247 mvs_free_reg_set(mvi, mvi_dev); in mvs_dev_gone_notify()
1248 mvs_free_dev(mvi_dev); in mvs_dev_gone_notify()
1251 mvi_dev->sas_device = NULL; in mvs_dev_gone_notify()
1388 struct mvs_device * mvi_dev = dev->lldd_dev; in mvs_lu_reset() local
1389 struct mvs_info *mvi = mvi_dev->mvi_info; in mvs_lu_reset()
1392 mvi_dev->dev_status = MVS_DEV_EH; in mvs_lu_reset()
1401 mvi_dev->device_id, rc); in mvs_lu_reset()
1409 struct mvs_device *mvi_dev = (struct mvs_device *)dev->lldd_dev; in mvs_I_T_nexus_reset() local
1410 struct mvs_info *mvi = mvi_dev->mvi_info; in mvs_I_T_nexus_reset()
1412 if (mvi_dev->dev_status != MVS_DEV_EH) in mvs_I_T_nexus_reset()
1415 mvi_dev->dev_status = MVS_DEV_NORMAL; in mvs_I_T_nexus_reset()
1418 __func__, mvi_dev->device_id, rc); in mvs_I_T_nexus_reset()
1437 struct mvs_device *mvi_dev = (struct mvs_device *)dev->lldd_dev; in mvs_query_task() local
1438 struct mvs_info *mvi = mvi_dev->mvi_info; in mvs_query_task()
1470 struct mvs_device *mvi_dev = (struct mvs_device *)dev->lldd_dev; in mvs_abort_task() local
1476 if (!mvi_dev) { in mvs_abort_task()
1481 mvi = mvi_dev->mvi_info; in mvs_abort_task()
1490 mvi_dev->dev_status = MVS_DEV_EH; in mvs_abort_task()
1578 struct mvs_device *mvi_dev = task->dev->lldd_dev; in mvs_sata_done() local
1586 SATA_RECEIVED_D2H_FIS(mvi_dev->taskfileset), in mvs_sata_done()
1705 struct mvs_device *mvi_dev = NULL; in mvs_slot_complete() local
1718 mvi_dev = dev->lldd_dev; in mvs_slot_complete()
1733 if (mvi_dev && mvi_dev->running_req) in mvs_slot_complete()
1734 mvi_dev->running_req--; in mvs_slot_complete()
1736 mvs_free_reg_set(mvi, mvi_dev); in mvs_slot_complete()
1743 if (unlikely(!mvi_dev || flags)) { in mvs_slot_complete()
1744 if (!mvi_dev) in mvs_slot_complete()
1810 if (mvi_dev && mvi_dev->running_req) { in mvs_slot_complete()
1811 mvi_dev->running_req--; in mvs_slot_complete()
1812 if (sas_protocol_ata(task->task_proto) && !mvi_dev->running_req) in mvs_slot_complete()
1813 mvs_free_reg_set(mvi, mvi_dev); in mvs_slot_complete()