dma_unmap_single(musb->controller,
req->request.dma,
req->request.length,
- req->bTx
+ req->tx
? DMA_TO_DEVICE
: DMA_FROM_DEVICE);
req->request.dma = DMA_ADDR_INVALID;
dma_sync_single_for_cpu(musb->controller,
req->request.dma,
req->request.length,
- req->bTx
+ req->tx
? DMA_TO_DEVICE
: DMA_FROM_DEVICE);
}
static void musb_ep_restart(struct musb *musb, struct musb_request *req)
{
DBG(3, "<== %s request %p len %u on hw_ep%d\n",
- req->bTx ? "TX/IN" : "RX/OUT",
+ req->tx ? "TX/IN" : "RX/OUT",
&req->request, req->request.length, req->epnum);
musb_ep_select(musb->mregs, req->epnum);
- if (req->bTx)
+ if (req->tx)
txstate(musb, req);
else
rxstate(musb, req);
request->request.actual = 0;
request->request.status = -EINPROGRESS;
request->epnum = musb_ep->current_epnum;
- request->bTx = musb_ep->is_in;
+ request->tx = musb_ep->is_in;
if (is_dma_capable() && musb_ep->dma) {
if (request->request.dma == DMA_ADDR_INVALID) {
musb->controller,
request->request.buf,
request->request.length,
- request->bTx
+ request->tx
? DMA_TO_DEVICE
: DMA_FROM_DEVICE);
request->mapped = 1;
dma_sync_single_for_device(musb->controller,
request->request.dma,
request->request.length,
- request->bTx
+ request->tx
? DMA_TO_DEVICE
: DMA_FROM_DEVICE);
request->mapped = 0;