Quadratic Wiener functionals and dynamics on Grassmannians