Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 15892) sorted by relevance

12345678910>>...636

/external/wpa_supplicant_8/wpa_supplicant/
Deap_register.c26 int ret = 0; in eap_register_methods() local
29 if (ret == 0) in eap_register_methods()
30 ret = eap_peer_md5_register(); in eap_register_methods()
34 if (ret == 0) in eap_register_methods()
35 ret = eap_peer_tls_register(); in eap_register_methods()
39 if (ret == 0) in eap_register_methods()
40 ret = eap_peer_unauth_tls_register(); in eap_register_methods()
45 if (ret == 0) in eap_register_methods()
46 ret = eap_peer_wfa_unauth_tls_register(); in eap_register_methods()
51 if (ret == 0) in eap_register_methods()
[all …]
/external/u-boot/test/log/
Dlog_test.c28 int ret; in log_test() local
39 ret = log_add_filter("console", cat_list, LOGL_MAX, NULL); in log_test()
40 if (ret < 0) in log_test()
41 return ret; in log_test()
43 ret = log_remove_filter("console", ret); in log_test()
44 if (ret < 0) in log_test()
45 return ret; in log_test()
54 ret = log_add_filter("console", cat_list, LOGL_MAX, NULL); in log_test()
55 if (ret < 0) in log_test()
56 return ret; in log_test()
[all …]
/external/elfutils/tests/
Dfuncretval_test.c11 large_struct1_t ret = { { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 } }; in fun_large_struct1() local
12 return ret; in fun_large_struct1()
18 large_struct2_t ret = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; in fun_large_struct2() local
19 return ret; in fun_large_struct2()
39 vec_char_8_t ret = { 1, 2, 3, 4, 5, 6, 7, 8 }; in fun_vec_char_8() local
40 return ret; in fun_vec_char_8()
45 vec_short_8_t ret = { 2, 3, 4, 5 }; in fun_vec_short_8() local
46 return ret; in fun_vec_short_8()
51 vec_int_8_t ret = { 3, 4 }; in fun_vec_int_8() local
52 return ret; in fun_vec_int_8()
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/
D2-6.c66 int ret; in clnp1() local
71 ret = pthread_mutex_trylock(&(data.mtx)); in clnp1()
72 if (ret != 0) { in clnp1()
76 ret = pthread_mutex_unlock(&(data.mtx)); in clnp1()
77 if (ret != 0) { in clnp1()
78 UNRESOLVED(ret, in clnp1()
90 int ret; in clnp2() local
95 ret = sem_post(&(data.semA)); in clnp2()
96 } while ((ret != 0) && (errno == EINTR)); in clnp2()
97 if (ret != 0) { in clnp2()
[all …]
D2-5.c77 int ret; in threaded() local
82 ret = clock_gettime(data.cid, &ts); in threaded()
83 if (ret != 0) in threaded()
84 UNRESOLVED(ret, "Unable to get time from clock"); in threaded()
88 ret = pthread_mutex_lock(&(data.mtx1)); in threaded()
89 if (ret != 0) in threaded()
90 UNRESOLVED(ret, "Unable tu lock m1 in thread"); in threaded()
98 ret = pthread_cond_wait(&(data.cnd), &(data.mtx1)); in threaded()
100 ret = pthread_cond_timedwait(&(data.cnd), &(data.mtx1), in threaded()
102 } while ((ret == 0) && (data.boolcnd == 0)); in threaded()
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/
D2-3.c95 int ret; in clnp1() local
97 ret = pthread_mutex_trylock(&(data.mtx)); in clnp1()
98 if (ret != 0) { in clnp1()
102 ret = pthread_mutex_unlock(&(data.mtx)); in clnp1()
103 if (ret != 0) { in clnp1()
104 UNRESOLVED(ret, in clnp1()
116 int ret; in clnp2() local
118 ret = sem_post(&(data.semA)); in clnp2()
119 } while ((ret != 0) && (errno == EINTR)); in clnp2()
120 if (ret != 0) { in clnp2()
[all …]
/external/libjpeg-turbo/simd/loongson/
Dloongson-mmintrin.h55 __m64 ret; in _mm_set_pi8() local
68 : "=f" (ret) in _mm_set_pi8()
73 return ret; in _mm_set_pi8()
79 __m64 ret; in _mm_set_pi16() local
86 : "=f" (ret) in _mm_set_pi16()
91 return ret; in _mm_set_pi16()
107 __m64 ret; in _mm_set_pi32() local
110 : "=f" (ret) in _mm_set_pi32()
114 return ret; in _mm_set_pi32()
126 __m64 ret; in _mm_set1_pi8() local
[all …]
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_mutex_lock/
Ds-c1.c106 int ret; in threaded() local
111 ret = pthread_mutex_lock(&mtx[i]); in threaded()
112 if (ret == 0) { /* The thread was blocked successfuly */ in threaded()
114 ret = pthread_mutex_lock(&m); in threaded()
115 if (ret != 0) { in threaded()
116 UNRESOLVED(ret, "Unable to lock 'm'"); in threaded()
120 ret = pthread_mutex_unlock(&m); in threaded()
121 if (ret != 0) { in threaded()
122 UNRESOLVED(ret, "Unable to unlock 'm'"); in threaded()
126 ret = pthread_mutex_unlock(&mtx[i]); in threaded()
[all …]
Dstress.c134 int ret; in sigthr() local
140 ret = pthread_mutex_lock(&(c->tmtx)); in sigthr()
141 if (ret != 0) { in sigthr()
142 UNRESOLVED(ret, "Failed to lock the mutex"); in sigthr()
145 ret = pthread_mutex_unlock(&(c->tmtx)); in sigthr()
146 if (ret != 0) { in sigthr()
147 UNRESOLVED(ret, "Failed to unlock the mutex"); in sigthr()
154 ret = sem_wait(&(c->semsig)); in sigthr()
155 if (ret != 0) { in sigthr()
161 ret = pthread_kill(c->threads[++i], SIGUSR2); in sigthr()
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/
D3-2.c115 int ret = 0; in overflow() local
122 ret = sem_wait(&semsync[0]); in overflow()
124 while ((ret == -1) && (errno == EINTR)); in overflow()
125 if (ret == -1) { in overflow()
134 ret = sem_post(&semsync[1]); in overflow()
136 while ((ret == -1) && (errno == EINTR)); in overflow()
137 if (ret == -1) { in overflow()
180 int ret; in test_stack() local
238 ret = sem_init(&semsync[0], 0, 0); in test_stack()
239 if (ret == -1) { in test_stack()
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/
D2-1.c213 int ret = 0; in child() local
218 ret = pthread_mutex_lock(&td->mtx1); in child()
219 if (ret != 0) { in child()
220 UNRESOLVED(ret, "Failed to lock mutex in child"); in child()
230 ret = clock_gettime(td->cid, &ts); in child()
231 if (ret != 0) { in child()
240 ret = pthread_cond_timedwait(&td->cnd, &td->mtx1, &ts); in child()
242 ret = pthread_cond_wait(&td->cnd, &td->mtx1); in child()
243 } while ((ret == 0) && (td->predicate1 == 0)); in child()
244 if ((ret != 0) && (td->predicate1 != 0)) { in child()
[all …]
/external/u-boot/drivers/usb/eth/
Dlan78xx.c78 int ret; in lan78xx_read_raw_otp() local
81 ret = lan7x_read_reg(udev, LAN78XX_OTP_PWR_DN, &buf); in lan78xx_read_raw_otp()
82 if (ret) in lan78xx_read_raw_otp()
83 return ret; in lan78xx_read_raw_otp()
87 ret = lan7x_write_reg(udev, LAN78XX_OTP_PWR_DN, 0); in lan78xx_read_raw_otp()
88 if (ret) in lan78xx_read_raw_otp()
89 return ret; in lan78xx_read_raw_otp()
91 ret = lan7x_wait_for_bit(udev, "LAN78XX_OTP_PWR_DN_PWRDN_N", in lan78xx_read_raw_otp()
95 if (ret) in lan78xx_read_raw_otp()
96 return ret; in lan78xx_read_raw_otp()
[all …]
Dlan75xx.c41 int ret = 0; in lan75xx_phy_gig_workaround() local
49 ret = lan7x_mdio_wait_for_bit(udev, "BMSR_LSTATUS", in lan75xx_phy_gig_workaround()
52 if (ret) in lan75xx_phy_gig_workaround()
53 return ret; in lan75xx_phy_gig_workaround()
63 int ret; in lan75xx_update_flowcontrol() local
65 ret = lan7x_update_flowcontrol(udev, dev, &flow, &fct_flow); in lan75xx_update_flowcontrol()
66 if (ret) in lan75xx_update_flowcontrol()
67 return ret; in lan75xx_update_flowcontrol()
69 ret = lan7x_write_reg(udev, LAN75XX_FCT_FLOW, fct_flow); in lan75xx_update_flowcontrol()
70 if (ret) in lan75xx_update_flowcontrol()
[all …]
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_wait/
Dstress2.c205 int ret; in cleanup() local
209 ret = pthread_mutex_unlock(&(cd->mtx)); in cleanup()
210 if (ret != 0) { in cleanup()
211 UNRESOLVED(ret, "Failed to unlock mutex in cancel handler"); in cleanup()
218 int ret; in worker() local
223 ret = pthread_mutex_lock(&(cd->mtx)); in worker()
224 if (ret != 0) { in worker()
225 UNRESOLVED(ret, "Unable to lock mutex in worker"); in worker()
232 ret = clock_gettime(cd->cid, &ts); in worker()
233 if (ret != 0) { in worker()
[all …]
Dstress.c205 int ret; in cleanup() local
209 ret = pthread_mutex_unlock(&(cd->mtx)); in cleanup()
210 if (ret != 0) { in cleanup()
211 UNRESOLVED(ret, "Failed to unlock mutex in cancel handler"); in cleanup()
218 int ret; in worker() local
223 ret = pthread_mutex_lock(&(cd->mtx)); in worker()
224 if (ret != 0) { in worker()
225 UNRESOLVED(ret, "Unable to lock mutex in worker"); in worker()
232 ret = clock_gettime(cd->cid, &ts); in worker()
233 if (ret != 0) { in worker()
[all …]
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_timedwait/
Dstress2.c196 int ret; in cleanup() local
200 ret = pthread_mutex_unlock(&(cd->mtx)); in cleanup()
201 if (ret != 0) { in cleanup()
202 UNRESOLVED(ret, "Failed to unlock mutex in cancel handler"); in cleanup()
209 int ret; in worker() local
214 ret = pthread_mutex_lock(&(cd->mtx)); in worker()
215 if (ret != 0) { in worker()
216 UNRESOLVED(ret, "Unable to lock mutex in worker"); in worker()
223 ret = clock_gettime(cd->cid, &ts); in worker()
224 if (ret != 0) { in worker()
[all …]
/external/wpa_supplicant_8/hostapd/
Deap_register.c25 int ret = 0; in eap_server_register_methods() local
28 if (ret == 0) in eap_server_register_methods()
29 ret = eap_server_identity_register(); in eap_server_register_methods()
33 if (ret == 0) in eap_server_register_methods()
34 ret = eap_server_md5_register(); in eap_server_register_methods()
38 if (ret == 0) in eap_server_register_methods()
39 ret = eap_server_tls_register(); in eap_server_register_methods()
43 if (ret == 0) in eap_server_register_methods()
44 ret = eap_server_unauth_tls_register(); in eap_server_register_methods()
49 if (ret == 0) in eap_server_register_methods()
[all …]
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_mutex_trylock/
Dstress.c160 int ret = 0, ret2 = 0; in threaded() local
166 ret = pthread_mutex_trylock(td->mtx); in threaded()
173 while ((ret == EBUSY) && (go_on == 1)); in threaded()
176 if ((go_on == 1) && (ret == 0)) { in threaded()
192 if (ret == 0) { in threaded()
194 ret = pthread_mutex_unlock(td->mtx); in threaded()
195 if (ret != 0) { in threaded()
196 UNRESOLVED(ret, "Failed to unlock the mutex"); in threaded()
206 int ret; in main() local
231 if ((ret = sigaction(SIGUSR1, &sa, NULL))) { in main()
[all …]
/external/u-boot/drivers/adc/
Dadc-uclass.c51 int ret = 0; in adc_supply_enable() local
55 ret = regulator_set_enable(uc_pdata->vdd_supply, true); in adc_supply_enable()
58 if (!ret && uc_pdata->vss_supply) { in adc_supply_enable()
60 ret = regulator_set_enable(uc_pdata->vss_supply, true); in adc_supply_enable()
63 if (ret) in adc_supply_enable()
66 return ret; in adc_supply_enable()
93 int ret; in adc_start_channel() local
98 ret = check_channel(dev, channel, CHECK_NUMBER, __func__); in adc_start_channel()
99 if (ret) in adc_start_channel()
100 return ret; in adc_start_channel()
[all …]
/external/llvm/test/CodeGen/NVPTX/
Darithmetic-int.ll13 ; CHECK: ret
14 %ret = add i64 %a, %b
15 ret i64 %ret
20 ; CHECK: ret
21 %ret = sub i64 %a, %b
22 ret i64 %ret
27 ; CHECK: ret
28 %ret = mul i64 %a, %b
29 ret i64 %ret
41 ret i64 %3
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/NVPTX/
Darithmetic-int.ll13 ; CHECK: ret
14 %ret = add i64 %a, %b
15 ret i64 %ret
20 ; CHECK: ret
21 %ret = sub i64 %a, %b
22 ret i64 %ret
27 ; CHECK: ret
28 %ret = mul i64 %a, %b
29 ret i64 %ret
41 ret i64 %3
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_getschedparam/
D1-3.c48 int ret; in check_param() local
52 ret = pthread_getschedparam(thread, &t_pol, &t_parm); in check_param()
53 if (ret) { in check_param()
54 ERR_MSG("pthread_getscheparam()", ret); in check_param()
72 int ret; in threaded() local
77 ret = pthread_barrier_wait(arg); in threaded()
78 if (ret && (ret != PTHREAD_BARRIER_SERIAL_THREAD)) { in threaded()
79 ERR_MSG("pthread_barrier_wait()", ret); in threaded()
83 ret = pthread_barrier_wait(arg); in threaded()
84 if (ret && (ret != PTHREAD_BARRIER_SERIAL_THREAD)) { in threaded()
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/
D1-2.c170 int ret = 0; in child() local
175 ret = pthread_mutex_lock(&td->mtx); in child()
176 if (ret != 0) in child()
177 UNRESOLVED(ret, "Failed to lock mutex in child"); in child()
186 ret = clock_gettime(td->cid, &ts); in child()
187 if (ret != 0) in child()
195 ret = pthread_cond_timedwait(&td->cnd, &td->mtx, &ts); in child()
197 ret = pthread_cond_wait(&td->cnd, &td->mtx); in child()
200 timed, td->predicate, ret); in child()
202 } while ((ret == 0) && (td->predicate == 0)); in child()
[all …]
D4-2.c75 int ret; in sendsig() local
81 ret = pthread_sigmask(SIG_BLOCK, &usersigs, NULL); in sendsig()
82 if (ret != 0) in sendsig()
83 UNRESOLVED(ret, "Unable to block SIGUSR1 and SIGUSR2 " in sendsig()
88 ret = sem_wait(thearg->sem); in sendsig()
89 if (ret) in sendsig()
94 ret = kill(process, thearg->sig); in sendsig()
95 if (ret != 0) in sendsig()
126 int ret; in waiter() local
129 ret = pthread_sigmask(SIG_BLOCK, &usersigs, NULL); in waiter()
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/
D4-3.c127 int ret; in sendsig() local
133 ret = pthread_sigmask(SIG_BLOCK, &usersigs, NULL); in sendsig()
134 if (ret != 0) { in sendsig()
135 UNRESOLVED(ret, in sendsig()
141 if ((ret = sem_wait(thearg->sem))) { in sendsig()
147 ret = kill(process, thearg->sig); in sendsig()
148 if (ret != 0) { in sendsig()
180 int ret = 0; in test() local
187 ret = pthread_sigmask(SIG_UNBLOCK, &usersigs, NULL); in test()
188 if (ret != 0) { in test()
[all …]

12345678910>>...636