| /freebsd/crypto/openssl/crypto/ |
| H A D | core_fetch.c | 28 static int is_temporary_method_store(int no_store, void *cbdata) in is_temporary_method_store() argument 30 struct construct_data_st *data = cbdata; in is_temporary_method_store() 35 static int ossl_method_construct_reserve_store(int no_store, void *cbdata) in ossl_method_construct_reserve_store() argument 37 struct construct_data_st *data = cbdata; in ossl_method_construct_reserve_store() 53 static int ossl_method_construct_unreserve_store(void *cbdata) in ossl_method_construct_unreserve_store() argument 55 struct construct_data_st *data = cbdata; in ossl_method_construct_unreserve_store() 62 void *cbdata, int *result) in ossl_method_construct_precondition() argument 73 if (!is_temporary_method_store(no_store, cbdata) in ossl_method_construct_precondition() 89 void *cbdata, int *result) in ossl_method_construct_postcondition() argument 99 return is_temporary_method_store(no_store, cbdata) in ossl_method_construct_postcondition() [all …]
|
| H A D | core_algorithm.c | 43 int cur_operation, int no_store, void *cbdata) in algorithm_do_map() argument 45 struct algorithm_data_st *data = cbdata; in algorithm_do_map() 102 static int algorithm_do_this(OSSL_PROVIDER *provider, void *cbdata) in algorithm_do_this() argument 104 struct algorithm_data_st *data = cbdata; in algorithm_do_this() 150 struct algorithm_data_st cbdata = { 0, }; in ossl_algorithm_do_all() local 152 cbdata.libctx = libctx; in ossl_algorithm_do_all() 153 cbdata.operation_id = operation_id; in ossl_algorithm_do_all() 154 cbdata.pre = pre; in ossl_algorithm_do_all() 155 cbdata.reserve_store = reserve_store; in ossl_algorithm_do_all() 156 cbdata.fn = fn; in ossl_algorithm_do_all() [all …]
|
| H A D | provider_child.c | 92 static int provider_create_child_cb(const OSSL_CORE_HANDLE *prov, void *cbdata) in provider_create_child_cb() argument 94 OSSL_LIB_CTX *ctx = cbdata; in provider_create_child_cb() 157 static int provider_remove_child_cb(const OSSL_CORE_HANDLE *prov, void *cbdata) in provider_remove_child_cb() argument 159 OSSL_LIB_CTX *ctx = cbdata; in provider_remove_child_cb() 184 static int provider_global_props_cb(const char *props, void *cbdata) in provider_global_props_cb() argument 186 OSSL_LIB_CTX *ctx = cbdata; in provider_global_props_cb()
|
| H A D | provider.c | 154 void *cbdata), in OSSL_PROVIDER_do_all() argument 155 void *cbdata) in OSSL_PROVIDER_do_all() 157 return ossl_provider_doall_activated(ctx, cb, cbdata); in OSSL_PROVIDER_do_all()
|
| H A D | provider_core.c | 132 int (*create_cb)(const OSSL_CORE_HANDLE *provider, void *cbdata); 133 int (*remove_cb)(const OSSL_CORE_HANDLE *provider, void *cbdata); 134 int (*global_props_cb)(const char *props, void *cbdata); 135 void *cbdata; member 641 ret &= child_cb->create_cb((OSSL_CORE_HANDLE *)prov, child_cb->cbdata); in create_provider_children() 1229 child_cb->remove_cb((OSSL_CORE_HANDLE *)prov, child_cb->cbdata); in provider_deactivate() 1528 void *cbdata), in ossl_provider_doall_activated() argument 1529 void *cbdata) in ossl_provider_doall_activated() 1606 if (!cb(prov, cbdata)) { in ossl_provider_doall_activated() 2096 child_cb->global_props_cb(props, child_cb->cbdata); in ossl_provider_default_props_update() [all …]
|
| /freebsd/crypto/krb5/src/util/profile/ |
| H A D | test_vtable.c | 46 basic_get_values(void *cbdata, const char *const *names, char ***ret_values) in basic_get_values() argument 48 assert(cbdata == &basic_cbdata); in basic_get_values() 58 free_values(void *cbdata, char **values) in free_values() argument 68 full_get_values(void *cbdata, const char *const *names, char ***ret_values) in full_get_values() argument 70 assert(cbdata == &full_cbdata); in full_get_values() 87 full_cleanup(void *cbdata) in full_cleanup() argument 89 assert(cbdata == &full_cbdata); in full_cleanup() 93 full_copy(void *cbdata, void **ret_cbdata) in full_copy() argument 95 assert(cbdata == &full_cbdata); in full_copy() 105 full_iterator_create(void *cbdata, const char *const *names, int flags, in full_iterator_create() argument [all …]
|
| H A D | prof_init.c | 19 init_module(struct profile_vtable *vtable, void *cbdata, in init_module() argument 50 profile->cbdata = cbdata; in init_module() 106 void *cbdata = NULL, (*fptr)(void); in init_load_module() local 138 err = (*initfn)(residual, &vtable, &cbdata); in init_load_module() 146 err = init_module(&vtable, cbdata, lib_handle, ret_profile); in init_load_module() 154 vtable.cleanup(cbdata); in init_load_module() 238 profile_init_vtable(struct profile_vtable *vtable, void *cbdata, in profile_init_vtable() argument 241 return init_module(vtable, cbdata, NULL, ret_profile); in profile_init_vtable() 249 void *cbdata; in copy_vtable_profile() local 256 err = profile->vt->copy(profile->cbdata, &cbdata); in copy_vtable_profile() [all …]
|
| H A D | profile.hin | 142 (*profile_get_values_fn)(void *cbdata, const char *const *names, 147 (*profile_free_values_fn)(void *cbdata, char **values); 151 (*profile_cleanup_fn)(void *cbdata); 154 * Optional (mandatory if cleanup is defined): Generate a new cbdata pointer 156 * the same cbdata pointer as the old one. 159 (*profile_copy_fn)(void *cbdata, void **ret_cbdata); 173 (*profile_iterator_create_fn)(void *cbdata, const char *const *names, 182 (*profile_iterator_fn)(void *cbdata, void *iter, char **ret_name, 190 (*profile_iterator_free_fn)(void *cbdata, void *iter); 194 (*profile_free_string_fn)(void *cbdata, char *string); [all …]
|
| H A D | prof_get.c | 139 retval = profile->vt->get_values(profile->cbdata, names, &vtvalues); in get_values_vt() 151 profile->vt->free_values(profile->cbdata, vtvalues); in get_values_vt() 205 retval = profile->vt->get_values(profile->cbdata, names, &vtvalues); in get_value_vt() 211 profile->vt->free_values(profile->cbdata, vtvalues); in get_value_vt() 505 retval = profile->vt->iterator_create(profile->cbdata, names, in profile_iterator_create() 533 profile->vt->iterator_free(profile->cbdata, iter->idata); in profile_iterator_free() 586 retval = profile->vt->iterator(profile->cbdata, iter->idata, &name, in profile_iterator() 591 profile->vt->iterator_free(profile->cbdata, iter->idata); in profile_iterator() 597 profile->vt->free_string(profile->cbdata, name); in profile_iterator() 599 profile->vt->free_string(profile->cbdata, value); in profile_iterator()
|
| H A D | prof_set.c | 88 return profile->vt->update_relation(profile->cbdata, names, old_value, in profile_update_relation() 145 return profile->vt->update_relation(profile->cbdata, names, NULL, in profile_clear_relation() 198 return profile->vt->rename_section(profile->cbdata, names, new_name); in profile_rename_section() 255 return profile->vt->add_relation(profile->cbdata, names, new_value); in profile_add_relation()
|
| /freebsd/sys/dev/ocs_fc/ |
| H A D | ocs_device.c | 762 ocs_node_cb_t *cbdata = arg; in __ocs_d_init() local 784 fc_header_t *hdr = cbdata->header->dma.virt; in __ocs_d_init() 787 ocs_node_save_sparms(node, cbdata->payload->dma.virt); in __ocs_d_init() 788 ocs_send_ls_acc_after_attach(cbdata->io, cbdata->header->dma.virt, OCS_NODE_SEND_LS_ACC_PLOGI); in __ocs_d_init() 842 fc_header_t *hdr = cbdata->header->dma.virt; in __ocs_d_init() 845 ocs_assert(ocs_rnode_is_nport(cbdata->payload->dma.virt), NULL); in __ocs_d_init() 848 ocs_domain_save_sparms(node->sport->domain, cbdata->payload->dma.virt); in __ocs_d_init() 852 ocs_send_flogi_p2p_acc(cbdata->io, ocs_be16toh(hdr->ox_id), fc_be24toh(hdr->d_id), NULL, NULL); in __ocs_d_init() 864 fc_header_t *hdr = cbdata->header->dma.virt; in __ocs_d_init() 873 ocs_send_logo_acc(cbdata->io, ocs_be16toh(hdr->ox_id), NULL, NULL); in __ocs_d_init() [all …]
|
| H A D | ocs_node.c | 84 ocs_node_cb_t cbdata = {0}; in ocs_node_abort_all_els() local 91 cbdata.els = els; in ocs_node_abort_all_els() 92 ocs_els_post_event(els, OCS_EVT_ABORT_ELS, &cbdata); in ocs_node_abort_all_els() 1225 ocs_node_cb_t *cbdata = arg; in __ocs_node_common() local 1276 fc_header_t *hdr = cbdata->header->dma.virt; in __ocs_node_common() 1280 node->display_name, funcname, ((uint8_t*)cbdata->payload->dma.virt)[0]); in __ocs_node_common() 1281 ocs_send_ls_rjt(cbdata->io, ocs_be16toh(hdr->ox_id), in __ocs_node_common() 1297 fc_header_t *hdr = cbdata->header->dma.virt; in __ocs_node_common() 1302 ocs_send_ls_rjt(cbdata->io, ocs_be16toh(hdr->ox_id), in __ocs_node_common() 1311 fc_header_t *hdr = cbdata->header->dma.virt; in __ocs_node_common() [all …]
|
| H A D | ocs_fabric.c | 58 static void ocs_process_rscn(ocs_node_t *node, ocs_node_cb_t *cbdata); 160 ocs_node_cb_t *cbdata = arg; in __ocs_fabric_flogi_wait_rsp() local 173 ocs_domain_save_sparms(node->sport->domain, cbdata->els->els_rsp.virt); in __ocs_fabric_flogi_wait_rsp() 176 ((uint8_t*)cbdata->els->els_rsp.virt) + 4); in __ocs_fabric_flogi_wait_rsp() 179 if (ocs_rnode_is_nport(cbdata->els->els_rsp.virt)) { in __ocs_fabric_flogi_wait_rsp() 211 ocs_domain_attach(node->sport->domain, cbdata->ext_status); in __ocs_fabric_flogi_wait_rsp() 304 ocs_node_cb_t *cbdata = arg; in __ocs_fabric_fdisc_wait_rsp() local 317 ((uint8_t*)cbdata->els->els_rsp.virt) + 4); in __ocs_fabric_fdisc_wait_rsp() 322 ocs_sport_attach(node->sport, cbdata->ext_status); in __ocs_fabric_fdisc_wait_rsp() 485 ocs_node_cb_t *cbdata = arg; in __ocs_ns_plogi_wait_rsp() local [all …]
|
| H A D | ocs_els.c | 457 ocs_node_cb_t cbdata; in ocs_els_req_cb() local 479 cbdata.status = status; in ocs_els_req_cb() 480 cbdata.ext_status = ext_status; in ocs_els_req_cb() 481 cbdata.header = NULL; in ocs_els_req_cb() 482 cbdata.els = els; in ocs_els_req_cb() 491 ocs_els_post_event(els, OCS_EVT_SRRS_ELS_REQ_FAIL, &cbdata); in ocs_els_req_cb() 498 ocs_els_post_event(els, OCS_EVT_SRRS_ELS_REQ_OK, &cbdata); in ocs_els_req_cb() 502 ocs_els_post_event(els, OCS_EVT_SRRS_ELS_REQ_RJT, &cbdata); in ocs_els_req_cb() 508 ocs_els_post_event(els, OCS_EVT_ELS_REQ_TIMEOUT, &cbdata); in ocs_els_req_cb() 511 ocs_els_post_event(els, OCS_EVT_ELS_REQ_ABORTED, &cbdata); in ocs_els_req_cb() [all …]
|
| /freebsd/crypto/krb5/src/util/profile/testmod/ |
| H A D | testmod_main.c | 42 get_values(void *cbdata, const char *const *names, char ***ret_values) in get_values() argument 44 struct data *d = cbdata; in get_values() 54 free_values(void *cbdata, char **values) in free_values() argument 64 cleanup(void *cbdata) in cleanup() argument 66 struct data *d = cbdata; in cleanup() 73 copy(void *cbdata, void **ret_cbdata) in copy() argument 75 struct data *old_data = cbdata, *new_data; in copy()
|
| /freebsd/usr.sbin/pkg/ |
| H A D | ecc.c | 468 ecc_verify_internal(struct ecc_verify_cbdata *cbdata, const uint8_t *hash, in ecc_verify_internal() argument 473 const struct ecc_sign_ctx *keyinfo = ECC_CCTX(cbdata->sctx); in ecc_verify_internal() 480 keysz = MIN(sizeof(keybuf), cbdata->keylen / 2); in ecc_verify_internal() 483 if (ecc_extract_pubkey(cbdata->keyfp, cbdata->key, cbdata->keylen, in ecc_verify_internal() 497 if (ecc_extract_signature(cbdata->sig, cbdata->siglen, in ecc_verify_internal() 527 struct ecc_verify_cbdata cbdata; in ecc_verify_data() local 532 cbdata.keyfp = fopen(sigfile, "r"); in ecc_verify_data() 533 if (cbdata.keyfp == NULL) { in ecc_verify_data() 538 cbdata.keyfp = NULL; in ecc_verify_data() 539 cbdata.key = key; in ecc_verify_data() [all …]
|
| /freebsd/contrib/llvm-project/libunwind/src/ |
| H A D | AddressSpace.hpp | 395 dl_iterate_cb_data *cbdata) { in checkAddrInSegment() argument 399 if (cbdata->targetAddr >= begin && cbdata->targetAddr < end) { in checkAddrInSegment() 400 cbdata->sects->dso_base = begin; in checkAddrInSegment() 401 cbdata->sects->text_segment_length = phdr->p_memsz; in checkAddrInSegment() 409 dl_iterate_cb_data *cbdata) { in checkForUnwindInfoSegment() argument 414 cbdata->sects->dwarf_index_section = eh_frame_hdr_start; in checkForUnwindInfoSegment() 415 cbdata->sects->dwarf_index_section_length = phdr->p_memsz; in checkForUnwindInfoSegment() 417 *cbdata->addressSpace, eh_frame_hdr_start, in checkForUnwindInfoSegment() 421 cbdata in checkForUnwindInfoSegment() 442 auto cbdata = static_cast<dl_iterate_cb_data *>(data); findUnwindSectionsByPhdr() local [all...] |
| /freebsd/sys/net/route/ |
| H A D | route_helpers.c | 263 route_notification_t *cb, void *cbdata) in notify_add() argument 274 cb(rc, cbdata); in notify_add() 279 route_notification_t *cb, void *cbdata) in notify_del() argument 290 cb(rc, cbdata); in notify_del() 295 void *cbdata) in decompose_change_notification() argument 348 notify_del(&rc_del, &wn_old[idx_old], cb, cbdata); in decompose_change_notification() 349 notify_add(&rc_add, &wn_new[idx_new], cb, cbdata); in decompose_change_notification() 355 notify_del(&rc_del, &wn_old[idx_old], cb, cbdata); in decompose_change_notification() 359 notify_add(&rc_add, &wn_new[idx_new], cb, cbdata); in decompose_change_notification() 365 notify_del(&rc_del, &wn_old[idx_old], cb, cbdata); in decompose_change_notification() [all …]
|
| /freebsd/contrib/ofed/libibnetdisc/ |
| H A D | ibnetdisc.c | 65 struct ni_cbdata * cbdata); 262 struct ni_cbdata * cbdata = malloc(sizeof(*cbdata)); in mlnx_ext_port_info_err() local 263 cbdata->node = node; in mlnx_ext_port_info_err() 264 cbdata->port_num = port_num; in mlnx_ext_port_info_err() 265 query_node_info(engine, &path, cbdata); in mlnx_ext_port_info_err() 311 struct ni_cbdata * cbdata = malloc(sizeof(*cbdata)); in recv_mlnx_ext_port_info() local 312 cbdata->node = node; in recv_mlnx_ext_port_info() 313 cbdata->port_num = port_num; in recv_mlnx_ext_port_info() 314 query_node_info(engine, &path, cbdata); in recv_mlnx_ext_port_info() 426 struct ni_cbdata * cbdata = malloc(sizeof(*cbdata)); in recv_port_info() local [all …]
|
| /freebsd/crypto/openssl/include/openssl/ |
| H A D | provider.h | 36 int (*cb)(OSSL_PROVIDER *provider, void *cbdata), 37 void *cbdata);
|
| /freebsd/usr.sbin/spi/ |
| H A D | spi.c | 547 size_t cbdata, cbread; in prep_write_buffer() local 557 cbdata = DEFAULT_BUFFER_SIZE; in prep_write_buffer() 560 cbdata = popt->count; in prep_write_buffer() 565 pdata = malloc(cbdata + ncmd + 1); in prep_write_buffer() 588 while (!err && cbread < cbdata && (ch = fgetc(stdin)) != EOF) { in prep_write_buffer() 668 while (cbread < cbdata) in prep_write_buffer()
|
| /freebsd/crypto/openssl/include/internal/ |
| H A D | provider.h | 70 void *cbdata), 71 void *cbdata);
|
| /freebsd/lib/librss/ |
| H A D | librss.c | 243 rss_set_bucket_rebalance_cb(rss_bucket_rebalance_cb_t *cb, void *cbdata) in rss_set_bucket_rebalance_cb() argument 247 (void) cbdata; in rss_set_bucket_rebalance_cb()
|
| /freebsd/crypto/krb5/src/lib/krb5/os/ |
| H A D | locate_kdc.c | 415 module_callback(void *cbdata, int socktype, struct sockaddr *sa) in module_callback() argument 417 struct module_callback_data *d = cbdata; in module_callback() 451 struct module_callback_data cbdata = { 0, }; in module_locate_server() local 455 cbdata.list = serverlist; in module_locate_server() 496 module_callback, &cbdata); in module_locate_server() 500 module_callback, &cbdata); in module_locate_server()
|
| /freebsd/sys/netpfil/ipfw/ |
| H A D | ip_fw_iface.c | 383 ic->cb(ch, ic->cbdata, iif->ifindex); in ipfw_iface_add_notify() 436 ic->cb(ch, ic->cbdata, iif->ifindex); in handle_ifattach() 453 ic->cb(ch, ic->cbdata, 0); in handle_ifdetach()
|