Home
last modified time | relevance | path

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

12

/freebsd/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()
/freebsd/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()
/freebsd/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
/freebsd/sys/compat/linux/
H A Dlinux.c304 struct ifname_bsd_to_linux_ifp_cb_s *cbs = arg; in ifname_bsd_to_linux_ifp_cb() local
306 if (ifp == cbs->ifp) in ifname_bsd_to_linux_ifp_cb()
307 return (snprintf(cbs->lxname, cbs->len, "eth%d", cbs->ethno)); in ifname_bsd_to_linux_ifp_cb()
309 cbs->ethno++; in ifname_bsd_to_linux_ifp_cb()
358 struct ifname_linux_to_ifp_cb_s *cbs = arg; in ifname_linux_to_ifp_cb() local
367 if (strncmp(if_name(ifp), cbs->lxname, LINUX_IFNAMSIZ) == 0) in ifname_linux_to_ifp_cb()
369 if (cbs->is_eth && IFP_IS_ETH(ifp) && cbs->unit == cbs->ethno) in ifname_linux_to_ifp_cb()
371 if (cbs->is_lo && IFP_IS_LOOP(ifp)) in ifname_linux_to_ifp_cb()
374 cbs->ethno++; in ifname_linux_to_ifp_cb()
378 cbs->ifp = ifp; in ifname_linux_to_ifp_cb()
H A Dlinux_ioctl.c2154 struct linux_ifconfig_ifaddr_cb2_s *cbs = arg; in linux_ifconf_ifaddr_cb2() local
2157 cbs->ifr.ifr_addr.sa_family = LINUX_AF_INET; in linux_ifconf_ifaddr_cb2()
2158 memcpy(cbs->ifr.ifr_addr.sa_data, sa->sa_data, in linux_ifconf_ifaddr_cb2()
2159 sizeof(cbs->ifr.ifr_addr.sa_data)); in linux_ifconf_ifaddr_cb2()
2160 sbuf_bcat(cbs->sb, &cbs->ifr, sizeof(cbs->ifr)); in linux_ifconf_ifaddr_cb2()
2161 cbs->max_len += sizeof(cbs->ifr); in linux_ifconf_ifaddr_cb2()
2163 if (sbuf_error(cbs->sb) == 0) in linux_ifconf_ifaddr_cb2()
2164 cbs->valid_len = sbuf_len(cbs->sb); in linux_ifconf_ifaddr_cb2()
2171 struct linux_ifconfig_ifaddr_cb2_s *cbs = arg; in linux_ifconf_ifnet_cb2() local
2173 bzero(&cbs->ifr, sizeof(cbs->ifr)); in linux_ifconf_ifnet_cb2()
[all …]
/freebsd/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 …]
H A Decore_ll2.h125 struct ecore_ll2_cbs cbs; member
/freebsd/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()
/freebsd/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
/freebsd/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()
/freebsd/sys/dev/axgbe/
H A Dxgbe-dcb.c127 ets->cbs = pdata->ets->cbs;
/freebsd/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()
/freebsd/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()
/freebsd/release/powerpc/
H A Dgenerate-hfs.sh45 echo 'Loader START' | dd of=loader.tmp cbs=$LOADER_SIZE count=1 conv=block
/freebsd/sys/dev/bnxt/bnxt_en/
H A Dbnxt_dcb.h74 uint8_t cbs; member

12