/freebsd/tests/sys/sys/ |
H A D | buf_ring_test.c | 33 buf_ring_dequeue_peek(struct buf_ring *br) in buf_ring_dequeue_peek() argument 37 val = buf_ring_peek(br); in buf_ring_dequeue_peek() 39 buf_ring_advance_sc(br); in buf_ring_dequeue_peek() 44 buf_ring_dequeue_peek_clear_sc(struct buf_ring *br) in buf_ring_dequeue_peek_clear_sc() argument 48 val = buf_ring_peek_clear_sc(br); in buf_ring_dequeue_peek_clear_sc() 50 buf_ring_advance_sc(br); in buf_ring_dequeue_peek_clear_sc() 58 struct buf_ring *br; \ 60 br = buf_ring_alloc(4); \ 61 ATF_REQUIRE_MSG(br != NULL, "buf_ring_alloc returned NULL"); \ 63 ATF_REQUIRE(dequeue_func(br) == NULL); \ [all …]
|
/freebsd/sys/sys/ |
H A D | buf_ring.h | 74 buf_ring_enqueue(struct buf_ring *br, void *buf) in buf_ring_enqueue() argument 79 mask = br->br_prod_mask; in buf_ring_enqueue() 86 for (uint32_t i = atomic_load_32(&br->br_cons_head); in buf_ring_enqueue() 87 i != atomic_load_32(&br->br_prod_head); i++) in buf_ring_enqueue() 88 if (br->br_ring[i & mask] == buf) in buf_ring_enqueue() 90 buf, i, atomic_load_32(&br->br_prod_tail), in buf_ring_enqueue() 91 atomic_load_32(&br->br_cons_tail)); in buf_ring_enqueue() 105 prod_head = atomic_load_acq_32(&br->br_prod_head); in buf_ring_enqueue() 107 cons_tail = atomic_load_acq_32(&br->br_cons_tail); in buf_ring_enqueue() 109 if ((int32_t)(cons_tail + br->br_prod_size - prod_next) < 1) { in buf_ring_enqueue() [all …]
|
/freebsd/sys/contrib/ck/include/ |
H A D | ck_brlock.h | 65 ck_brlock_init(struct ck_brlock *br) in ck_brlock_init() argument 68 br->readers = NULL; in ck_brlock_init() 69 br->writer = false; in ck_brlock_init() 75 ck_brlock_write_lock(struct ck_brlock *br) in ck_brlock_write_lock() argument 83 while (ck_pr_fas_uint(&br->writer, true) == true) in ck_brlock_write_lock() 89 for (cursor = br->readers; cursor != NULL; cursor = cursor->next) { in ck_brlock_write_lock() 99 ck_brlock_write_unlock(struct ck_brlock *br) in ck_brlock_write_unlock() argument 103 ck_pr_store_uint(&br->writer, false); in ck_brlock_write_unlock() 108 ck_brlock_write_trylock(struct ck_brlock *br, unsigned int factor) in ck_brlock_write_trylock() argument 113 while (ck_pr_fas_uint(&br->writer, true) == true) { in ck_brlock_write_trylock() [all …]
|
/freebsd/sys/kern/ |
H A D | subr_bufring.c | 39 struct buf_ring *br; in buf_ring_alloc() local 43 br = malloc(sizeof(struct buf_ring) + count*sizeof(caddr_t), in buf_ring_alloc() 45 if (br == NULL) in buf_ring_alloc() 48 br->br_lock = lock; in buf_ring_alloc() 50 br->br_prod_size = br->br_cons_size = count; in buf_ring_alloc() 51 br->br_prod_mask = br->br_cons_mask = count-1; in buf_ring_alloc() 52 br->br_prod_head = br->br_cons_head = 0; in buf_ring_alloc() 53 br->br_prod_tail = br->br_cons_tail = 0; in buf_ring_alloc() 55 return (br); in buf_ring_alloc() 59 buf_ring_free(struct buf_ring *br, struct malloc_type *type) in buf_ring_free() argument [all …]
|
/freebsd/sys/net/ |
H A D | ifq.c | 45 drbr_enqueue(struct ifnet *ifp, struct buf_ring *br, struct mbuf *m) in drbr_enqueue() argument 55 error = buf_ring_enqueue(br, m); in drbr_enqueue() 63 drbr_putback(struct ifnet *ifp, struct buf_ring *br, struct mbuf *m_new) in drbr_putback() argument 77 buf_ring_putback_sc(br, m_new); in drbr_putback() 81 drbr_peek(struct ifnet *ifp, struct buf_ring *br) in drbr_peek() argument 94 return ((struct mbuf *)buf_ring_peek_clear_sc(br)); in drbr_peek() 98 drbr_flush(struct ifnet *ifp, struct buf_ring *br) in drbr_flush() argument 104 while ((m = (struct mbuf *)buf_ring_dequeue_sc(br)) != NULL) in drbr_flush() 109 drbr_dequeue(struct ifnet *ifp, struct buf_ring *br) in drbr_dequeue() argument 117 return ((struct mbuf *)buf_ring_dequeue_sc(br)); in drbr_dequeue() [all …]
|
H A D | ifq.h | 316 int drbr_enqueue(struct ifnet *ifp, struct buf_ring *br, struct mbuf *m); 317 void drbr_putback(struct ifnet *ifp, struct buf_ring *br, struct mbuf *m_new); 318 struct mbuf *drbr_peek(struct ifnet *ifp, struct buf_ring *br); 319 void drbr_flush(struct ifnet *ifp, struct buf_ring *br); 320 struct mbuf *drbr_dequeue(struct ifnet *ifp, struct buf_ring *br); 321 void drbr_advance(struct ifnet *ifp, struct buf_ring *br); 322 struct mbuf *drbr_dequeue_cond(struct ifnet *ifp, struct buf_ring *br, 324 int drbr_empty(struct ifnet *ifp, struct buf_ring *br); 325 int drbr_needs_enqueue(struct ifnet *ifp, struct buf_ring *br); 326 int drbr_inuse(struct ifnet *ifp, struct buf_ring *br); [all …]
|
/freebsd/sys/dev/bhnd/bhndb/ |
H A D | bhndb_private.h | 66 struct bhndb_resources *br); 69 struct bhndb_resources *br, 76 struct bhndb_resources *br, 87 struct bhndb_resources *br, 90 struct bhndb_resources *br, 93 struct bhndb_resources *br, 97 struct bhndb_resources *br, 101 struct bhndb_resources *br, 109 struct bhndb_resources *br, 113 struct bhndb_resources *br, [all …]
|
H A D | bhndb_subr.c | 563 bhndb_free_resources(struct bhndb_resources *br) in bhndb_free_resources() argument 575 if (!bhndb_dw_all_free(br)) { in bhndb_free_resources() 576 for (int i = 0; i < br->dwa_count; i++) { in bhndb_free_resources() 577 dwa = &br->dw_alloc[i]; in bhndb_free_resources() 580 if (bhndb_dw_is_free(br, dwa)) in bhndb_free_resources() 583 device_printf(br->dev, in bhndb_free_resources() 590 STAILQ_FOREACH(ih, &br->bus_intrs, ih_link) { in bhndb_free_resources() 591 device_printf(br->dev, "interrupt handler leaked %p\n", in bhndb_free_resources() 601 if (br->res != NULL) in bhndb_free_resources() 602 bhndb_release_host_resources(br->res); in bhndb_free_resources() [all …]
|
/freebsd/usr.bin/tip/tip/ |
H A D | remote | 5 # br bit rate (defaults to 9600) 41 br#115200:tc=dial: 43 br#115200:tc=dial: 47 br#115200:tc=dial: 49 br#57600:tc=dial: 54 cuau0c|cua0c:dv=/dev/cuau0:br#9600:pa=none: 57 uart0|com1:dv=/dev/cuau0:br#9600:pa=none: 58 uart1|com2:dv=/dev/cuau1:br#9600:pa=none: 59 uart2|com3:dv=/dev/cuau2:br#9600:pa=none: 60 uart3|com4:dv=/dev/cuau3:br#9600:pa=none: [all …]
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_read_support_format_rar.c | 389 } br; member 447 static uint32_t membr_next_rarvm_number(struct memory_bit_reader *br); 448 static inline uint32_t membr_bits(struct memory_bit_reader *br, int bits); 449 static int membr_fill(struct memory_bit_reader *br, int bits); 462 #define rar_br_has(br, n) ((br)->cache_avail >= n) argument 464 #define rar_br_bits(br, n) \ argument 465 (((uint32_t)((br)->cache_buffer >> \ 466 ((br)->cache_avail - (n)))) & cache_masks[n]) 467 #define rar_br_bits_forced(br, n) \ argument 468 (((uint32_t)((br)->cache_buffer << \ [all …]
|
H A D | archive_read_support_format_cab.c | 104 } br; member 2139 ds->br.cache_buffer = 0; in lzx_decode_init() 2140 ds->br.cache_avail = 0; in lzx_decode_init() 2218 #define lzx_br_has(br, n) ((br)->cache_avail >= n) argument 2220 #define lzx_br_bits(br, n) \ argument 2221 (((uint32_t)((br)->cache_buffer >> \ 2222 ((br)->cache_avail - (n)))) & cache_masks[n]) 2223 #define lzx_br_bits_forced(br, n) \ argument 2224 (((uint32_t)((br)->cache_buffer << \ 2225 ((n) - (br)->cache_avail))) & cache_masks[n]) [all …]
|
H A D | archive_read_support_format_lha.c | 96 } br; member 1912 ds->br.cache_buffer = 0; in lzh_decode_init() 1913 ds->br.cache_avail = 0; in lzh_decode_init() 1947 #define lzh_br_has(br, n) ((br)->cache_avail >= n) argument 1949 #define lzh_br_bits(br, n) \ argument 1950 (((uint16_t)((br)->cache_buffer >> \ 1951 ((br)->cache_avail - (n)))) & cache_masks[n]) 1952 #define lzh_br_bits_forced(br, n) \ argument 1953 (((uint16_t)((br)->cache_buffer << \ 1954 ((n) - (br)->cache_avail))) & cache_masks[n]) [all …]
|
/freebsd/crypto/openssl/crypto/ |
H A D | ia64cpuid.S | 20 { .mib; br.ret.sptk.many b0 };; 27 br.ret.sptk.many b0 };; 46 (p6) br.dpnt .Lspin };; 49 br.ret.sptk.many b0 };; 86 br.ctop.sptk .L_wipe_top };; 139 br.ret.sptk b0 };; 147 (p6) br.ret.spnt b0 };; 150 (p6) br.cond.dptk .Lot };; 156 (p6) br.cond.dptk .Little 157 (p7) br.ret.sptk.many b0 };; [all …]
|
/freebsd/usr.sbin/bhyve/ |
H A D | block_if.c | 233 struct blockif_req *br; in blockif_proc() local 239 br = be->be_req; in blockif_proc() 240 assert(br->br_resid >= 0); in blockif_proc() 242 if (br->br_iovcnt <= 1) in blockif_proc() 248 if ((n = preadv(bc->bc_fd, br->br_iov, br->br_iovcnt, in blockif_proc() 249 br->br_offset)) < 0) in blockif_proc() 252 br->br_resid -= n; in blockif_proc() 257 while (br->br_resid > 0) { in blockif_proc() 258 len = MIN(br->br_resid, MAXPHYS); in blockif_proc() 259 n = pread(bc->bc_fd, buf, len, br->br_offset + off); in blockif_proc() [all …]
|
/freebsd/sys/dev/hyperv/vmbus/ |
H A D | vmbus_br.c | 51 const struct vmbus_br *br = arg1; in vmbus_br_sysctl_state() local 56 intrcnt = br->vbr_intrcnt; in vmbus_br_sysctl_state() 57 rindex = br->vbr_rindex; in vmbus_br_sysctl_state() 58 windex = br->vbr_windex; in vmbus_br_sysctl_state() 59 imask = br->vbr_imask; in vmbus_br_sysctl_state() 60 psndsz = br->vbr_psndsz; in vmbus_br_sysctl_state() 61 fvalue = br->vbr_fvalue; in vmbus_br_sysctl_state() 62 wavail = VMBUS_BR_WAVAIL(rindex, windex, br->vbr_dsize); in vmbus_br_sysctl_state() 63 ravail = br->vbr_dsize - wavail; in vmbus_br_sysctl_state() 88 const struct vmbus_br *br = arg1; in vmbus_br_sysctl_state_bin() local [all …]
|
/freebsd/crypto/openssl/doc/man7/ |
H A D | life_cycle-cipher.pod | 167 <th style="border:1px solid" align="center">initialised<br>decryption</th> 168 <th style="border:1px solid" align="center">updated<br>decryption</th> 169 <th style="border:1px solid" align="center">initialised<br>encryption</th> 170 <th style="border:1px solid" align="center">updated<br>encryption</th> 196 <td style="border:1px solid" align="center">initialised<br>decryption</td> 197 <td style="border:1px solid" align="center">initialised<br>decryption</td> 198 <td style="border:1px solid" align="center">initialised<br>decryption</td> 199 <td style="border:1px solid" align="center">initialised<br>decryption</td> 200 <td style="border:1px solid" align="center">initialised<br>decryption</td> 201 <td style="border:1px solid" align="center">initialised<br>decryption</td> [all …]
|
H A D | life_cycle-pkey.pod | 206 <th style="border:1px solid" align="center">digest<br>sign</th> 208 <th style="border:1px solid" align="center">verify<br>recover</th> 214 <th style="border:1px solid" align="center">parameter<br>generation</th> 215 <th style="border:1px solid" align="center">key<br>generation</th> 281 <td style="border:1px solid" align="center">digest<br>sign</td> 282 <td style="border:1px solid" align="center">digest<br>sign</td> 283 <td style="border:1px solid" align="center">digest<br>sign</td> 284 <td style="border:1px solid" align="center">digest<br>sign</td> 285 <td style="border:1px solid" align="center">digest<br>sign</td> 286 <td style="border:1px solid" align="center">digest<br>sign</td> [all …]
|
/freebsd/tools/test/buf_ring/ |
H A D | buf_ring_test.c | 89 static struct buf_ring *br; variable 104 rv = buf_ring_enqueue(br, (void *)(i * prod_count + 1 + id)); in producer() 135 while (!atomic_load(&prod_done) || !buf_ring_empty(br)) { in consumer() 139 val = buf_ring_dequeue_mc(br); in consumer() 142 val = buf_ring_dequeue_sc(br); in consumer() 145 val = buf_ring_peek(br); in consumer() 147 buf_ring_advance_sc(br); in consumer() 150 val = buf_ring_peek_clear_sc(br); in consumer() 152 buf_ring_advance_sc(br); in consumer() 288 br = buf_ring_alloc(size); in main() [all …]
|
/freebsd/sys/arm/mv/ |
H A D | mv_common.c | 861 WIN_REG_IDX_RD(win_cpu_armv5, br, MV_WIN_CPU_BASE_ARMV5, MV_MBUS_BRIDGE_BASE) in WIN_REG_IDX_RD() 865 WIN_REG_IDX_WR(win_cpu_armv5, br, MV_WIN_CPU_BASE_ARMV5, MV_MBUS_BRIDGE_BASE) in WIN_REG_IDX_RD() 870 WIN_REG_IDX_RD(win_cpu_armv7, br, MV_WIN_CPU_BASE_ARMV7, MV_MBUS_BRIDGE_BASE) in WIN_REG_IDX_RD() 874 WIN_REG_IDX_WR(win_cpu_armv7, br, MV_WIN_CPU_BASE_ARMV7, MV_MBUS_BRIDGE_BASE) in WIN_REG_IDX_RD() 947 WIN_REG_BASE_IDX_RD(win_cesa, br, MV_WIN_CESA_BASE) 949 WIN_REG_BASE_IDX_WR(win_cesa, br, MV_WIN_CESA_BASE) 952 WIN_REG_BASE_IDX_RD(win_usb, br, MV_WIN_USB_BASE) 954 WIN_REG_BASE_IDX_WR(win_usb, br, MV_WIN_USB_BASE) 957 WIN_REG_BASE_IDX_RD(win_usb3, br, MV_WIN_USB3_BASE) 959 WIN_REG_BASE_IDX_WR(win_usb3, br, MV_WIN_USB3_BASE) [all …]
|
/freebsd/sys/powerpc/booke/ |
H A D | trap_subr.S | 339 #define TLB_SAVE_REGS(br) \ argument 340 std %r20, (TLBSAVE_BOOKE_R20)(br); \ 341 std %r21, (TLBSAVE_BOOKE_R21)(br); \ 342 std %r22, (TLBSAVE_BOOKE_R22)(br); \ 343 std %r23, (TLBSAVE_BOOKE_R23)(br); \ 344 std %r24, (TLBSAVE_BOOKE_R24)(br); \ 345 std %r25, (TLBSAVE_BOOKE_R25)(br); \ 346 std %r26, (TLBSAVE_BOOKE_R26)(br); \ 347 std %r27, (TLBSAVE_BOOKE_R27)(br); \ 348 std %r28, (TLBSAVE_BOOKE_R28)(br); \ [all …]
|
/freebsd/contrib/sendmail/libsm/ |
H A D | t-streq.sh | 41 22:iseadmin@somest.sld.br>\n 42 1:iseadmin@somest.sld.br 43 22:iseadmin@somest.sld.br 44 1:iseadmin@somest.sld.br>\n
|
/freebsd/crypto/openssl/crypto/ocsp/ |
H A D | ocsp_prn.c | 137 OCSP_BASICRESP *br = NULL; in OCSP_RESPONSE_print() local 162 if ((br = OCSP_response_get1_basic(o)) == NULL) in OCSP_RESPONSE_print() 164 rd = &br->tbsResponseData; in OCSP_RESPONSE_print() 234 if (X509_signature_print(bp, &br->signatureAlgorithm, br->signature) <= 0) in OCSP_RESPONSE_print() 237 for (i = 0; i < sk_X509_num(br->certs); i++) { in OCSP_RESPONSE_print() 238 X509_print(bp, sk_X509_value(br->certs, i)); in OCSP_RESPONSE_print() 239 PEM_write_bio_X509(bp, sk_X509_value(br->certs, i)); in OCSP_RESPONSE_print() 244 OCSP_BASICRESP_free(br); in OCSP_RESPONSE_print()
|
/freebsd/tests/sys/netpfil/pf/ |
H A D | tcp.sh | 48 br=$(vnet_mkbridge) 49 ifconfig ${br} addm ${epair_srv}a 51 ifconfig ${br} addm ${epair_cl}a 53 ifconfig ${br} addm ${epair_attack}a 55 ifconfig ${br} up
|
/freebsd/tests/sys/net/ |
H A D | if_stf.sh | 100 vnet_mkjail br ${epair}a 101 jexec br ifconfig ${epair}a 192.0.2.1/24 up 104 gif=$(jexec br ifconfig gif create) 105 jexec br ifconfig lo0 inet6 2001:db9::1/64 up 106 jexec br ifconfig $gif inet6 2001:db8::/64 up 107 jexec br ifconfig $gif tunnel 192.0.2.1 192.0.2.2 108 jexec br route -6 add default -interface $gif
|
/freebsd/contrib/ntp/html/scripts/ |
H A D | clockopt.txt | 2 <li class='inline'><a href='clockopt.html#fudge'>fudge - specify fudge parameters</a><br>\ 3 …><a href='clockopt.html#device'>device - specify I/O and PPS device(s) for reference clock</a><br>\ 4 <li class='inline'><a href='clockopt.html#server'>server - specify reference clock server</a><br>\
|