Lines Matching refs:mvi_dev

90 	struct mvs_device *mvi_dev = (struct mvs_device *)dev->lldd_dev;  in mvs_find_dev_phyno()  local
91 struct mvs_info *mvi = mvi_dev->mvi_info; in mvs_find_dev_phyno()
432 struct mvs_device *mvi_dev = dev->lldd_dev; in mvs_task_prep_ata() local
445 if (mvs_assign_reg_set(mvi, mvi_dev) == MVS_ID_NOT_MAPPED) { in mvs_task_prep_ata()
447 mvi_dev->device_id); in mvs_task_prep_ata()
455 (mvi_dev->taskfileset << TXQ_SRS_SHIFT); in mvs_task_prep_ata()
540 *(u16 *)(buf_oaf + 2) = cpu_to_be16(mvi_dev->device_id + 1); in mvs_task_prep_ata()
561 struct mvs_device *mvi_dev = dev->lldd_dev; in mvs_task_prep_ssp() local
644 *(u16 *)(buf_oaf + 2) = cpu_to_be16(mvi_dev->device_id + 1); in mvs_task_prep_ssp()
688 #define DEV_IS_GONE(mvi_dev) ((!mvi_dev || (mvi_dev->dev_type == SAS_PHY_UNUSED))) argument
693 struct mvs_device *mvi_dev = dev->lldd_dev; in mvs_task_prep() local
714 if (DEV_IS_GONE(mvi_dev)) { in mvs_task_prep()
715 if (mvi_dev) in mvs_task_prep()
717 mvi_dev->device_id); in mvs_task_prep()
816 mvi_dev->running_req++; in mvs_task_prep()
1155 static void mvs_free_dev(struct mvs_device *mvi_dev) in mvs_free_dev() argument
1157 u32 id = mvi_dev->device_id; in mvs_free_dev()
1158 memset(mvi_dev, 0, sizeof(*mvi_dev)); in mvs_free_dev()
1159 mvi_dev->device_id = id; in mvs_free_dev()
1160 mvi_dev->dev_type = SAS_PHY_UNUSED; in mvs_free_dev()
1161 mvi_dev->dev_status = MVS_DEV_NORMAL; in mvs_free_dev()
1162 mvi_dev->taskfileset = MVS_ID_NOT_MAPPED; in mvs_free_dev()
1217 struct mvs_device *mvi_dev = dev->lldd_dev; in mvs_dev_gone_notify() local
1220 if (!mvi_dev) { in mvs_dev_gone_notify()
1225 mvi = mvi_dev->mvi_info; in mvs_dev_gone_notify()
1230 mvi_dev->device_id, mvi_dev->dev_type); in mvs_dev_gone_notify()
1232 mvs_free_reg_set(mvi, mvi_dev); in mvs_dev_gone_notify()
1233 mvs_free_dev(mvi_dev); in mvs_dev_gone_notify()
1236 mvi_dev->sas_device = NULL; in mvs_dev_gone_notify()
1266 struct mvs_device * mvi_dev = dev->lldd_dev; in mvs_lu_reset() local
1267 struct mvs_info *mvi = mvi_dev->mvi_info; in mvs_lu_reset()
1269 mvi_dev->dev_status = MVS_DEV_EH; in mvs_lu_reset()
1278 mvi_dev->device_id, rc); in mvs_lu_reset()
1286 struct mvs_device *mvi_dev = (struct mvs_device *)dev->lldd_dev; in mvs_I_T_nexus_reset() local
1287 struct mvs_info *mvi = mvi_dev->mvi_info; in mvs_I_T_nexus_reset()
1289 if (mvi_dev->dev_status != MVS_DEV_EH) in mvs_I_T_nexus_reset()
1292 mvi_dev->dev_status = MVS_DEV_NORMAL; in mvs_I_T_nexus_reset()
1295 __func__, mvi_dev->device_id, rc); in mvs_I_T_nexus_reset()
1311 struct mvs_device *mvi_dev = (struct mvs_device *)dev->lldd_dev; in mvs_query_task() local
1312 struct mvs_info *mvi = mvi_dev->mvi_info; in mvs_query_task()
1338 struct mvs_device *mvi_dev = (struct mvs_device *)dev->lldd_dev; in mvs_abort_task() local
1344 if (!mvi_dev) { in mvs_abort_task()
1349 mvi = mvi_dev->mvi_info; in mvs_abort_task()
1358 mvi_dev->dev_status = MVS_DEV_EH; in mvs_abort_task()
1407 struct mvs_device *mvi_dev = task->dev->lldd_dev; in mvs_sata_done() local
1415 SATA_RECEIVED_D2H_FIS(mvi_dev->taskfileset), in mvs_sata_done()
1534 struct mvs_device *mvi_dev = NULL; in mvs_slot_complete() local
1547 mvi_dev = dev->lldd_dev; in mvs_slot_complete()
1561 if (mvi_dev && mvi_dev->running_req) in mvs_slot_complete()
1562 mvi_dev->running_req--; in mvs_slot_complete()
1564 mvs_free_reg_set(mvi, mvi_dev); in mvs_slot_complete()
1571 if (unlikely(!mvi_dev || flags)) { in mvs_slot_complete()
1572 if (!mvi_dev) in mvs_slot_complete()
1638 if (mvi_dev && mvi_dev->running_req) { in mvs_slot_complete()
1639 mvi_dev->running_req--; in mvs_slot_complete()
1640 if (sas_protocol_ata(task->task_proto) && !mvi_dev->running_req) in mvs_slot_complete()
1641 mvs_free_reg_set(mvi, mvi_dev); in mvs_slot_complete()