tax implications to mortgage refinancing

What are the tax implications to mortgage refinancing to Cash-out refinance, Cash-in refinance and Rate-and-term to primary home and rental properties?