Lines Matching refs:PTP_USB_BULK_HDR_LEN
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()
1412 if (len+PTP_USB_BULK_HDR_LEN<=rlen) { in ptp_usb_getdata()
1416 ret = ptp_read_func(len - (rlen - PTP_USB_BULK_HDR_LEN), in ptp_usb_getdata()
1446 while (ret==PTP_RC_OK && rlen<PTP_USB_BULK_HDR_LEN && usbresp.length==0) { in ptp_usb_getresp()