Searched refs:bs (Results 1 - 25 of 654) sorted by relevance

1234567891011>>

/freebsd-current/sys/geom/virstor/
H A Dbinstream.c39 bs_open(bin_stream_t * bs, void *data) argument
41 bs->data = (char *)data;
42 bs->pos = 0;
47 bs_reset(bin_stream_t * bs) argument
49 bs->pos = 0;
54 bs_write_str(bin_stream_t * bs, char *data) argument
58 *(bs->data + bs->pos + len) = *data;
61 bs->pos += len;
62 return bs
67 bs_write_buf(bin_stream_t * bs, char *data, unsigned data_size) argument
78 bs_write_u8(bin_stream_t * bs, uint8_t data) argument
86 bs_write_u16(bin_stream_t * bs, uint16_t data) argument
94 bs_write_u32(bin_stream_t * bs, uint32_t data) argument
102 bs_write_u64(bin_stream_t * bs, uint64_t data) argument
110 bs_read_u8(bin_stream_t * bs) argument
123 bs_read_str(bin_stream_t * bs, char *buf, unsigned buf_size) argument
139 bs_read_buf(bin_stream_t * bs, char *buf, unsigned buf_size) argument
149 bs_read_u16(bin_stream_t * bs) argument
158 bs_read_u32(bin_stream_t * bs) argument
167 bs_read_u64(bin_stream_t * bs) argument
[all...]
H A Dg_virstor_md.c42 bin_stream_t bs; local
44 bs_open(&bs, data);
46 bs_write_buf(&bs, md->md_magic, sizeof(md->md_magic));
47 bs_write_u32(&bs, md->md_version);
48 bs_write_buf(&bs, md->md_name, sizeof(md->md_name));
49 bs_write_u64(&bs, md->md_virsize);
50 bs_write_u32(&bs, md->md_chunk_size);
51 bs_write_u32(&bs, md->md_id);
52 bs_write_u16(&bs, md->md_count);
54 bs_write_buf(&bs, m
70 bin_stream_t bs; local
[all...]
H A Dbinstream.h44 void bs_open (bin_stream_t * bs, void *data);
47 void bs_reset (bin_stream_t * bs);
50 unsigned bs_write_str(bin_stream_t * bs, char *data);
53 unsigned bs_write_buf(bin_stream_t * bs, char *data, unsigned data_size);
56 unsigned bs_write_u8(bin_stream_t * bs, uint8_t data);
59 unsigned bs_write_u16(bin_stream_t * bs, uint16_t data);
62 unsigned bs_write_u32(bin_stream_t * bs, uint32_t data);
65 unsigned bs_write_u64(bin_stream_t * bs, uint64_t data);
72 char *bs_read_str(bin_stream_t * bs, char *buf, unsigned buf_size);
75 void bs_read_buf(bin_stream_t * bs, cha
[all...]
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/mmap/
H A Dmmap_mixed.ksh53 bs=$((128 * 1024))
55 size=$((bs * blocks))
58 log_must dd if=/dev/zero of=$tmp_file bs=$bs count=$blocks
62 --rw=randwrite --size=$size --bs=$bs --direct=0 --numjobs=1 \
68 --rw=randread --size=$size --bs=$bs --direct=0 --numjobs=1 \
74 --rw=randwrite --size=$size --bs=$bs
[all...]
/freebsd-current/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_beacon.c83 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-current/sys/dev/xen/balloon/
H A Dballoon.c76 #define bs balloon_stats macro
83 &bs.current_pages, 0, "Current allocation");
85 &bs.target_pages, 0, "Target allocation");
87 &bs.driver_pages, 0, "Driver pages");
89 &bs.hard_limit, 0, "Xen hard limit");
91 &bs.balloon_low, 0, "Low-mem balloon");
93 &bs.balloon_high, 0, "High-mem balloon");
109 unsigned long target = min(bs.target_pages, bs.hard_limit);
110 if (target > (bs
[all...]
/freebsd-current/tools/test/stress2/misc/
H A Drandom.sh35 dd if=/dev/random of=/dev/null bs=$i count=1 status=none
H A Dnewfs6.sh44 bs=4096
45 while [ $bs -le 65536 ]; do
47 fragsize=$((bs / i))
48 echo "newfs $opt -b $bs -f $fragsize md$mdstart "
49 newfs $opt -b $bs -f $fragsize \
59 bs=$((bs * 2))
/freebsd-current/sys/dev/ath/ath_hal/ar5210/
H A Dar5210_beacon.c116 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-current/crypto/openssl/crypto/asn1/
H A Dt_bitst.c15 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-current/contrib/netbsd-tests/include/
H A Dt_bitstring.c67 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-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/append/
H A Dfile_append.ksh48 bs=131072
55 expected=$((expected + ( bs * num_blocks)))
56 log_must file_append -f $filename -e $expected -b $bs -n $num_blocks
67 expected=$((expected + ( bs * num_blocks)))
68 log_must file_append -f $filename -e $expected -b $bs -n $num_blocks -d
/freebsd-current/sys/dev/ath/ath_hal/ar5211/
H A Dar5211_beacon.c122 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-current/sys/net/
H A Dbridgestp.c153 bstp_transmit(struct bstp_state *bs, struct bstp_port *bp) argument
157 if (bs->bs_running == 0)
166 bstp_hello_timer_expiry(bs, bp);
169 if (bp->bp_txcount > bs->bs_txholdcount)
174 bstp_transmit_bpdu(bs, bp);
179 bstp_transmit_bpdu(bs, bp);
184 bstp_transmit_tcn(bs, bp);
193 bstp_transmit_bpdu(struct bstp_state *bs, struct bstp_port *bp) argument
197 BSTP_LOCK_ASSERT(bs);
225 bstp_send_bpdu(bs, b
229 bstp_transmit_tcn(struct bstp_state *bs, struct bstp_port *bp) argument
341 bstp_send_bpdu(struct bstp_state *bs, struct bstp_port *bp, struct bstp_cbpdu *bpdu) argument
457 struct bstp_state *bs = bp->bp_bs; local
532 bstp_received_stp(struct bstp_state *bs, struct bstp_port *bp, struct mbuf **mp, struct bstp_tbpdu *tpdu) argument
557 bstp_received_rstp(struct bstp_state *bs, struct bstp_port *bp, struct mbuf **mp, struct bstp_tbpdu *tpdu) argument
576 bstp_received_tcn(struct bstp_state *bs, struct bstp_port *bp, struct bstp_tcn_unit *tcn) argument
584 bstp_received_bpdu(struct bstp_state *bs, struct bstp_port *bp, struct bstp_config_unit *cu) argument
799 bstp_assign_roles(struct bstp_state *bs) argument
917 bstp_update_state(struct bstp_state *bs, struct bstp_port *bp) argument
942 bstp_update_roles(struct bstp_state *bs, struct bstp_port *bp) argument
1155 struct bstp_state *bs = bp->bp_bs; local
1184 struct bstp_state *bs = bp->bp_bs; local
1197 bstp_set_all_reroot(struct bstp_state *bs) argument
1208 bstp_set_all_sync(struct bstp_state *bs) argument
1262 struct bstp_state *bs = bp->bp_bs; local
1336 struct bstp_state *bs = bp->bp_bs; local
1367 struct bstp_state *bs = bp->bp_bs; local
1443 struct bstp_state *bs = bp->bp_bs; local
1475 bstp_rerooted(struct bstp_state *bs, struct bstp_port *bp) argument
1492 bstp_set_htime(struct bstp_state *bs, int t) argument
1512 bstp_set_fdelay(struct bstp_state *bs, int t) argument
1528 bstp_set_maxage(struct bstp_state *bs, int t) argument
1544 bstp_set_holdcount(struct bstp_state *bs, int count) argument
1561 bstp_set_protocol(struct bstp_state *bs, int proto) argument
1593 bstp_set_priority(struct bstp_state *bs, int pri) argument
1611 struct bstp_state *bs = bp->bp_bs; local
1629 struct bstp_state *bs = bp->bp_bs; local
1655 struct bstp_state *bs = bp->bp_bs; local
1669 struct bstp_state *bs = bp->bp_bs; local
1686 struct bstp_state *bs = bp->bp_bs; local
1697 struct bstp_state *bs = bp->bp_bs; local
1753 struct bstp_state *bs = bp->bp_bs; local
1767 struct bstp_state *bs = bp->bp_bs; local
1795 struct bstp_state *bs = bp->bp_bs; local
1810 struct bstp_state *bs = bp->bp_bs; local
1871 bstp_enable_port(struct bstp_state *bs, struct bstp_port *bp) argument
1877 bstp_disable_port(struct bstp_state *bs, struct bstp_port *bp) argument
1886 struct bstp_state *bs = arg; local
1975 bstp_hello_timer_expiry(struct bstp_state *bs, struct bstp_port *bp) argument
1988 bstp_message_age_expiry(struct bstp_state *bs, struct bstp_port *bp) argument
1998 bstp_migrate_delay_expiry(struct bstp_state *bs, struct bstp_port *bp) argument
2004 bstp_edge_delay_expiry(struct bstp_state *bs, struct bstp_port *bp) argument
2045 bstp_reinit(struct bstp_state *bs) argument
2161 bstp_attach(struct bstp_state *bs, struct bstp_cb_ops *cb) argument
2187 bstp_detach(struct bstp_state *bs) argument
2199 bstp_init(struct bstp_state *bs) argument
2209 bstp_stop(struct bstp_state *bs) argument
2224 bstp_create(struct bstp_state *bs, struct bstp_port *bp, struct ifnet *ifp) argument
2251 struct bstp_state *bs = bp->bp_bs; local
2279 struct bstp_state *bs = bp->bp_bs; local
[all...]
/freebsd-current/contrib/bzip2/
H A Dbzip2recover.c156 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-current/contrib/libcbor/test/
H A Dbytestring_test.c12 cbor_item_t *bs; variable
137 bs = cbor_load(data1, 2, &res);
138 assert_non_null(bs);
139 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING);
140 assert_true(cbor_isa_bytestring(bs));
141 assert_size_equal(cbor_bytestring_length(bs), 0);
143 cbor_decref(&bs);
144 assert_null(bs);
148 bs = cbor_load(data2, 2, &res);
149 assert_non_null(bs);
[all...]
/freebsd-current/crypto/openssl/crypto/ocsp/
H A Docsp_cl.c141 const ASN1_OCTET_STRING *OCSP_resp_get0_signature(const OCSP_BASICRESP *bs) argument
143 return bs->signature;
146 const X509_ALGOR *OCSP_resp_get0_tbs_sigalg(const OCSP_BASICRESP *bs) argument
148 return &bs->signatureAlgorithm;
151 const OCSP_RESPDATA *OCSP_resp_get0_respdata(const OCSP_BASICRESP *bs) argument
153 return &bs->tbsResponseData;
158 int OCSP_resp_count(OCSP_BASICRESP *bs) argument
160 if (bs == NULL)
162 return sk_OCSP_SINGLERESP_num(bs->tbsResponseData.responses);
166 OCSP_SINGLERESP *OCSP_resp_get0(OCSP_BASICRESP *bs, in argument
173 OCSP_resp_get0_produced_at(const OCSP_BASICRESP *bs) argument
183 OCSP_resp_get0_id(const OCSP_BASICRESP *bs, const ASN1_OCTET_STRING **pid, const X509_NAME **pname) argument
201 OCSP_resp_get1_id(const OCSP_BASICRESP *bs, ASN1_OCTET_STRING **pid, X509_NAME **pname) argument
222 OCSP_resp_find(OCSP_BASICRESP *bs, OCSP_CERTID *id, int last) argument
283 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-current/sys/dev/ath/ath_hal/ar5212/
H A Dar5212_beacon.c146 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-current/release/arm64/
H A DROCKPRO64.conf22 of=/dev/${mddev} bs=512 seek=64 conv=sync
24 of=/dev/${mddev} bs=512 seek=16384 conv=sync
H A DROCK64.conf22 of=/dev/${mddev} bs=512 seek=64 conv=sync
24 of=/dev/${mddev} bs=512 seek=16384 conv=sync
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/no_space/
H A Denospc_ganging.ksh40 bs=1024k
43 log_must dd if=/dev/urandom of=$TESTDIR/data bs=$bs count=$count
50 log_must dd if=$TESTDIR/data of=$mntpnt/file bs=$bs count=$count
52 log_must dd if=$mntpnt/file of=$TESTDIR/out bs=$bs count=$count
74 log_must dd if=$TESTDIR/data of=$mntpnt/file bs=$bs count=$count
76 log_must dd if=$mntpnt/file of=$TESTDIR/out bs
[all...]
/freebsd-current/usr.sbin/bsdinstall/scripts/
H A Dentropy31 dd if=/dev/random of="$i" bs=4096 count=1
/freebsd-current/crypto/openssl/ssl/
H A Dbio_ssl.c58 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);
80 if (bs->ssl != NULL)
81 SSL_shutdown(bs->ssl);
83 SSL_free(bs->ssl);
87 OPENSSL_free(bs);
166 BIO_SSL *bs; local
226 BIO_SSL *bs, *dbs; local
396 BIO_SSL *bs; local
[all...]
/freebsd-current/crypto/openssl/crypto/x509/
H A Dv3_bitst.c63 ASN1_BIT_STRING *bs; local
66 if ((bs = ASN1_BIT_STRING_new()) == NULL) {
75 if (!ASN1_BIT_STRING_set_bit(bs, bnam->bitnum, 1)) {
77 ASN1_BIT_STRING_free(bs);
86 ASN1_BIT_STRING_free(bs);
90 return bs;
/freebsd-current/tests/sys/geom/class/eli/
H A Dintegrity_test.sh16 atf_check dd if=rnd of=/dev/${md}.eli bs=${secsize} count=1 status=none
20 atf_check dd if=backing_file of=sector bs=512 count=1 \
22 atf_check dd if=sector of=backing_file bs=512 count=1 seek=1 \
26 dd if=/dev/${md}.eli of=/dev/null bs=${secsize} count=1
29 atf_check dd if=rnd of=/dev/${md}.eli bs=${secsize} count=2 status=none
30 atf_check dd if=/dev/${md}.eli of=/dev/null bs=${secsize} count=2 \
38 atf_check dd if=backing_file bs=512 count=$(( ${usecsize} / 512 )) \
40 atf_check dd of=backing_file bs=512 count=$(( ${usecsize} / 512 )) \
43 dd if=/dev/${md}.eli of=/dev/null bs=${secsize} count=$ns
59 atf_check dd if=/dev/random of=keyfile bs
[all...]

Completed in 147 milliseconds

1234567891011>>