Salary Cap for Suspended Players

does the salary for suspended players count againts the cap?

For example, if Vilma is suspended for the entire year, does his cap number not count at all, or does is prorated bonus count but not his salary? Anybody know?

Also if, say, Will Smith, is suspended for 8 games, do we get half of his salary back against the cap?