]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
musb_hdrc: Search and replace wRxCount with rx_count
authorTony Lindgren <tony@atomide.com>
Thu, 16 Aug 2007 08:05:17 +0000 (01:05 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 16 Aug 2007 10:35:05 +0000 (03:35 -0700)
Search and replace wRxCount with rx_count

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

index ef1efd75e8465d12f4276adae5640129f853444f..cb14125f5fafe70538c09beebac649942d925492 100644 (file)
@@ -469,7 +469,7 @@ static inline u16 musb_h_flush_rxfifo(struct musb_hw_ep *hw_ep, u16 csr)
 static u8 musb_host_packet_rx(struct musb *musb, struct urb *urb,
                u8 epnum, u8 bIsochError)
 {
-       u16 wRxCount;
+       u16 rx_count;
        u8 *buf;
        u16 csr;
        u8 bDone = FALSE;
@@ -482,8 +482,8 @@ static u8 musb_host_packet_rx(struct musb *musb, struct urb *urb,
        void                    *buffer = urb->transfer_buffer;
 
        // musb_ep_select(mbase, epnum);
-       wRxCount = musb_readw(epio, MUSB_RXCOUNT);
-       DBG(3, "RX%d count %d, buffer %p len %d/%d\n", epnum, wRxCount,
+       rx_count = musb_readw(epio, MUSB_RXCOUNT);
+       DBG(3, "RX%d count %d, buffer %p len %d/%d\n", epnum, rx_count,
                        urb->transfer_buffer, qh->offset,
                        urb->transfer_buffer_length);
 
@@ -500,15 +500,15 @@ static u8 musb_host_packet_rx(struct musb *musb, struct urb *urb,
                d = urb->iso_frame_desc + qh->iso_idx;
                buf = buffer + d->offset;
                length = d->length;
-               if (wRxCount > length) {
+               if (rx_count > length) {
                        if (status == 0) {
                                status = -EOVERFLOW;
                                urb->error_count++;
                        }
-                       DBG(2, "** OVERFLOW %d into %d\n", wRxCount, length);
+                       DBG(2, "** OVERFLOW %d into %d\n", rx_count, length);
                        do_flush = 1;
                } else
-                       length = wRxCount;
+                       length = rx_count;
                urb->actual_length += length;
                d->actual_length = length;
 
@@ -520,19 +520,19 @@ static u8 musb_host_packet_rx(struct musb *musb, struct urb *urb,
                /* non-isoch */
                buf = buffer + qh->offset;
                length = urb->transfer_buffer_length - qh->offset;
-               if (wRxCount > length) {
+               if (rx_count > length) {
                        if (urb->status == -EINPROGRESS)
                                urb->status = -EOVERFLOW;
-                       DBG(2, "** OVERFLOW %d into %d\n", wRxCount, length);
+                       DBG(2, "** OVERFLOW %d into %d\n", rx_count, length);
                        do_flush = 1;
                } else
-                       length = wRxCount;
+                       length = rx_count;
                urb->actual_length += length;
                qh->offset += length;
 
                /* see if we are done */
                bDone = (urb->actual_length == urb->transfer_buffer_length)
-                       || (wRxCount < qh->maxpacket)
+                       || (rx_count < qh->maxpacket)
                        || (urb->status != -EINPROGRESS);
                if (bDone
                                && (urb->status == -EINPROGRESS)
@@ -1555,13 +1555,13 @@ void musb_host_rx(struct musb *musb, u8 epnum)
 #ifdef CONFIG_USB_INVENTRA_DMA
                if (dma) {
                        struct dma_controller   *c;
-                       u16                     wRxCount;
+                       u16                     rx_count;
                        int                     status;
 
-                       wRxCount = musb_readw(epio, MUSB_RXCOUNT);
+                       rx_count = musb_readw(epio, MUSB_RXCOUNT);
 
                        DBG(2, "RX%d count %d, buffer 0x%x len %d/%d\n",
-                                       epnum, wRxCount,
+                                       epnum, rx_count,
                                        urb->transfer_dma
                                                + urb->actual_length,
                                        qh->offset,
@@ -1621,7 +1621,7 @@ void musb_host_rx(struct musb *musb, u8 epnum)
                                urb->transfer_dma
                                        + urb->actual_length,
                                (dma->desired_mode == 0)
-                                       ? wRxCount
+                                       ? rx_count
                                        : urb->transfer_buffer_length);
 
                        if (!status) {