The layoffs are expected to affect multiple teams, divisions, and locations, including Xbox and games.