Home
last modified time | relevance | path

Searched refs:cb (Results 1 – 25 of 463) sorted by relevance

12345678910>>...19

/freebsd-9-stable/sys/contrib/rdma/krping/
Dkrping.c57 #define DEBUG_LOG(cb, x...) if (krping_debug) krping_printf((cb)->cookie, x) argument
58 #define PRINTF(cb, x...) krping_printf((cb)->cookie, x) argument
245 struct krping_cb *cb = cma_id->context; in krping_cma_event_handler() local
247 DEBUG_LOG(cb, "cma_event type %d cma_id %p (%s)\n", event->event, in krping_cma_event_handler()
248 cma_id, (cma_id == cb->cm_id) ? "parent" : "child"); in krping_cma_event_handler()
252 cb->state = ADDR_RESOLVED; in krping_cma_event_handler()
255 PRINTF(cb, "rdma_resolve_route error %d\n", ret); in krping_cma_event_handler()
256 wake_up_interruptible(&cb->sem); in krping_cma_event_handler()
261 cb->state = ROUTE_RESOLVED; in krping_cma_event_handler()
262 cb->child_cm_id = cma_id; in krping_cma_event_handler()
[all …]
/freebsd-9-stable/contrib/ofed/librdmacm/examples/
Drping.c165 struct rping_cb *cb = cma_id->context; in rping_cma_event_handler() local
169 (cma_id == cb->cm_id) ? "parent" : "child"); in rping_cma_event_handler()
173 cb->state = ADDR_RESOLVED; in rping_cma_event_handler()
176 cb->state = ERROR; in rping_cma_event_handler()
178 sem_post(&cb->sem); in rping_cma_event_handler()
183 cb->state = ROUTE_RESOLVED; in rping_cma_event_handler()
184 sem_post(&cb->sem); in rping_cma_event_handler()
188 cb->state = CONNECT_REQUEST; in rping_cma_event_handler()
189 cb->child_cm_id = cma_id; in rping_cma_event_handler()
190 DEBUG_LOG("child cma %p\n", cb->child_cm_id); in rping_cma_event_handler()
[all …]
/freebsd-9-stable/sys/netipx/
Dspx_usrreq.c111 static void spx_close(struct spxpcb *cb);
112 static void spx_disconnect(struct spxpcb *cb);
113 static void spx_drop(struct spxpcb *cb, int errno);
114 static void spx_setpersist(struct spxpcb *cb);
115 static void spx_template(struct spxpcb *cb);
116 static void spx_timers(struct spxpcb *cb, int timer);
117 static void spx_usrclosed(struct spxpcb *cb);
187 struct spxpcb *cb; in spx_input() local
206 cb = ipxtospxpcb(ipxp); in spx_input()
207 KASSERT(cb != NULL, ("spx_input: cb == NULL")); in spx_input()
[all …]
Dspx_reass.c102 spx_reass_flush(struct spxpcb *cb) in spx_reass_flush() argument
106 while ((q = LIST_FIRST(&cb->s_q)) != NULL) { in spx_reass_flush()
117 spx_reass_init(struct spxpcb *cb) in spx_reass_init() argument
120 LIST_INIT(&cb->s_q); in spx_reass_init()
129 spx_reass(struct spxpcb *cb, struct mbuf *msi, struct spx *si) in spx_reass() argument
133 struct socket *so = cb->s_ipxpcb->ipxp_socket; in spx_reass()
134 char packetp = cb->s_flags & SF_HI; in spx_reass()
138 IPX_LOCK_ASSERT(cb->s_ipxpcb); in spx_reass()
147 cb->s_flags |= (spx_use_delack ? SF_DELACK : SF_ACKNOW); in spx_reass()
148 if (SSEQ_GT(si->si_alo, cb->s_ralo)) in spx_reass()
[all …]
/freebsd-9-stable/sys/cam/scsi/
Dscsi_low.c253 scsi_low_activate_qtag(cb) in scsi_low_activate_qtag() argument
254 struct slccb *cb; in scsi_low_activate_qtag()
256 struct lun_info *li = cb->li;
258 if (cb->ccb_tag != SCSI_LOW_UNKTAG)
262 cb->ccb_tag = cb->ccb_otag;
266 scsi_low_deactivate_qtag(cb) in scsi_low_deactivate_qtag() argument
267 struct slccb *cb; in scsi_low_deactivate_qtag()
269 struct lun_info *li = cb->li;
271 if (cb->ccb_tag == SCSI_LOW_UNKTAG)
275 cb->ccb_tag = SCSI_LOW_UNKTAG;
[all …]
/freebsd-9-stable/contrib/ipfilter/test/expected/
Dni51 4500 002c 0000 4000 ff06 02fc 0101 0101 96cb e002 8032 0015 bd6b c9c8 0000 0000 6002 2238 f5a2 0000…
3 4500 002c ffdd 4000 ef06 5374 96cb e002 c0a8 0103 0015 8032 3786 76c4 bd6b c9c9 6012 269c 8369 0000…
5 4500 0028 0001 4000 ff06 02ff 0101 0101 96cb e002 8032 0015 bd6b c9c9 3786 76c5 5010 269c 5aa0 0000
7 4500 006f ffde 4000 ef06 5330 96cb e002 c0a8 0103 0015 8032 3786 76c5 bd6b c9c9 5018 269c 967e 0000…
9 4500 0028 0002 4000 ff06 02fe 0101 0101 96cb e002 8032 0015 bd6b c9c9 3786 770c 5010 269c 5a59 0000
11 4500 00c7 ffdf 4000 ef06 52d7 96cb e002 c0a8 0103 0015 8032 3786 770c bd6b c9c9 5018 269c 1087 0000…
13 4500 0028 0003 4000 ff06 02fd 0101 0101 96cb e002 8032 0015 bd6b c9c9 3786 77ab 5010 269c 59ba 0000
15 4500 0038 0004 4000 ff06 02ec 0101 0101 96cb e002 8032 0015 bd6b c9c9 3786 77ab 5018 269c d1c5 0000…
17 4500 0028 ffe0 4000 ef06 5375 96cb e002 c0a8 0103 0015 8032 3786 77ab bd6b c9d9 5010 269c 9a00 0000
19 4500 006c ffe1 4000 ef06 5330 96cb e002 c0a8 0103 0015 8032 3786 77ab bd6b c9d9 5018 269c b00f 0000…
[all …]
/freebsd-9-stable/cddl/contrib/opensolaris/cmd/zfs/
Dzfs_iter.c77 zfs_include_snapshots(zfs_handle_t *zhp, callback_data_t *cb) in zfs_include_snapshots() argument
81 if ((cb->cb_flags & ZFS_ITER_PROP_LISTSNAPS) == 0) in zfs_include_snapshots()
82 return (cb->cb_types & ZFS_TYPE_SNAPSHOT); in zfs_include_snapshots()
95 callback_data_t *cb = data; in zfs_callback() local
97 boolean_t include_snaps = zfs_include_snapshots(zhp, cb); in zfs_callback()
98 boolean_t include_bmarks = (cb->cb_types & ZFS_TYPE_BOOKMARK); in zfs_callback()
100 if ((zfs_get_type(zhp) & cb->cb_types) || in zfs_callback()
107 if (uu_avl_find(cb->cb_avl, node, cb->cb_sortcol, in zfs_callback()
109 if (cb->cb_proplist) { in zfs_callback()
110 if ((*cb->cb_proplist) && in zfs_callback()
[all …]
Dzfs_main.c378 usage_prop_cb(int prop, void *cb) in usage_prop_cb() argument
380 FILE *fp = cb; in usage_prop_cb()
1009 destroy_cbdata_t *cb = data; in destroy_callback() local
1012 if (cb->cb_verbose) { in destroy_callback()
1013 if (cb->cb_parsable) { in destroy_callback()
1015 } else if (cb->cb_dryrun) { in destroy_callback()
1033 if (cb->cb_dryrun) { in destroy_callback()
1045 fnvlist_add_boolean(cb->cb_batchedsnaps, name); in destroy_callback()
1048 cb->cb_batchedsnaps, B_FALSE); in destroy_callback()
1049 fnvlist_free(cb->cb_batchedsnaps); in destroy_callback()
[all …]
/freebsd-9-stable/contrib/cvs/src/
Dzlib.c139 struct compress_buffer *cb = (struct compress_buffer *) closure; local
142 if (cb->buf->input == NULL)
153 bd = cb->buf->data;
167 cb->buf->data = bd;
170 cb->zstr.avail_out = size;
171 cb->zstr.next_out = (Bytef *) data;
182 cb->zstr.avail_in = bd->size;
183 cb->zstr.next_in = (Bytef *) bd->bufp;
187 zstatus = inflate (&cb->zstr, Z_NO_FLUSH);
192 compress_error (0, zstatus, &cb->zstr, "inflate");
[all …]
/freebsd-9-stable/sys/contrib/altq/altq/
Daltq_cdnr.c141 struct cdnr_block *cb; local
165 cb = acc_classify(&top->tc_classifier, m, af);
166 if (cb != NULL)
167 tca = &cb->cb_action;
199 cb = tca->tca_next;
200 tca = (*cb->cb_input)(cb, &pktinfo);
227 struct cdnr_block *cb; local
229 cb = (struct cdnr_block *)handle;
230 if (handle != ALIGN(cb))
233 if (cb == NULL || cb->cb_handle != handle)
[all …]
/freebsd-9-stable/crypto/openssl/crypto/pem/
Dpem.h223 type *PEM_read_##name(FILE *fp, type **x, pem_password_cb *cb, void *u)\
228 cb, u); \
251 unsigned char *kstr, int klen, pem_password_cb *cb, \
257 enc, kstr, klen, cb, u); \
262 unsigned char *kstr, int klen, pem_password_cb *cb, \
268 enc, kstr, klen, cb, u); \
274 type *PEM_read_bio_##name(BIO *bp, type **x, pem_password_cb *cb, void *u)\
279 cb, u); \
302 unsigned char *kstr, int klen, pem_password_cb *cb, void *u) \
307 enc, kstr, klen, cb, u); \
[all …]
Dpem_pk8.c71 char *kstr, int klen, pem_password_cb *cb, void *u);
74 char *kstr, int klen, pem_password_cb *cb, void *u);
85 pem_password_cb *cb, void *u) in PEM_write_bio_PKCS8PrivateKey_nid() argument
87 return do_pk8pkey(bp, x, 0, nid, NULL, kstr, klen, cb, u); in PEM_write_bio_PKCS8PrivateKey_nid()
92 pem_password_cb *cb, void *u) in PEM_write_bio_PKCS8PrivateKey() argument
94 return do_pk8pkey(bp, x, 0, -1, enc, kstr, klen, cb, u); in PEM_write_bio_PKCS8PrivateKey()
99 pem_password_cb *cb, void *u) in i2d_PKCS8PrivateKey_bio() argument
101 return do_pk8pkey(bp, x, 1, -1, enc, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_bio()
106 pem_password_cb *cb, void *u) in i2d_PKCS8PrivateKey_nid_bio() argument
108 return do_pk8pkey(bp, x, 1, nid, NULL, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_nid_bio()
[all …]
Dpem_all.c172 RSA *PEM_read_bio_RSAPrivateKey(BIO *bp, RSA **rsa, pem_password_cb *cb, in PEM_read_bio_RSAPrivateKey() argument
176 pktmp = PEM_read_bio_PrivateKey(bp, NULL, cb, u); in PEM_read_bio_RSAPrivateKey()
182 RSA *PEM_read_RSAPrivateKey(FILE *fp, RSA **rsa, pem_password_cb *cb, void *u) in PEM_read_RSAPrivateKey() argument
185 pktmp = PEM_read_PrivateKey(fp, NULL, cb, u); in PEM_read_RSAPrivateKey()
195 pem_password_cb *cb, void *u) in PEM_write_bio_RSAPrivateKey() argument
204 ret = PEM_write_bio_PrivateKey(bp, k, enc, kstr, klen, cb, u); in PEM_write_bio_RSAPrivateKey()
212 pem_password_cb *cb, void *u) in PEM_write_RSAPrivateKey() argument
222 ret = PEM_write_PrivateKey(fp, k, enc, kstr, klen, cb, u); in PEM_write_RSAPrivateKey()
255 DSA *PEM_read_bio_DSAPrivateKey(BIO *bp, DSA **dsa, pem_password_cb *cb, in PEM_read_bio_DSAPrivateKey() argument
259 pktmp = PEM_read_bio_PrivateKey(bp, NULL, cb, u); in PEM_read_bio_DSAPrivateKey()
[all …]
/freebsd-9-stable/contrib/ipfilter/test/input/
Dni54 96cb e002 8032 0015 bd6b c9c8 0000 0000
9 4500 002c ffdd 4000 ef06 131e 96cb e002
16 96cb e002 8032 0015 bd6b c9c9 3786 76c5
21 4500 006f ffde 4000 ef06 12da 96cb e002
31 4500 0028 10cb 4000 ff06 328b c0a8 0103
32 96cb e002 8032 0015 bd6b c9c9 3786 770c
40 4500 00c7 ffdf 4000 ef06 1281 96cb e002
57 96cb e002 8032 0015 bd6b c9c9 3786 77ab
63 96cb e002 8032 0015 bd6b c9c9 3786 77ab
69 4500 0028 ffe0 4000 ef06 131f 96cb e002
[all …]
/freebsd-9-stable/sys/i386/isa/
Dccbque.h75 register struct CCBTYPE *cb; \
81 cb = TAILQ_FIRST(&(CCBTYPE##que.CCBTYPE##tab)); \
82 if (cb != NULL) \
84 TAILQ_REMOVE(&CCBTYPE##que.CCBTYPE##tab, cb, CHAIN);\
89 cb = malloc(sizeof(*cb), M_DEVBUF, M_NOWAIT); \
90 if (cb != NULL) \
92 bzero(cb, sizeof(*cb)); \
99 cb = NULL; \
103 return cb; \
107 DEV##_free_ccb(cb) \
[all …]
/freebsd-9-stable/crypto/openssl/crypto/bio/
Dbio_lib.c164 long (*cb) (struct bio_st *, int, const char *, int, in BIO_set_callback()
167 b->callback = cb; in BIO_set_callback()
193 long (*cb) (BIO *, int, const char *, int, long, long); in BIO_read() local
200 cb = b->callback; in BIO_read()
201 if ((cb != NULL) && in BIO_read()
202 ((i = (int)cb(b, BIO_CB_READ, out, outl, 0L, 1L)) <= 0)) in BIO_read()
215 if (cb != NULL) in BIO_read()
216 i = (int)cb(b, BIO_CB_READ | BIO_CB_RETURN, out, outl, 0L, (long)i); in BIO_read()
223 long (*cb) (BIO *, int, const char *, int, long, long); in BIO_write() local
228 cb = b->callback; in BIO_write()
[all …]
/freebsd-9-stable/usr.sbin/bluetooth/btpand/
Devent.h52 void (*cb)(int, short, void *); member
79 #define event_set(ev, fd, flags, cb, cbarg) \ argument
80 _event_set(__FILE__, __LINE__, ev, fd, flags, cb, cbarg)
86 #define evtimer_set(ev, cb, cbarg) \ argument
87 _event_set(__FILE__, __LINE__, ev, -1, 0, cb, cbarg)
93 void (*cb)(int, short, void *), void *cbarg) in _event_set()
96 file, line, ev, fd, flags, cb, cbarg); in _event_set()
101 __event_set(ev, fd, flags, cb, cbarg); in _event_set()
108 "timeout=%p", file, line, ev, ev->fd, ev->flags, ev->cb, in _event_add()
121 file, line, ev, ev->fd, ev->flags, ev->cb, ev->cbarg); in _event_del()
[all …]
/freebsd-9-stable/cddl/contrib/opensolaris/cmd/zpool/
Dzpool_main.c281 print_prop_cb(int prop, void *cb) in print_prop_cb() argument
283 FILE *fp = cb; in print_prop_cb()
1304 spare_cbdata_t cb; in print_status_config() local
1372 &cb.cb_guid) == 0); in print_status_config()
1373 if (zpool_iter(g_zfs, find_spare, &cb) == 1) { in print_status_config()
1374 if (strcmp(zpool_get_name(cb.cb_zhp), in print_status_config()
1381 zpool_get_name(cb.cb_zhp)); in print_status_config()
1382 zpool_close(cb.cb_zhp); in print_status_config()
2288 print_iostat_separator(iostat_cbdata_t *cb) in print_iostat_separator() argument
2292 for (i = 0; i < cb->cb_namewidth; i++) in print_iostat_separator()
[all …]
/freebsd-9-stable/crypto/openssl/crypto/bn/
Dbn_prime.c141 int BN_GENCB_call(BN_GENCB *cb, int a, int b) in BN_GENCB_call() argument
144 if (!cb) in BN_GENCB_call()
146 switch (cb->ver) { in BN_GENCB_call()
149 if (!cb->cb.cb_1) in BN_GENCB_call()
151 cb->cb.cb_1(a, b, cb->arg); in BN_GENCB_call()
155 return cb->cb.cb_2(a, b, cb); in BN_GENCB_call()
164 const BIGNUM *add, const BIGNUM *rem, BN_GENCB *cb) in BN_generate_prime_ex() argument
194 if (!BN_GENCB_call(cb, 0, c1++)) in BN_generate_prime_ex()
199 i = BN_is_prime_fasttest_ex(ret, checks, ctx, 0, cb); in BN_generate_prime_ex()
213 j = BN_is_prime_fasttest_ex(ret, 1, ctx, 0, cb); in BN_generate_prime_ex()
[all …]
Dbn_depr.c74 BN_GENCB cb; in BN_generate_prime() local
78 BN_GENCB_set_old(&cb, callback, cb_arg); in BN_generate_prime()
85 if (!BN_generate_prime_ex(rnd, bits, safe, add, rem, &cb)) in BN_generate_prime()
100 BN_GENCB cb; in BN_is_prime() local
101 BN_GENCB_set_old(&cb, callback, cb_arg); in BN_is_prime()
102 return BN_is_prime_ex(a, checks, ctx_passed, &cb); in BN_is_prime()
110 BN_GENCB cb; in BN_is_prime_fasttest() local
111 BN_GENCB_set_old(&cb, callback, cb_arg); in BN_is_prime_fasttest()
113 do_trial_division, &cb); in BN_is_prime_fasttest()
Dbn_x931p.c71 BN_GENCB *cb) in bn_x931_derive_pi() argument
80 BN_GENCB_call(cb, 0, i); in bn_x931_derive_pi()
82 if (BN_is_prime_fasttest_ex(pi, 27, ctx, 1, cb)) in bn_x931_derive_pi()
87 BN_GENCB_call(cb, 2, i); in bn_x931_derive_pi()
100 BN_GENCB *cb) in BN_X931_derive_prime_ex() argument
123 if (!bn_x931_derive_pi(p1, Xp1, ctx, cb)) in BN_X931_derive_prime_ex()
126 if (!bn_x931_derive_pi(p2, Xp2, ctx, cb)) in BN_X931_derive_prime_ex()
164 BN_GENCB_call(cb, 0, i++); in BN_X931_derive_prime_ex()
177 && BN_is_prime_fasttest_ex(p, 50, ctx, 1, cb)) in BN_X931_derive_prime_ex()
183 BN_GENCB_call(cb, 3, 0); in BN_X931_derive_prime_ex()
[all …]
/freebsd-9-stable/lib/libc/iconv/
Dcitrus_prop.h73 } cb; member
76 #define _CITRUS_PROP_HINT_BOOL(name, cb) \ argument
77 { name, _CITRUS_PROP_BOOL, { .boolean = { cb } } }
78 #define _CITRUS_PROP_HINT_STR(name, cb) \ argument
79 { name, _CITRUS_PROP_STR, { .str = { cb } } }
80 #define _CITRUS_PROP_HINT_CHR(name, cb) \ argument
81 { name, _CITRUS_PROP_CHR, { .chr = { cb } } }
82 #define _CITRUS_PROP_HINT_NUM(name, cb) \ argument
83 { name, _CITRUS_PROP_NUM, { .num = { cb } } }
/freebsd-9-stable/contrib/wpa/src/ap/
Dwpa_auth_glue.c256 void *ctx, int (*cb)(struct wpa_state_machine *sm, void *ctx), in hostapd_wpa_auth_for_each_sta()
263 if (sta->wpa_sm && cb(sta->wpa_sm, cb_ctx)) in hostapd_wpa_auth_for_each_sta()
271 int (*cb)(struct wpa_authenticator *sm, void *ctx); member
281 data->cb(iface->bss[i]->wpa_auth, data->cb_ctx)) in wpa_auth_iface_iter()
289 void *ctx, int (*cb)(struct wpa_authenticator *sm, void *ctx), in hostapd_wpa_auth_for_each_auth()
296 data.cb = cb; in hostapd_wpa_auth_for_each_auth()
443 struct wpa_auth_callbacks cb; in hostapd_setup_wpa() local
448 os_memset(&cb, 0, sizeof(cb)); in hostapd_setup_wpa()
449 cb.ctx = hapd; in hostapd_setup_wpa()
450 cb.logger = hostapd_wpa_auth_logger; in hostapd_setup_wpa()
[all …]
/freebsd-9-stable/contrib/ntp/sntp/libevent/include/event2/
Devent_compat.h186 #define evtimer_set(ev, cb, arg) event_set((ev), -1, 0, (cb), (arg)) argument
187 #define evsignal_set(ev, x, cb, arg) \ argument
188 event_set((ev), (x), EV_SIGNAL|EV_PERSIST, (cb), (arg))
199 #define timeout_set(ev, cb, arg) event_set((ev), -1, 0, (cb), (arg)) argument
213 #define signal_set(ev, x, cb, arg) \ argument
214 event_set((ev), (x), EV_SIGNAL|EV_PERSIST, (cb), (arg))
/freebsd-9-stable/crypto/openssl/crypto/asn1/
Dn_pkey.c107 int (*cb) (char *buf, int len, const char *prompt,
111 int (*cb) (char *buf, int len, const char *prompt, in i2d_Netscape_RSA()
114 return i2d_RSA_NET(a, pp, cb, 0); in i2d_Netscape_RSA()
118 int (*cb) (char *buf, int len, const char *prompt, in i2d_RSA_NET()
194 if (cb == NULL) in i2d_RSA_NET()
195 cb = EVP_read_pw_string; in i2d_RSA_NET()
196 i = cb((char *)buf, 256, "Enter Private Key password:", 1); in i2d_RSA_NET()
228 int (*cb) (char *buf, int len, const char *prompt, in d2i_Netscape_RSA()
231 return d2i_RSA_NET(a, pp, length, cb, 0); in d2i_Netscape_RSA()
235 int (*cb) (char *buf, int len, const char *prompt, in d2i_RSA_NET()
[all …]

12345678910>>...19