/freebsd-11-stable/sys/geom/virstor/ |
H A D | binstream.c | 40 bs_open(bin_stream_t * bs, void *data) argument 42 bs->data = (char *)data; 43 bs->pos = 0; 49 bs_reset(bin_stream_t * bs) argument 51 bs->pos = 0; 56 bs_write_str(bin_stream_t * bs, char *data) argument 60 *(bs->data + bs->pos + len) = *data; 63 bs->pos += len; 64 return bs 70 bs_write_buf(bin_stream_t * bs, char *data, unsigned data_size) argument 82 bs_write_u8(bin_stream_t * bs, uint8_t data) argument 91 bs_write_u16(bin_stream_t * bs, uint16_t data) argument 100 bs_write_u32(bin_stream_t * bs, uint32_t data) argument 109 bs_write_u64(bin_stream_t * bs, uint64_t data) argument 118 bs_read_u8(bin_stream_t * bs) argument 132 bs_read_str(bin_stream_t * bs, char *buf, unsigned buf_size) argument 149 bs_read_buf(bin_stream_t * bs, char *buf, unsigned buf_size) argument 160 bs_read_u16(bin_stream_t * bs) argument 170 bs_read_u32(bin_stream_t * bs) argument 180 bs_read_u64(bin_stream_t * bs) argument [all...] |
H A D | g_virstor_md.c | 43 bin_stream_t bs; local 45 bs_open(&bs, data); 47 bs_write_buf(&bs, md->md_magic, sizeof(md->md_magic)); 48 bs_write_u32(&bs, md->md_version); 49 bs_write_buf(&bs, md->md_name, sizeof(md->md_name)); 50 bs_write_u64(&bs, md->md_virsize); 51 bs_write_u32(&bs, md->md_chunk_size); 52 bs_write_u32(&bs, md->md_id); 53 bs_write_u16(&bs, md->md_count); 55 bs_write_buf(&bs, m 72 bin_stream_t bs; local [all...] |
H A D | binstream.h | 46 void bs_open (bin_stream_t * bs, void *data); 49 void bs_reset (bin_stream_t * bs); 53 unsigned bs_write_str(bin_stream_t * bs, char *data); 56 unsigned bs_write_buf(bin_stream_t * bs, char *data, unsigned data_size); 59 unsigned bs_write_u8(bin_stream_t * bs, uint8_t data); 62 unsigned bs_write_u16(bin_stream_t * bs, uint16_t data); 65 unsigned bs_write_u32(bin_stream_t * bs, uint32_t data); 68 unsigned bs_write_u64(bin_stream_t * bs, uint64_t data); 76 char *bs_read_str(bin_stream_t * bs, char *buf, unsigned buf_size); 79 void bs_read_buf(bin_stream_t * bs, cha [all...] |
/freebsd-11-stable/sys/net/ |
H A D | bridgestp.c | 153 bstp_transmit(struct bstp_state *bs, struct bstp_port *bp) argument 155 if (bs->bs_running == 0) 164 bstp_hello_timer_expiry(bs, bp); 167 if (bp->bp_txcount > bs->bs_txholdcount) 172 bstp_transmit_bpdu(bs, bp); 177 bstp_transmit_bpdu(bs, bp); 182 bstp_transmit_tcn(bs, bp); 191 bstp_transmit_bpdu(struct bstp_state *bs, struct bstp_port *bp) argument 195 BSTP_LOCK_ASSERT(bs); 223 bstp_send_bpdu(bs, b 227 bstp_transmit_tcn(struct bstp_state *bs, struct bstp_port *bp) argument 339 bstp_send_bpdu(struct bstp_state *bs, struct bstp_port *bp, struct bstp_cbpdu *bpdu) argument 454 struct bstp_state *bs = bp->bp_bs; local 529 bstp_received_stp(struct bstp_state *bs, struct bstp_port *bp, struct mbuf **mp, struct bstp_tbpdu *tpdu) argument 554 bstp_received_rstp(struct bstp_state *bs, struct bstp_port *bp, struct mbuf **mp, struct bstp_tbpdu *tpdu) argument 573 bstp_received_tcn(struct bstp_state *bs, struct bstp_port *bp, struct bstp_tcn_unit *tcn) argument 581 bstp_received_bpdu(struct bstp_state *bs, struct bstp_port *bp, struct bstp_config_unit *cu) argument 779 bstp_assign_roles(struct bstp_state *bs) argument 898 bstp_update_state(struct bstp_state *bs, struct bstp_port *bp) argument 923 bstp_update_roles(struct bstp_state *bs, struct bstp_port *bp) argument 1134 struct bstp_state *bs = bp->bp_bs; local 1163 struct bstp_state *bs = bp->bp_bs; local 1176 bstp_set_all_reroot(struct bstp_state *bs) argument 1187 bstp_set_all_sync(struct bstp_state *bs) argument 1241 struct bstp_state *bs = bp->bp_bs; local 1315 struct bstp_state *bs = bp->bp_bs; local 1346 struct bstp_state *bs = bp->bp_bs; local 1422 struct bstp_state *bs = bp->bp_bs; local 1454 bstp_rerooted(struct bstp_state *bs, struct bstp_port *bp) argument 1471 bstp_set_htime(struct bstp_state *bs, int t) argument 1491 bstp_set_fdelay(struct bstp_state *bs, int t) argument 1507 bstp_set_maxage(struct bstp_state *bs, int t) argument 1523 bstp_set_holdcount(struct bstp_state *bs, int count) argument 1540 bstp_set_protocol(struct bstp_state *bs, int proto) argument 1572 bstp_set_priority(struct bstp_state *bs, int pri) argument 1590 struct bstp_state *bs = bp->bp_bs; local 1608 struct bstp_state *bs = bp->bp_bs; local 1634 struct bstp_state *bs = bp->bp_bs; local 1648 struct bstp_state *bs = bp->bp_bs; local 1665 struct bstp_state *bs = bp->bp_bs; local 1676 struct bstp_state *bs = bp->bp_bs; local 1732 struct bstp_state *bs = bp->bp_bs; local 1746 struct bstp_state *bs = bp->bp_bs; local 1774 struct bstp_state *bs = bp->bp_bs; local 1789 struct bstp_state *bs = bp->bp_bs; local 1850 bstp_enable_port(struct bstp_state *bs, struct bstp_port *bp) argument 1856 bstp_disable_port(struct bstp_state *bs, struct bstp_port *bp) argument 1864 struct bstp_state *bs = arg; local 1951 bstp_hello_timer_expiry(struct bstp_state *bs, struct bstp_port *bp) argument 1964 bstp_message_age_expiry(struct bstp_state *bs, struct bstp_port *bp) argument 1974 bstp_migrate_delay_expiry(struct bstp_state *bs, struct bstp_port *bp) argument 1980 bstp_edge_delay_expiry(struct bstp_state *bs, struct bstp_port *bp) argument 2021 bstp_reinit(struct bstp_state *bs) argument 2136 bstp_attach(struct bstp_state *bs, struct bstp_cb_ops *cb) argument 2162 bstp_detach(struct bstp_state *bs) argument 2174 bstp_init(struct bstp_state *bs) argument 2184 bstp_stop(struct bstp_state *bs) argument 2199 bstp_create(struct bstp_state *bs, struct bstp_port *bp, struct ifnet *ifp) argument 2226 struct bstp_state *bs = bp->bp_bs; local 2252 struct bstp_state *bs = bp->bp_bs; local [all...] |
/freebsd-11-stable/sys/contrib/dev/ath/ath_hal/ar9300/ |
H A D | ar9300_beacon.c | 83 ar9300_set_sta_beacon_timers(struct ath_hal *ah, const HAL_BEACON_STATE *bs) argument 88 HALASSERT(bs->bs_intval != 0); 91 OS_REG_WRITE(ah, AR_NEXT_TBTT_TIMER, TU_TO_USEC(bs->bs_nexttbtt)); 99 TU_TO_USEC(bs->bs_intval & HAL_BEACON_PERIOD)); 101 TU_TO_USEC(bs->bs_intval & HAL_BEACON_PERIOD)); 107 HALASSERT(bs->bs_bmissthreshold <= 110 AR_RSSI_THR_BM_THR, bs->bs_bmissthreshold); 135 beaconintval = bs->bs_intval & HAL_BEACON_PERIOD; 137 if (bs->bs_sleepduration > beaconintval) { 138 HALASSERT(roundup(bs [all...] |
/freebsd-11-stable/sys/dev/xen/balloon/ |
H A D | balloon.c | 79 #define bs balloon_stats macro 84 &bs.current_pages, 0, "Current allocation"); 86 &bs.target_pages, 0, "Target allocation"); 88 &bs.driver_pages, 0, "Driver pages"); 90 &bs.hard_limit, 0, "Xen hard limit"); 92 &bs.balloon_low, 0, "Low-mem balloon"); 94 &bs.balloon_high, 0, "High-mem balloon"); 110 unsigned long target = min(bs.target_pages, bs.hard_limit); 111 if (target > (bs [all...] |
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5210/ |
H A D | ar5210_beacon.c | 116 ar5210SetStaBeaconTimers(struct ath_hal *ah, const HAL_BEACON_STATE *bs) argument 122 HALASSERT(bs->bs_intval != 0); 124 if (bs->bs_cfpmaxduration != 0) { 131 OS_REG_WRITE(ah, AR_CFP_PERIOD, bs->bs_cfpperiod); 134 OS_REG_WRITE(ah, AR_CFP_DUR, bs->bs_cfpmaxduration); 137 OS_REG_WRITE(ah, AR_TIMER2, bs->bs_cfpnext << 3); 147 OS_REG_WRITE(ah, AR_TIMER0, bs->bs_nexttbtt); 158 | SM(bs->bs_intval, AR_BEACON_PERIOD) 159 | SM(bs->bs_timoffset ? bs [all...] |
/freebsd-11-stable/crypto/openssl/crypto/asn1/ |
H A D | t_bitst.c | 65 int ASN1_BIT_STRING_name_print(BIO *out, ASN1_BIT_STRING *bs, argument 72 if (ASN1_BIT_STRING_get_bit(bs, bnam->bitnum)) { 83 int ASN1_BIT_STRING_set_asc(ASN1_BIT_STRING *bs, char *name, int value, argument 90 if (bs) { 91 if (!ASN1_BIT_STRING_set_bit(bs, bitnum, value))
|
/freebsd-11-stable/contrib/netbsd-tests/include/ |
H A D | t_bitstring.c | 67 bitstr_t *bs; local 81 bs = bit_alloc(test_length); 82 clearbits(bs, test_length); 88 printbits(file, bs, test_length); 92 bit_set(bs, i); 97 printbits(file, bs, test_length); 101 bit_clear(bs, i); 106 printbits(file, bs, test_length); 111 (void) fprintf(file, "%3d%15d\n", i, bit_test(bs, i)); 113 clearbits(bs, test_lengt [all...] |
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5211/ |
H A D | ar5211_beacon.c | 122 ar5211SetStaBeaconTimers(struct ath_hal *ah, const HAL_BEACON_STATE *bs) argument 128 HALASSERT(bs->bs_intval != 0); 130 if (bs->bs_cfpmaxduration != 0) { 136 OS_REG_WRITE(ah, AR_CFP_PERIOD, bs->bs_cfpperiod); 139 OS_REG_WRITE(ah, AR_CFP_DUR, bs->bs_cfpmaxduration); 142 OS_REG_WRITE(ah, AR_TIMER2, bs->bs_cfpnext << 3); 152 OS_REG_WRITE(ah, AR_TIMER0, bs->bs_nexttbtt); 163 | SM(bs->bs_intval, AR_BEACON_PERIOD) 164 | SM(bs->bs_timoffset ? bs [all...] |
/freebsd-11-stable/contrib/bzip2/ |
H A D | bzip2recover.c | 156 BitStream *bs = malloc ( sizeof(BitStream) ); local 157 if (bs == NULL) mallocFail ( sizeof(BitStream) ); 158 bs->handle = stream; 159 bs->buffer = 0; 160 bs->buffLive = 0; 161 bs->mode = 'r'; 162 return bs; 169 BitStream *bs = malloc ( sizeof(BitStream) ); local 170 if (bs == NULL) mallocFail ( sizeof(BitStream) ); 171 bs 180 bsPutBit( BitStream* bs, Int32 bit ) argument 242 bsPutUChar( BitStream* bs, UChar c ) argument 251 bsPutUInt32( BitStream* bs, UInt32 c ) argument [all...] |
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5212/ |
H A D | ar5212_beacon.c | 146 ar5212SetStaBeaconTimers(struct ath_hal *ah, const HAL_BEACON_STATE *bs) argument 151 HALASSERT(bs->bs_intval != 0); 153 if (bs->bs_cfpmaxduration != 0) { 159 OS_REG_WRITE(ah, AR_CFP_PERIOD, bs->bs_cfpperiod); 162 OS_REG_WRITE(ah, AR_CFP_DUR, bs->bs_cfpmaxduration); 165 OS_REG_WRITE(ah, AR_TIMER2, bs->bs_cfpnext << 3); 175 OS_REG_WRITE(ah, AR_TIMER0, bs->bs_nexttbtt); 186 | SM(bs->bs_intval, AR_BEACON_PERIOD) 187 | SM(bs->bs_timoffset ? bs [all...] |
/freebsd-11-stable/usr.sbin/bsdinstall/scripts/ |
H A D | entropy | 32 dd if=/dev/random of="$i" bs=4096 count=1
|
/freebsd-11-stable/crypto/openssl/crypto/x509v3/ |
H A D | v3_bitst.c | 112 ASN1_BIT_STRING *bs; local 115 if (!(bs = M_ASN1_BIT_STRING_new())) { 124 if (!ASN1_BIT_STRING_set_bit(bs, bnam->bitnum, 1)) { 127 M_ASN1_BIT_STRING_free(bs); 137 M_ASN1_BIT_STRING_free(bs); 141 return bs;
|
/freebsd-11-stable/tests/sys/geom/class/eli/ |
H A D | integrity_test.sh | 17 atf_check dd if=rnd of=/dev/${md}.eli bs=${secsize} count=1 status=none 21 atf_check dd if=backing_file of=sector bs=512 count=1 \ 23 atf_check dd if=sector of=backing_file bs=512 count=1 seek=1 \ 27 dd if=/dev/${md}.eli of=/dev/null bs=${secsize} count=1 30 atf_check dd if=rnd of=/dev/${md}.eli bs=${secsize} count=2 status=none 31 atf_check dd if=/dev/${md}.eli of=/dev/null bs=${secsize} count=2 \ 39 atf_check dd if=backing_file bs=512 count=$(( ${usecsize} / 512 )) \ 41 atf_check dd of=backing_file bs=512 count=$(( ${usecsize} / 512 )) \ 44 dd if=/dev/${md}.eli of=/dev/null bs=${secsize} count=$ns 60 atf_check dd if=/dev/random of=keyfile bs [all...] |
H A D | setkey_test.sh | 19 atf_check dd if=/dev/random of=rnd bs=512 count=${sectors} status=none 20 hash1=`dd if=rnd bs=512 count=${sectors} status=none | md5` 22 atf_check dd if=/dev/random of=keyfile1 bs=512 count=16 status=none 23 atf_check dd if=/dev/random of=keyfile2 bs=512 count=16 status=none 24 atf_check dd if=/dev/random of=keyfile3 bs=512 count=16 status=none 25 atf_check dd if=/dev/random of=keyfile4 bs=512 count=16 status=none 26 atf_check dd if=/dev/random of=keyfile5 bs=512 count=16 status=none 32 dd if=rnd of=/dev/${md}.eli bs=512 count=${sectors} status=none 33 hash2=`dd if=/dev/${md}.eli bs=512 count=${sectors} 2>/dev/null | md5` 46 hash3=`dd if=/dev/${md}.eli bs [all...] |
/freebsd-11-stable/sys/dev/ct/ |
H A D | bshw_machdep.c | 86 struct bshw_softc *bs = ct->ct_hw; local 87 struct bshw *hw = bs->sc_hw; 105 struct bshw_softc *bs = ct->ct_hw; local 106 struct bshw *hw = bs->sc_hw; 150 bshw_read_settings(struct ct_bus_access_handle *chp, struct bshw_softc *bs) argument 154 bs->sc_hostid = (ct_cr_read_1(chp, wd3s_auxc) & AUXCR_HIDM); 155 bs->sc_irq = irq_tbl[(ct_cr_read_1(chp, wd3s_auxc) >> 3) & 7]; 156 bs->sc_drq = ct_cmdp_read_1(chp) & 3; 240 struct bshw_softc *bs = ct->ct_hw; local 254 if (count < bs 288 struct bshw_softc *bs = ct->ct_hw; local 392 struct bshw_softc *bs = ct->ct_hw; local 452 struct bshw_softc *bs = ct->ct_hw; local 524 struct bshw_softc *bs = ct->ct_hw; local 569 struct bshw_softc *bs = ct->ct_hw; local [all...] |
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5416/ |
H A D | ar5416_beacon.c | 151 ar5416SetStaBeaconTimers(struct ath_hal *ah, const HAL_BEACON_STATE *bs) argument 155 HALASSERT(bs->bs_intval != 0); 159 OS_REG_WRITE(ah, AR_NEXT_TBTT, TU_TO_USEC(bs->bs_nexttbtt)); 167 TU_TO_USEC(bs->bs_intval & HAL_BEACON_PERIOD)); 169 TU_TO_USEC(bs->bs_intval & HAL_BEACON_PERIOD)); 176 HALASSERT(bs->bs_bmissthreshold <= 179 AR_RSSI_THR_BM_THR, bs->bs_bmissthreshold); 229 beaconintval = bs->bs_intval & HAL_BEACON_PERIOD; 231 if (bs->bs_sleepduration > beaconintval) { 232 HALASSERT(roundup(bs [all...] |
/freebsd-11-stable/crypto/openssl/ssl/ |
H A D | bio_ssl.c | 104 BIO_SSL *bs; local 106 bs = (BIO_SSL *)OPENSSL_malloc(sizeof(BIO_SSL)); 107 if (bs == NULL) { 111 memset(bs, 0, sizeof(BIO_SSL)); 113 bi->ptr = (char *)bs; 120 BIO_SSL *bs; local 124 bs = (BIO_SSL *)a->ptr; 125 if (bs->ssl != NULL) 126 SSL_shutdown(bs->ssl); 128 if (a->init && (bs 226 BIO_SSL *bs; local 290 BIO_SSL *bs; local 475 BIO_SSL *bs; local [all...] |
/freebsd-11-stable/tests/sys/geom/class/mirror/ |
H A D | 2_test.sh | 15 dd if=/dev/random of=${src} bs=$ddbs count=$nblocks2 >/dev/null 2>&1 24 dd if=${src} of=/dev/mirror/${name} bs=$ddbs count=$nblocks2 >/dev/null 2>&1 26 dd if=/dev/mirror/${name} of=${dst} bs=$ddbs count=$nblocks2 >/dev/null 2>&1 32 dd if=/dev/${us0} of=${dst} bs=$ddbs count=$nblocks2 >/dev/null 2>&1 38 dd if=/dev/${us1} of=${dst} bs=$ddbs count=$nblocks2 >/dev/null 2>&1 45 dd if=/dev/${us2} of=${dst} bs=$ddbs count=$nblocks2 >/dev/null 2>&1
|
H A D | 8_test.sh | 14 dd if=/dev/zero of=$m1 bs=$ddbs count=1024 >/dev/null 2>&1 15 dd if=/dev/zero of=$m2 bs=$ddbs count=1024 >/dev/null 2>&1 27 dd if=/dev/zero bs=$ddbs count=1 >&9 2>/dev/null 32 dd if=/dev/random of=$m1 bs=$ddbs count=1 conv=notrunc >/dev/null 2>&1
|
H A D | 6_test.sh | 15 dd if=/dev/random of=${src} bs=$ddbs count=$nblocks2 >/dev/null 2>&1 24 dd if=${src} of=/dev/mirror/${name} bs=$ddbs count=$nblocks2 >/dev/null 2>&1 25 dd if=/dev/zero of=/dev/${us2} bs=$ddbs count=$nblocks2 >/dev/null 2>&1 27 dd if=/dev/mirror/${name} of=${dst} bs=$ddbs count=$nblocks2 >/dev/null 2>&1 38 dd if=/dev/${us2} of=${dst} bs=$ddbs count=$nblocks2 >/dev/null 2>&1
|
/freebsd-11-stable/bin/dd/tests/ |
H A D | dd2_test.sh | 47 atf_check -s exit:0 -e ignore dd if=f.in of=f.out bs=4096 seek=$seek 60 dd if=f.in of=f.out bs=4096 seek=$seek 62 dd if=f.in of=f.out bs=4096 seek=-1
|
/freebsd-11-stable/sys/arm/xscale/i8134x/ |
H A D | i81342_space.c | 69 i81342_bs_init(bus_space_tag_t bs, void *cookie) argument 72 *bs = *arm_base_bs_tag; 73 bs->bs_privdata = cookie; 77 i81342_io_bs_init(bus_space_tag_t bs, void *cookie) argument 80 *bs = *arm_base_bs_tag; 81 bs->bs_privdata = cookie; 83 bs->bs_map = i81342_io_bs_map; 84 bs->bs_unmap = i81342_io_bs_unmap; 85 bs->bs_alloc = i81342_io_bs_alloc; 86 bs 91 i81342_mem_bs_init(bus_space_tag_t bs, void *cookie) argument [all...] |
/freebsd-11-stable/lib/libc/locale/ |
H A D | big5.c | 107 _BIG5State *bs; local 111 bs = (_BIG5State *)ps; 113 if ((bs->ch & ~0xFF) != 0) { 129 if (bs->ch != 0) { 134 wc = (bs->ch << 8) | (*s & 0xFF); 137 bs->ch = 0; 146 bs->ch = wc; 167 _BIG5State *bs; local 169 bs = (_BIG5State *)ps; 171 if (bs [all...] |