USB: separate out endpoint queue management and DMA mapping routines