]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
musb_hdrc: Search and replace dwMaxLength with max_len
authorTony Lindgren <tony@atomide.com>
Mon, 13 Aug 2007 11:52:38 +0000 (04:52 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 13 Aug 2007 11:52:38 +0000 (04:52 -0700)
Search and replace dwMaxLength with max_len

Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/usb/musb/dma.h
drivers/usb/musb/musb_gadget.c
drivers/usb/musb/musb_host.c
drivers/usb/musb/musbhsdma.c
drivers/usb/musb/tusb6010_omap.c

index 2b7ed74118af1c9fca76335eb15cfbc24f381af6..469c0947bc8383f0517b3e19016f8d93b172444c 100644 (file)
@@ -113,7 +113,7 @@ struct dma_controller;
 struct dma_channel {
        void                    *private_data;
        // FIXME not void* private_data, but a dma_controller *
-       size_t                  dwMaxLength;
+       size_t                  max_len;
        size_t                  dwActualLength;
        enum dma_channel_status bStatus;
        u8                      bDesiredMode;
@@ -129,7 +129,7 @@ struct dma_channel {
  * @bMode: TRUE if mode 1; FALSE if mode 0
  * @dma_addr: base address of data (in DMA space)
  * @length: the number of bytes to transfer; no larger than the channel's
- *     reported dwMaxLength
+ *     reported max_len
  *
  * Returns TRUE on success, else FALSE
  */
index dda15f87da51dc5946e892bc8210d9e06220c3f8..c8270b10b8359e71efcd2a1c6261e75e4815bd57 100644 (file)
@@ -304,7 +304,7 @@ static void txstate(struct musb *musb, struct musb_request *req)
 
                        /* setup DMA, then program endpoint CSR */
                        request_size = min(pRequest->length,
-                                               musb_ep->dma->dwMaxLength);
+                                               musb_ep->dma->max_len);
                        if (request_size <= musb_ep->wPacketSize)
                                musb_ep->dma->bDesiredMode = 0;
                        else
@@ -661,7 +661,7 @@ static void rxstate(struct musb *musb, struct musb_request *req)
                                        int transfer_size = 0;
 #ifdef USE_MODE1
                                        transfer_size = min(pRequest->length,
-                                                       channel->dwMaxLength);
+                                                       channel->max_len);
 #else
                                        transfer_size = len;
 #endif
index e5b73248f97b80c8cb7a2627ac4938abe099854a..3190cc24f0611328f7545eddf7e622b738c7af5c 100644 (file)
@@ -771,7 +771,7 @@ static void musb_ep_program(struct musb *musb, u8 epnum,
                        musb_writew(epio, MGC_O_HDRC_TXCSR,
                                wCsr | MGC_M_TXCSR_MODE);
 
-                       qh->segsize = min(dwLength, pDmaChannel->dwMaxLength);
+                       qh->segsize = min(dwLength, pDmaChannel->max_len);
 
                        if (qh->segsize <= wPacketSize)
                                pDmaChannel->bDesiredMode = 0;
index 28a9aeef1eed237823c39abc43ad28c5f974b4db..272e856ee4acee496783b26a4f1ce2920e40a0df 100644 (file)
@@ -145,7 +145,7 @@ static struct dma_channel* dma_channel_allocate(struct dma_controller *c,
                        pChannel = &(pImplChannel->Channel);
                        pChannel->private_data = pImplChannel;
                        pChannel->bStatus = MGC_DMA_STATUS_FREE;
-                       pChannel->dwMaxLength = 0x10000;
+                       pChannel->max_len = 0x10000;
                        /* Tx => mode 1; Rx => mode 0 */
                        pChannel->bDesiredMode = bTransmit;
                        pChannel->dwActualLength = 0;
index 299c3c8dc9e5e136d8d1f0ab120e334a2cdd146c..7a3fc8ac42a391f26dc9054117ff7b02a1a96286 100644 (file)
@@ -548,7 +548,7 @@ tusb_omap_dma_allocate(struct dma_controller *c,
        chdat->completed_len = 0;
        chdat->tusb_dma = tusb_dma;
 
-       channel->dwMaxLength = 0x7fffffff;
+       channel->max_len = 0x7fffffff;
        channel->bDesiredMode = 0;
        channel->dwActualLength = 0;