Searched refs:PTP_USB_BULK_HDR_LEN (Results 1 – 3 of 3) sorted by relevance
/external/libmtp/src/ |
D | libusb-glue.c | 1183 usbdata.length = htod32(PTP_USB_BULK_HDR_LEN+size); in ptp_usb_senddata() 1189 ((PTP_USB*)params->data)->current_transfer_total = size+PTP_USB_BULK_HDR_LEN; in ptp_usb_senddata() 1193 wlen = PTP_USB_BULK_HDR_LEN; in ptp_usb_senddata() 1198 wlen = PTP_USB_BULK_HDR_LEN + datawlen; in ptp_usb_senddata() 1311 params, handler->priv, rlen - PTP_USB_BULK_HDR_LEN, usbdata.payload.data, in ptp_usb_getdata() 1351 if (surplen >= PTP_USB_BULK_HDR_LEN) { in ptp_usb_getdata() 1371 len=dtoh32(usbdata.length)-PTP_USB_BULK_HDR_LEN; in ptp_usb_getdata() 1380 params, handler->priv, rlen - PTP_USB_BULK_HDR_LEN, usbdata.payload.data, in ptp_usb_getdata() 1387 len+PTP_USB_BULK_HDR_LEN == PTP_USB_BULK_HS_MAX_PACKET_LEN_READ) { in ptp_usb_getdata() 1398 …} else if (len+PTP_USB_BULK_HDR_LEN == PTP_USB_BULK_HS_MAX_PACKET_LEN_READ && params->split_header… in ptp_usb_getdata() [all …]
|
D | ptp.h | 80 #define PTP_USB_BULK_HDR_LEN (2*sizeof(uint32_t)+2*sizeof(uint16_t)) macro 81 #define PTP_USB_BULK_PAYLOAD_LEN_WRITE (PTP_USB_BULK_HS_MAX_PACKET_LEN_WRITE-PTP_USB_BULK_HDR_LEN) 82 #define PTP_USB_BULK_PAYLOAD_LEN_READ (PTP_USB_BULK_HS_MAX_PACKET_LEN_READ-PTP_USB_BULK_HDR_LEN) 83 #define PTP_USB_BULK_REQ_LEN (PTP_USB_BULK_HDR_LEN+5*sizeof(uint32_t))
|
D | libmtp.c | 4808 PTP_USB_BULK_HDR_LEN+sizeof(uint32_t); // Request length, one parameter 4873 PTP_USB_BULK_HDR_LEN+sizeof(uint32_t); // Request length, one parameter 5388 ptp_usb->current_transfer_total = filedata->filesize+PTP_USB_BULK_HDR_LEN*2; 5491 ptp_usb->current_transfer_total = filedata->filesize+PTP_USB_BULK_HDR_LEN*2;
|