Lines Matching refs:PTP_RC_OK
923 if (putfunc_ret != PTP_RC_OK) in ptp_read_func()
973 return PTP_RC_OK; in ptp_read_func()
1008 if (getfunc_ret != PTP_RC_OK) { in ptp_write_func()
1078 return PTP_RC_OK; in ptp_write_func()
1100 return PTP_RC_OK; in memory_getfunc()
1115 return PTP_RC_OK; in memory_putfunc()
1129 return PTP_RC_OK; in ptp_init_recv_memory_handler()
1149 return PTP_RC_OK; in ptp_init_send_memory_handler()
1158 return PTP_RC_OK; in ptp_exit_send_memory_handler()
1170 return PTP_RC_OK; in ptp_exit_recv_memory_handler()
1207 if (ret != PTP_RC_OK && ret != PTP_ERROR_CANCEL) { in ptp_usb_sendreq()
1257 if (ret != PTP_RC_OK) in ptp_usb_senddata()
1266 if (ret != PTP_RC_OK) { in ptp_usb_senddata()
1272 ret = PTP_RC_OK; in ptp_usb_senddata()
1277 if (ret != PTP_RC_OK) in ptp_usb_senddata()
1285 if (ret != PTP_RC_OK && ret != PTP_ERROR_CANCEL) in ptp_usb_senddata()
1310 return PTP_RC_OK; in ptp_usb_getpacket()
1337 if (ret != PTP_RC_OK) { in ptp_usb_getdata()
1353 ret = PTP_RC_OK; in ptp_usb_getdata()
1374 if (putfunc_ret != PTP_RC_OK) in ptp_usb_getdata()
1389 if (xret != PTP_RC_OK) in ptp_usb_getdata()
1394 return PTP_RC_OK; in ptp_usb_getdata()
1444 if (putfunc_ret != PTP_RC_OK) in ptp_usb_getdata()
1490 if (ret != PTP_RC_OK) { in ptp_usb_getdata()
1516 while (ret==PTP_RC_OK && rlen<PTP_USB_BULK_HDR_LEN && usbresp.length==0) { in ptp_usb_getresp()
1523 if (ret != PTP_RC_OK) { in ptp_usb_getresp()
1535 if (ret != PTP_RC_OK) { in ptp_usb_getresp()
1583 ret = PTP_RC_OK; in ptp_usb_event()
1621 if (ret != PTP_RC_OK) { in ptp_usb_event()
1677 code = PTP_RC_OK; in ptp_usb_event_cb()
1696 if (code != PTP_RC_OK) { in ptp_usb_event_cb()
1746 return ret == 0 ? PTP_RC_OK : PTP_ERROR_IO; in ptp_usb_event_async()
1774 return PTP_RC_OK; in ptp_usb_control_cancel_request()
2211 if (ret != PTP_RC_SessionAlreadyOpened && ret != PTP_RC_OK) { in configure_usb_device()
2230 if (ptp_closesession(params)!=PTP_RC_OK) in close_device()