/freebsd-10-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-10-stable/usr.sbin/bsdinstall/scripts/ |
H A D | entropy | 29 dd if=/dev/random of=$BSDINSTALL_CHROOT/entropy bs=4096 count=1
|
/freebsd-10-stable/sys/net/ |
H A D | bridgestp.c | 151 bstp_transmit(struct bstp_state *bs, struct bstp_port *bp) argument 153 if (bs->bs_running == 0) 162 bstp_hello_timer_expiry(bs, bp); 165 if (bp->bp_txcount > bs->bs_txholdcount) 170 bstp_transmit_bpdu(bs, bp); 175 bstp_transmit_bpdu(bs, bp); 180 bstp_transmit_tcn(bs, bp); 189 bstp_transmit_bpdu(struct bstp_state *bs, struct bstp_port *bp) argument 193 BSTP_LOCK_ASSERT(bs); 221 bstp_send_bpdu(bs, b 225 bstp_transmit_tcn(struct bstp_state *bs, struct bstp_port *bp) argument 337 bstp_send_bpdu(struct bstp_state *bs, struct bstp_port *bp, struct bstp_cbpdu *bpdu) argument 452 struct bstp_state *bs = bp->bp_bs; local 527 bstp_received_stp(struct bstp_state *bs, struct bstp_port *bp, struct mbuf **mp, struct bstp_tbpdu *tpdu) argument 552 bstp_received_rstp(struct bstp_state *bs, struct bstp_port *bp, struct mbuf **mp, struct bstp_tbpdu *tpdu) argument 571 bstp_received_tcn(struct bstp_state *bs, struct bstp_port *bp, struct bstp_tcn_unit *tcn) argument 579 bstp_received_bpdu(struct bstp_state *bs, struct bstp_port *bp, struct bstp_config_unit *cu) argument 777 bstp_assign_roles(struct bstp_state *bs) argument 896 bstp_update_state(struct bstp_state *bs, struct bstp_port *bp) argument 921 bstp_update_roles(struct bstp_state *bs, struct bstp_port *bp) argument 1132 struct bstp_state *bs = bp->bp_bs; local 1161 struct bstp_state *bs = bp->bp_bs; local 1174 bstp_set_all_reroot(struct bstp_state *bs) argument 1185 bstp_set_all_sync(struct bstp_state *bs) argument 1239 struct bstp_state *bs = bp->bp_bs; local 1313 struct bstp_state *bs = bp->bp_bs; local 1344 struct bstp_state *bs = bp->bp_bs; local 1420 struct bstp_state *bs = bp->bp_bs; local 1452 bstp_rerooted(struct bstp_state *bs, struct bstp_port *bp) argument 1469 bstp_set_htime(struct bstp_state *bs, int t) argument 1489 bstp_set_fdelay(struct bstp_state *bs, int t) argument 1505 bstp_set_maxage(struct bstp_state *bs, int t) argument 1521 bstp_set_holdcount(struct bstp_state *bs, int count) argument 1538 bstp_set_protocol(struct bstp_state *bs, int proto) argument 1570 bstp_set_priority(struct bstp_state *bs, int pri) argument 1588 struct bstp_state *bs = bp->bp_bs; local 1606 struct bstp_state *bs = bp->bp_bs; local 1632 struct bstp_state *bs = bp->bp_bs; local 1646 struct bstp_state *bs = bp->bp_bs; local 1663 struct bstp_state *bs = bp->bp_bs; local 1674 struct bstp_state *bs = bp->bp_bs; local 1730 struct bstp_state *bs = bp->bp_bs; local 1744 struct bstp_state *bs = bp->bp_bs; local 1772 struct bstp_state *bs = bp->bp_bs; local 1787 struct bstp_state *bs = bp->bp_bs; local 1848 bstp_enable_port(struct bstp_state *bs, struct bstp_port *bp) argument 1854 bstp_disable_port(struct bstp_state *bs, struct bstp_port *bp) argument 1862 struct bstp_state *bs = arg; local 1949 bstp_hello_timer_expiry(struct bstp_state *bs, struct bstp_port *bp) argument 1962 bstp_message_age_expiry(struct bstp_state *bs, struct bstp_port *bp) argument 1972 bstp_migrate_delay_expiry(struct bstp_state *bs, struct bstp_port *bp) argument 1978 bstp_edge_delay_expiry(struct bstp_state *bs, struct bstp_port *bp) argument 2019 bstp_reinit(struct bstp_state *bs) argument 2134 bstp_attach(struct bstp_state *bs, struct bstp_cb_ops *cb) argument 2160 bstp_detach(struct bstp_state *bs) argument 2172 bstp_init(struct bstp_state *bs) argument 2182 bstp_stop(struct bstp_state *bs) argument 2197 bstp_create(struct bstp_state *bs, struct bstp_port *bp, struct ifnet *ifp) argument 2224 struct bstp_state *bs = bp->bp_bs; local 2250 struct bstp_state *bs = bp->bp_bs; local [all...] |
/freebsd-10-stable/sys/contrib/dev/ath/ath_hal/ar9300/ |
H A D | ar9300_beacon.c | 74 ar9300_set_sta_beacon_timers(struct ath_hal *ah, const HAL_BEACON_STATE *bs) argument 79 HALASSERT(bs->bs_intval != 0); 82 OS_REG_WRITE(ah, AR_NEXT_TBTT_TIMER, TU_TO_USEC(bs->bs_nexttbtt)); 90 TU_TO_USEC(bs->bs_intval & HAL_BEACON_PERIOD)); 92 TU_TO_USEC(bs->bs_intval & HAL_BEACON_PERIOD)); 98 HALASSERT(bs->bs_bmissthreshold <= 101 AR_RSSI_THR_BM_THR, bs->bs_bmissthreshold); 126 beaconintval = bs->bs_intval & HAL_BEACON_PERIOD; 128 if (bs->bs_sleepduration > beaconintval) { 129 HALASSERT(roundup(bs [all...] |
/freebsd-10-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-10-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-10-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-10-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-10-stable/sys/dev/xen/balloon/ |
H A D | balloon.c | 80 #define bs balloon_stats macro 85 &bs.current_pages, 0, "Current allocation"); 87 &bs.target_pages, 0, "Target allocation"); 89 &bs.driver_pages, 0, "Driver pages"); 91 &bs.hard_limit, 0, "Xen hard limit"); 93 &bs.balloon_low, 0, "Low-mem balloon"); 95 &bs.balloon_high, 0, "High-mem balloon"); 111 unsigned long target = min(bs.target_pages, bs.hard_limit); 112 if (target > (bs [all...] |
/freebsd-10-stable/sys/arm/xscale/i80321/ |
H A D | i80321_space.c | 68 i80321_bs_init(bus_space_tag_t bs, void *cookie) argument 71 *bs = *arm_base_bs_tag; 72 bs->bs_privdata = cookie; 76 i80321_io_bs_init(bus_space_tag_t bs, void *cookie) argument 79 *bs = *arm_base_bs_tag; 80 bs->bs_privdata = cookie; 82 bs->bs_map = i80321_io_bs_map; 83 bs->bs_unmap = i80321_io_bs_unmap; 84 bs->bs_alloc = i80321_io_bs_alloc; 85 bs 90 i80321_mem_bs_init(bus_space_tag_t bs, void *cookie) argument [all...] |
/freebsd-10-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-10-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-10-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-10-stable/lib/libc/locale/ |
H A D | big5.c | 101 _BIG5State *bs; local 105 bs = (_BIG5State *)ps; 107 if ((bs->ch & ~0xFF) != 0) { 123 if (bs->ch != 0) { 128 wc = (bs->ch << 8) | (*s & 0xFF); 131 bs->ch = 0; 140 bs->ch = wc; 161 _BIG5State *bs; local 163 bs = (_BIG5State *)ps; 165 if (bs [all...] |
/freebsd-10-stable/sys/dev/ct/ |
H A D | bshw_machdep.c | 85 struct bshw_softc *bs = ct->ct_hw; local 86 struct bshw *hw = bs->sc_hw; 104 struct bshw_softc *bs = ct->ct_hw; local 105 struct bshw *hw = bs->sc_hw; 149 bshw_read_settings(struct ct_bus_access_handle *chp, struct bshw_softc *bs) argument 153 bs->sc_hostid = (ct_cr_read_1(chp, wd3s_auxc) & AUXCR_HIDM); 154 bs->sc_irq = irq_tbl[(ct_cr_read_1(chp, wd3s_auxc) >> 3) & 7]; 155 bs->sc_drq = ct_cmdp_read_1(chp) & 3; 239 struct bshw_softc *bs = ct->ct_hw; local 253 if (count < bs 287 struct bshw_softc *bs = ct->ct_hw; local 391 struct bshw_softc *bs = ct->ct_hw; local 451 struct bshw_softc *bs = ct->ct_hw; local 523 struct bshw_softc *bs = ct->ct_hw; local 568 struct bshw_softc *bs = ct->ct_hw; local [all...] |
/freebsd-10-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); 210 beaconintval = bs->bs_intval & HAL_BEACON_PERIOD; 212 if (bs->bs_sleepduration > beaconintval) { 213 HALASSERT(roundup(bs [all...] |
/freebsd-10-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-10-stable/tests/sys/geom/class/eli/ |
H A D | setkey_test.sh | 18 dd if=/dev/random of=${rnd} bs=512 count=${sectors} >/dev/null 2>&1 19 hash1=`dd if=${rnd} bs=512 count=${sectors} 2>/dev/null | md5` 20 dd if=/dev/random of=${keyfile1} bs=512 count=16 >/dev/null 2>&1 21 dd if=/dev/random of=${keyfile2} bs=512 count=16 >/dev/null 2>&1 22 dd if=/dev/random of=${keyfile3} bs=512 count=16 >/dev/null 2>&1 23 dd if=/dev/random of=${keyfile4} bs=512 count=16 >/dev/null 2>&1 24 dd if=/dev/random of=${keyfile5} bs=512 count=16 >/dev/null 2>&1 29 dd if=${rnd} of=/dev/md${no}.eli bs=512 count=${sectors} 2>/dev/null 31 hash2=`dd if=/dev/md${no}.eli bs=512 count=${sectors} 2>/dev/null | md5` 57 hash3=`dd if=/dev/md${no}.eli bs [all...] |
H A D | integrity_copy_test.sh | 23 dd if=/dev/random of=/dev/md${no}.eli bs=${secsize} count=1 >/dev/null 2>&1 25 dd if=/dev/md${no}.eli bs=${secsize} count=1 >/dev/null 2>&1 36 dd if=/dev/md${no} of=${sector} bs=512 count=1 >/dev/null 2>&1 37 dd if=${sector} of=/dev/md${no} bs=512 count=1 seek=1 >/dev/null 2>&1 40 dd if=/dev/md${no}.eli of=/dev/null bs=${secsize} count=1 >/dev/null 2>&1 53 dd if=/dev/random of=/dev/md${no}.eli bs=${secsize} count=2 >/dev/null 2>&1 55 dd if=/dev/md${no}.eli bs=${secsize} count=2 >/dev/null 2>&1 66 dd if=/dev/md${no} of=${sector} bs=${usecsize} count=1 >/dev/null 2>&1 67 dd if=${sector} of=/dev/md${no} bs=${usecsize} count=1 seek=1 >/dev/null 2>&1 70 dd if=/dev/md${no}.eli of=/dev/null bs [all...] |
H A D | onetime_a_test.sh | 24 dd if=${rnd} of=/dev/md${no}.eli bs=${secsize} count=${secs} 2>/dev/null 26 md_rnd=`dd if=${rnd} bs=${secsize} count=${secs} 2>/dev/null | md5` 27 md_ddev=`dd if=/dev/md${no}.eli bs=${secsize} count=${secs} 2>/dev/null | md5` 41 dd if=/dev/random of=${rnd} bs=1024 count=1024 >/dev/null 2>&1
|
/freebsd-10-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
|
/freebsd-10-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-10-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...] |