Lines Matching refs:CHECK_PTP_RC
60 #define CHECK_PTP_RC(RESULT) do { uint16_t r = (RESULT); if (r != PTP_RC_OK) return r; } while(0) macro
172 CHECK_PTP_RC(params->sendreq_func (params, ptp, flags)); in ptp_transaction_new()
179 CHECK_PTP_RC(params->cancelreq_func(params, params->transaction_id-1)); in ptp_transaction_new()
180 CHECK_PTP_RC(ret); in ptp_transaction_new()
187 CHECK_PTP_RC(params->cancelreq_func(params, params->transaction_id-1)); in ptp_transaction_new()
188 CHECK_PTP_RC(ret); in ptp_transaction_new()
206 CHECK_PTP_RC(ret); in ptp_transaction_new()
411 CHECK_PTP_RC(ptp_init_send_memory_handler (&handler, *data, sendlen)); in ptp_transaction()
419 CHECK_PTP_RC(ptp_init_recv_memory_handler (&handler)); in ptp_transaction()
471 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); in ptp_getdeviceinfo()
489 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); in ptp_canon_eos_getdeviceinfo()
1163 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); in ptp_getstorageids()
1188 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); in ptp_getstorageinfo()
1281 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL)); in ptp_getnumobjects()
1303 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL)); in ptp_canon_eos_bulbstart()
1327 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL)); in ptp_canon_eos_capture()
1347 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL)); in ptp_canon_eos_bulbend()
1372 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); in ptp_getobjectinfo()
1548 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL)); in ptp_deleteobject()
1670 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); in ptp_getdevicepropdesc()
1719 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); in ptp_getdevicepropvalue()
1839 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL)); in ptp_ek_9009()
1956 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL)); in ptp_canon_getpartialobjectinfo()
2004 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, NULL)); in ptp_canon_get_directory()
2028 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL)); in ptp_canon_gettreeinfo()
2075 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); in ptp_canon_gettreesize()
2122 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); in ptp_canon_checkevent()
2220 CHECK_PTP_RC(ret); in ptp_check_event()
2247 CHECK_PTP_RC(ptp_canon_checkevent (params,&event,&isevent)); in ptp_check_event()
2339 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); in ptp_canon_eos_getevent()
2352 CHECK_PTP_RC(ptp_canon_eos_getevent (params, &entries, &nrofentries)); in ptp_check_eos_events()
2427 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); in ptp_canon_eos_getstorageids()
2454 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); in ptp_canon_eos_getobjectinfoex()
2704 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); in ptp_canon_getchanges()
2864 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, NULL)); in ptp_sony_sdioconnect()
2891 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &xdata, &xsize)); in ptp_sony_get_vendorpropcodes()
2928 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); in ptp_sony_getdevicepropdesc()
2945 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); in ptp_sony_getalldevicepropdesc()
3151 CHECK_PTP_RC(ptp_sony_getalldevicepropdesc (params)); in ptp_generic_getdevicepropdesc()
3168 CHECK_PTP_RC(ptp_sony_getdevicepropdesc (params, propcode, ¶ms->deviceproperties[i].desc)); in ptp_generic_getdevicepropdesc()
3178 CHECK_PTP_RC(ptp_getdevicepropdesc (params, propcode, ¶ms->deviceproperties[i].desc)); in ptp_generic_getdevicepropdesc()
3246 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &xsize)); in ptp_nikon_get_vendorpropcodes()
3304 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, xdata, xsize)); in ptp_nikon_get_preview_image()
3359 CHECK_PTP_RC(ptp_transaction (params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); in ptp_nikon_check_event()
3407 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); in ptp_nikon_getwifiprofilelist()
3515 CHECK_PTP_RC(ptp_nikon_getwifiprofilelist(params)); in ptp_nikon_writewifiprofile()
3608 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &xsize)); in ptp_mtp_getobjectpropssupported()
3636 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); in ptp_mtp_getobjectpropdesc()
3665 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); in ptp_mtp_getobjectpropvalue()
3711 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data , &size)); in ptp_mtp_getobjectreferences()
3752 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); in ptp_mtp_getobjectproplist()
3771 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); in ptp_mtp_getobjectproplist_single()
3810 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &data, NULL)); in ptp_mtp_setobjectproplist()
3862 …CHECK_PTP_RC (ptp_transaction(params, &ptp, PTP_DP_SENDDATA, strlen(remote_fn), (unsigned char**)&… in ptp_chdk_download()
3927 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL)); in ptp_chdk_rcisready()
3945 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &chunk->data, NULL)); in ptp_chdk_rcgetchunk()
3960 …CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_SENDDATA, strlen(script)+1, (unsigned char**)&sc… in ptp_chdk_exec_lua()
3972 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL)); in ptp_chdk_get_version()
3984 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL)); in ptp_chdk_get_script_status()
3994 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL)); in ptp_chdk_get_script_support()
4012 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, (unsigned char**)&data, NULL)); in ptp_chdk_write_script_msg()
4027 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, NULL)); in ptp_chdk_read_script_msg()
4052 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, NULL)); in ptp_chdk_get_live_data()
4063 …CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size*sizeof(int), (unsigned char **) &… in ptp_chdk_call_function()
6532 CHECK_PTP_RC(ptp_object_find (params, handle, &ob)); in ptp_remove_object_from_cache()
6656 CHECK_PTP_RC(ptp_object_find_or_insert (params, handle, &ob)); in ptp_object_want()