Home
last modified time | relevance | path

Searched refs:err (Results 1 – 25 of 2966) sorted by relevance

12345678910>>...119

/openbsd-src/regress/lib/libtls/gotls/
H A Dtls_test.go89 f, err := ioutil.TempFile("", "tls")
90 if err != nil {
91 return "", fmt.Errorf("failed to create file: %v", err)
98 if err := pem.Encode(f, block); err != nil {
99 return "", fmt.Errorf("failed to encode certificate: %v", err)
116 cert, err := tls.X509KeyPair(testServerCert, testServerKey)
117 if err != nil {
118 return nil, nil, "", fmt.Errorf("failed to load key pair: %v", err)
125 u, err
[all...]
/openbsd-src/sys/dev/pci/drm/i915/gt/
H A Dselftest_mocs.c38 static int request_add_sync(struct i915_request *rq, int err) in request_add_sync() argument
43 err = -ETIME; in request_add_sync()
46 return err; in request_add_sync()
51 int err = 0; in request_add_spin() local
56 err = -ETIME; in request_add_spin()
59 return err; in request_add_spin()
65 int err; in live_mocs_init() local
86 err = PTR_ERR(arg->vaddr); in live_mocs_init()
94 return err; in live_mocs_init()
224 int err; in check_mocs_engine() local
[all …]
H A Dselftest_ring_submission.c14 int err; in create_wally() local
26 err = i915_vma_pin(vma, 0, 0, PIN_USER | PIN_HIGH); in create_wally()
27 if (err) { in create_wally()
29 return ERR_PTR(err); in create_wally()
32 err = i915_vma_sync(vma); in create_wally()
33 if (err) { in create_wally()
35 return ERR_PTR(err); in create_wally()
73 int err = 0; in context_sync() local
83 err = -ETIME; in context_sync()
86 return err; in context_sync()
[all …]
H A Dselftest_hangcheck.c44 int err; in hang_init() local
57 err = PTR_ERR(h->hws); in hang_init()
63 err = PTR_ERR(h->obj); in hang_init()
70 err = PTR_ERR(vaddr); in hang_init()
78 err = PTR_ERR(vaddr); in hang_init()
93 return err; in hang_init()
114 int err; in hang_create_request() local
147 err = i915_vma_pin(vma, 0, 0, PIN_USER); in hang_create_request()
148 if (err) { in hang_create_request()
150 return ERR_PTR(err); in hang_create_request()
[all …]
H A Dselftest_lrc.c112 int err = 0; in context_flush() local
127 err = -ETIME; in context_flush()
131 return err; in context_flush()
161 int err; in live_lrc_layout() local
173 err = 0; in live_lrc_layout()
183 err = -ENOMEM; in live_lrc_layout()
211 err = -EINVAL; in live_lrc_layout()
218 err = -EINVAL; in live_lrc_layout()
244 err = -EINVAL; in live_lrc_layout()
255 } while (!err && (lrc[dw] & ~BIT(0)) != MI_BATCH_BUFFER_END); in live_lrc_layout()
[all …]
H A Dselftest_slpc.c55 int err; in slpc_set_freq() local
58 err = slpc_set_max_freq(slpc, freq); in slpc_set_freq()
59 if (err) { in slpc_set_freq()
61 return err; in slpc_set_freq()
64 err = slpc_set_min_freq(slpc, freq); in slpc_set_freq()
65 if (err) { in slpc_set_freq()
67 return err; in slpc_set_freq()
70 return err; in slpc_set_freq()
75 int err; in slpc_restore_freq() local
77 err = slpc_set_max_freq(slpc, max); in slpc_restore_freq()
[all …]
H A Dselftest_workarounds.c37 static int request_add_sync(struct i915_request *rq, int err) in request_add_sync() argument
42 err = -EIO; in request_add_sync()
45 return err; in request_add_sync()
50 int err = 0; in request_add_spin() local
55 err = -ETIMEDOUT; in request_add_spin()
58 return err; in request_add_spin()
107 int err; in read_nonprivs() local
118 err = PTR_ERR(cs); in read_nonprivs()
127 err = PTR_ERR(vma); in read_nonprivs()
131 err = i915_vma_pin(vma, 0, 0, PIN_GLOBAL); in read_nonprivs()
[all …]
H A Dselftest_execlists.c115 int err = 0; in live_sanitycheck() local
129 err = PTR_ERR(ce); in live_sanitycheck()
135 err = PTR_ERR(rq); in live_sanitycheck()
144 err = -EIO; in live_sanitycheck()
150 err = -EIO; in live_sanitycheck()
156 if (err) in live_sanitycheck()
161 return err; in live_sanitycheck()
169 int err = -ENOMEM; in live_unlite_restore() local
177 return err; in live_unlite_restore()
179 err = 0; in live_unlite_restore()
[all …]
/openbsd-src/lib/libcrypto/bn/
H A Dbn_mod_sqrt.c122 goto err; in bn_mod_sqrt_p_is_3_mod_4()
126 goto err; in bn_mod_sqrt_p_is_3_mod_4()
128 goto err; in bn_mod_sqrt_p_is_3_mod_4()
132 goto err; in bn_mod_sqrt_p_is_3_mod_4()
136 err: in bn_mod_sqrt_p_is_3_mod_4()
156 goto err; in bn_mod_sqrt_p_is_5_mod_8()
158 goto err; in bn_mod_sqrt_p_is_5_mod_8()
160 goto err; in bn_mod_sqrt_p_is_5_mod_8()
162 goto err; in bn_mod_sqrt_p_is_5_mod_8()
166 goto err; in bn_mod_sqrt_p_is_5_mod_8()
[all …]
H A Dbn_gcd.c126 goto err; in euclid()
128 goto err; in euclid()
131 goto err; in euclid()
134 goto err; in euclid()
137 goto err; in euclid()
139 goto err; in euclid()
153 goto err; in euclid()
158 err: in euclid()
170 goto err; in BN_gcd()
172 goto err; in BN_gcd()
[all …]
H A Dbn_bpsw.c72 goto err; in bn_lucas_step()
76 goto err; in bn_lucas_step()
78 goto err; in bn_lucas_step()
82 goto err; in bn_lucas_step()
86 goto err; in bn_lucas_step()
88 goto err; in bn_lucas_step()
90 goto err; in bn_lucas_step()
95 goto err; in bn_lucas_step()
99 goto err; in bn_lucas_step()
101 goto err; in bn_lucas_step()
[all …]
/openbsd-src/sys/dev/pci/drm/i915/gem/selftests/
H A Di915_gem_migrate.c23 int err = 0; in igt_fill_check_buffer() local
37 err = -EINVAL; in igt_fill_check_buffer()
43 return err; in igt_fill_check_buffer()
54 int err = 0; in igt_create_migrate() local
64 for_i915_gem_ww(&ww, err, true) { in igt_create_migrate()
65 err = i915_gem_object_lock(obj, &ww); in igt_create_migrate()
66 if (err) in igt_create_migrate()
69 err = igt_fill_check_buffer(obj, gt, true); in igt_create_migrate()
70 if (err) in igt_create_migrate()
73 err = i915_gem_object_migrate(obj, &ww, dst); in igt_create_migrate()
[all …]
H A Di915_gem_mman.c106 int err; in check_partial_mapping() local
108 err = i915_gem_object_set_tiling(obj, tile->tiling, tile->stride); in check_partial_mapping()
109 if (err) { in check_partial_mapping()
110 pr_err("Failed to set tiling mode=%u, stride=%u, err=%d\n", in check_partial_mapping()
111 tile->tiling, tile->stride, err); in check_partial_mapping()
112 return err; in check_partial_mapping()
119 err = i915_gem_object_set_to_gtt_domain(obj, true); in check_partial_mapping()
121 if (err) { in check_partial_mapping()
122 pr_err("Failed to flush to GTT write domain; err=%d\n", err); in check_partial_mapping()
194 int err; check_partial_mappings() local
322 int err; igt_partial_tiling() local
455 int err; igt_smoke_tiling() local
549 int err; make_obj_busy() local
662 int loop, err = 0; igt_mmap_offset_exhaustion() local
783 int err = 0; gtt_set() local
809 int err = 0; gtt_check() local
853 int err = 0; wc_check() local
899 int err, i; __igt_mmap() local
989 int err; igt_mmap() local
1052 int err; igt_fill_mappable() local
1098 int err = 0, i; ___igt_mmap_migrate() local
1180 int err; __igt_mmap_migrate() local
1317 int err; igt_mmap_migrate() local
1439 int err; __igt_mmap_access() local
1510 int err; igt_mmap_access() local
1548 int err; __igt_mmap_gpu() local
1656 int err; igt_mmap_gpu() local
1724 int err; prefault_range() local
1743 int err; __igt_mmap_revoke() local
1810 int err; igt_mmap_revoke() local
[all...]
H A Di915_gem_dmabuf.c45 int err; in igt_dmabuf_import_self() local
55 err = PTR_ERR(dmabuf); in igt_dmabuf_import_self()
63 err = PTR_ERR(import); in igt_dmabuf_import_self()
70 err = -EINVAL; in igt_dmabuf_import_self()
75 err = __i915_gem_object_get_pages(import_obj); in igt_dmabuf_import_self()
77 if (err) { in igt_dmabuf_import_self()
82 err = 0; in igt_dmabuf_import_self()
89 return err; in igt_dmabuf_import_self()
99 int err; in igt_dmabuf_import_same_driver_lmem() local
110 err = PTR_ERR(obj); in igt_dmabuf_import_same_driver_lmem()
[all …]
/openbsd-src/regress/lib/libz/
H A Dexample.c22 #define CHECK_ERR(err, msg) { \ argument
23 if (err != Z_OK) { \
24 fprintf(stderr, "%s error: %d\n", msg, err); \
62 int err; in test_compress() local
65 err = compress(compr, &comprLen, (const Bytef*)hello, len); in test_compress()
66 CHECK_ERR(err, "compress"); in test_compress()
70 err = uncompress(uncompr, &uncomprLen, compr, comprLen); in test_compress()
71 CHECK_ERR(err, "uncompress"); in test_compress()
88 int err; in test_gzio()
100 fprintf(stderr, "gzputs err: %s\n", gzerror(file, &err)); in test_gzio()
[all …]
/openbsd-src/lib/libssl/
H A Dssl_asn1.c56 goto err; in SSL_SESSION_encode()
59 goto err; in SSL_SESSION_encode()
63 goto err; in SSL_SESSION_encode()
67 goto err; in SSL_SESSION_encode()
69 goto err; in SSL_SESSION_encode()
73 goto err; in SSL_SESSION_encode()
75 goto err; in SSL_SESSION_encode()
79 goto err; in SSL_SESSION_encode()
82 goto err; in SSL_SESSION_encode()
86 goto err; in SSL_SESSION_encode()
[all...]
H A Dtls13_server.c156 goto err; in tls13_client_hello_process()
158 goto err; in tls13_client_hello_process()
160 goto err; in tls13_client_hello_process()
162 goto err; in tls13_client_hello_process()
164 goto err; in tls13_client_hello_process()
168 goto err; in tls13_client_hello_process()
183 goto err; in tls13_client_hello_process()
189 goto err; in tls13_client_hello_process()
194 goto err; in tls13_client_hello_process()
198 goto err; in tls13_client_hello_process()
[all...]
H A Dssl_kex.c37 goto err; in ssl_kex_generate_dhe()
39 goto err; in ssl_kex_generate_dhe()
42 goto err; in ssl_kex_generate_dhe()
47 goto err; in ssl_kex_generate_dhe()
51 err: in ssl_kex_generate_dhe()
78 goto err; in ssl_kex_generate_dhe_params_auto()
81 goto err; in ssl_kex_generate_dhe_params_auto()
83 goto err; in ssl_kex_generate_dhe_params_auto()
86 goto err; in ssl_kex_generate_dhe_params_auto()
91 goto err; in ssl_kex_generate_dhe_params_auto()
[all …]
H A Dtls13_client.c96 goto err; in tls13_client_hello_build()
99 goto err; in tls13_client_hello_build()
101 goto err; in tls13_client_hello_build()
104 goto err; in tls13_client_hello_build()
107 goto err; in tls13_client_hello_build()
110 goto err; in tls13_client_hello_build()
113 goto err; in tls13_client_hello_build()
117 goto err; in tls13_client_hello_build()
119 goto err; in tls13_client_hello_build()
122 goto err; in tls13_client_hello_build()
[all...]
/openbsd-src/gnu/lib/libstdc++/libstdc++/testsuite/22_locale/
H A Dnum_get_members_char.cc79 ios_base::iostate err = ios_base::goodbit; in test01() local
84 iterator_type os_it01 = ng.get(os_it00, 0, iss, err, b1); in test01()
86 VERIFY( err & ios_base::eofbit ); in test01()
89 err = goodbit; in test01()
90 ng.get(iss.rdbuf(), 0, iss, err, b0); in test01()
92 VERIFY( err & eofbit ); in test01()
99 err = goodbit; in test01()
100 ng.get(iss.rdbuf(), 0, iss, err, b0); in test01()
102 VERIFY( err == goodbit ); in test01()
107 err = goodbit; in test01()
[all …]
H A Dnum_get_members_wchar_t.cc80 ios_base::iostate err = ios_base::goodbit; in test01() local
85 iterator_type os_it01 = ng.get(os_it00, 0, iss, err, b1); in test01()
87 VERIFY( err & ios_base::eofbit ); in test01()
90 err = goodbit; in test01()
91 ng.get(iss.rdbuf(), 0, iss, err, b0); in test01()
93 VERIFY( err & eofbit ); in test01()
100 err = goodbit; in test01()
101 ng.get(iss.rdbuf(), 0, iss, err, b0); in test01()
103 VERIFY( err == goodbit ); in test01()
108 err = goodbit; in test01()
[all …]
/openbsd-src/regress/usr.bin/nc/
H A DMakefile24 CLEANFILES = ${NC:T} {client,server}.{out,err,port,sock} ktrace.out
40 SERVER_NC = rm -f server.err; echo greeting | ${NC}
41 CLIENT_NC = rm -f client.err; echo command | ${NC}
42 SERVER_BG = 2>&1 >server.out | tee server.err &
43 CLIENT_BG = 2>&1 >client.out | tee client.err &
44 SERVER_LOG = >server.out 2>server.err
45 CLIENT_LOG = >client.out 2>client.err
48 sed -E -n 's/(Listening|Bound) on .* //p' server.err >server.port
53 until grep -q 'Listening on ' server.err; \
58 until grep -q 'Bound on ' server.err; \
[all …]
/openbsd-src/lib/libcrypto/sm2/
H A Dsm2_sign.c41 goto err; in sm2_compute_msg_hash()
46 goto err; in sm2_compute_msg_hash()
51 goto err; in sm2_compute_msg_hash()
56 goto err; in sm2_compute_msg_hash()
61 goto err; in sm2_compute_msg_hash()
66 goto err; in sm2_compute_msg_hash()
71 goto err; in sm2_compute_msg_hash()
77 goto err; in sm2_compute_msg_hash()
82 err: in sm2_compute_msg_hash()
101 goto err; in sm2_sig_gen()
[all …]
/openbsd-src/sys/dev/pci/drm/i915/gt/uc/
H A Dintel_gsc_uc_heci_cmd_submit.c54 int err; in intel_gsc_uc_heci_cmd_submit_packet() local
64 err = ce->engine->emit_init_breadcrumb(rq); in intel_gsc_uc_heci_cmd_submit_packet()
65 if (err) in intel_gsc_uc_heci_cmd_submit_packet()
69 err = emit_gsc_heci_pkt(rq, &pkt); in intel_gsc_uc_heci_cmd_submit_packet()
71 if (err) in intel_gsc_uc_heci_cmd_submit_packet()
74 err = ce->engine->emit_flush(rq, 0); in intel_gsc_uc_heci_cmd_submit_packet()
79 if (unlikely(err)) in intel_gsc_uc_heci_cmd_submit_packet()
80 i915_request_set_error_once(rq, err); in intel_gsc_uc_heci_cmd_submit_packet()
84 if (!err) { in intel_gsc_uc_heci_cmd_submit_packet()
93 err = -ETIME; in intel_gsc_uc_heci_cmd_submit_packet()
[all …]
/openbsd-src/sys/dev/pci/drm/i915/selftests/
H A Di915_request.c89 int err = -EINVAL; in igt_wait_request() local
146 err = 0; in igt_wait_request()
150 return err; in igt_wait_request()
158 int err = -EINVAL; in igt_fence_wait() local
198 err = 0; in igt_fence_wait()
201 return err; in igt_fence_wait()
210 int err = -EINVAL; in igt_request_rewind() local
214 err = -ENOMEM; in igt_request_rewind()
223 err = -ENOMEM; in igt_request_rewind()
232 err = -ENOMEM; in igt_request_rewind()
[all …]

12345678910>>...119