• Home
  • Raw
  • Download

Lines Matching refs:usbdata

1227 	PTPUSBBulkContainer usbdata;  in ptp_usb_senddata()  local
1239 usbdata.length = htod32(PTP_USB_BULK_HDR_LEN+size); in ptp_usb_senddata()
1240 usbdata.type = htod16(PTP_USB_CONTAINER_DATA); in ptp_usb_senddata()
1241 usbdata.code = htod16(ptp->Code); in ptp_usb_senddata()
1242 usbdata.trans_id= htod32(ptp->Transaction_ID); in ptp_usb_senddata()
1256 ret = handler->getfunc(params, handler->priv, datawlen, usbdata.payload.data, &gotlen); in ptp_usb_senddata()
1262 ptp_init_send_memory_handler (&memhandler, (unsigned char *)&usbdata, wlen); in ptp_usb_senddata()
1326 PTPUSBBulkContainer usbdata; in ptp_usb_getdata() local
1332 memset(&usbdata,0,sizeof(usbdata)); in ptp_usb_getdata()
1336 ret = ptp_usb_getpacket(params, &usbdata, &rlen); in ptp_usb_getdata()
1341 if (dtoh16(usbdata.type)!=PTP_USB_CONTAINER_DATA) { in ptp_usb_getdata()
1345 if (dtoh16(usbdata.code)!=ptp->Code) { in ptp_usb_getdata()
1351 usbdata.code = htod16(ptp->Code); in ptp_usb_getdata()
1352 usbdata.trans_id = htod32(ptp->Transaction_ID); in ptp_usb_getdata()
1355 ret = dtoh16(usbdata.code); in ptp_usb_getdata()
1372 params, handler->priv, rlen - PTP_USB_BULK_HDR_LEN, usbdata.payload.data in ptp_usb_getdata()
1396 if (rlen > dtoh32(usbdata.length)) { in ptp_usb_getdata()
1409 unsigned int packlen = dtoh32(usbdata.length); in ptp_usb_getdata()
1415 (uint8_t *) &usbdata + packlen, surplen); in ptp_usb_getdata()
1419 (rlen - dtoh32(usbdata.length) == 1)) { in ptp_usb_getdata()
1422 rlen - dtoh32(usbdata.length)); in ptp_usb_getdata()
1432 len=dtoh32(usbdata.length)-PTP_USB_BULK_HDR_LEN; in ptp_usb_getdata()
1435 if (dtoh32(usbdata.length) > 12 && (rlen==12)) in ptp_usb_getdata()
1442 usbdata.payload.data in ptp_usb_getdata()