Defending champions Hampshire will play Lancashire in the quarter-finals of the Friends Life t20 competition.