Lines Matching refs:PTP_RC_OK

53 #define CHECK_PTP_RC(result)	{uint16_t r=(result); if (r!=PTP_RC_OK) return r;}
160 if (ret == PTP_RC_OK) in ptp_transaction_new()
163 if (ret != PTP_RC_OK) in ptp_transaction_new()
174 if (ret == PTP_RC_OK) in ptp_transaction_new()
177 if (ret != PTP_RC_OK) in ptp_transaction_new()
224 return PTP_RC_OK; in memory_getfunc()
241 return PTP_RC_OK; in memory_putfunc()
255 return PTP_RC_OK; in ptp_init_recv_memory_handler()
275 return PTP_RC_OK; in ptp_init_send_memory_handler()
284 return PTP_RC_OK; in ptp_exit_send_memory_handler()
296 return PTP_RC_OK; in ptp_exit_recv_memory_handler()
317 return PTP_RC_OK; in fd_getfunc()
333 return PTP_RC_OK; in fd_putfunc()
344 return PTP_RC_OK; in ptp_init_fd_handler()
351 return PTP_RC_OK; in ptp_exit_fd_handler()
423 if (ret == PTP_RC_OK) ptp_unpack_DI(params, di, deviceinfo, len); in ptp_getdeviceinfo()
445 if (ret == PTP_RC_OK) ptp_unpack_EOS_DI(params, data, di, len); in ptp_canon_eos_getdeviceinfo()
562 if (ret == PTP_RC_OK) ptp_unpack_SIDs(params, sids, storageids, len); in ptp_getstorageids()
592 if (ret == PTP_RC_OK) ptp_unpack_SI(params, si, storageinfo, len); in ptp_getstorageinfo()
629 if (ret == PTP_RC_OK) { in ptp_getobjecthandles()
641 ret = PTP_RC_OK; in ptp_getobjecthandles()
679 if (ret == PTP_RC_OK) { in ptp_getnumobjects()
713 if (ret == PTP_RC_OK) ptp_unpack_OI(params, oi, objectinfo, len); in ptp_getobjectinfo()
870 if (ret != PTP_RC_OK) { in ptp_deleteobject()
875 return PTP_RC_OK; in ptp_deleteobject()
1010 if (ret == PTP_RC_OK) ptp_unpack_DPD(params, dpd, devicepropertydesc, len); in ptp_getdevicepropdesc()
1033 if (ret == PTP_RC_OK) ptp_unpack_DPV(params, dpv, &offset, len, value, datatype); in ptp_getdevicepropvalue()
1352 if (ret != PTP_RC_OK) in ptp_canon_get_directory()
1382 if ((ret == PTP_RC_OK) && (ptp.Nparam>0)) in ptp_canon_gettreeinfo()
1410 if (ret != PTP_RC_OK) in ptp_canon_getpairinginfo()
1412 return PTP_RC_OK; in ptp_canon_getpairinginfo()
1441 if (ret != PTP_RC_OK) in ptp_canon_gettreesize()
1453 return PTP_RC_OK; in ptp_canon_gettreesize()
1490 if (ret == PTP_RC_OK) { in ptp_canon_checkevent()
1511 if (ret != PTP_RC_OK) in ptp_check_event()
1523 return PTP_RC_OK; in ptp_check_event()
1531 if (ret!=PTP_RC_OK) in ptp_check_event()
1540 if (ret == PTP_RC_OK) { in ptp_check_event()
1550 ret = PTP_RC_OK; in ptp_check_event()
1591 if (ret != PTP_RC_OK) return ret; in ptp_canon_eos_getevent()
1593 return PTP_RC_OK; in ptp_canon_eos_getevent()
1621 return PTP_RC_OK; in ptp_canon_eos_getdevicepropdesc()
1637 if (ret == PTP_RC_OK) ptp_unpack_SIDs(params, sids, storageids, len); in ptp_canon_eos_getstorageids()
1810 if (ret==PTP_RC_OK) { in ptp_canon_getpartialobject()
1844 if (ret==PTP_RC_OK) *size=ptp.Param1; in ptp_canon_getviewfinderimage()
1878 if (ret == PTP_RC_OK) in ptp_canon_getchanges()
1926 if (ret == PTP_RC_OK) { in ptp_canon_getobjectinfo()
2047 if (ret == PTP_RC_OK) in ptp_nikon_get_vendorpropcodes()
2111 if (ret == PTP_RC_OK) { in ptp_nikon_get_preview_image()
2165 if (ret == PTP_RC_OK) { in ptp_nikon_check_event()
2289 return PTP_RC_OK; in ptp_nikon_getwifiprofilelist()
2420 if (ret == PTP_RC_OK) in ptp_mtp_getobjectpropssupported()
2453 if (ret == PTP_RC_OK) in ptp_mtp_getobjectpropdesc()
2488 if (ret == PTP_RC_OK) in ptp_mtp_getobjectpropvalue()
2540 if (ret == PTP_RC_OK) { in ptp_mtp_getobjectreferences()
2589 if (ret == PTP_RC_OK) *nrofprops = ptp_unpack_OPL(params, opldata, props, oplsize); in ptp_mtp_getobjectproplist()
2795 {PTP_RC_OK, N_("PTP: OK!")}, in ptp_perror()
4681 if (ret != PTP_RC_OK) in ptp_find_object_prop_in_cache()
4700 if (ret != PTP_RC_OK) in ptp_remove_object_from_cache()
4734 return PTP_RC_OK; in ptp_object_find()
4751 return PTP_RC_OK; in ptp_object_find_or_insert()
4761 return PTP_RC_OK; in ptp_object_find_or_insert()
4772 return PTP_RC_OK; in ptp_object_find_or_insert()
4776 return PTP_RC_OK; in ptp_object_find_or_insert()
4796 return PTP_RC_OK; in ptp_object_find_or_insert()
4811 if (ret != PTP_RC_OK) in ptp_object_want()
4816 return PTP_RC_OK; in ptp_object_want()
4827 if (ret != PTP_RC_OK) in ptp_object_want()
4860 if (ret != PTP_RC_OK) in ptp_object_want()
4963 return PTP_RC_OK; in ptp_object_want()