Flow patterns and dissipation of turbulent kinetic energy in near-wall turbulence