struct dma_channel Channel;
struct musb_dma_controller *pController;
u32 dwStartAddress;
- u32 dwCount;
+ u32 len;
u16 wMaxPacketSize;
u8 bIndex;
u8 bEnd;
pChannel->dwActualLength = 0;
pImplChannel->dwStartAddress = 0;
- pImplChannel->dwCount = 0;
+ pImplChannel->len = 0;
pImplChannel->pController->bmUsedChannels &=
~(1 << pImplChannel->bIndex);
pChannel->dwActualLength = 0;
pImplChannel->dwStartAddress = dma_addr;
- pImplChannel->dwCount = dwLength;
+ pImplChannel->len = dwLength;
pImplChannel->wMaxPacketSize = wPacketSize;
pChannel->bStatus = MGC_DMA_STATUS_BUSY;
DBG(2, "ch %p, 0x%x -> 0x%x (%d / %d) %s\n",
pChannel, pImplChannel->dwStartAddress,
dwAddress, pChannel->dwActualLength,
- pImplChannel->dwCount,
+ pImplChannel->len,
(pChannel->dwActualLength <
- pImplChannel->dwCount) ?
+ pImplChannel->len) ?
"=> reconfig 0": "=> complete");
u8 devctl = musb_readb(mbase,