Searched refs:PTP_USB_BULK_HDR_LEN (Results 1 – 5 of 5) sorted by relevance
/external/libmtp/src/ |
D | libusb-glue.c | 1214 usbdata.length = htod32(PTP_USB_BULK_HDR_LEN+size); in ptp_usb_senddata() 1220 ((PTP_USB*)params->data)->current_transfer_total = size+PTP_USB_BULK_HDR_LEN; in ptp_usb_senddata() 1224 wlen = PTP_USB_BULK_HDR_LEN; in ptp_usb_senddata() 1229 wlen = PTP_USB_BULK_HDR_LEN + datawlen; in ptp_usb_senddata() 1347 params, handler->priv, rlen - PTP_USB_BULK_HDR_LEN, usbdata.payload.data in ptp_usb_getdata() 1387 if (surplen >= PTP_USB_BULK_HDR_LEN) { in ptp_usb_getdata() 1407 len=dtoh32(usbdata.length)-PTP_USB_BULK_HDR_LEN; in ptp_usb_getdata() 1416 params, handler->priv, rlen - PTP_USB_BULK_HDR_LEN, in ptp_usb_getdata() 1423 len+PTP_USB_BULK_HDR_LEN == ptp_usb->inep_maxpacket) { in ptp_usb_getdata() 1438 …} else if (len+PTP_USB_BULK_HDR_LEN == ptp_usb->inep_maxpacket && params->split_header_data == 0) { in ptp_usb_getdata() [all …]
|
D | libopenusb1-glue.c | 1221 usbdata.length = htod32(PTP_USB_BULK_HDR_LEN + size); in ptp_usb_senddata() 1227 ((PTP_USB*) params->data)->current_transfer_total = size + PTP_USB_BULK_HDR_LEN; in ptp_usb_senddata() 1231 wlen = PTP_USB_BULK_HDR_LEN; in ptp_usb_senddata() 1236 wlen = PTP_USB_BULK_HDR_LEN + datawlen; in ptp_usb_senddata() 1359 params, handler->priv, rlen - PTP_USB_BULK_HDR_LEN, usbdata.payload.data in ptp_usb_getdata() 1399 if (surplen >= PTP_USB_BULK_HDR_LEN) { in ptp_usb_getdata() 1419 len = dtoh32(usbdata.length) - PTP_USB_BULK_HDR_LEN; in ptp_usb_getdata() 1428 params, handler->priv, rlen - PTP_USB_BULK_HDR_LEN, in ptp_usb_getdata() 1435 len + PTP_USB_BULK_HDR_LEN == ptp_usb->inep_maxpacket) { in ptp_usb_getdata() 1462 …} else if (len + PTP_USB_BULK_HDR_LEN == ptp_usb->inep_maxpacket && params->split_header_data == 0… in ptp_usb_getdata() [all …]
|
D | libusb1-glue.c | 1239 usbdata.length = htod32(PTP_USB_BULK_HDR_LEN+size); in ptp_usb_senddata() 1245 ((PTP_USB*)params->data)->current_transfer_total = size+PTP_USB_BULK_HDR_LEN; in ptp_usb_senddata() 1249 wlen = PTP_USB_BULK_HDR_LEN; in ptp_usb_senddata() 1254 wlen = PTP_USB_BULK_HDR_LEN + datawlen; in ptp_usb_senddata() 1372 params, handler->priv, rlen - PTP_USB_BULK_HDR_LEN, usbdata.payload.data in ptp_usb_getdata() 1412 if (surplen >= PTP_USB_BULK_HDR_LEN) { in ptp_usb_getdata() 1432 len=dtoh32(usbdata.length)-PTP_USB_BULK_HDR_LEN; in ptp_usb_getdata() 1441 params, handler->priv, rlen - PTP_USB_BULK_HDR_LEN, in ptp_usb_getdata() 1448 len+PTP_USB_BULK_HDR_LEN == ptp_usb->inep_maxpacket) { in ptp_usb_getdata() 1464 …} else if (len+PTP_USB_BULK_HDR_LEN == ptp_usb->inep_maxpacket && params->split_header_data == 0) { in ptp_usb_getdata() [all …]
|
D | ptp.h | 84 #define PTP_USB_BULK_HDR_LEN (2*sizeof(uint32_t)+2*sizeof(uint16_t)) macro 85 #define PTP_USB_BULK_PAYLOAD_LEN_WRITE (PTP_USB_BULK_SS_MAX_PACKET_LEN_WRITE-PTP_USB_BULK_HDR_LEN) 86 #define PTP_USB_BULK_PAYLOAD_LEN_READ (PTP_USB_BULK_SS_MAX_PACKET_LEN_READ-PTP_USB_BULK_HDR_LEN) 87 #define PTP_USB_BULK_REQ_LEN (PTP_USB_BULK_HDR_LEN+5*sizeof(uint32_t))
|
D | libmtp.c | 5288 PTP_USB_BULK_HDR_LEN+sizeof(uint32_t); // Request length, one parameter 5353 PTP_USB_BULK_HDR_LEN+sizeof(uint32_t); // Request length, one parameter 5937 ptp_usb->current_transfer_total = filedata->filesize+PTP_USB_BULK_HDR_LEN*2; 6051 ptp_usb->current_transfer_total = filedata->filesize+PTP_USB_BULK_HDR_LEN*2;
|