Is a rate lock fee that is part of closing costs tax deductible? It shows under origination charges so not sure if I include that amount with "points paid"

I paid 4786.15 in points and paid for an extended rate lock with 4137.82. For a total origination charge of 8923.97. Is the deduction only for the points amount or the total origination cost?