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

12345678910

/freebsd-9.3-release/sys/geom/virstor/
H A Dbinstream.c40 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 Dg_virstor_md.c43 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 Dbinstream.h46 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-9.3-release/usr.sbin/bsdinstall/scripts/
H A Dentropy29 dd if=/dev/random of=$BSDINSTALL_CHROOT/entropy bs=4096 count=1
/freebsd-9.3-release/sys/dev/ath/ath_hal/ar5212/
H A Dar5212_beacon.c135 ar5212SetStaBeaconTimers(struct ath_hal *ah, const HAL_BEACON_STATE *bs) argument
140 HALASSERT(bs->bs_intval != 0);
142 if (bs->bs_cfpmaxduration != 0) {
148 OS_REG_WRITE(ah, AR_CFP_PERIOD, bs->bs_cfpperiod);
151 OS_REG_WRITE(ah, AR_CFP_DUR, bs->bs_cfpmaxduration);
154 OS_REG_WRITE(ah, AR_TIMER2, bs->bs_cfpnext << 3);
164 OS_REG_WRITE(ah, AR_TIMER0, bs->bs_nexttbtt);
175 | SM(bs->bs_intval, AR_BEACON_PERIOD)
176 | SM(bs->bs_timoffset ? bs
[all...]
/freebsd-9.3-release/sys/net/
H A Dbridgestp.c151 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-9.3-release/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-9.3-release/crypto/openssl/crypto/asn1/
H A Dt_bitst.c65 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-9.3-release/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-9.3-release/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-9.3-release/crypto/openssl/crypto/x509v3/
H A Dv3_bitst.c112 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-9.3-release/lib/libc/locale/
H A Dbig5.c101 _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-9.3-release/sys/dev/ct/
H A Dbshw_machdep.c119 struct bshw_softc *bs = ct->ct_hw; local
120 struct bshw *hw = bs->sc_hw;
138 struct bshw_softc *bs = ct->ct_hw; local
139 struct bshw *hw = bs->sc_hw;
182 bshw_read_settings(struct ct_bus_access_handle *chp, struct bshw_softc *bs) argument
186 bs->sc_hostid = (ct_cr_read_1(chp, wd3s_auxc) & AUXCR_HIDM);
187 bs->sc_irq = irq_tbl[(ct_cr_read_1(chp, wd3s_auxc) >> 3) & 7];
188 bs->sc_drq = ct_cmdp_read_1(chp) & 3;
272 struct bshw_softc *bs = ct->ct_hw; local
286 if (count < bs
319 struct bshw_softc *bs = ct->ct_hw; local
423 struct bshw_softc *bs = ct->ct_hw; local
483 struct bshw_softc *bs = ct->ct_hw; local
554 struct bshw_softc *bs = ct->ct_hw; local
599 struct bshw_softc *bs = ct->ct_hw; local
[all...]
/freebsd-9.3-release/sys/dev/ath/ath_hal/ar5416/
H A Dar5416_beacon.c149 ar5416SetStaBeaconTimers(struct ath_hal *ah, const HAL_BEACON_STATE *bs) argument
153 HALASSERT(bs->bs_intval != 0);
157 OS_REG_WRITE(ah, AR_NEXT_TBTT, TU_TO_USEC(bs->bs_nexttbtt));
165 TU_TO_USEC(bs->bs_intval & HAL_BEACON_PERIOD));
167 TU_TO_USEC(bs->bs_intval & HAL_BEACON_PERIOD));
174 HALASSERT(bs->bs_bmissthreshold <=
177 AR_RSSI_THR_BM_THR, bs->bs_bmissthreshold);
208 beaconintval = bs->bs_intval & HAL_BEACON_PERIOD;
210 if (bs->bs_sleepduration > beaconintval) {
211 HALASSERT(roundup(bs
[all...]
/freebsd-9.3-release/crypto/openssl/ssl/
H A Dbio_ssl.c104 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
467 BIO_SSL *bs; local
[all...]
/freebsd-9.3-release/sys/dev/xen/balloon/
H A Dballoon.c84 #define bs balloon_stats macro
89 &bs.current_pages, 0, "Current allocation");
91 &bs.target_pages, 0, "Target allocation");
93 &bs.driver_pages, 0, "Driver pages");
95 &bs.hard_limit, 0, "Xen hard limit");
97 &bs.balloon_low, 0, "Low-mem balloon");
99 &bs.balloon_high, 0, "High-mem balloon");
126 bs.balloon_low++;
145 bs.balloon_low--;
153 unsigned long target = min(bs
[all...]
/freebsd-9.3-release/tools/regression/geom_gate/
H A Dtest-2.sh9 dd if=/dev/random of=$work bs=1m count=1 >/dev/null 2>&1
10 dd if=/dev/random of=$src bs=1m count=1 >/dev/null 2>&1
15 dd if=${src} of=/dev/ggate${us} bs=1m count=1 >/dev/null 2>&1
H A Dtest-2.t9 dd if=/dev/random of=$work bs=1m count=1 >/dev/null 2>&1
10 dd if=/dev/random of=$src bs=1m count=1 >/dev/null 2>&1
15 dd if=${src} of=/dev/ggate${us} bs=1m count=1 >/dev/null 2>&1
/freebsd-9.3-release/tools/regression/geom_nop/
H A Dtest-2.t12 dd if=/dev/random of=${src} bs=1m count=1 >/dev/null 2>&1
18 dd if=${src} of=/dev/md${us}.nop bs=1m count=1 >/dev/null 2>&1
19 dd if=/dev/md${us}.nop of=${dst} bs=1m count=1 >/dev/null 2>&1
/freebsd-9.3-release/sys/arm/xscale/i80321/
H A Di80321_space.c181 i80321_bs_init(bus_space_tag_t bs, void *cookie) argument
184 *bs = i80321_bs_tag_template;
185 bs->bs_cookie = cookie;
189 i80321_io_bs_init(bus_space_tag_t bs, void *cookie) argument
192 *bs = i80321_bs_tag_template;
193 bs->bs_cookie = cookie;
195 bs->bs_map = i80321_io_bs_map;
196 bs->bs_unmap = i80321_io_bs_unmap;
197 bs->bs_alloc = i80321_io_bs_alloc;
198 bs
203 i80321_mem_bs_init(bus_space_tag_t bs, void *cookie) argument
[all...]
/freebsd-9.3-release/sys/arm/xscale/i8134x/
H A Di81342_space.c182 i81342_bs_init(bus_space_tag_t bs, void *cookie) argument
185 *bs = i81342_bs_tag_template;
186 bs->bs_cookie = cookie;
190 i81342_io_bs_init(bus_space_tag_t bs, void *cookie) argument
193 *bs = i81342_bs_tag_template;
194 bs->bs_cookie = cookie;
196 bs->bs_map = i81342_io_bs_map;
197 bs->bs_unmap = i81342_io_bs_unmap;
198 bs->bs_alloc = i81342_io_bs_alloc;
199 bs
204 i81342_mem_bs_init(bus_space_tag_t bs, void *cookie) argument
[all...]
/freebsd-9.3-release/release/scripts/
H A Dsplit-file.sh24 dd if=${FILE} bs=16k iseek=1 | split -b ${CHUNK_SIZE}k - ${DEST}/${prefix}.
31 dd if=${FILE} of=${bootchunk} bs=16k count=1
/freebsd-9.3-release/tools/regression/geom_eli/
H A Dsetkey.t17 dd if=/dev/random of=${rnd} bs=512 count=${sectors} >/dev/null 2>&1
18 hash1=`dd if=${rnd} bs=512 count=${sectors} 2>/dev/null | md5`
19 dd if=/dev/random of=${keyfile1} bs=512 count=16 >/dev/null 2>&1
20 dd if=/dev/random of=${keyfile2} bs=512 count=16 >/dev/null 2>&1
21 dd if=/dev/random of=${keyfile3} bs=512 count=16 >/dev/null 2>&1
22 dd if=/dev/random of=${keyfile4} bs=512 count=16 >/dev/null 2>&1
23 dd if=/dev/random of=${keyfile5} bs=512 count=16 >/dev/null 2>&1
28 dd if=${rnd} of=/dev/md${no}.eli bs=512 count=${sectors} 2>/dev/null
30 hash2=`dd if=/dev/md${no}.eli bs=512 count=${sectors} 2>/dev/null | md5`
56 hash3=`dd if=/dev/md${no}.eli bs
[all...]
/freebsd-9.3-release/crypto/openssl/crypto/bn/asm/
H A Dco-586.pl108 local($i,$as,$ae,$bs,$be,$ai,$bi);
121 $bs=0;
140 $bi=$bs;
145 for ($j=$bs; $j<$end; $j++)
147 &xor($c2,$c2) if ($j == $bs);
163 $nb=$bs+($i >= ($num-1));
180 $bs++ if ($i >= ($num-1));
199 local($i,$as,$ae,$bs,$be,$ai,$bi);
222 $bs=0;
229 $bi=$bs;
[all...]
/freebsd-9.3-release/crypto/openssl/crypto/bn/asm/x86/
H A Dcomba.pl97 local($i,$as,$ae,$bs,$be,$ai,$bi);
110 $bs=0;
129 $bi=$bs;
134 for ($j=$bs; $j<$end; $j++)
136 &xor($c2,$c2) if ($j == $bs);
152 $nb=$bs+($i >= ($num-1));
169 $bs++ if ($i >= ($num-1));
188 local($i,$as,$ae,$bs,$be,$ai,$bi);
211 $bs=0;
218 $bi=$bs;
[all...]

Completed in 270 milliseconds

12345678910