Lines Matching refs:usbdata
1175 PTPUSBBulkContainer usbdata; in ptp_usb_senddata() local
1183 usbdata.length = htod32(PTP_USB_BULK_HDR_LEN+size); in ptp_usb_senddata()
1184 usbdata.type = htod16(PTP_USB_CONTAINER_DATA); in ptp_usb_senddata()
1185 usbdata.code = htod16(ptp->Code); in ptp_usb_senddata()
1186 usbdata.trans_id= htod32(ptp->Transaction_ID); in ptp_usb_senddata()
1200 ret = handler->getfunc(params, handler->priv, datawlen, usbdata.payload.data, &gotlen); in ptp_usb_senddata()
1206 ptp_init_send_memory_handler (&memhandler, (unsigned char *)&usbdata, wlen); in ptp_usb_senddata()
1264 PTPUSBBulkContainer usbdata; in ptp_usb_getdata() local
1271 memset(&usbdata,0,sizeof(usbdata)); in ptp_usb_getdata()
1275 ret = ptp_usb_getpacket(params, &usbdata, &rlen); in ptp_usb_getdata()
1280 if (dtoh16(usbdata.type)!=PTP_USB_CONTAINER_DATA) { in ptp_usb_getdata()
1284 if (dtoh16(usbdata.code)!=ptp->Code) { in ptp_usb_getdata()
1290 usbdata.code = htod16(ptp->Code); in ptp_usb_getdata()
1291 usbdata.trans_id = htod32(ptp->Transaction_ID); in ptp_usb_getdata()
1294 ret = dtoh16(usbdata.code); in ptp_usb_getdata()
1307 if (usbdata.length == 0xffffffffU) { in ptp_usb_getdata()
1311 params, handler->priv, rlen - PTP_USB_BULK_HDR_LEN, usbdata.payload.data, in ptp_usb_getdata()
1335 if (rlen > dtoh32(usbdata.length)) { in ptp_usb_getdata()
1348 unsigned int packlen = dtoh32(usbdata.length); in ptp_usb_getdata()
1354 (uint8_t *) &usbdata + packlen, surplen); in ptp_usb_getdata()
1358 (rlen - dtoh32(usbdata.length) == 1)) { in ptp_usb_getdata()
1361 rlen - dtoh32(usbdata.length)); in ptp_usb_getdata()
1371 len=dtoh32(usbdata.length)-PTP_USB_BULK_HDR_LEN; in ptp_usb_getdata()
1374 if (dtoh32(usbdata.length) > 12 && (rlen==12)) in ptp_usb_getdata()
1380 params, handler->priv, rlen - PTP_USB_BULK_HDR_LEN, usbdata.payload.data, in ptp_usb_getdata()