ep->dma_counter = omap_readw(DMA_DEST_LAST(ep->lch)); 
ep->dma_counter = DMA_DEST_LAST(ep->lch); 
static void next_out_dma(struct omap_ep *ep, struct omap_req *req){	unsigned packets;	/* NOTE:  we filtered out "short reads" before, so we know	 * the buffer has only whole numbers of packets.	 */	/* set up this DMA transfer, enable the fifo, start */	packets = (req->req.length - req->req.actual) / ep->ep.maxpacket;	packets = min(packets, (unsigned)UDC_RXN_TC + 1);	req->dma_bytes = packets * ep->ep.maxpacket;	omap_set_dma_transfer_params(ep->lch, OMAP_DMA_DATA_TYPE_S8,			ep->ep.maxpacket, packets,			OMAP_DMA_SYNC_ELEMENT);	omap_set_dma_dest_params(ep->lch, OMAP_DMA_PORT_EMIFF,		OMAP_DMA_AMODE_POST_INC, req->req.dma + req->req.actual);	ep->dma_counter = omap_readw(DMA_DEST_LAST(ep->lch));	UDC_RXDMA_REG(ep->dma_channel) = UDC_RXN_STOP | (packets - 1);	UDC_DMA_IRQ_EN_REG |= UDC_RX_EOT_IE(ep->dma_channel);	UDC_EP_NUM_REG = (ep->bEndpointAddress & 0xf);	UDC_CTRL_REG = UDC_SET_FIFO_EN;	omap_start_dma(ep->lch);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/65111084c63d7674dc37833e8eb59cfdaa4d0bda/omap_udc.c/clean/drivers/usb/gadget/omap_udc.c