• Home
  • Raw
  • Download

Lines Matching refs:usbdata

1202 	PTPUSBBulkContainer usbdata;  in ptp_usb_senddata()  local
1214 usbdata.length = htod32(PTP_USB_BULK_HDR_LEN+size); in ptp_usb_senddata()
1215 usbdata.type = htod16(PTP_USB_CONTAINER_DATA); in ptp_usb_senddata()
1216 usbdata.code = htod16(ptp->Code); in ptp_usb_senddata()
1217 usbdata.trans_id= htod32(ptp->Transaction_ID); in ptp_usb_senddata()
1231 ret = handler->getfunc(params, handler->priv, datawlen, usbdata.payload.data, &gotlen); in ptp_usb_senddata()
1237 ptp_init_send_memory_handler (&memhandler, (unsigned char *)&usbdata, wlen); in ptp_usb_senddata()
1301 PTPUSBBulkContainer usbdata; in ptp_usb_getdata() local
1307 memset(&usbdata,0,sizeof(usbdata)); in ptp_usb_getdata()
1311 ret = ptp_usb_getpacket(params, &usbdata, &rlen); in ptp_usb_getdata()
1316 if (dtoh16(usbdata.type)!=PTP_USB_CONTAINER_DATA) { in ptp_usb_getdata()
1320 if (dtoh16(usbdata.code)!=ptp->Code) { in ptp_usb_getdata()
1326 usbdata.code = htod16(ptp->Code); in ptp_usb_getdata()
1327 usbdata.trans_id = htod32(ptp->Transaction_ID); in ptp_usb_getdata()
1330 ret = dtoh16(usbdata.code); in ptp_usb_getdata()
1347 params, handler->priv, rlen - PTP_USB_BULK_HDR_LEN, usbdata.payload.data in ptp_usb_getdata()
1371 if (rlen > dtoh32(usbdata.length)) { in ptp_usb_getdata()
1384 unsigned int packlen = dtoh32(usbdata.length); in ptp_usb_getdata()
1390 (uint8_t *) &usbdata + packlen, surplen); in ptp_usb_getdata()
1394 (rlen - dtoh32(usbdata.length) == 1)) { in ptp_usb_getdata()
1397 rlen - dtoh32(usbdata.length)); in ptp_usb_getdata()
1407 len=dtoh32(usbdata.length)-PTP_USB_BULK_HDR_LEN; in ptp_usb_getdata()
1410 if (dtoh32(usbdata.length) > 12 && (rlen==12)) in ptp_usb_getdata()
1417 usbdata.payload.data in ptp_usb_getdata()