Lines Matching defs:data

51  * controller driver data structures
83 * modified to tag some work data with each DMA descriptor. */
145 /* Common EP and control data */
690 * USB protocol engine command/data read/write helper functions
721 /* Issues 2 commands (or command and data) to the USB device state machine */
723 u32 data)
726 udc_protocol_cmd_w(udc, data);
730 * response data */
735 /* Write a command and read data from the protocol engine */
1135 /* Reads data from FIFO, adjusts for alignment and data size */
1136 static void udc_pop_fifo(struct lpc32xx_udc *udc, u8 *data, u32 bytes)
1142 /* Use optimal data transfer method based on source address and size */
1143 switch (((uintptr_t) data) & 0x3) {
1145 p32 = (u32 *) data;
1148 /* Copy 32-bit aligned data first */
1157 data[cbytes + n] = ((tmp >> (n * 8)) & 0xFF);
1173 data[n + i] = (u8) ((tmp >> (i * 8)) & 0xFF);
1178 p16 = (u16 *) data;
1193 data[cbytes + n] = ((tmp >> (n * 8)) & 0xFF);
1199 /* Read data from the FIFO for an endpoint. This function is for endpoints (such
1203 static u32 udc_read_hwep(struct lpc32xx_udc *udc, u32 hwep, u32 *data,
1225 if ((tmp > 0) && (data != NULL))
1226 udc_pop_fifo(udc, (u8 *) data, tmp);
1236 /* Stuffs data into the FIFO, adjusts for alignment and data size */
1237 static void udc_stuff_fifo(struct lpc32xx_udc *udc, u8 *data, u32 bytes)
1243 /* Use optimal data transfer method based on source address and size */
1244 switch (((uintptr_t) data) & 0x3) {
1246 p32 = (u32 *) data;
1249 /* Copy 32-bit aligned data first */
1258 tmp |= data[cbytes + n] << (n * 8);
1274 tmp |= data[n + i] << (i * 8);
1281 p16 = (u16 *) data;
1284 /* Copy 32-bit aligned data first */
1296 tmp |= data[cbytes + n] << (n * 8);
1304 /* Write data to the FIFO for an endpoint. This function is for endpoints (such
1307 static void udc_write_hwep(struct lpc32xx_udc *udc, u32 hwep, u32 *data,
1312 if ((bytes > 0) && (data == NULL))
1324 udc_stuff_fifo(udc, (u8 *) data, bytes);
1463 /* Write data to the EP0 FIFO and start transfer */
1466 /* Increment data pointer */
1470 return 0; /* Stay in data transfer state */
1499 /* Get data from FIFO */
1504 /* Copy data to buffer */
1611 /* Verify EP data */
1804 /* Handle expected data direction */
2177 /* Return data */
2272 /* device-2-host (IN) or no data setup command, process
2308 udc_ep0_send_zlp(udc); /* ZLP IN packet on data phase */
3071 /* Setup deferred workqueue data */