Home
last modified time | relevance | path

Searched refs:cbs (Results 1 – 25 of 47) sorted by relevance

12

/src/contrib/libevent/ !
H A Devthread.c93 evthread_set_lock_callbacks(const struct evthread_lock_callbacks *cbs) in evthread_set_lock_callbacks() argument
105 if (!cbs) { in evthread_set_lock_callbacks()
114 if (target->lock_api_version == cbs->lock_api_version && in evthread_set_lock_callbacks()
115 target->supported_locktypes == cbs->supported_locktypes && in evthread_set_lock_callbacks()
116 target->alloc == cbs->alloc && in evthread_set_lock_callbacks()
117 target->free == cbs->free && in evthread_set_lock_callbacks()
118 target->lock == cbs->lock && in evthread_set_lock_callbacks()
119 target->unlock == cbs->unlock) { in evthread_set_lock_callbacks()
127 if (cbs->alloc && cbs->free && cbs->lock && cbs->unlock) { in evthread_set_lock_callbacks()
128 memcpy(target, cbs, sizeof(evthread_lock_fns_)); in evthread_set_lock_callbacks()
[all …]
H A Devthread_pthread.c166 struct evthread_lock_callbacks cbs = { in evthread_use_pthreads() local
187 evthread_set_lock_callbacks(&cbs); in evthread_use_pthreads()
H A Dbufferevent.c711 struct event_callback *cbs[MAX_CBS]; in bufferevent_decref_and_unlock_() local
725 cbs[0] = &bufev->ev_read.ev_evcallback; in bufferevent_decref_and_unlock_()
726 cbs[1] = &bufev->ev_write.ev_evcallback; in bufferevent_decref_and_unlock_()
727 cbs[2] = &bufev_private->deferred; in bufferevent_decref_and_unlock_()
732 cbs[n_cbs++] = &e->ev_evcallback; in bufferevent_decref_and_unlock_()
734 n_cbs += evbuffer_get_callbacks_(bufev->input, cbs+n_cbs, MAX_CBS-n_cbs); in bufferevent_decref_and_unlock_()
735 n_cbs += evbuffer_get_callbacks_(bufev->output, cbs+n_cbs, MAX_CBS-n_cbs); in bufferevent_decref_and_unlock_()
737 event_callback_finalize_many_(bufev->ev_base, n_cbs, cbs, in bufferevent_decref_and_unlock_()
H A Devthread_win32.c302 struct evthread_lock_callbacks cbs = { in evthread_use_windows_threads() local
329 evthread_set_lock_callbacks(&cbs); in evthread_use_windows_threads()
/src/contrib/ntp/sntp/libevent/ !
H A Devthread.c93 evthread_set_lock_callbacks(const struct evthread_lock_callbacks *cbs) in evthread_set_lock_callbacks() argument
105 if (!cbs) { in evthread_set_lock_callbacks()
114 if (target->lock_api_version == cbs->lock_api_version && in evthread_set_lock_callbacks()
115 target->supported_locktypes == cbs->supported_locktypes && in evthread_set_lock_callbacks()
116 target->alloc == cbs->alloc && in evthread_set_lock_callbacks()
117 target->free == cbs->free && in evthread_set_lock_callbacks()
118 target->lock == cbs->lock && in evthread_set_lock_callbacks()
119 target->unlock == cbs->unlock) { in evthread_set_lock_callbacks()
127 if (cbs->alloc && cbs->free && cbs->lock && cbs->unlock) { in evthread_set_lock_callbacks()
128 memcpy(target, cbs, sizeof(evthread_lock_fns_)); in evthread_set_lock_callbacks()
[all …]
H A Devthread_pthread.c166 struct evthread_lock_callbacks cbs = { in evthread_use_pthreads() local
187 evthread_set_lock_callbacks(&cbs); in evthread_use_pthreads()
H A Dbufferevent.c711 struct event_callback *cbs[MAX_CBS]; in bufferevent_decref_and_unlock_() local
725 cbs[0] = &bufev->ev_read.ev_evcallback; in bufferevent_decref_and_unlock_()
726 cbs[1] = &bufev->ev_write.ev_evcallback; in bufferevent_decref_and_unlock_()
727 cbs[2] = &bufev_private->deferred; in bufferevent_decref_and_unlock_()
732 cbs[n_cbs++] = &e->ev_evcallback; in bufferevent_decref_and_unlock_()
734 n_cbs += evbuffer_get_callbacks_(bufev->input, cbs+n_cbs, MAX_CBS-n_cbs); in bufferevent_decref_and_unlock_()
735 n_cbs += evbuffer_get_callbacks_(bufev->output, cbs+n_cbs, MAX_CBS-n_cbs); in bufferevent_decref_and_unlock_()
737 event_callback_finalize_many_(bufev->ev_base, n_cbs, cbs, in bufferevent_decref_and_unlock_()
H A Devthread_win32.c302 struct evthread_lock_callbacks cbs = { in evthread_use_windows_threads() local
329 evthread_set_lock_callbacks(&cbs); in evthread_use_windows_threads()
/src/sys/netgraph/ !
H A Dng_car.c209 priv->upper.tc = priv->upper.conf.cbs = NG_CAR_CBS_MIN; in ng_car_constructor()
224 priv->lower.tc = priv->lower.conf.cbs = NG_CAR_CBS_MIN; in ng_car_constructor()
473 bconf->downstream.cbs /= 128; in ng_car_rcvmsg()
479 bconf->upstream.cbs /= 128; in ng_car_rcvmsg()
498 bconf->downstream.cbs *= 128; in ng_car_rcvmsg()
504 bconf->upstream.cbs *= 128; in ng_car_rcvmsg()
511 (bconf->downstream.cbs == 0 && in ng_car_rcvmsg()
513 (bconf->upstream.cbs == 0 && in ng_car_rcvmsg()
533 priv->upper.tc = priv->upper.conf.cbs; in ng_car_rcvmsg()
544 priv->lower.tc = priv->lower.conf.cbs; in ng_car_rcvmsg()
[all …]
H A Dng_car.h72 u_int64_t cbs; /* Committed burst size (bytes) */ member
/src/sys/compat/linux/ !
H A Dlinux_if.c183 struct ifname_linux_to_ifp_cb_s *cbs = arg; in ifname_linux_to_ifp_cb() local
192 if (strncmp(if_name(ifp), cbs->lxname, LINUX_IFNAMSIZ) == 0) in ifname_linux_to_ifp_cb()
194 if (cbs->is_eth && ifp->if_type == IFT_ETHER && in ifname_linux_to_ifp_cb()
195 ifp->if_linux_ethno == cbs->unit) in ifname_linux_to_ifp_cb()
197 if (cbs->is_lo && ifp->if_type == IFT_LOOP) in ifname_linux_to_ifp_cb()
202 cbs->ifp = ifp; in ifname_linux_to_ifp_cb()
H A Dlinux_ioctl.c2223 struct linux_ifconfig_ifaddr_cb2_s *cbs = arg; in linux_ifconf_ifaddr_cb2() local
2226 cbs->ifr.ifr_addr.sa_family = LINUX_AF_INET; in linux_ifconf_ifaddr_cb2()
2227 memcpy(cbs->ifr.ifr_addr.sa_data, sa->sa_data, in linux_ifconf_ifaddr_cb2()
2228 sizeof(cbs->ifr.ifr_addr.sa_data)); in linux_ifconf_ifaddr_cb2()
2229 sbuf_bcat(cbs->sb, &cbs->ifr, sizeof(cbs->ifr)); in linux_ifconf_ifaddr_cb2()
2230 cbs->max_len += sizeof(cbs->ifr); in linux_ifconf_ifaddr_cb2()
2232 if (sbuf_error(cbs->sb) == 0) in linux_ifconf_ifaddr_cb2()
2233 cbs->valid_len = sbuf_len(cbs->sb); in linux_ifconf_ifaddr_cb2()
2240 struct linux_ifconfig_ifaddr_cb2_s *cbs = arg; in linux_ifconf_ifnet_cb2() local
2242 bzero(&cbs->ifr, sizeof(cbs->ifr)); in linux_ifconf_ifnet_cb2()
[all …]
/src/sys/dev/qlnx/qlnxe/ !
H A Decore_ll2.c196 p_ll2_conn->cbs.tx_release_cb(p_ll2_conn->cbs.cookie, in ecore_ll2_txq_flush()
271 p_ll2_conn->cbs.tx_comp_cb(p_ll2_conn->cbs.cookie, in ecore_ll2_txq_completion()
347 if (p_ll2_conn->cbs.slowpath_cb == OSAL_NULL) { in ecore_ll2_handle_slowpath()
355 p_ll2_conn->cbs.slowpath_cb(p_ll2_conn->cbs.cookie, in ecore_ll2_handle_slowpath()
411 p_ll2_conn->cbs.rx_comp_cb(p_ll2_conn->cbs.cookie, in ecore_ll2_rxq_handle_completion()
504 p_ll2_conn->cbs.rx_release_cb(p_ll2_conn->cbs.cookie, in ecore_ll2_rxq_flush()
1208 const struct ecore_ll2_cbs *cbs) in ecore_ll2_set_cbs() argument
1210 if (!cbs || (!cbs->rx_comp_cb || in ecore_ll2_set_cbs()
1211 !cbs->rx_release_cb || in ecore_ll2_set_cbs()
1212 !cbs->tx_comp_cb || in ecore_ll2_set_cbs()
[all …]
/src/sys/contrib/ncsw/Peripherals/BM/ !
H A Dbm_portal.c106 p_BmPortal->cbs[BM_RCR_RING].f_BmCommitCb = bm_rcr_pci_commit; in bman_create_portal()
109 p_BmPortal->cbs[BM_RCR_RING].f_BmCommitCb = bm_rcr_pce_commit; in bman_create_portal()
112 p_BmPortal->cbs[BM_RCR_RING].f_BmCommitCb = bm_rcr_pvb_commit; in bman_create_portal()
118 p_BmPortal->cbs[BM_RCR_RING].f_BmUpdateCb = bm_rcr_cci_update; in bman_create_portal()
119 p_BmPortal->cbs[BM_RCR_RING].f_BmPrefetchCb = NULL; in bman_create_portal()
122 p_BmPortal->cbs[BM_RCR_RING].f_BmUpdateCb = bm_rcr_cce_update; in bman_create_portal()
123 p_BmPortal->cbs[BM_RCR_RING].f_BmPrefetchCb = bm_rcr_cce_prefetch; in bman_create_portal()
H A Dbm.h264 t_BmPortalCallbacks cbs[BM_NUM_OF_RINGS]; member
326 return p_BmPortal->cbs[type].f_BmUpdateCb(p_BmPortal->p_BmPortalLow); in BmUpdate()
331 if (p_BmPortal->cbs[type].f_BmPrefetchCb) in BmPrefetch()
332 p_BmPortal->cbs[type].f_BmPrefetchCb(p_BmPortal->p_BmPortalLow); in BmPrefetch()
337 p_BmPortal->cbs[type].f_BmCommitCb(p_BmPortal->p_BmPortalLow, myverb); in BmCommit()
/src/stand/powerpc/boot1.chrp/ !
H A Dgenerate-hfs.sh31 echo 'Bootinfo START' | dd of=bootinfo.txt.tmp cbs=$CHRPBOOT_SIZE count=1 conv=block
32 echo 'Boot1 START' | dd of=boot1.elf.tmp cbs=$BOOT1_SIZE count=1 conv=block
/src/contrib/unbound/testcode/ !
H A Ddoqclient.c1078 struct ngtcp2_callbacks cbs;
1082 memset(&cbs, 0, sizeof(cbs));
1115 cbs.client_initial = ngtcp2_crypto_client_initial_cb;
1116 cbs.recv_crypto_data = ngtcp2_crypto_recv_crypto_data_cb;
1117 cbs.encrypt = ngtcp2_crypto_encrypt_cb;
1118 cbs.decrypt = ngtcp2_crypto_decrypt_cb;
1119 cbs.hp_mask = ngtcp2_crypto_hp_mask_cb;
1120 cbs.recv_retry = ngtcp2_crypto_recv_retry_cb;
1121 cbs.update_key = ngtcp2_crypto_update_key_cb;
1122 cbs.delete_crypto_aead_ctx = ngtcp2_crypto_delete_crypto_aead_ctx_cb;
[all …]
/src/sys/dev/qlnx/qlnxr/ !
H A Dqlnxr_cm.c318 struct ecore_ll2_cbs cbs; in qlnxr_ll2_start() local
324 cbs.rx_comp_cb = qlnxr_ll2_complete_rx_packet; in qlnxr_ll2_start()
325 cbs.tx_comp_cb = qlnxr_ll2_complete_tx_packet; in qlnxr_ll2_start()
326 cbs.rx_release_cb = qlnxr_ll2_release_rx_packet; in qlnxr_ll2_start()
327 cbs.tx_release_cb = qlnxr_ll2_complete_tx_packet; in qlnxr_ll2_start()
328 cbs.cookie = dev; in qlnxr_ll2_start()
344 data.cbs = &cbs; in qlnxr_ll2_start()
/src/sys/dev/axgbe/ !
H A Dxgbe-dcb.c127 ets->cbs = pdata->ets->cbs;
/src/contrib/libevent/test/ !
H A Dregress_bufferevent.c235 struct evthread_lock_callbacks cbs; member
260 lock = lu_base.cbs.alloc(locktype); in trace_lock_alloc()
271 lu_base.cbs.free(lock_, locktype); in trace_lock_free()
282 return lu_base.cbs.lock(mode, lock_); in trace_lock_lock()
293 return lu_base.cbs.unlock(mode, lock_); in trace_lock_unlock()
313 struct evthread_lock_callbacks cbs = { in use_lock_unlock_profiler() local
321 memcpy(&lu_base.cbs, evthread_get_lock_callbacks(), in use_lock_unlock_profiler()
322 sizeof(lu_base.cbs)); in use_lock_unlock_profiler()
326 evthread_set_lock_callbacks(&cbs); in use_lock_unlock_profiler()
H A Dregress_thread.c402 struct event_callback cbs[CB_COUNT]; member
426 event_deferred_cb_init_(&data->cbs[i], 0, deferred_callback, in load_deferred_queue()
428 event_deferred_cb_schedule_(data->queue, &data->cbs[i]); in load_deferred_queue()
/src/contrib/ntp/sntp/libevent/test/ !
H A Dregress_bufferevent.c235 struct evthread_lock_callbacks cbs; member
260 lock = lu_base.cbs.alloc(locktype); in trace_lock_alloc()
271 lu_base.cbs.free(lock_, locktype); in trace_lock_free()
282 return lu_base.cbs.lock(mode, lock_); in trace_lock_lock()
293 return lu_base.cbs.unlock(mode, lock_); in trace_lock_unlock()
313 struct evthread_lock_callbacks cbs = { in use_lock_unlock_profiler() local
321 memcpy(&lu_base.cbs, evthread_get_lock_callbacks(), in use_lock_unlock_profiler()
322 sizeof(lu_base.cbs)); in use_lock_unlock_profiler()
326 evthread_set_lock_callbacks(&cbs); in use_lock_unlock_profiler()
H A Dregress_thread.c402 struct event_callback cbs[CB_COUNT]; member
426 event_deferred_cb_init_(&data->cbs[i], 0, deferred_callback, in load_deferred_queue()
428 event_deferred_cb_schedule_(data->queue, &data->cbs[i]); in load_deferred_queue()
/src/release/powerpc/ !
H A Dgenerate-hfs.sh45 echo 'Loader START' | dd of=loader.tmp cbs=$LOADER_SIZE count=1 conv=block
/src/sys/dev/bnxt/bnxt_en/ !
H A Dbnxt_dcb.h78 uint8_t cbs; member

12