First let me clarify the difference between a Home Equity Line of Credit (HELOC) and a Closed End Home Loan. A HELOC is a line of credit that works like a credit card. You can withdraw funds and pay them back as much as you like within the term of your loan. Interest is only paid on the money you withdraw. The interest rate is adjustable and usually indexed to the Prime rate.
With a “ closed end loan” you take a loan for one lump sum and will repay the loan with fixed or adjustable monthly payments, but do not have the ability to withdraw the funds once you pay them back. Either loan can be in 1st or 2nd position and both would be considered cash out refinance transactions. Be carefull though, because you can only write off interest on $100,000 if it is your primary residence.