Lines Matching defs:bytes
403 /* Check if descriptor length is at least 10 bytes */
714 printf(" IN endpoint maxpacket: %d bytes\n", ptp_usb->inep_maxpacket);
715 printf(" OUT endpoint maxpacket: %d bytes\n", ptp_usb->outep_maxpacket);
791 * 1. Send the command (0x0c bytes) if headers are split, else, send
792 * command plus sizeof(endpoint) - 0x0c bytes.
795 * 3. REPEAT send 0x10000 byte chunks UNTIL remaining bytes < 0x10000
797 * 4. Send remaining bytes MOD sizeof(endpoint)
798 * 5. Send remaining bytes. If this happens to be exactly sizeof(endpoint)
819 unsigned char *bytes;
823 bytes = malloc(CONTEXT_BLOCK_SIZE);
827 printf("Remaining size to read: 0x%04lx bytes\n", size - curread);
848 printf("unexpected toread size 0x%04x, 0x%04x remaining bytes\n",
852 printf("Reading in 0x%04lx bytes\n", toread);
854 result = USB_BULK_READ(ptp_usb->handle, ptp_usb->inep, (char*)bytes, toread, ptp_usb->timeout);
869 data_dump_ascii (stdout,bytes,result,16);
881 int putfunc_ret = handler->putfunc(NULL, handler->priv, result, bytes, &written);
910 free (bytes);
942 unsigned char *bytes;
945 bytes = malloc(CONTEXT_BLOCK_SIZE);
946 if (!bytes) {
960 int getfunc_ret = handler->getfunc(NULL, handler->priv,towrite,bytes,&towrite);
964 result = USB_BULK_WRITE(ptp_usb->handle,ptp_usb->outep,((char*)bytes+usbwritten),towrite-usbwritten,ptp_usb->timeout);
968 data_dump_ascii (stdout,bytes+usbwritten,result,16);
1002 free (bytes);
1160 "PTP: request code 0x%04x sending req wrote only %ld bytes instead of %d",
1345 * Marcus observed stray bytes on iRiver devices;
1359 libusb_glue_debug (params, "ptp2/ptp_usb_getdata: read %d bytes "
1448 "of %d bytes, expect problems! (re-reading "
1537 "PTP: reading event an short read of %ld bytes