Changeset b7fd2a0 in mainline for uspace/lib/usbdev/src/devpoll.c
- Timestamp:
- 2018-01-13T03:10:29Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/src/devpoll.c
r36f0738 rb7fd2a0 77 77 * @return Always EOK. 78 78 */ 79 static int polling_fibril(void *arg)79 static errno_t polling_fibril(void *arg) 80 80 { 81 81 assert(arg); … … 102 102 while (failed_attempts <= params->max_failures) { 103 103 size_t actual_size; 104 const int rc = usb_pipe_read(pipe, data->buffer,104 const errno_t rc = usb_pipe_read(pipe, data->buffer, 105 105 data->request_size, &actual_size); 106 106 … … 206 206 * @retval EOK New fibril polling the device was already started. 207 207 */ 208 static int usb_device_auto_polling_internal(usb_device_t *dev,208 static errno_t usb_device_auto_polling_internal(usb_device_t *dev, 209 209 usb_endpoint_mapping_t *epm, const usb_device_auto_polling_t *polling, 210 210 size_t request_size) … … 275 275 * @retval EOK New fibril polling the device was already started. 276 276 */ 277 int usb_device_auto_polling(usb_device_t *usb_dev, usb_endpoint_t ep,277 errno_t usb_device_auto_polling(usb_device_t *usb_dev, usb_endpoint_t ep, 278 278 const usb_device_auto_polling_t *polling, size_t req_size) 279 279 { … … 301 301 * @retval EOK New fibril polling the device was already started. 302 302 */ 303 int usb_device_auto_poll(usb_device_t *dev, usb_endpoint_t ep,303 errno_t usb_device_auto_poll(usb_device_t *dev, usb_endpoint_t ep, 304 304 usb_polling_callback_t callback, size_t request_size, int delay, 305 305 usb_polling_terminted_callback_t terminated_callback, void *arg) … … 321 321 } 322 322 323 int usb_device_auto_polling_desc(usb_device_t *usb_dev,323 errno_t usb_device_auto_polling_desc(usb_device_t *usb_dev, 324 324 const usb_endpoint_description_t *desc, 325 325 const usb_device_auto_polling_t *polling, size_t req_size) … … 330 330 } 331 331 332 int usb_device_auto_poll_desc(usb_device_t * usb_dev,332 errno_t usb_device_auto_poll_desc(usb_device_t * usb_dev, 333 333 const usb_endpoint_description_t *desc, usb_polling_callback_t callback, 334 334 size_t req_size, int delay,
Note:
See TracChangeset
for help on using the changeset viewer.