SEP-IRA contributions

I am a self employed LLC and I receive income via w-2 salary and owner draws/distibutions

Question

Do I contribute to SEP based on total income or just my w-2 income?