Mortgage interets

We refinanced in 2021 and took a first mortgage on house and a HELOC. Paid off mortgage on second home. My interest deduction is not for full amount of interest paid. It is short from interest paid on all loans secured by property. Why am I not getting full amount of interest paid as a deduction?