Lines Matching refs:usbresp
1508 PTPUSBBulkContainer usbresp; in ptp_usb_getresp() local
1513 memset(&usbresp, 0, sizeof (usbresp)); in ptp_usb_getresp()
1515 ret = ptp_usb_getpacket(params, &usbresp, &rlen); in ptp_usb_getresp()
1520 while (ret == PTP_RC_OK && rlen < PTP_USB_BULK_HDR_LEN && usbresp.length == 0) { in ptp_usb_getresp()
1524 ret = ptp_usb_getpacket(params, &usbresp, &rlen); in ptp_usb_getresp()
1529 if (dtoh16(usbresp.type) != PTP_USB_CONTAINER_RESPONSE) { in ptp_usb_getresp()
1532 if (dtoh16(usbresp.code) != resp->Code) { in ptp_usb_getresp()
1533 ret = dtoh16(usbresp.code); in ptp_usb_getresp()
1544 resp->Code = dtoh16(usbresp.code); in ptp_usb_getresp()
1546 resp->Transaction_ID = dtoh32(usbresp.trans_id); in ptp_usb_getresp()
1556 resp->Param1 = dtoh32(usbresp.payload.params.param1); in ptp_usb_getresp()
1557 resp->Param2 = dtoh32(usbresp.payload.params.param2); in ptp_usb_getresp()
1558 resp->Param3 = dtoh32(usbresp.payload.params.param3); in ptp_usb_getresp()
1559 resp->Param4 = dtoh32(usbresp.payload.params.param4); in ptp_usb_getresp()
1560 resp->Param5 = dtoh32(usbresp.payload.params.param5); in ptp_usb_getresp()