A lockdown can be for just a wing or a dorm in a prison, or for all inmates of a particular security level, or for the whole prison. It will depend on whether the lockdown is for specific security reasons, or if it is one of the twice-yearly lockdowns for "house cleaning".