Lines Matching refs:LastTarget
496 UINT16 LastTarget; in VirtioScsiGetNextTargetLun() local
518 CopyMem (&LastTarget, Target, sizeof LastTarget); in VirtioScsiGetNextTargetLun()
524 if (LastTarget > Dev->MaxTarget || *Lun > Dev->MaxLun) { in VirtioScsiGetNextTargetLun()
533 if (LastTarget < Dev->MaxTarget) { in VirtioScsiGetNextTargetLun()
535 ++LastTarget; in VirtioScsiGetNextTargetLun()
536 CopyMem (Target, &LastTarget, sizeof LastTarget); in VirtioScsiGetNextTargetLun()
659 UINT16 LastTarget; in VirtioScsiGetNextTarget() local
680 CopyMem (&LastTarget, Target, sizeof LastTarget); in VirtioScsiGetNextTarget()
686 if (LastTarget > Dev->MaxTarget) { in VirtioScsiGetNextTarget()
690 if (LastTarget < Dev->MaxTarget) { in VirtioScsiGetNextTarget()
691 ++LastTarget; in VirtioScsiGetNextTarget()
692 CopyMem (Target, &LastTarget, sizeof LastTarget); in VirtioScsiGetNextTarget()