Lines Matching defs:bytes
1136 static void udc_pop_fifo(struct lpc32xx_udc *udc, u8 *data, u32 bytes)
1146 cbytes = (bytes & ~0x3);
1152 /* Handle any remaining bytes */
1153 bl = bytes - cbytes;
1165 for (n = 0; n < bytes; n += 4) {
1168 bl = bytes - n;
1179 cbytes = (bytes & ~0x3);
1188 /* Handle any remaining bytes */
1189 bl = bytes - cbytes;
1204 u32 bytes)
1222 if (bytes < tmp)
1223 tmp = bytes;
1237 static void udc_stuff_fifo(struct lpc32xx_udc *udc, u8 *data, u32 bytes)
1247 cbytes = (bytes & ~0x3);
1253 /* Handle any remaining bytes */
1254 bl = bytes - cbytes;
1267 for (n = 0; n < bytes; n += 4) {
1268 bl = bytes - n;
1282 cbytes = (bytes & ~0x3);
1291 /* Handle any remaining bytes */
1292 bl = bytes - cbytes;
1308 u32 bytes)
1312 if ((bytes > 0) && (data == NULL))
1318 writel(bytes, USBD_TXPLEN(udc->udp_baseaddr));
1321 if (bytes == 0)
1324 udc_stuff_fifo(udc, (u8 *) data, bytes);
2187 int i, bytes;
2194 bytes = udc_read_hwep(udc, EP_OUT, (u32 *) &ctrlpkt, 8);
2195 if (bytes != 8) {
2197 bytes);
3092 dev_dbg(udc->dev, "DMA buffer(0x%x bytes), P:0x%08x, V:0x%p\n",