Lines Matching refs:ret
37 int ret; in hp_mem_online_func() local
49 ret = xc_mark_page_online(xch, mfn, mfn, &status); in hp_mem_online_func()
51 if (ret < 0) in hp_mem_online_func()
56 ret = -1; in hp_mem_online_func()
63 return ret; in hp_mem_online_func()
69 int ret; in hp_mem_query_func() local
80 ret = xc_query_page_offline_status(xch, mfn, mfn, &status); in hp_mem_query_func()
82 if (ret < 0) in hp_mem_query_func()
98 return ret; in hp_mem_query_func()
150 int ret; in hp_mem_offline_func() local
161 ret = xc_mark_page_offline(xch, mfn, mfn, &status); in hp_mem_offline_func()
162 if (ret < 0) { in hp_mem_offline_func()
187 ret = -1; in hp_mem_offline_func()
193 ret = -1; in hp_mem_offline_func()
231 ret = -1; in hp_mem_offline_func()
248 return ret; in hp_mem_offline_func()
253 int ret; in exec_cpu_hp_fn() local
257 ret = (*hp_fn)(xch, cpu); in exec_cpu_hp_fn()
258 if ( (ret >= 0) || (errno != EBUSY) ) in exec_cpu_hp_fn()
263 return ret; in exec_cpu_hp_fn()
268 int cpu, ret; in hp_cpu_online_func() local
278 ret = exec_cpu_hp_fn(xc_cpu_online, cpu); in hp_cpu_online_func()
279 if (ret < 0) in hp_cpu_online_func()
285 return ret; in hp_cpu_online_func()
290 int cpu, ret; in hp_cpu_offline_func() local
299 ret = exec_cpu_hp_fn(xc_cpu_offline, cpu); in hp_cpu_offline_func()
300 if (ret < 0) in hp_cpu_offline_func()
306 return ret; in hp_cpu_offline_func()
311 int ret; in main_smt_enable() local
321 ret = xc_smt_enable(xch); in main_smt_enable()
322 if ( (ret >= 0) || (errno != EBUSY) ) in main_smt_enable()
326 if ( ret < 0 ) in main_smt_enable()
332 return ret; in main_smt_enable()
337 int ret; in main_smt_disable() local
347 ret = xc_smt_disable(xch); in main_smt_disable()
348 if ( (ret >= 0) || (errno != EBUSY) ) in main_smt_disable()
352 if ( ret < 0 ) in main_smt_disable()
358 return ret; in main_smt_disable()
378 int i, ret; in main() local
403 ret = main_options[i].function(argc -2, argv + 2); in main()
407 return !!ret; in main()