Lines Matching refs:result
78 int result = UDS_SUCCESS; in get_index_session() local
88 result = UDS_DISABLED; in get_index_session()
92 result = -EBUSY; in get_index_session()
94 result = UDS_NO_INDEX; in get_index_session()
98 return result; in get_index_session()
104 int result; in uds_launch_request() local
129 result = get_index_session(request->session); in uds_launch_request()
130 if (result != UDS_SUCCESS) in uds_launch_request()
131 return result; in uds_launch_request()
221 int result; in make_empty_index_session() local
224 result = vdo_allocate(1, struct uds_index_session, __func__, &session); in make_empty_index_session()
225 if (result != VDO_SUCCESS) in make_empty_index_session()
226 return result; in make_empty_index_session()
233 result = uds_make_request_queue("callbackW", &handle_callbacks, in make_empty_index_session()
235 if (result != UDS_SUCCESS) { in make_empty_index_session()
237 return result; in make_empty_index_session()
256 int result; in start_loading_index_session() local
261 result = -EBUSY; in start_loading_index_session()
264 result = -EBUSY; in start_loading_index_session()
267 result = UDS_SUCCESS; in start_loading_index_session()
270 return result; in start_loading_index_session()
274 int result) in finish_loading_index_session() argument
278 if (result == UDS_SUCCESS) in finish_loading_index_session()
288 int result; in initialize_index_session() local
291 result = uds_make_configuration(&index_session->parameters, &config); in initialize_index_session()
292 if (result != UDS_SUCCESS) { in initialize_index_session()
293 vdo_log_error_strerror(result, "Failed to allocate config"); in initialize_index_session()
294 return result; in initialize_index_session()
298 result = uds_make_index(config, open_type, &index_session->load_context, in initialize_index_session()
300 if (result != UDS_SUCCESS) in initialize_index_session()
301 vdo_log_error_strerror(result, "Failed to make index"); in initialize_index_session()
306 return result; in initialize_index_session()
331 int result; in uds_open_index() local
347 result = start_loading_index_session(session); in uds_open_index()
348 if (result != UDS_SUCCESS) in uds_open_index()
349 return uds_status_to_errno(result); in uds_open_index()
355 result = initialize_index_session(session, open_type); in uds_open_index()
356 if (result != UDS_SUCCESS) in uds_open_index()
357 vdo_log_error_strerror(result, "Failed %s", in uds_open_index()
360 finish_loading_index_session(session, result); in uds_open_index()
361 return uds_status_to_errno(result); in uds_open_index()
418 int result = UDS_SUCCESS; in uds_suspend_index_session() local
430 result = -EBUSY; in uds_suspend_index_session()
446 return uds_status_to_errno(result); in uds_suspend_index_session()
451 result = save_index(session); in uds_suspend_index_session()
453 result = uds_flush_index_session(session); in uds_suspend_index_session()
460 return uds_status_to_errno(result); in uds_suspend_index_session()
465 int result; in replace_device() local
467 result = uds_replace_index_storage(session->index, bdev); in replace_device()
468 if (result != UDS_SUCCESS) in replace_device()
469 return result; in replace_device()
482 int result = UDS_SUCCESS; in uds_resume_index_session() local
490 result = -EBUSY; in uds_resume_index_session()
494 result = UDS_SUCCESS; in uds_resume_index_session()
503 return result; in uds_resume_index_session()
506 result = replace_device(session, bdev); in uds_resume_index_session()
507 if (result != UDS_SUCCESS) { in uds_resume_index_session()
512 return uds_status_to_errno(result); in uds_resume_index_session()
551 int result = UDS_SUCCESS; in save_and_free_index() local
563 result = uds_save_index(index); in save_and_free_index()
564 if (result != UDS_SUCCESS) in save_and_free_index()
565 vdo_log_warning_strerror(result, in save_and_free_index()
584 return result; in save_and_free_index()
590 int result = UDS_SUCCESS; in uds_close_index() local
602 result = -EBUSY; in uds_close_index()
606 result = UDS_NO_INDEX; in uds_close_index()
611 if (result != UDS_SUCCESS) in uds_close_index()
612 return uds_status_to_errno(result); in uds_close_index()
616 result = save_and_free_index(index_session); in uds_close_index()
623 return uds_status_to_errno(result); in uds_close_index()
629 int result; in uds_destroy_index_session() local
672 result = save_and_free_index(index_session); in uds_destroy_index_session()
677 return uds_status_to_errno(result); in uds_destroy_index_session()