Can Rental income, losses offset MLP or PTP stock income, losses

I understand Rental income/expenses being passive cannot offset normal stock gain/loss but Can Rental income, losses offset MLP or PTP stock income, losses (since that is passive too)?