Home
last modified time | relevance | path

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

12

/freebsd/contrib/ntp/sntp/libevent/
H A Devthread.c105 if (!cbs) { 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()
148 if (!cbs) { in evthread_set_condition_callbacks()
170 if (cbs->alloc_condition && cbs->free_condition && in evthread_set_condition_callbacks()
171 cbs->signal_condition && cbs->wait_condition) { in evthread_set_condition_callbacks()
320 struct evthread_lock_callbacks cbs = { in evthread_enable_lock_debugging() local
[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.c105 if (!cbs) { 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()
148 if (!cbs) { in evthread_set_condition_callbacks()
170 if (cbs->alloc_condition && cbs->free_condition && in evthread_set_condition_callbacks()
171 cbs->signal_condition && cbs->wait_condition) { in evthread_set_condition_callbacks()
320 struct evthread_lock_callbacks cbs = { in evthread_enable_lock_debugging() local
[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.c473 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()
513 (bconf->upstream.cbs == 0 && in ng_car_rcvmsg()
652 delta = h->tc - h->conf.cbs; in ng_car_refillhook()
654 h->tc = h->conf.cbs; in ng_car_refillhook()
665 if (h->tc > ((int64_t)h->conf.cbs)) in ng_car_refillhook()
666 h->tc = h->conf.cbs; in ng_car_refillhook()
676 if (h->tc > ((int64_t)h->conf.cbs)) in ng_car_refillhook()
[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.c2151 sbuf_bcat(cbs->sb, &cbs->ifr, sizeof(cbs->ifr)); in linux_ifconf_ifaddr_cb2()
2152 cbs->max_len += sizeof(cbs->ifr); in linux_ifconf_ifaddr_cb2()
2155 cbs->valid_len = sbuf_len(cbs->sb); in linux_ifconf_ifaddr_cb2()
2164 bzero(&cbs->ifr, sizeof(cbs->ifr)); in linux_ifconf_ifnet_cb2()
2202 cbs.max_len = maxphys - 1; in linux_ifconf()
2206 cbs.max_len = ifc.ifc_len; in linux_ifconf()
2209 cbs.sb = sb = sbuf_new(NULL, NULL, cbs.max_len + 1, SBUF_FIXEDLEN); in linux_ifconf()
2210 cbs.max_len = 0; in linux_ifconf()
2211 cbs.valid_len = 0; in linux_ifconf()
2218 if (cbs.valid_len != cbs.max_len && !full) { in linux_ifconf()
[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()
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()
1210 if (!cbs || (!cbs->rx_comp_cb || in ecore_ll2_set_cbs()
1217 p_ll2_info->cbs.rx_comp_cb = cbs->rx_comp_cb; in ecore_ll2_set_cbs()
1218 p_ll2_info->cbs.rx_release_cb = cbs->rx_release_cb; in ecore_ll2_set_cbs()
1219 p_ll2_info->cbs.tx_comp_cb = cbs->tx_comp_cb; in ecore_ll2_set_cbs()
1220 p_ll2_info->cbs.tx_release_cb = cbs->tx_release_cb; in ecore_ll2_set_cbs()
1221 p_ll2_info->cbs.slowpath_cb = cbs->slowpath_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