Deductions & credits

Just to clarify, was the home always your primary residence? Even when part of the home was used as a rental, was the rest your primary residence?