On functional limits of short- and long-memory linear processes with GARCH(1,1) noises