Retirement tax questions

So for a single member S-Corp, is the maximum SEP contribution equivalent to 25% of Line 21 of 1120-S or Line 7 (25% of compensation to myself as an officer)? Thank you