/freebsd-13-stable/sys/geom/virstor/ |
H A D | binstream.c | 41 bs_open(bin_stream_t * bs, void *data) argument 43 bs->data = (char *)data; 44 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 69 bs_write_buf(bin_stream_t * bs, char *data, unsigned data_size) argument 80 bs_write_u8(bin_stream_t * bs, uint8_t data) argument 88 bs_write_u16(bin_stream_t * bs, uint16_t data) argument 96 bs_write_u32(bin_stream_t * bs, uint32_t data) argument 104 bs_write_u64(bin_stream_t * bs, uint64_t data) argument 112 bs_read_u8(bin_stream_t * bs) argument 125 bs_read_str(bin_stream_t * bs, char *buf, unsigned buf_size) argument 141 bs_read_buf(bin_stream_t * bs, char *buf, unsigned buf_size) argument 151 bs_read_u16(bin_stream_t * bs) argument 160 bs_read_u32(bin_stream_t * bs) argument 169 bs_read_u64(bin_stream_t * bs) argument [all...] |
H A D | g_virstor_md.c | 45 bin_stream_t bs; local 47 bs_open(&bs, data); 49 bs_write_buf(&bs, md->md_magic, sizeof(md->md_magic)); 50 bs_write_u32(&bs, md->md_version); 51 bs_write_buf(&bs, md->md_name, sizeof(md->md_name)); 52 bs_write_u64(&bs, md->md_virsize); 53 bs_write_u32(&bs, md->md_chunk_size); 54 bs_write_u32(&bs, md->md_id); 55 bs_write_u16(&bs, md->md_count); 57 bs_write_buf(&bs, m 73 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); 52 unsigned bs_write_str(bin_stream_t * bs, char *data); 55 unsigned bs_write_buf(bin_stream_t * bs, char *data, unsigned data_size); 58 unsigned bs_write_u8(bin_stream_t * bs, uint8_t data); 61 unsigned bs_write_u16(bin_stream_t * bs, uint16_t data); 64 unsigned bs_write_u32(bin_stream_t * bs, uint32_t data); 67 unsigned bs_write_u64(bin_stream_t * bs, uint64_t data); 74 char *bs_read_str(bin_stream_t * bs, char *buf, unsigned buf_size); 77 void bs_read_buf(bin_stream_t * bs, cha [all...] |
/freebsd-13-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-13-stable/sys/dev/xen/balloon/ |
H A D | balloon.c | 79 #define bs balloon_stats macro 86 &bs.current_pages, 0, "Current allocation"); 88 &bs.target_pages, 0, "Target allocation"); 90 &bs.driver_pages, 0, "Driver pages"); 92 &bs.hard_limit, 0, "Xen hard limit"); 94 &bs.balloon_low, 0, "Low-mem balloon"); 96 &bs.balloon_high, 0, "High-mem balloon"); 112 unsigned long target = min(bs.target_pages, bs.hard_limit); 113 if (target > (bs [all...] |
/freebsd-13-stable/sys/dev/ath/ath_hal/ar5210/ |
H A D | ar5210_beacon.c | 118 ar5210SetStaBeaconTimers(struct ath_hal *ah, const HAL_BEACON_STATE *bs) argument 124 HALASSERT(bs->bs_intval != 0); 126 if (bs->bs_cfpmaxduration != 0) { 133 OS_REG_WRITE(ah, AR_CFP_PERIOD, bs->bs_cfpperiod); 136 OS_REG_WRITE(ah, AR_CFP_DUR, bs->bs_cfpmaxduration); 139 OS_REG_WRITE(ah, AR_TIMER2, bs->bs_cfpnext << 3); 149 OS_REG_WRITE(ah, AR_TIMER0, bs->bs_nexttbtt); 160 | SM(bs->bs_intval, AR_BEACON_PERIOD) 161 | SM(bs->bs_timoffset ? bs [all...] |
/freebsd-13-stable/crypto/openssl/crypto/asn1/ |
H A D | t_bitst.c | 15 int ASN1_BIT_STRING_name_print(BIO *out, ASN1_BIT_STRING *bs, argument 22 if (ASN1_BIT_STRING_get_bit(bs, bnam->bitnum)) { 33 int ASN1_BIT_STRING_set_asc(ASN1_BIT_STRING *bs, const char *name, int value, argument 40 if (bs) { 41 if (!ASN1_BIT_STRING_set_bit(bs, bitnum, value))
|
/freebsd-13-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-13-stable/sys/dev/ath/ath_hal/ar5211/ |
H A D | ar5211_beacon.c | 124 ar5211SetStaBeaconTimers(struct ath_hal *ah, const HAL_BEACON_STATE *bs) argument 130 HALASSERT(bs->bs_intval != 0); 132 if (bs->bs_cfpmaxduration != 0) { 138 OS_REG_WRITE(ah, AR_CFP_PERIOD, bs->bs_cfpperiod); 141 OS_REG_WRITE(ah, AR_CFP_DUR, bs->bs_cfpmaxduration); 144 OS_REG_WRITE(ah, AR_TIMER2, bs->bs_cfpnext << 3); 154 OS_REG_WRITE(ah, AR_TIMER0, bs->bs_nexttbtt); 165 | SM(bs->bs_intval, AR_BEACON_PERIOD) 166 | SM(bs->bs_timoffset ? bs [all...] |
/freebsd-13-stable/sys/net/ |
H A D | bridgestp.c | 155 bstp_transmit(struct bstp_state *bs, struct bstp_port *bp) argument 159 if (bs->bs_running == 0) 168 bstp_hello_timer_expiry(bs, bp); 171 if (bp->bp_txcount > bs->bs_txholdcount) 176 bstp_transmit_bpdu(bs, bp); 181 bstp_transmit_bpdu(bs, bp); 186 bstp_transmit_tcn(bs, bp); 195 bstp_transmit_bpdu(struct bstp_state *bs, struct bstp_port *bp) argument 199 BSTP_LOCK_ASSERT(bs); 227 bstp_send_bpdu(bs, b 231 bstp_transmit_tcn(struct bstp_state *bs, struct bstp_port *bp) argument 343 bstp_send_bpdu(struct bstp_state *bs, struct bstp_port *bp, struct bstp_cbpdu *bpdu) argument 459 struct bstp_state *bs = bp->bp_bs; local 534 bstp_received_stp(struct bstp_state *bs, struct bstp_port *bp, struct mbuf **mp, struct bstp_tbpdu *tpdu) argument 559 bstp_received_rstp(struct bstp_state *bs, struct bstp_port *bp, struct mbuf **mp, struct bstp_tbpdu *tpdu) argument 578 bstp_received_tcn(struct bstp_state *bs, struct bstp_port *bp, struct bstp_tcn_unit *tcn) argument 586 bstp_received_bpdu(struct bstp_state *bs, struct bstp_port *bp, struct bstp_config_unit *cu) argument 801 bstp_assign_roles(struct bstp_state *bs) argument 919 bstp_update_state(struct bstp_state *bs, struct bstp_port *bp) argument 944 bstp_update_roles(struct bstp_state *bs, struct bstp_port *bp) argument 1157 struct bstp_state *bs = bp->bp_bs; local 1186 struct bstp_state *bs = bp->bp_bs; local 1199 bstp_set_all_reroot(struct bstp_state *bs) argument 1210 bstp_set_all_sync(struct bstp_state *bs) argument 1264 struct bstp_state *bs = bp->bp_bs; local 1338 struct bstp_state *bs = bp->bp_bs; local 1369 struct bstp_state *bs = bp->bp_bs; local 1445 struct bstp_state *bs = bp->bp_bs; local 1477 bstp_rerooted(struct bstp_state *bs, struct bstp_port *bp) argument 1494 bstp_set_htime(struct bstp_state *bs, int t) argument 1514 bstp_set_fdelay(struct bstp_state *bs, int t) argument 1530 bstp_set_maxage(struct bstp_state *bs, int t) argument 1546 bstp_set_holdcount(struct bstp_state *bs, int count) argument 1563 bstp_set_protocol(struct bstp_state *bs, int proto) argument 1595 bstp_set_priority(struct bstp_state *bs, int pri) argument 1613 struct bstp_state *bs = bp->bp_bs; local 1631 struct bstp_state *bs = bp->bp_bs; local 1657 struct bstp_state *bs = bp->bp_bs; local 1671 struct bstp_state *bs = bp->bp_bs; local 1688 struct bstp_state *bs = bp->bp_bs; local 1699 struct bstp_state *bs = bp->bp_bs; local 1755 struct bstp_state *bs = bp->bp_bs; local 1769 struct bstp_state *bs = bp->bp_bs; local 1797 struct bstp_state *bs = bp->bp_bs; local 1812 struct bstp_state *bs = bp->bp_bs; local 1873 bstp_enable_port(struct bstp_state *bs, struct bstp_port *bp) argument 1879 bstp_disable_port(struct bstp_state *bs, struct bstp_port *bp) argument 1888 struct bstp_state *bs = arg; local 1977 bstp_hello_timer_expiry(struct bstp_state *bs, struct bstp_port *bp) argument 1990 bstp_message_age_expiry(struct bstp_state *bs, struct bstp_port *bp) argument 2000 bstp_migrate_delay_expiry(struct bstp_state *bs, struct bstp_port *bp) argument 2006 bstp_edge_delay_expiry(struct bstp_state *bs, struct bstp_port *bp) argument 2047 bstp_reinit(struct bstp_state *bs) argument 2163 bstp_attach(struct bstp_state *bs, struct bstp_cb_ops *cb) argument 2189 bstp_detach(struct bstp_state *bs) argument 2201 bstp_init(struct bstp_state *bs) argument 2211 bstp_stop(struct bstp_state *bs) argument 2226 bstp_create(struct bstp_state *bs, struct bstp_port *bp, struct ifnet *ifp) argument 2253 struct bstp_state *bs = bp->bp_bs; local 2281 struct bstp_state *bs = bp->bp_bs; local [all...] |
/freebsd-13-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-13-stable/sys/dev/ath/ath_hal/ar5212/ |
H A D | ar5212_beacon.c | 148 ar5212SetStaBeaconTimers(struct ath_hal *ah, const HAL_BEACON_STATE *bs) argument 153 HALASSERT(bs->bs_intval != 0); 155 if (bs->bs_cfpmaxduration != 0) { 161 OS_REG_WRITE(ah, AR_CFP_PERIOD, bs->bs_cfpperiod); 164 OS_REG_WRITE(ah, AR_CFP_DUR, bs->bs_cfpmaxduration); 167 OS_REG_WRITE(ah, AR_TIMER2, bs->bs_cfpnext << 3); 177 OS_REG_WRITE(ah, AR_TIMER0, bs->bs_nexttbtt); 188 | SM(bs->bs_intval, AR_BEACON_PERIOD) 189 | SM(bs->bs_timoffset ? bs [all...] |
/freebsd-13-stable/release/arm64/ |
H A D | ROCK64.conf | 23 of=/dev/${mddev} bs=512 seek=64 conv=sync 25 of=/dev/${mddev} bs=512 seek=16384 conv=sync
|
H A D | ROCKPRO64.conf | 23 of=/dev/${mddev} bs=512 seek=64 conv=sync 25 of=/dev/${mddev} bs=512 seek=16384 conv=sync
|
/freebsd-13-stable/usr.sbin/bsdinstall/scripts/ |
H A D | entropy | 32 dd if=/dev/random of="$i" bs=4096 count=1
|
/freebsd-13-stable/crypto/openssl/ssl/ |
H A D | bio_ssl.c | 58 BIO_SSL *bs = OPENSSL_zalloc(sizeof(*bs)); local 60 if (bs == NULL) { 65 BIO_set_data(bi, bs); 74 BIO_SSL *bs; local 78 bs = BIO_get_data(a); 79 if (bs->ssl != NULL) 80 SSL_shutdown(bs->ssl); 83 SSL_free(bs->ssl); 88 OPENSSL_free(bs); 167 BIO_SSL *bs; local 227 BIO_SSL *bs, *dbs; local 397 BIO_SSL *bs; local [all...] |
/freebsd-13-stable/crypto/openssl/crypto/x509v3/ |
H A D | v3_bitst.c | 63 ASN1_BIT_STRING *bs; local 66 if ((bs = ASN1_BIT_STRING_new()) == NULL) { 75 if (!ASN1_BIT_STRING_set_bit(bs, bnam->bitnum, 1)) { 78 ASN1_BIT_STRING_free(bs); 88 ASN1_BIT_STRING_free(bs); 92 return bs;
|
/freebsd-13-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...] |
/freebsd-13-stable/sys/dev/ath/ath_hal/ar5416/ |
H A D | ar5416_beacon.c | 153 ar5416SetStaBeaconTimers(struct ath_hal *ah, const HAL_BEACON_STATE *bs) argument 157 HALASSERT(bs->bs_intval != 0); 161 OS_REG_WRITE(ah, AR_NEXT_TBTT, TU_TO_USEC(bs->bs_nexttbtt)); 169 TU_TO_USEC(bs->bs_intval & HAL_BEACON_PERIOD)); 171 TU_TO_USEC(bs->bs_intval & HAL_BEACON_PERIOD)); 178 HALASSERT(bs->bs_bmissthreshold <= 181 AR_RSSI_THR_BM_THR, bs->bs_bmissthreshold); 231 beaconintval = bs->bs_intval & HAL_BEACON_PERIOD; 233 if (bs->bs_sleepduration > beaconintval) { 234 HALASSERT(roundup(bs [all...] |
/freebsd-13-stable/contrib/bearssl/src/mac/ |
H A D | hmac_ct.c | 61 * bs block size (always a power of 2) 68 uint32_t po, bs; local 88 bs = block_size(dig); 102 ncount = (count + (uint64_t)min_len) & ~(uint64_t)(bs - 1); 132 kr = (uint32_t)count & (bs - 1); 133 kz = ((kr + (uint32_t)len + po + bs - 1) & ~(bs - 1)) - 1 - kr; 135 km = ((kr + (uint32_t)max_len + po + bs - 1) & ~(bs - 1)) - kr; 160 v = (kr + u) & (bs [all...] |
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_initialize/ |
H A D | zpool_initialize_verify_initialized.ksh | 66 bs=512 81 dd if=$SMALLFILE skip=$((offset / bs)) count=$((size / bs)) bs=$bs |
|
/freebsd-13-stable/crypto/openssl/crypto/ocsp/ |
H A D | ocsp_cl.c | 165 const ASN1_OCTET_STRING *OCSP_resp_get0_signature(const OCSP_BASICRESP *bs) argument 167 return bs->signature; 170 const X509_ALGOR *OCSP_resp_get0_tbs_sigalg(const OCSP_BASICRESP *bs) argument 172 return &bs->signatureAlgorithm; 175 const OCSP_RESPDATA *OCSP_resp_get0_respdata(const OCSP_BASICRESP *bs) argument 177 return &bs->tbsResponseData; 184 int OCSP_resp_count(OCSP_BASICRESP *bs) argument 186 if (!bs) 188 return sk_OCSP_SINGLERESP_num(bs->tbsResponseData.responses); 193 OCSP_SINGLERESP *OCSP_resp_get0(OCSP_BASICRESP *bs, in argument 200 OCSP_resp_get0_produced_at(const OCSP_BASICRESP* bs) argument 210 OCSP_resp_get0_id(const OCSP_BASICRESP *bs, const ASN1_OCTET_STRING **pid, const X509_NAME **pname) argument 228 OCSP_resp_get1_id(const OCSP_BASICRESP *bs, ASN1_OCTET_STRING **pid, X509_NAME **pname) argument 250 OCSP_resp_find(OCSP_BASICRESP *bs, OCSP_CERTID *id, int last) argument 310 OCSP_resp_find_status(OCSP_BASICRESP *bs, OCSP_CERTID *id, int *status, int *reason, ASN1_GENERALIZEDTIME **revtime, ASN1_GENERALIZEDTIME **thisupd, ASN1_GENERALIZEDTIME **nextupd) argument [all...] |
/freebsd-13-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-13-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-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/devices/ |
H A D | devices_002_neg.ksh | 62 log_mustnot dd if=/dev/urandom of=$TESTDIR/$TESTFILE1 count=1 bs=128k 63 log_mustnot dd if=$TESTDIR/$TESTFILE1 of=/dev/null count=1 bs=128k 68 log_mustnot dd if=/dev/urandom of=$TESTDIR/$TESTFILE2 count=1 bs=128k
|