/openbsd/sys/dev/ic/ |
H A D | oosiop.c | 143 if (cb) in oosiop_cb_alloc() 147 return (cb); in oosiop_cb_alloc() 346 cb++; in oosiop_alloc_cb() 1242 sc->sc_tgt[cb->id].nexus = cb; in oosiop_processintr() 1276 if (cb) in oosiop_scriptintr() 1281 if (cb) in oosiop_scriptintr() 1330 if (cb->curdp != cb->savedp) { in oosiop_scriptintr() 1331 cb->curdp = cb->savedp; in oosiop_scriptintr() 1424 cb->savedp = cb->curdp; in oosiop_msgin() 1428 if (cb->curdp != cb->savedp) { in oosiop_msgin() [all …]
|
/openbsd/gnu/usr.bin/cvs/src/ |
H A D | zlib.c | 153 bd = cb->buf->data; 167 cb->buf->data = bd; 170 cb->zstr.avail_out = size; 182 cb->zstr.avail_in = bd->size; 196 && cb->zstr.avail_out > 0); 224 status = (*cb->buf->input) (cb->buf->closure, bd->text, 259 cb->zstr.avail_in = have; 298 cb->zstr.avail_in = 0; 299 cb->zstr.next_in = NULL; 329 if (cb->zstr.avail_out > 0) [all …]
|
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/compile/ |
H A D | 930126-1.c | 44 cb[39] = ms (24, ((char *) "")); in Ldata() 46 cb[44] = 3; in Ldata() 47 cb[46] = 2; in Ldata() 48 cb[48] = 3; in Ldata() 49 cb[50] = 6; in Ldata() 50 cb[52] = 4; in Ldata() 51 cb[146] = tO0; in Ldata() 68 cb[165] = tO1; in Ldata() 70 cb[162] = cons (1, (cons (2, 0))); in Ldata() 72 cb[148] = tO7; in Ldata() [all …]
|
/openbsd/libexec/login_token/ |
H A D | token.c | 65 DES_cblock cb; member 108 TOKEN_CBlock cb; in tokenchallenge() local 125 h2cb(tr.secret, &cb); in tokenchallenge() 126 DES_fixup_key_parity(&cb.cb); in tokenchallenge() 127 DES_key_sched(&cb.cb, &ks); in tokenchallenge() 128 DES_ecb_encrypt(&tr.rim, &cb.cb, &ks, DES_ENCRYPT); in tokenchallenge() 129 memcpy(tr.rim, cb.cb, 8); in tokenchallenge() 205 DES_ecb_encrypt(&tokennumber.cb, &cipher_text.cb, &key_schedule, in tokenverify() 313 username, secret.cb[0], secret.cb[1], secret.cb[2], secret.cb[3], in tokenuserinit() 314 secret.cb[4], secret.cb[5], secret.cb[6], secret.cb[7]); in tokenuserinit() [all …]
|
/openbsd/lib/libcrypto/pem/ |
H A D | pem_all.c | 148 (void **)x, cb, u); in PEM_read_X509_REQ() 164 (void **)x, cb, u); in PEM_read_bio_X509_REQ() 196 (void **)x, cb, u); in PEM_read_X509_CRL() 212 (void **)x, cb, u); in PEM_read_bio_X509_CRL() 228 (void **)x, cb, u); in PEM_read_PKCS7() 244 (void **)x, cb, u); in PEM_read_bio_PKCS7() 327 (void **)x, cb, u); in PEM_read_RSAPublicKey() 343 (void **)x, cb, u); in PEM_read_bio_RSAPublicKey() 359 (void **)x, cb, u); in PEM_read_RSA_PUBKEY() 375 (void **)x, cb, u); in PEM_read_bio_RSA_PUBKEY() [all …]
|
H A D | pem_pk8.c | 83 int klen, pem_password_cb *cb, void *u) in PEM_write_bio_PKCS8PrivateKey_nid() argument 128 if (!cb) in do_pk8pkey() 131 klen = cb(buf, PEM_BUFSIZE, 1, u); in do_pk8pkey() 172 if (cb) in d2i_PKCS8PrivateKey_bio() 173 klen = cb(psbuf, PEM_BUFSIZE, 0, u); in d2i_PKCS8PrivateKey_bio() 208 int klen, pem_password_cb *cb, void *u) in i2d_PKCS8PrivateKey_nid_fp() argument 216 int klen, pem_password_cb *cb, void *u) in PEM_write_PKCS8PrivateKey_nid() argument 266 (void **)x, cb, u); in PEM_read_PKCS8() 282 (void **)x, cb, u); in PEM_read_bio_PKCS8() 298 (void **)x, cb, u); in PEM_read_PKCS8_PRIV_KEY_INFO() [all …]
|
H A D | pem.h | 171 unsigned char *kstr, int klen, pem_password_cb *cb, \ 334 void **x, pem_password_cb *cb, void *u); 337 pem_password_cb *cb, void *u); 350 pem_password_cb *cb, void *u); 355 pem_password_cb *cb, void *u); 422 pem_password_cb *cb, void *u); 427 pem_password_cb *cb, void *u); 430 pem_password_cb *cb, void *u); 436 pem_password_cb *cb, void *u); 439 pem_password_cb *cb, void *u); [all …]
|
H A D | pem_pkey.c | 88 bp, cb, u)) in PEM_read_bio_PrivateKey() 111 if (cb) in PEM_read_bio_PrivateKey() 112 klen = cb(psbuf, PEM_BUFSIZE, 0, u); in PEM_read_bio_PrivateKey() 150 unsigned char *kstr, int klen, pem_password_cb *cb, void *u) in PEM_write_bio_PrivateKey() argument 154 (char *)kstr, klen, cb, u); in PEM_write_bio_PrivateKey() 156 return PEM_write_bio_PrivateKey_traditional(bp, x, enc, kstr, klen, cb, in PEM_write_bio_PrivateKey() 171 pem_str, bp, x, enc, kstr, klen, cb, u); in PEM_write_bio_PrivateKey_traditional() 232 PEM_read_PrivateKey(FILE *fp, EVP_PKEY **x, pem_password_cb *cb, void *u) in PEM_read_PrivateKey() argument 242 ret = PEM_read_bio_PrivateKey(b, x, cb, u); in PEM_read_PrivateKey() 250 unsigned char *kstr, int klen, pem_password_cb *cb, void *u) in PEM_write_PrivateKey() argument [all …]
|
/openbsd/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_deadlock_detector2.cpp | 189 cb->lt->ctx, m, wlock, cb->lt->nlocked); in MutexBeforeLock() 196 cb->lt->ctx); in MutexBeforeLock() 204 m->id = allocateId(cb); in MutexBeforeLock() 209 tm->stk = cb->Unwind(); in MutexBeforeLock() 212 cb->lt->ctx); in MutexBeforeLock() 259 cb->lt->ctx); in MutexBeforeLock() 269 cb->lt->ctx, m, wlock, trylock, cb->lt->nlocked); in MutexAfterLock() 292 m->id = allocateId(cb); in MutexAfterLock() 301 cb->lt->ctx, m, wlock, cb->lt->nlocked); in MutexBeforeUnlock() 325 cb->lt->ctx, m); in MutexDestroy() [all …]
|
H A D | sanitizer_deadlock_detector1.cpp | 94 m->stk = cb->Unwind(); in MutexInit() 105 DDLogicalThread *lt = cb->lt; in MutexBeforeLock() 114 dd.addEdges(<->dd, m->id, cb->Unwind(), cb->UniqueTid()); in MutexBeforeLock() 115 ReportDeadlock(cb, m); in MutexBeforeLock() 120 DDLogicalThread *lt = cb->lt; in ReportDeadlock() 153 DDLogicalThread *lt = cb->lt; in MutexAfterLock() 156 stk = cb->Unwind(); in MutexAfterLock() 168 dd.addEdges(<->dd, m->id, stk ? stk : cb->Unwind(), cb->UniqueTid()); in MutexAfterLock() 187 if (!cb->lt->report_pending) in GetReport() 189 cb->lt->report_pending = false; in GetReport() [all …]
|
/openbsd/sbin/isakmpd/ |
H A D | conf.c | 109 for (cb = LIST_FIRST(&conf_bindings[conf_hash(section)]); cb; in conf_remove_now() 120 free(cb); in conf_remove_now() 133 for (cb = LIST_FIRST(&conf_bindings[conf_hash(section)]); cb; in conf_remove_section_now() 140 cb->tag, cb->value)); in conf_remove_section_now() 144 free(cb); in conf_remove_section_now() 653 for (cb = LIST_FIRST(&conf_bindings[i]); cb; in conf_reinit() 655 conf_remove_now(cb->section, cb->tag); in conf_reinit() 732 cb = LIST_NEXT(cb, link)) in conf_get_str() 813 cb = LIST_NEXT(cb, link)) in conf_get_tag_list() 992 for (cb = LIST_FIRST(&conf_bindings[i]); cb; in conf_report() [all …]
|
/openbsd/sys/dev/pci/drm/i915/ |
H A D | i915_sw_fence.c | 421 struct i915_sw_dma_fence_cb *cb = container_of(data, typeof(*cb), base); in dma_i915_sw_fence_wake() local 425 kfree(cb); in dma_i915_sw_fence_wake() 438 cb->dma->ops->get_driver_name(cb->dma), in timer_i915_sw_fence_wake() 439 cb->dma->ops->get_timeline_name(cb->dma), in timer_i915_sw_fence_wake() 440 cb->dma->seqno, in timer_i915_sw_fence_wake() 471 kfree_rcu(cb, rcu); in irq_i915_sw_fence_work() 491 cb = kmalloc(timeout ? in i915_sw_fence_await_dma_fence() 495 if (!cb) { in i915_sw_fence_await_dma_fence() 507 cb->fence = fence; in i915_sw_fence_await_dma_fence() 545 struct i915_sw_dma_fence_cb *cb = container_of(data, typeof(*cb), base); in __dma_i915_sw_fence_wake() local [all …]
|
/openbsd/usr.sbin/unbound/util/ |
H A D | ub_event.c | 104 if(cb == comm_point_udp_callback) in UB_EV_BITS_CB() 112 else if(cb == comm_timer_callback) in UB_EV_BITS_CB() 114 else if(cb == comm_signal_callback) in UB_EV_BITS_CB() 122 else if(cb == tube_handle_signal) in UB_EV_BITS_CB() 124 else if(cb == comm_base_handle_slow_accept) in UB_EV_BITS_CB() 291 void (*cb)(int, short, void*), void* arg) in ub_event_new() 315 void (*cb)(int, short, void*), void* arg) in ub_signal_new() 339 void (*cb)(int, short, void*), void* arg) in ub_winsock_register_wsaevent() 355 (void)cb; in ub_winsock_register_wsaevent() 452 (void)cb; /* nothing to do */ in ub_comm_base_now() [all …]
|
H A D | ub_event_pluggable.c | 105 if(cb == comm_point_udp_callback) in UB_EV_BITS_CB() 113 else if(cb == comm_timer_callback) in UB_EV_BITS_CB() 115 else if(cb == comm_signal_callback) in UB_EV_BITS_CB() 121 else if(cb == tube_handle_signal) in UB_EV_BITS_CB() 123 else if(cb == comm_base_handle_slow_accept) in UB_EV_BITS_CB() 277 void (*cb)(int, short, void*), void* arg) in my_event_new() 297 void (*cb)(int, short, void*), void* arg) in my_signal_new() 317 void (*cb)(int, short, void*), void* arg) in my_winsock_register_wsaevent() 327 &my_ev->ev, wsaevent, cb, arg)) { in my_winsock_register_wsaevent() 338 (void)cb; in my_winsock_register_wsaevent() [all …]
|
/openbsd/sys/dev/pci/drm/apple/ |
H A D | iomfb_internal.h | 15 static void func(struct apple_dcp *dcp, bool oob, dcp_callback_t cb, \ 30 dcp_callback_t cb, void *cookie) \ 37 dcp_callback_t cb, void *cookie) \ 40 cb, cookie); \ 46 dcp_callback_t cb, void *cookie) \ 51 data, cb, cookie); \ 72 callback_##handler cb = handler; \ 75 cb(dcp, in); \ 85 callback_##handler cb = handler; \ 88 *typed_out = cb(dcp, in); \ [all …]
|
/openbsd/lib/libcrypto/bn/ |
H A D | bn_prime.c | 132 BN_GENCB_call(BN_GENCB *cb, int a, int b) in BN_GENCB_call() argument 135 if (!cb) in BN_GENCB_call() 137 switch (cb->ver) { in BN_GENCB_call() 140 if (!cb->cb.cb_1) in BN_GENCB_call() 142 cb->cb.cb_1(a, b, cb->arg); in BN_GENCB_call() 146 return cb->cb.cb_2(a, b, cb); in BN_GENCB_call() 157 const BIGNUM *rem, BN_GENCB *cb) in BN_generate_prime_ex() argument 195 if (!BN_GENCB_call(cb, 0, loops++)) in BN_generate_prime_ex() 222 if (!BN_GENCB_call(cb, 2, loops - 1)) in BN_generate_prime_ex() 239 return BN_is_prime_fasttest_ex(a, checks, ctx_passed, 0, cb); in BN_is_prime_ex() [all …]
|
/openbsd/sbin/unwind/libunbound/util/ |
H A D | ub_event_pluggable.c | 105 if(cb == comm_point_udp_callback) in UB_EV_BITS_CB() 113 else if(cb == comm_timer_callback) in UB_EV_BITS_CB() 115 else if(cb == comm_signal_callback) in UB_EV_BITS_CB() 121 else if(cb == tube_handle_signal) in UB_EV_BITS_CB() 123 else if(cb == comm_base_handle_slow_accept) in UB_EV_BITS_CB() 277 void (*cb)(int, short, void*), void* arg) in my_event_new() 297 void (*cb)(int, short, void*), void* arg) in my_signal_new() 317 void (*cb)(int, short, void*), void* arg) in my_winsock_register_wsaevent() 327 &my_ev->ev, wsaevent, cb, arg)) { in my_winsock_register_wsaevent() 338 (void)cb; in my_winsock_register_wsaevent() [all …]
|
/openbsd/lib/libcrypto/dh/ |
H A D | dh_gen.c | 69 BN_GENCB *cb); 72 DH_generate_parameters_ex(DH *ret, int prime_len, int generator, BN_GENCB *cb) in DH_generate_parameters_ex() argument 75 return ret->meth->generate_params(ret, prime_len, generator, cb); in DH_generate_parameters_ex() 76 return dh_builtin_genparams(ret, prime_len, generator, cb); in DH_generate_parameters_ex() 107 dh_builtin_genparams(DH *ret, int prime_len, int generator, BN_GENCB *cb) in dh_builtin_genparams() argument 160 if (!BN_generate_prime_ex(ret->p, prime_len, 1, t1, t2, cb)) in dh_builtin_genparams() 162 if (!BN_GENCB_call(cb, 3, 0)) in dh_builtin_genparams() 184 BN_GENCB cb; in DH_generate_parameters() local 190 BN_GENCB_set_old(&cb, callback, cb_arg); in DH_generate_parameters() 192 if (DH_generate_parameters_ex(ret, prime_len, generator, &cb)) in DH_generate_parameters()
|
/openbsd/usr.bin/x99token/ |
H A D | x99token.c | 182 DES_cblock cb; in predict() local 184 memcpy(&cb, chal, sizeof(cb)); in predict() 186 printf("%.8s: ", (char *)cb); in predict() 187 DES_ecb_encrypt(&cb, &cb, &ks, DES_ENCRYPT); in predict() 189 printf("%c", digits[(cb[i]>>4) & 0xf]); in predict() 190 printf("%c", digits[(cb[i]>>0) & 0xf]); in predict() 194 if ((cb[i] &= 0xf) > 9) in predict() 195 cb[i] -= 10; in predict() 196 cb[i] |= 0x30; in predict() 199 memset(&cb, 0, sizeof(cb)); in predict()
|
/openbsd/sys/dev/usb/ |
H A D | udl.c | 1535 cb->buf[cb->off] = value; in udl_cmd_insert_int_1() 1584 bcopy(buf, cb->buf + cb->off, len); in udl_cmd_insert_buf() 1646 cb->buf[cb->off] = 0; in udl_cmd_insert_buf_comp() 1677 cb->buf[cb->off] = 0; in udl_cmd_insert_buf_comp() 1701 cb->buf[cb->off] = 0; in udl_cmd_insert_head_comp() 1751 cb->off_save = cb->off; in udl_cmd_save_offset() 1760 cb->off = cb->off_save; in udl_cmd_restore_offset() 1793 bcopy(cb->buf, cx->buf, cb->off); in udl_cmd_send() 1844 bcopy(cb->buf, cx->buf, cb->off); in udl_cmd_send_async() 2299 count = &cb->buf[cb->off - 1]; in udl_fb_buf_write_comp() [all …]
|
/openbsd/gnu/llvm/compiler-rt/lib/tsan/dd/ |
H A D | dd_rtl.cpp | 114 Callback cb(thr); in MutexBeforeLock() local 118 ctx->dd->MutexInit(&cb, &h->dd); in MutexBeforeLock() 119 ctx->dd->MutexBeforeLock(&cb, &h->dd, writelock); in MutexBeforeLock() 121 ReportDeadlock(thr, ctx->dd->GetReport(&cb)); in MutexBeforeLock() 127 Callback cb(thr); in MutexAfterLock() local 131 ctx->dd->MutexInit(&cb, &h->dd); in MutexAfterLock() 134 ReportDeadlock(thr, ctx->dd->GetReport(&cb)); in MutexAfterLock() 140 Callback cb(thr); in MutexBeforeUnlock() local 145 ReportDeadlock(thr, ctx->dd->GetReport(&cb)); in MutexBeforeUnlock() 151 Callback cb(thr); in MutexDestroy() local [all …]
|
/openbsd/usr.bin/tmux/ |
H A D | control.c | 229 free(cb->line); in control_free_block() 231 free(cb); in control_free_block() 421 cb = xcalloc(1, sizeof *cb); in control_write() 441 if (cb == NULL) in control_check_age() 444 if (cb->t >= t) in control_check_age() 447 age = t - cb->t; in control_check_age() 496 cb = xcalloc(1, sizeof *cb); in control_write_output() 600 cb->line); in control_flush_all_blocks() 602 bufferevent_write(cs->write_event, cb->line, strlen(cb->line)); in control_flush_all_blocks() 686 if (cb->t < t) in control_write_pending() [all …]
|
/openbsd/usr.bin/ssh/ |
H A D | atomicio.c | 44 int (*cb)(void *, size_t), void *cb_arg) in atomicio6() 59 if (cb != NULL && cb(cb_arg, 0) == -1) { in atomicio6() 74 if (cb != NULL && cb(cb_arg, (size_t)res) == -1) { in atomicio6() 95 int (*cb)(void *, size_t), void *cb_arg) in atomiciov6() 117 if (cb != NULL && cb(cb_arg, 0) == -1) { in atomiciov6() 150 if (cb != NULL && cb(cb_arg, (size_t)res) == -1) { in atomiciov6()
|
/openbsd/lib/libcrypto/rsa/ |
H A D | rsa_gen.c | 75 return rsa->meth->rsa_keygen(rsa, bits, e_value, cb); in RSA_generate_key_ex() 76 return rsa_builtin_keygen(rsa, bits, e_value, cb); in RSA_generate_key_ex() 127 if (!BN_generate_prime_ex(rsa->p, bitsp, 0, NULL, NULL, cb)) in rsa_builtin_keygen() 135 if (!BN_GENCB_call(cb, 2, n++)) in rsa_builtin_keygen() 138 if (!BN_GENCB_call(cb, 3, 0)) in rsa_builtin_keygen() 149 cb)) in rsa_builtin_keygen() 164 if (!BN_GENCB_call(cb, 2, n++)) in rsa_builtin_keygen() 167 if (!BN_GENCB_call(cb, 3, 1)) in rsa_builtin_keygen() 229 BN_GENCB cb; in RSA_generate_key() local 245 BN_GENCB_set_old(&cb, callback, cb_arg); in RSA_generate_key() [all …]
|
/openbsd/usr.bin/openssl/ |
H A D | gendh.c | 87 static int dh_cb(int p, int n, BN_GENCB *cb); 131 BN_GENCB *cb = NULL; in gendh_main() local 142 if ((cb = BN_GENCB_new()) == NULL) { in gendh_main() 147 BN_GENCB_set(cb, dh_cb, bio_err); in gendh_main() 186 !DH_generate_parameters_ex(dh, numbits, cfg.g, cb)) in gendh_main() 196 BN_GENCB_free(cb); in gendh_main() 203 dh_cb(int p, int n, BN_GENCB *cb) in dh_cb() argument 215 BIO_write(BN_GENCB_get_arg(cb), &c, 1); in dh_cb() 216 (void) BIO_flush(BN_GENCB_get_arg(cb)); in dh_cb()
|