/freebsd/contrib/ntp/sntp/libevent/test/ |
H A D | test-closed.c | 74 struct event_base *base; in main() local 85 base = event_base_new_with_config(cfg); in main() 87 if (!base) { in main() 102 ev = event_new(base, pair[1], EV_CLOSED | EV_TIMEOUT, closed_cb, event_self_cbarg()); in main() 104 event_base_dispatch(base); in main() 108 event_base_free(base); in main()
|
H A D | regress_bufferevent.c | 341 data->base = NULL; in free_lock_unlock_profiler() 644 struct event_base *base = arg; in listen_cb() local 684 struct event_base *base = ctx; in reader_eventcb() local 763 lev = evconnlistener_new_bind(data->base, listen_cb, data->base, in test_bufferevent_connect() 788 event_base_dispatch(data->base); in test_bufferevent_connect() 854 event_base_dispatch(data->base); in test_bufferevent_connect_fail_eventcb() 870 struct event_base *base = ctx; in want_fail_eventcb() local 884 event_base_loopexit(base, NULL); in want_fail_eventcb() 1085 struct event_base *base = ctx; in trigger_eventcb() local 1106 struct event_base *base = ctx; in trigger_readcb() local [all …]
|
/freebsd/contrib/libevent/test/ |
H A D | test-closed.c | 74 struct event_base *base; in main() local 85 base = event_base_new_with_config(cfg); in main() 87 if (!base) { in main() 102 ev = event_new(base, pair[1], EV_CLOSED | EV_TIMEOUT, closed_cb, event_self_cbarg()); in main() 104 event_base_dispatch(base); in main() 108 event_base_free(base); in main()
|
H A D | regress_bufferevent.c | 341 data->base = NULL; in free_lock_unlock_profiler() 644 struct event_base *base = arg; in listen_cb() local 684 struct event_base *base = ctx; in reader_eventcb() local 763 lev = evconnlistener_new_bind(data->base, listen_cb, data->base, in test_bufferevent_connect() 788 event_base_dispatch(data->base); in test_bufferevent_connect() 854 event_base_dispatch(data->base); in test_bufferevent_connect_fail_eventcb() 870 struct event_base *base = ctx; in want_fail_eventcb() local 884 event_base_loopexit(base, NULL); in want_fail_eventcb() 1085 struct event_base *base = ctx; in trigger_eventcb() local 1106 struct event_base *base = ctx; in trigger_readcb() local [all …]
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/ |
H A D | zstd_lazy.c | 32 const BYTE* const base = ms->window.base; in ZSTD_updateDUBT() local 33 U32 const target = (U32)(ip - base); in ZSTD_updateDUBT() 74 const BYTE* const base = ms->window.base; in ZSTD_insertDUBT1() local 169 const BYTE* const base = ms->window.base; in ZSTD_DUBT_findBetterDictMatch() local 243 const BYTE* const base = ms->window.base; in ZSTD_DUBT_findBestMatch() local 458 const BYTE* const base = ms->window.base; in ZSTD_insertAndFindFirstIndex_internal() local 491 const BYTE* const base = ms->window.base; in ZSTD_HcFindBestMatch_generic() local 496 const U32 current = (U32)(ip-base); in ZSTD_HcFindBestMatch_generic() 637 const BYTE* const base = ms->window.base; in ZSTD_compressBlock_lazy_generic() local 940 const BYTE* const base = ms->window.base; in ZSTD_compressBlock_lazy_extDict_generic() local [all …]
|
/freebsd/sys/dev/pwm/ |
H A D | ofw_pwmbus.c | 44 struct pwmbus_ivars base; member 49 struct pwmbus_softc base; member 126 sc->base.dev = dev; in ofw_pwmbus_attach() 129 if (PWMBUS_CHANNEL_COUNT(parent, &sc->base.nchannels) != 0 || in ofw_pwmbus_attach() 130 sc->base.nchannels == 0) { in ofw_pwmbus_attach() 150 if (chan >= sc->base.nchannels) in ofw_pwmbus_attach() 157 ivars->base.pi_channel = chan; in ofw_pwmbus_attach() 175 for (chan = 0; chan < sc->base.nchannels; ++chan) { in ofw_pwmbus_attach() 183 ivars->base.pi_channel = chan; in ofw_pwmbus_attach()
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/ |
H A D | SectionMemoryManager.cpp | 68 Addr = (uintptr_t)FreeMB.Free.base(); in allocateSection() 83 PendingMB = sys::MemoryBlock(PendingMB.base(), in allocateSection() 117 if (CodeMem.Near.base() == nullptr) in allocateSection() 119 if (RODataMem.Near.base() == nullptr) in allocateSection() 121 if (RWDataMem.Near.base() == nullptr) in allocateSection() 126 Addr = (uintptr_t)MB.base(); in allocateSection() 186 (PageSize - ((uintptr_t)M.base() % PageSize)) % PageSize; in trimBlockToPageSize() 192 sys::MemoryBlock Trimmed((void *)((uintptr_t)M.base() + StartOverlap), in trimBlockToPageSize() 195 assert(((uintptr_t)Trimmed.base() % PageSize) == 0); in trimBlockToPageSize() 197 assert(M.base() <= Trimmed.base() && in trimBlockToPageSize() [all …]
|
/freebsd/sys/vm/ |
H A D | vm_unix.c | 89 vm_offset_t new, old, base; in kern_break() local 101 base = round_page((vm_offset_t) vm->vm_daddr); in kern_break() 102 old = base + ctob(vm->vm_dsize); in kern_break() 103 if (new > base) { in kern_break() 108 if (new - base > datalim && new > old) { in kern_break() 116 } else if (new < base) { in kern_break() 143 error = racct_set(td->td_proc, RACCT_DATA, new - base); in kern_break() 153 old - base); in kern_break() 164 old - base); in kern_break() 193 RACCT_DATA, old - base); in kern_break() [all …]
|
/freebsd/usr.bin/hexdump/ |
H A D | odsyntax.c | 187 int base; in odoffset() local 207 base = 0; in odoffset() 216 base = 16; in odoffset() 219 base = 16; in odoffset() 223 if (base == 16) in odoffset() 234 if (base) in odoffset() 236 base = 10; in odoffset() 239 skip = strtoll(num, &end, base ? base : 8); in odoffset() 266 if (base == 16) { in odoffset() 269 } else if (base == 10) { in odoffset()
|
/freebsd/stand/libsa/ |
H A D | printf.c | 210 } while (num /= base); in ksprintn() 383 base = 10; in kvprintf() 420 base = 8; in kvprintf() 423 base = 16; in kvprintf() 432 base = radix; in kvprintf() 465 base = 10; in kvprintf() 470 base = 16; in kvprintf() 473 base = 16; in kvprintf() 523 if (base == 8) in kvprintf() 525 else if (base == 16) in kvprintf() [all …]
|
/freebsd/libexec/rtld-elf/ |
H A D | rtld_printf.c | 115 } while (num /= base); in ksprintn() 244 base = 10; in kvprintf() 281 base = 8; in kvprintf() 284 base = 16; in kvprintf() 293 base = radix; in kvprintf() 322 base = 10; in kvprintf() 328 base = 16; in kvprintf() 331 base = 16; in kvprintf() 381 if (base == 8) in kvprintf() 383 else if (base == 16) in kvprintf() [all …]
|
/freebsd/usr.sbin/bhyve/amd64/ |
H A D | kernemu_dev.c | 58 .base = DEFAULT_APIC_BASE, 66 .base = VIOAPIC_BASE, 73 .base = VHPET_BASE, 87 (unsigned)lapic_mmio.base); in kernemu_dev_init() 91 (unsigned)ioapic_mmio.base); in kernemu_dev_init() 95 (unsigned)hpet_mmio.base); in kernemu_dev_init()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/ |
H A D | PdbUtil.cpp | 92 RangeMap::Entry overlap_region = {base, end - base, entry->data}; in AddMemberLocationRanges() 102 if (base >= end || entry->base >= end) in AddMemberLocationRanges() 108 if (base > entry->base) { in AddMemberLocationRanges() 113 } else if (base < entry->base) { in AddMemberLocationRanges() 115 {base, entry->base - base, {offset, member_loc}}); in AddMemberLocationRanges() 156 if (base > entry->base) { in AddDwarfRange() 157 new_location_map.Append({entry->base, base - entry->base, entry->data}); in AddDwarfRange() 158 entry->ShrinkFront(base - entry->base); in AddDwarfRange() 164 new_location_map.Append({base, end - base, expr}); in AddDwarfRange() 170 if (entry->Contains(base) && entry->base != base) { in AddDwarfRange() [all …]
|
/freebsd/crypto/openssl/providers/implementations/ciphers/ |
H A D | cipher_aes_cbc_hmac_sha.c | 192 if (ctx->base.keylen != keylen) { in aes_set_ctx_params() 200 if (!OSSL_PARAM_get_uint(p, &ctx->base.tlsversion)) { in aes_set_ctx_params() 204 if (ctx->base.tlsversion == SSL3_VERSION in aes_set_ctx_params() 205 || ctx->base.tlsversion == TLS1_VERSION) { in aes_set_ctx_params() 214 ctx->base.removetlsfixed -= AES_BLOCK_SIZE; in aes_set_ctx_params() 274 && !OSSL_PARAM_set_octet_string(p, ctx->base.oiv, ctx->base.ivlen) in aes_get_ctx_params() 275 && !OSSL_PARAM_set_octet_ptr(p, &ctx->base.oiv, ctx->base.ivlen)) { in aes_get_ctx_params() 281 && !OSSL_PARAM_set_octet_string(p, ctx->base.iv, ctx->base.ivlen) in aes_get_ctx_params() 282 && !OSSL_PARAM_set_octet_ptr(p, &ctx->base.iv, ctx->base.ivlen)) { in aes_get_ctx_params() 316 &meths->base, provctx); in base_init() [all …]
|
/freebsd/bin/ed/test/ |
H A D | ckscripts.sh | 24 base=`$ED - \!"echo $i" <<-EOF 27 if $base.ed; then 28 if cmp -s $base.o $base.r; then :; else 29 echo "*** Output $base.o of script $i is incorrect ***"
|
/freebsd/sys/sys/ |
H A D | systm.h | 329 int fubyte(volatile const void *base); 330 long fuword(volatile const void *base); 331 int fuword16(volatile const void *base); 332 int32_t fuword32(volatile const void *base); 333 int64_t fuword64(volatile const void *base); 350 int SAN_INTERCEPTOR(fubyte)(volatile const void *base); 351 int SAN_INTERCEPTOR(fuword16)(volatile const void *base); 355 int SAN_INTERCEPTOR(subyte)(volatile void *base, int byte); 356 int SAN_INTERCEPTOR(suword)(volatile void *base, long word); 357 int SAN_INTERCEPTOR(suword16)(volatile void *base, int word); [all …]
|
/freebsd/contrib/unbound/compat/ |
H A D | inet_aton.c | 94 int base, n; in inet_aton() local 108 val = 0; base = 10; in inet_aton() 112 base = 16, c = *++cp; in inet_aton() 114 base = 8; in inet_aton() 118 val = (val * base) + (c - '0'); in inet_aton() 120 } else if (base == 16 && isascii((unsigned char)c) && isxdigit((unsigned char)c)) { in inet_aton()
|
/freebsd/contrib/ldns/compat/ |
H A D | inet_aton.c | 94 int base, n; in inet_aton() local 108 val = 0; base = 10; in inet_aton() 112 base = 16, c = *++cp; in inet_aton() 114 base = 8; in inet_aton() 118 val = (val * base) + (c - '0'); in inet_aton() 120 } else if (base == 16 && isascii((int) c) && isxdigit((int) c)) { in inet_aton()
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | inet_aton.c | 90 int base, n; in inet_aton() local 104 val = 0; base = 10; in inet_aton() 108 base = 16, c = *++cp; in inet_aton() 110 base = 8; in inet_aton() 114 val = (val * base) + (c - '0'); in inet_aton() 116 } else if (base == 16 && isascii(c) && isxdigit(c)) { in inet_aton()
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | ww_mutex.h | 44 struct mutex base; member 65 sx_xlocked(&(_m)->base.sx) 81 return (mutex_trylock(&lock->base)); in ww_mutex_trylock() 92 else if ((struct thread *)SX_OWNER(lock->base.sx.sx_lock) == curthread) in ww_mutex_lock() 103 else if ((struct thread *)SX_OWNER(lock->base.sx.sx_lock) == curthread) in ww_mutex_lock_interruptible() 124 mutex_destroy(&lock->base); in ww_mutex_destroy() 135 linux_mutex_init(&lock->base, ww_class->mutex_name, SX_NOWITNESS); in ww_mutex_init()
|
/freebsd/stand/ficl/ |
H A D | prefix.c | 116 static void tempBase(FICL_VM *pVM, int base) in tempBase() argument 118 int oldbase = pVM->base; in tempBase() 121 pVM->base = base; in tempBase() 128 pVM->base = oldbase; in tempBase() 134 int base = stackPopINT(pVM->pStack); in fTempBase() local 135 tempBase(pVM, base); in fTempBase()
|
/freebsd/contrib/ntp/sntp/libevent/sample/ |
H A D | le-proxy.c | 39 static struct event_base *base; variable 165 b_in = bufferevent_socket_new(base, fd, in accept_cb() 169 b_out = bufferevent_socket_new(base, -1, in accept_cb() 173 b_out = bufferevent_openssl_socket_new(base, -1, ssl, in accept_cb() 191 b_ssl = bufferevent_openssl_filter_new(base, in accept_cb() 263 base = event_base_new(); in main() 264 if (!base) { in main() 286 listener = evconnlistener_new_bind(base, accept_cb, NULL, in main() 292 event_base_free(base); in main() 295 event_base_dispatch(base); in main() [all …]
|
H A D | http-connect.c | 73 struct connect_base *base = arg; in connect_cb() local 74 struct evhttp_connection *evcon = base->evcon; in connect_cb() 75 struct evhttp_uri *location = base->location; in connect_cb() 96 struct event_base *base; in main() local 110 VERIFY(base = event_base_new()); in main() 111 VERIFY(evcon = evhttp_connection_base_new(base, NULL, in main() 123 event_base_dispatch(base); in main() 126 event_base_free(base); in main()
|
/freebsd/contrib/libevent/sample/ |
H A D | le-proxy.c | 39 static struct event_base *base; variable 165 b_in = bufferevent_socket_new(base, fd, in accept_cb() 169 b_out = bufferevent_socket_new(base, -1, in accept_cb() 173 b_out = bufferevent_openssl_socket_new(base, -1, ssl, in accept_cb() 191 b_ssl = bufferevent_openssl_filter_new(base, in accept_cb() 263 base = event_base_new(); in main() 264 if (!base) { in main() 286 listener = evconnlistener_new_bind(base, accept_cb, NULL, in main() 292 event_base_free(base); in main() 295 event_base_dispatch(base); in main() [all …]
|
/freebsd/contrib/ntp/libntp/lib/isc/ |
H A D | buffer.c | 39 ISC__BUFFER_INIT(b, base, length); in isc__buffer_init() 53 isc_buffer_reinit(isc_buffer_t *b, void *base, unsigned int length) { in isc_buffer_reinit() argument 64 REQUIRE(base != NULL); in isc_buffer_reinit() 66 (void)memmove(base, b->base, b->length); in isc_buffer_reinit() 67 b->base = base; in isc_buffer_reinit() 253 (void)memmove(b->base, src, (size_t)length); in isc_buffer_compact() 398 isc__buffer_putmem(isc_buffer_t *b, const unsigned char *base, in isc__buffer_putmem() argument 404 ISC__BUFFER_PUTMEM(b, base, length); in isc__buffer_putmem() 429 unsigned char *base; in isc_buffer_copyregion() local 438 base = isc_buffer_used(b); in isc_buffer_copyregion() [all …]
|