Home
last modified time | relevance | path

Searched refs:base (Results 1 – 25 of 2924) sorted by relevance

12345678910>>...117

/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/
H A Dtst.lltostrbase.d.out1 base -2 of -10: <error>
2 base -2 of -1: <error>
3 base -2 of 0: <error>
4 base -2 of 10: <error>
5 base -2 of 100: <error>
6 base -2 of 1000: <error>
7 base -2 of 4611686018427387904: <error>
8 base -1 of -10: <error>
9 base -1 of -1: <error>
10 base -1 of 0: <error>
[all …]
/freebsd/contrib/ntp/sntp/libevent/
H A Devent.c146 static void event_queue_make_later_events_active(struct event_base *base);
148 static int evthread_make_base_notifiable_nolock_(struct event_base *base);
166 static int evthread_notify_base(struct event_base *base);
400 #define EVENT_BASE_ASSERT_LOCKED(base) \ argument
401 EVLOCK_ASSERT_LOCKED((base)->th_base_lock)
413 gettime(struct event_base *base, struct timeval *tp) in gettime() argument
415 EVENT_BASE_ASSERT_LOCKED(base); in gettime()
417 if (base->tv_cache.tv_sec) { in gettime()
418 *tp = base->tv_cache; in gettime()
422 if (evutil_gettime_monotonic_(&base->monotonic_timer, tp) == -1) { in gettime()
[all …]
H A Dsignal.c122 evsig_set_base_(struct event_base *base) in evsig_set_base_() argument
125 evsig_base = base; in evsig_set_base_()
126 evsig_base_n_signals_added = base->sig.ev_n_signals_added; in evsig_set_base_()
127 evsig_base_fd = base->sig.ev_signal_pair[1]; in evsig_set_base_()
139 struct event_base *base; in evsig_cb() local
141 base = arg; in evsig_cb()
167 EVBASE_ACQUIRE_LOCK(base, th_base_lock); in evsig_cb()
170 evmap_signal_active_(base, i, ncaught[i]); in evsig_cb()
172 EVBASE_RELEASE_LOCK(base, th_base_lock); in evsig_cb()
176 evsig_init_(struct event_base *base) in evsig_init_() argument
[all …]
H A Devutil_time.c231 adjust_monotonic_time(struct evutil_monotonic_timer *base, in adjust_monotonic_time() argument
234 evutil_timeradd(tv, &base->adjust_monotonic_clock, tv); in adjust_monotonic_time()
236 if (evutil_timercmp(tv, &base->last_time, <)) { in adjust_monotonic_time()
239 evutil_timersub(&base->last_time, tv, &adjust); in adjust_monotonic_time()
240 evutil_timeradd(&adjust, &base->adjust_monotonic_clock, in adjust_monotonic_time()
241 &base->adjust_monotonic_clock); in adjust_monotonic_time()
242 *tv = base->last_time; in adjust_monotonic_time()
244 base->last_time = *tv; in adjust_monotonic_time()
307 evutil_configure_monotonic_time_(struct evutil_monotonic_timer *base, in evutil_configure_monotonic_time_() argument
329 base->monotonic_clock = CLOCK_MONOTONIC_COARSE; in evutil_configure_monotonic_time_()
[all …]
H A Devdns.c160 struct evdns_base *base; member
195 struct evdns_base *base; member
235 struct evdns_base *base; member
302 struct evdns_server_request base; member
392 (((char*)(base_ptr) - evutil_offsetof(struct server_request, base))))
394 #define REQ_HEAD(base, id) ((base)->req_heads[id % (base)->n_req_heads]) argument
396 static struct nameserver *nameserver_pick(struct evdns_base *base);
400 static int evdns_transmit(struct evdns_base *base);
405 static struct request *search_request_new(struct evdns_base *base, struct evdns_request *handle, in…
406 static void evdns_requests_pump_waiting_queue(struct evdns_base *base);
[all …]
/freebsd/contrib/libevent/
H A Devent.c146 static void event_queue_make_later_events_active(struct event_base *base);
148 static int evthread_make_base_notifiable_nolock_(struct event_base *base);
166 static int evthread_notify_base(struct event_base *base);
400 #define EVENT_BASE_ASSERT_LOCKED(base) \ argument
401 EVLOCK_ASSERT_LOCKED((base)->th_base_lock)
413 gettime(struct event_base *base, struct timeval *tp) in gettime() argument
415 EVENT_BASE_ASSERT_LOCKED(base); in gettime()
417 if (base->tv_cache.tv_sec) { in gettime()
418 *tp = base->tv_cache; in gettime()
422 if (evutil_gettime_monotonic_(&base->monotonic_timer, tp) == -1) { in gettime()
[all …]
H A Dsignal.c122 evsig_set_base_(struct event_base *base) in evsig_set_base_() argument
125 evsig_base = base; in evsig_set_base_()
126 evsig_base_n_signals_added = base->sig.ev_n_signals_added; in evsig_set_base_()
127 evsig_base_fd = base->sig.ev_signal_pair[1]; in evsig_set_base_()
139 struct event_base *base; in evsig_cb() local
141 base = arg; in evsig_cb()
167 EVBASE_ACQUIRE_LOCK(base, th_base_lock); in evsig_cb()
170 evmap_signal_active_(base, i, ncaught[i]); in evsig_cb()
172 EVBASE_RELEASE_LOCK(base, th_base_lock); in evsig_cb()
176 evsig_init_(struct event_base *base) in evsig_init_() argument
[all …]
H A Devutil_time.c231 adjust_monotonic_time(struct evutil_monotonic_timer *base, in adjust_monotonic_time() argument
234 evutil_timeradd(tv, &base->adjust_monotonic_clock, tv); in adjust_monotonic_time()
236 if (evutil_timercmp(tv, &base->last_time, <)) { in adjust_monotonic_time()
239 evutil_timersub(&base->last_time, tv, &adjust); in adjust_monotonic_time()
240 evutil_timeradd(&adjust, &base->adjust_monotonic_clock, in adjust_monotonic_time()
241 &base->adjust_monotonic_clock); in adjust_monotonic_time()
242 *tv = base->last_time; in adjust_monotonic_time()
244 base->last_time = *tv; in adjust_monotonic_time()
307 evutil_configure_monotonic_time_(struct evutil_monotonic_timer *base, in evutil_configure_monotonic_time_() argument
329 base->monotonic_clock = CLOCK_MONOTONIC_COARSE; in evutil_configure_monotonic_time_()
[all …]
H A Devdns.c160 struct evdns_base *base; member
195 struct evdns_base *base; member
235 struct evdns_base *base; member
302 struct evdns_server_request base; member
392 (((char*)(base_ptr) - evutil_offsetof(struct server_request, base))))
394 #define REQ_HEAD(base, id) ((base)->req_heads[id % (base)->n_req_heads]) argument
396 static struct nameserver *nameserver_pick(struct evdns_base *base);
400 static int evdns_transmit(struct evdns_base *base);
405 static struct request *search_request_new(struct evdns_base *base, struct evdns_request *handle, in…
406 static void evdns_requests_pump_waiting_queue(struct evdns_base *base);
[all …]
/freebsd/sys/dev/bxe/
H A Decore_fw_defs.h34 #define CSTORM_ASSERT_LIST_INDEX_OFFSET (IRO[152].base)
36 (IRO[151].base + ((assertListEntry) * IRO[151].m1))
38 (IRO[157].base + (((pfId)>>1) * IRO[157].m1) + (((pfId)&1) * \
41 (IRO[158].base + (((pfId)>>1) * IRO[158].m1) + (((pfId)&1) * \
44 (IRO[163].base + ((funcId) * IRO[163].m1))
46 (IRO[153].base + ((funcId) * IRO[153].m1))
48 (IRO[143].base + ((hcIndex) * IRO[143].m1) + ((sbId) * IRO[143].m2))
50 (IRO[142].base + (((hcIndex)>>2) * IRO[142].m1) + (((hcIndex)&3) \
52 #define CSTORM_IGU_MODE_OFFSET (IRO[161].base)
54 (IRO[323].base + ((pfId) * IRO[323].m1))
[all …]
/freebsd/contrib/jemalloc/src/
H A Dbase.c130 base_get_num_blocks(base_t *base, bool with_new_block) { in base_get_num_blocks() argument
131 base_block_t *b = base->blocks; in base_get_num_blocks()
144 base_auto_thp_switch(tsdn_t *tsdn, base_t *base) { in base_auto_thp_switch() argument
146 malloc_mutex_assert_owner(tsdn, &base->mtx); in base_auto_thp_switch()
147 if (base->auto_thp_switched) { in base_auto_thp_switch()
152 if (base_ind_get(base) != 0) { in base_auto_thp_switch()
153 should_switch = (base_get_num_blocks(base, true) == in base_auto_thp_switch()
156 should_switch = (base_get_num_blocks(base, true) == in base_auto_thp_switch()
163 base->auto_thp_switched = true; in base_auto_thp_switch()
164 assert(!config_stats || base->n_thp == 0); in base_auto_thp_switch()
[all …]
/freebsd/bin/pkill/tests/
H A Dpkill-j_test.sh9 base=pkill_j_test
23 jail -c path=/ name=${base}_1_1 ip4.addr=127.0.0.1 \
24 command=daemon -p ${PWD}/${base}_1_1.pid $sleep $sleep_amount &
26 jail -c path=/ name=${base}_1_2 ip4.addr=127.0.0.1 \
27 command=daemon -p ${PWD}/${base}_1_2.pid $sleep $sleep_amount &
32 jid1=$(jail_name_to_jid ${base}_1_1)
33 jid2=$(jail_name_to_jid ${base}_1_2)
48 ! test -f "${PWD}/${base}_1_1.pid" &&
49 ! test -f "${PWD}/${base}_1_2.pid" ; then
54 [ -f ${PWD}/${base}_1_1.pid ] && kill "$(cat ${PWD}/${base}_1_1.pid)"
[all …]
H A Dpgrep-j_test.sh9 base=pgrep_j_test
23 jail -c path=/ name=${base}_1_1 ip4.addr=127.0.0.1 \
24 command=daemon -p ${PWD}/${base}_1_1.pid $sleep $sleep_amount &
26 jail -c path=/ name=${base}_1_2 ip4.addr=127.0.0.1 \
27 command=daemon -p ${PWD}/${base}_1_2.pid $sleep $sleep_amount &
31 jid1=$(jail_name_to_jid ${base}_1_1)
32 jid2=$(jail_name_to_jid ${base}_1_2)
44 pid2=$(printf "%s\n%s" "$(cat ${PWD}/${base}_1_1.pid)" \
45 "$(cat ${PWD}/${base}_1_2.pid)" | sort)
51 [ -f ${PWD}/${base}_1_1.pid ] && kill "$(cat ${PWD}/${base}_1_1.pid)"
[all …]
/freebsd/contrib/libxo/tests/gettext/
H A DMakefile.am75 ${CHECKER} ./$$base.test --libxo:W$$fmt ${TEST_OPTS} \
76 > out/$$base.$$fmt.out 2> out/$$base.$$fmt.err ; \
77 ${DIFF} -Nu ${srcdir}/saved/$$base.$$fmt.out out/$$base.$$fmt.out ${S2O} ; \
78 ${DIFF} -Nu ${srcdir}/saved/$$base.$$fmt.err out/$$base.$$fmt.err ${S2O}
85 base=`${BASENAME} $$test .c` ; \
98 base=`${BASENAME} $$test .c` ; \
101 ${CP} out/$$base.$$fmt.out ${srcdir}/saved/$$base.$$fmt.out ; \
102 ${CP} out/$$base.$$fmt.err ${srcdir}/saved/$$base.$$fmt.err ; \
134 base=`${BASENAME} $$file .c` ; \
135 ${XGETTEXT} --default-domain=$$base \
[all …]
/freebsd/contrib/pf/libevent/
H A Devent.c210 event_base_free(struct event_base *base) in event_base_free() argument
214 if (base == NULL && current_base) in event_base_free()
215 base = current_base; in event_base_free()
216 if (base == current_base) in event_base_free()
219 assert(base); in event_base_free()
220 assert(TAILQ_EMPTY(&base->eventqueue)); in event_base_free()
221 for (i=0; i < base->nactivequeues; ++i) in event_base_free()
222 assert(TAILQ_EMPTY(base->activequeues[i])); in event_base_free()
224 assert(RB_EMPTY(&base->timetree)); in event_base_free()
226 for (i = 0; i < base->nactivequeues; ++i) in event_base_free()
[all …]
/freebsd/contrib/ntp/sntp/libevent/test/
H A Dregress_finalize.c76 struct event_base *base = data->base; in test_fin_cb_invoked() local
87 ev = evtimer_new(base, timer_callback, &ev_called); in test_fin_cb_invoked()
90 event_callback_finalize_(base, 0, &evcb, callback_finalize_callback_1); in test_fin_cb_invoked()
92 event_base_dispatch(base); in test_fin_cb_invoked()
98 event_base_assert_ok_(base); in test_fin_cb_invoked()
102 ev = evtimer_new(base, timer_callback, &ev_called); in test_fin_cb_invoked()
106 event_callback_activate_(base, &evcb); in test_fin_cb_invoked()
108 event_base_dispatch(base); in test_fin_cb_invoked()
113 event_base_assert_ok_(base); in test_fin_cb_invoked()
118 event_callback_activate_(base, &evcb); in test_fin_cb_invoked()
[all …]
/freebsd/contrib/libevent/test/
H A Dregress_finalize.c76 struct event_base *base = data->base; in test_fin_cb_invoked() local
87 ev = evtimer_new(base, timer_callback, &ev_called); in test_fin_cb_invoked()
90 event_callback_finalize_(base, 0, &evcb, callback_finalize_callback_1); in test_fin_cb_invoked()
92 event_base_dispatch(base); in test_fin_cb_invoked()
98 event_base_assert_ok_(base); in test_fin_cb_invoked()
102 ev = evtimer_new(base, timer_callback, &ev_called); in test_fin_cb_invoked()
106 event_callback_activate_(base, &evcb); in test_fin_cb_invoked()
108 event_base_dispatch(base); in test_fin_cb_invoked()
113 event_base_assert_ok_(base); in test_fin_cb_invoked()
118 event_callback_activate_(base, &evcb); in test_fin_cb_invoked()
[all …]
/freebsd/contrib/unbound/util/
H A Dmini_event.c76 settime(struct event_base* base) in settime() argument
78 if(gettimeofday(base->time_tv, NULL) < 0) { in settime()
82 *base->time_secs = (time_t)base->time_tv->tv_sec; in settime()
90 struct event_base* base = (struct event_base*)malloc( in event_init() local
92 if(!base) in event_init()
94 memset(base, 0, sizeof(*base)); in event_init()
95 base->time_secs = time_secs; in event_init()
96 base->time_tv = time_tv; in event_init()
97 if(settime(base) < 0) { in event_init()
98 event_base_free(base); in event_init()
[all …]
H A Dub_event_pluggable.c139 struct event_base* base; member
192 my_timer_add(struct ub_event* ev, struct ub_event_base* base, in my_timer_add() argument
196 if (event_base_set(AS_MY_EVENT_BASE(base)->base, &AS_MY_EVENT(ev)->ev) in my_timer_add()
250 my_event_base_free(struct ub_event_base* base) in my_event_base_free() argument
253 event_base_free(AS_MY_EVENT_BASE(base)->base); in my_event_base_free()
258 event_base_free(AS_MY_EVENT_BASE(base)->base); in my_event_base_free()
260 free(AS_MY_EVENT_BASE(base)); in my_event_base_free()
264 my_event_base_dispatch(struct ub_event_base* base) in my_event_base_dispatch() argument
266 return event_base_dispatch(AS_MY_EVENT_BASE(base)->base); in my_event_base_dispatch()
270 my_event_base_loopexit(struct ub_event_base* base, struct timeval* tv) in my_event_base_loopexit() argument
[all …]
/freebsd/sys/dev/qlnx/qlnxe/
H A Decore_iro.h33 #define YSTORM_FLOW_CONTROL_MODE_OFFSET (IRO[0].base)
36 #define TSTORM_PORT_STAT_OFFSET(port_id) (IRO[1].base + ((port_id) * IRO…
39 #define TSTORM_LL2_PORT_STAT_OFFSET(port_id) (IRO[2].base + ((port_id) * IRO…
42 #define USTORM_VF_PF_CHANNEL_READY_OFFSET(vf_id) (IRO[3].base + ((vf_id) * IRO[3…
45 #define USTORM_FLR_FINAL_ACK_OFFSET(pf_id) (IRO[4].base + ((pf_id) * IRO[4…
48 #define USTORM_EQE_CONS_OFFSET(pf_id) (IRO[5].base + ((pf_id) * IRO[5…
51 #define USTORM_ETH_QUEUE_ZONE_OFFSET(queue_zone_id) (IRO[6].base + ((queue_zone_id)…
54 #define USTORM_COMMON_QUEUE_CONS_OFFSET(queue_zone_id) (IRO[7].base + ((queue_zone_id)…
57 #define XSTORM_INTEG_TEST_DATA_OFFSET (IRO[8].base)
60 #define YSTORM_INTEG_TEST_DATA_OFFSET (IRO[9].base)
[all …]
/freebsd/lib/libbsdstat/
H A Dbsdstat.h93 { wf->base.setfmt(&wf->base, fmt0); } \
95 { wf->base.collect_cur(&wf->base); } \
97 { wf->base.collect_tot(&wf->base); } \
99 { wf->base.update_tot(&wf->base); } \
101 { return wf->base.get_curstat(&wf->base, s, b, bs); } \
103 { return wf->base.get_totstat(&wf->base, s, b, bs); } \
105 { wf->base.print_header(&wf->base, fd); } \
107 { wf->base.print_current(&wf->base, fd); } \
109 { wf->base.print_total(&wf->base, fd); } \
111 { wf->base.print_verbose(&wf->base, fd); } \
[all …]
/freebsd/usr.sbin/bhyve/amd64/
H A De820.c50 uint64_t base; member
58 e820_element_alloc(uint64_t base, uint64_t end, enum e820_memory_type type) in e820_element_alloc() argument
67 element->base = base; in e820_element_alloc()
102 element->base, element->end, in e820_dump_table()
143 entry->base = element->base; in e820_get_fwcfg_item()
144 entry->length = element->end - element->base; in e820_get_fwcfg_item()
154 e820_add_entry(const uint64_t base, const uint64_t end, in e820_add_entry() argument
162 assert(end >= base); in e820_add_entry()
164 new_element = e820_element_alloc(base, end, type); in e820_add_entry()
174 if (element->end > base) { in e820_add_entry()
[all …]
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dkstrtox.h50 simple_strtoull(const char *cp, char **endp, unsigned int base) in simple_strtoull() argument
52 return (strtouq(cp, endp, base)); in simple_strtoull()
56 simple_strtoll(const char *cp, char **endp, unsigned int base) in simple_strtoll() argument
58 return (strtoq(cp, endp, base)); in simple_strtoll()
62 simple_strtoul(const char *cp, char **endp, unsigned int base) in simple_strtoul() argument
64 return (strtoul(cp, endp, base)); in simple_strtoul()
68 simple_strtol(const char *cp, char **endp, unsigned int base) in simple_strtol() argument
70 return (strtol(cp, endp, base)); in simple_strtol()
74 kstrtoul(const char *cp, unsigned int base, unsigned long *res) in kstrtoul() argument
78 *res = strtoul(cp, &end, base); in kstrtoul()
[all …]
/freebsd/contrib/ncurses/ncurses/
H A Dmodules34 @ base
38 lib_addch lib $(base) $(HEADER_DEPS)
39 lib_addstr lib $(base) $(HEADER_DEPS)
40 lib_beep lib $(base) $(HEADER_DEPS)
41 lib_bkgd lib $(base) $(HEADER_DEPS)
42 lib_box lib $(base) $(HEADER_DEPS)
43 lib_chgat lib $(base) $(HEADER_DEPS)
44 lib_clear lib $(base) $(HEADER_DEPS)
45 lib_clearok lib $(base) $(HEADER_DEPS)
46 lib_clrbot lib $(base) $(HEADER_DEPS)
[all …]
/freebsd/crypto/heimdal/lib/krb5/
H A Dstore_emem.c38 unsigned char *base; member
48 if((size_t)(s->base + s->len - s->ptr) < size) in emem_fetch()
49 size = s->base + s->len - s->ptr; in emem_fetch()
59 if(size > (size_t)(s->base + s->size - s->ptr)){ in emem_store()
60 void *base; in emem_store() local
62 off = s->ptr - s->base; in emem_store()
66 base = realloc(s->base, sz); in emem_store()
67 if(base == NULL) in emem_store()
70 s->base = base; in emem_store()
71 s->ptr = (unsigned char*)base + off; in emem_store()
[all …]

12345678910>>...117