Lines Matching refs:bulk
813 struct openusb_bulk_request bulk; in ptp_read_func() local
855 bulk.payload = bytes; in ptp_read_func()
856 bulk.length = toread; in ptp_read_func()
857 bulk.timeout = ptp_usb->timeout; in ptp_read_func()
858 bulk.flags = 0; in ptp_read_func()
859 bulk.next = NULL; in ptp_read_func()
860 ret = openusb_bulk_xfer(*ptp_usb->handle, ptp_usb->interface, ptp_usb->inep, &bulk); in ptp_read_func()
861 xread = bulk.result.transferred_bytes; in ptp_read_func()
930 bulk.payload = &temp; in ptp_read_func()
931 bulk.length = 0; in ptp_read_func()
932 bulk.timeout = ptp_usb->timeout; in ptp_read_func()
933 bulk.flags = 0; in ptp_read_func()
934 bulk.next = NULL; in ptp_read_func()
935 ret = openusb_bulk_xfer(*ptp_usb->handle, ptp_usb->interface, ptp_usb->inep, &bulk); in ptp_read_func()
936 xread = bulk.result.transferred_bytes; in ptp_read_func()
956 struct openusb_bulk_request bulk; in ptp_write_func() local
988 bulk.payload = bytes + usbwritten; in ptp_write_func()
989 bulk.length = towrite - usbwritten; in ptp_write_func()
990 bulk.timeout = ptp_usb->timeout; in ptp_write_func()
991 bulk.flags = 0; in ptp_write_func()
992 bulk.next = NULL; in ptp_write_func()
993 ret = openusb_bulk_xfer(*ptp_usb->handle, ptp_usb->interface, ptp_usb->outep, &bulk); in ptp_write_func()
994 xwritten = bulk.result.transferred_bytes; in ptp_write_func()
1049 bulk.payload = (unsigned char *) "x"; in ptp_write_func()
1050 bulk.length = 0; in ptp_write_func()
1051 bulk.timeout = ptp_usb->timeout; in ptp_write_func()
1052 bulk.flags = 0; in ptp_write_func()
1053 bulk.next = NULL; in ptp_write_func()
1054 ret = openusb_bulk_xfer(*ptp_usb->handle, ptp_usb->interface, ptp_usb->outep, &bulk); in ptp_write_func()
1055 xwritten = bulk.result.transferred_bytes; in ptp_write_func()
1317 struct openusb_bulk_request bulk; in ptp_usb_getdata() local
1452 bulk.payload = &byte; in ptp_usb_getdata()
1453 bulk.length = 1; in ptp_usb_getdata()
1454 bulk.timeout = ptp_usb->timeout; in ptp_usb_getdata()
1455 bulk.flags = 0; in ptp_usb_getdata()
1456 bulk.next = NULL; in ptp_usb_getdata()
1457 result = openusb_bulk_xfer(*ptp_usb->handle, ptp_usb->interface, ptp_usb->inep, &bulk); in ptp_usb_getdata()
1458 xread = bulk.result.transferred_bytes; in ptp_usb_getdata()
1476 bulk.payload = &zerobyte; in ptp_usb_getdata()
1477 bulk.length = 0; in ptp_usb_getdata()
1478 bulk.timeout = ptp_usb->timeout; in ptp_usb_getdata()
1479 bulk.flags = 0; in ptp_usb_getdata()
1480 bulk.next = NULL; in ptp_usb_getdata()
1481 … zeroresult = openusb_bulk_xfer(*ptp_usb->handle, ptp_usb->interface, ptp_usb->inep, &bulk); in ptp_usb_getdata()
1482 xread = bulk.result.transferred_bytes; in ptp_usb_getdata()
1578 struct openusb_bulk_request bulk; in ptp_usb_event() local
1596 bulk.payload = (unsigned char *) &usbevent; in ptp_usb_event()
1597 bulk.length = sizeof (usbevent); in ptp_usb_event()
1598 bulk.timeout = ptp_usb->timeout; in ptp_usb_event()
1599 bulk.flags = 0; in ptp_usb_event()
1600 bulk.next = NULL; in ptp_usb_event()
1601 result = openusb_bulk_xfer(*ptp_usb->handle, ptp_usb->interface, ptp_usb->intep, &bulk); in ptp_usb_event()
1602 xread = bulk.result.transferred_bytes; in ptp_usb_event()
1613 bulk.payload = (unsigned char *) &usbevent; in ptp_usb_event()
1614 bulk.length = sizeof (usbevent); in ptp_usb_event()
1615 bulk.timeout = ptp_usb->timeout; in ptp_usb_event()
1616 bulk.flags = 0; in ptp_usb_event()
1617 bulk.next = NULL; in ptp_usb_event()
1618 … result = openusb_bulk_xfer(*ptp_usb->handle, ptp_usb->interface, ptp_usb->intep, &bulk); in ptp_usb_event()
1619 xread = bulk.result.transferred_bytes; in ptp_usb_event()
1632 bulk.payload = (unsigned char *) &usbevent; in ptp_usb_event()
1633 bulk.length = sizeof (usbevent); in ptp_usb_event()
1634 bulk.timeout = ptp_usb->timeout; in ptp_usb_event()
1635 bulk.flags = 0; in ptp_usb_event()
1636 bulk.next = NULL; in ptp_usb_event()
1637 result = openusb_bulk_xfer(*ptp_usb->handle, ptp_usb->interface, ptp_usb->intep, &bulk); in ptp_usb_event()
1638 xread = bulk.result.transferred_bytes; in ptp_usb_event()
1649 bulk.payload = (unsigned char *) &usbevent; in ptp_usb_event()
1650 bulk.length = sizeof (usbevent); in ptp_usb_event()
1651 bulk.timeout = ptp_usb->timeout; in ptp_usb_event()
1652 bulk.flags = 0; in ptp_usb_event()
1653 bulk.next = NULL; in ptp_usb_event()
1654 … result = openusb_bulk_xfer(*ptp_usb->handle, ptp_usb->interface, ptp_usb->intep, &bulk); in ptp_usb_event()
1655 xread = bulk.result.transferred_bytes; in ptp_usb_event()