Symbol: bs
bin/df/df.c
451
fsbtoblk(int64_t num, uint64_t fsbs, u_long bs)
bin/df/df.c
453
return (num * (intmax_t) fsbs / (int64_t) bs);
crypto/heimdal/appl/ftp/ftp/ftp.c
1445
float bs;
crypto/heimdal/appl/ftp/ftp/ftp.c
1457
bs = bytes / (s ? s : 1);
crypto/heimdal/appl/ftp/ftp/ftp.c
1458
if (bs >= 1048576) {
crypto/heimdal/appl/ftp/ftp/ftp.c
1459
bs /= 1048576;
crypto/heimdal/appl/ftp/ftp/ftp.c
1462
} else if (bs >= 1024) {
crypto/heimdal/appl/ftp/ftp/ftp.c
1463
bs /= 1024;
crypto/heimdal/appl/ftp/ftp/ftp.c
1472
bytes, direction, s, prec, bs, unit);
crypto/openssh/sftp.c
945
const struct stat *bs = sort_glob->gl_statv[b];
crypto/openssh/sftp.c
953
if (timespeccmp(&as->st_mtim, &bs->st_mtim, ==))
crypto/openssh/sftp.c
955
return timespeccmp(&as->st_mtim, &bs->st_mtim, <) ?
crypto/openssh/sftp.c
958
return (rmul * NCMP(as->st_mtime, bs->st_mtime));
crypto/openssh/sftp.c
963
return (rmul * NCMP(as->st_size, bs->st_size));
crypto/openssl/apps/ocsp.c
1012
static int print_ocsp_summary(BIO *out, OCSP_BASICRESP *bs, OCSP_REQUEST *req,
crypto/openssl/apps/ocsp.c
1026
if (bs == NULL || !sk_OCSP_CERTID_num(ids))
crypto/openssl/apps/ocsp.c
1034
if (!OCSP_resp_find_status(bs, id, &status, &reason,
crypto/openssl/apps/ocsp.c
1084
OCSP_BASICRESP *bs = NULL;
crypto/openssl/apps/ocsp.c
1096
bs = OCSP_BASICRESP_new();
crypto/openssl/apps/ocsp.c
1097
if (bs == NULL) {
crypto/openssl/apps/ocsp.c
1098
*resp = OCSP_response_create(OCSP_RESPONSE_STATUS_INTERNALERROR, bs);
crypto/openssl/apps/ocsp.c
1151
OCSP_basic_add1_status(bs, cid,
crypto/openssl/apps/ocsp.c
1157
OCSP_basic_add1_status(bs, cid,
crypto/openssl/apps/ocsp.c
1161
OCSP_basic_add1_status(bs, cid,
crypto/openssl/apps/ocsp.c
1172
single = OCSP_basic_add1_status(bs, cid,
crypto/openssl/apps/ocsp.c
1194
OCSP_copy_nonce(bs, req);
crypto/openssl/apps/ocsp.c
1212
if (!OCSP_basic_sign_ctx(bs, rcert, mctx, rother, flags)) {
crypto/openssl/apps/ocsp.c
1213
*resp = OCSP_response_create(OCSP_RESPONSE_STATUS_INTERNALERROR, bs);
crypto/openssl/apps/ocsp.c
1218
const ASN1_OCTET_STRING *sig = OCSP_resp_get0_signature(bs);
crypto/openssl/apps/ocsp.c
1222
*resp = OCSP_response_create(OCSP_RESPONSE_STATUS_SUCCESSFUL, bs);
crypto/openssl/apps/ocsp.c
1228
OCSP_BASICRESP_free(bs);
crypto/openssl/apps/ocsp.c
262
OCSP_BASICRESP *bs = NULL;
crypto/openssl/apps/ocsp.c
59
static int print_ocsp_summary(BIO *out, OCSP_BASICRESP *bs, OCSP_REQUEST *req,
crypto/openssl/apps/ocsp.c
858
bs = OCSP_response_get1_basic(resp);
crypto/openssl/apps/ocsp.c
859
if (bs == NULL) {
crypto/openssl/apps/ocsp.c
867
if (req != NULL && ((i = OCSP_check_nonce(req, bs)) <= 0)) {
crypto/openssl/apps/ocsp.c
877
i = OCSP_basic_verify(bs, verify_other, store, verify_flags);
crypto/openssl/apps/ocsp.c
879
i = OCSP_basic_verify(bs, issuers, store, verify_flags);
crypto/openssl/apps/ocsp.c
892
if (!print_ocsp_summary(out, bs, req, reqnames, ids, nsec, maxage))
crypto/openssl/apps/ocsp.c
916
OCSP_BASICRESP_free(bs);
crypto/openssl/apps/x509.c
1197
ASN1_INTEGER *bs = NULL;
crypto/openssl/apps/x509.c
1222
save_serial(serialfile, NULL, serial, &bs);
crypto/openssl/apps/x509.c
1224
bs = BN_to_ASN1_INTEGER(serial, NULL);
crypto/openssl/apps/x509.c
1229
return bs;
crypto/openssl/crypto/asn1/f_int.c
131
bs->length = num;
crypto/openssl/crypto/asn1/f_int.c
132
bs->data = s;
crypto/openssl/crypto/asn1/f_int.c
145
int a2i_ASN1_ENUMERATED(BIO *bp, ASN1_ENUMERATED *bs, char *buf, int size)
crypto/openssl/crypto/asn1/f_int.c
147
int rv = a2i_ASN1_INTEGER(bp, bs, buf, size);
crypto/openssl/crypto/asn1/f_int.c
149
bs->type = V_ASN1_INTEGER | (bs->type & V_ASN1_NEG);
crypto/openssl/crypto/asn1/f_int.c
52
int a2i_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *bs, char *buf, int size)
crypto/openssl/crypto/asn1/f_int.c
59
bs->type = V_ASN1_INTEGER;
crypto/openssl/crypto/asn1/f_string.c
124
bs->length = num;
crypto/openssl/crypto/asn1/f_string.c
125
bs->data = s;
crypto/openssl/crypto/asn1/f_string.c
46
int a2i_ASN1_STRING(BIO *bp, ASN1_STRING *bs, char *buf, int size)
crypto/openssl/crypto/asn1/t_bitst.c
15
int ASN1_BIT_STRING_name_print(BIO *out, ASN1_BIT_STRING *bs,
crypto/openssl/crypto/asn1/t_bitst.c
22
if (ASN1_BIT_STRING_get_bit(bs, bnam->bitnum)) {
crypto/openssl/crypto/asn1/t_bitst.c
33
int ASN1_BIT_STRING_set_asc(ASN1_BIT_STRING *bs, const char *name, int value,
crypto/openssl/crypto/asn1/t_bitst.c
40
if (bs) {
crypto/openssl/crypto/asn1/t_bitst.c
41
if (!ASN1_BIT_STRING_set_bit(bs, bitnum, value))
crypto/openssl/crypto/ec/curve448/arch_32/f_impl32.c
24
void ossl_gf_mul(gf_s *RESTRICT cs, const gf as, const gf bs)
crypto/openssl/crypto/ec/curve448/arch_32/f_impl32.c
26
const uint32_t *a = as->limb, *b = bs->limb;
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
24
void ossl_gf_mul(gf_s *RESTRICT cs, const gf as, const gf bs)
crypto/openssl/crypto/ec/curve448/arch_64/f_impl64.c
26
const uint64_t *a = as->limb, *b = bs->limb;
crypto/openssl/crypto/ocsp/ocsp_cl.c
141
const ASN1_OCTET_STRING *OCSP_resp_get0_signature(const OCSP_BASICRESP *bs)
crypto/openssl/crypto/ocsp/ocsp_cl.c
143
return bs->signature;
crypto/openssl/crypto/ocsp/ocsp_cl.c
146
const X509_ALGOR *OCSP_resp_get0_tbs_sigalg(const OCSP_BASICRESP *bs)
crypto/openssl/crypto/ocsp/ocsp_cl.c
148
return &bs->signatureAlgorithm;
crypto/openssl/crypto/ocsp/ocsp_cl.c
151
const OCSP_RESPDATA *OCSP_resp_get0_respdata(const OCSP_BASICRESP *bs)
crypto/openssl/crypto/ocsp/ocsp_cl.c
153
return &bs->tbsResponseData;
crypto/openssl/crypto/ocsp/ocsp_cl.c
158
int OCSP_resp_count(OCSP_BASICRESP *bs)
crypto/openssl/crypto/ocsp/ocsp_cl.c
160
if (bs == NULL)
crypto/openssl/crypto/ocsp/ocsp_cl.c
162
return sk_OCSP_SINGLERESP_num(bs->tbsResponseData.responses);
crypto/openssl/crypto/ocsp/ocsp_cl.c
166
OCSP_SINGLERESP *OCSP_resp_get0(OCSP_BASICRESP *bs, int idx)
crypto/openssl/crypto/ocsp/ocsp_cl.c
168
if (bs == NULL)
crypto/openssl/crypto/ocsp/ocsp_cl.c
170
return sk_OCSP_SINGLERESP_value(bs->tbsResponseData.responses, idx);
crypto/openssl/crypto/ocsp/ocsp_cl.c
173
const ASN1_GENERALIZEDTIME *OCSP_resp_get0_produced_at(const OCSP_BASICRESP *bs)
crypto/openssl/crypto/ocsp/ocsp_cl.c
175
return bs->tbsResponseData.producedAt;
crypto/openssl/crypto/ocsp/ocsp_cl.c
178
const STACK_OF(X509) *OCSP_resp_get0_certs(const OCSP_BASICRESP *bs)
crypto/openssl/crypto/ocsp/ocsp_cl.c
180
return bs->certs;
crypto/openssl/crypto/ocsp/ocsp_cl.c
183
int OCSP_resp_get0_id(const OCSP_BASICRESP *bs,
crypto/openssl/crypto/ocsp/ocsp_cl.c
187
const OCSP_RESPID *rid = &bs->tbsResponseData.responderId;
crypto/openssl/crypto/ocsp/ocsp_cl.c
201
int OCSP_resp_get1_id(const OCSP_BASICRESP *bs,
crypto/openssl/crypto/ocsp/ocsp_cl.c
205
const OCSP_RESPID *rid = &bs->tbsResponseData.responderId;
crypto/openssl/crypto/ocsp/ocsp_cl.c
222
int OCSP_resp_find(OCSP_BASICRESP *bs, OCSP_CERTID *id, int last)
crypto/openssl/crypto/ocsp/ocsp_cl.c
228
if (bs == NULL)
crypto/openssl/crypto/ocsp/ocsp_cl.c
234
sresp = bs->tbsResponseData.responses;
crypto/openssl/crypto/ocsp/ocsp_cl.c
283
int OCSP_resp_find_status(OCSP_BASICRESP *bs, OCSP_CERTID *id, int *status,
crypto/openssl/crypto/ocsp/ocsp_cl.c
289
int i = OCSP_resp_find(bs, id, -1);
crypto/openssl/crypto/ocsp/ocsp_cl.c
295
single = OCSP_resp_get0(bs, i);
crypto/openssl/crypto/ocsp/ocsp_ext.c
302
int OCSP_check_nonce(OCSP_REQUEST *req, OCSP_BASICRESP *bs)
crypto/openssl/crypto/ocsp/ocsp_ext.c
315
resp_idx = OCSP_BASICRESP_get_ext_by_NID(bs, NID_id_pkix_OCSP_Nonce, -1);
crypto/openssl/crypto/ocsp/ocsp_ext.c
329
resp_ext = OCSP_BASICRESP_get_ext(bs, resp_idx);
crypto/openssl/crypto/ocsp/ocsp_srv.c
63
OCSP_RESPONSE *OCSP_response_create(int status, OCSP_BASICRESP *bs)
crypto/openssl/crypto/ocsp/ocsp_srv.c
71
if (!bs)
crypto/openssl/crypto/ocsp/ocsp_srv.c
76
if (!ASN1_item_pack(bs, ASN1_ITEM_rptr(OCSP_BASICRESP), &rsp->responseBytes->response))
crypto/openssl/crypto/ocsp/ocsp_vfy.c
104
int ret = ocsp_find_signer(&signer, bs, certs, flags);
crypto/openssl/crypto/ocsp/ocsp_vfy.c
113
if ((ret = ocsp_verify(NULL, bs, signer, flags)) <= 0)
crypto/openssl/crypto/ocsp/ocsp_vfy.c
118
if ((untrusted = sk_X509_dup(bs->certs)) == NULL)
crypto/openssl/crypto/ocsp/ocsp_vfy.c
134
ret = ocsp_check_issuer(bs, chain);
crypto/openssl/crypto/ocsp/ocsp_vfy.c
16
static int ocsp_find_signer(X509 **psigner, OCSP_BASICRESP *bs,
crypto/openssl/crypto/ocsp/ocsp_vfy.c
162
int OCSP_resp_get0_signer(OCSP_BASICRESP *bs, X509 **signer,
crypto/openssl/crypto/ocsp/ocsp_vfy.c
165
return ocsp_find_signer(signer, bs, extra_certs, 0) > 0;
crypto/openssl/crypto/ocsp/ocsp_vfy.c
168
static int ocsp_find_signer(X509 **psigner, OCSP_BASICRESP *bs,
crypto/openssl/crypto/ocsp/ocsp_vfy.c
172
OCSP_RESPID *rid = &bs->tbsResponseData.responderId;
crypto/openssl/crypto/ocsp/ocsp_vfy.c
178
if ((flags & OCSP_NOINTERN) == 0 && (signer = ocsp_find_signer_sk(bs->certs, rid))) {
crypto/openssl/crypto/ocsp/ocsp_vfy.c
19
static int ocsp_check_issuer(OCSP_BASICRESP *bs, STACK_OF(X509) *chain);
crypto/openssl/crypto/ocsp/ocsp_vfy.c
221
static int ocsp_check_issuer(OCSP_BASICRESP *bs, STACK_OF(X509) *chain)
crypto/openssl/crypto/ocsp/ocsp_vfy.c
223
STACK_OF(OCSP_SINGLERESP) *sresp = bs->tbsResponseData.responses;
crypto/openssl/crypto/ocsp/ocsp_vfy.c
76
static int ocsp_verify(OCSP_REQUEST *req, OCSP_BASICRESP *bs,
crypto/openssl/crypto/ocsp/ocsp_vfy.c
90
ret = OCSP_BASICRESP_verify(bs, skey, signer->libctx, signer->propq);
crypto/openssl/crypto/ocsp/ocsp_vfy.c
98
int OCSP_basic_verify(OCSP_BASICRESP *bs, STACK_OF(X509) *certs,
crypto/openssl/crypto/x509/t_acert.c
45
ASN1_BIT_STRING *bs;
crypto/openssl/crypto/x509/t_acert.c
56
bs = at->value.asn1_string;
crypto/openssl/crypto/x509/t_acert.c
57
if (BIO_write(bp, (char *)bs->data, bs->length) != bs->length)
crypto/openssl/crypto/x509/t_req.c
118
ASN1_BIT_STRING *bs = NULL;
crypto/openssl/crypto/x509/t_req.c
138
bs = at->value.asn1_string;
crypto/openssl/crypto/x509/t_req.c
151
if (BIO_write(bp, (char *)bs->data, bs->length)
crypto/openssl/crypto/x509/t_req.c
152
!= bs->length)
crypto/openssl/crypto/x509/t_x509.c
510
int ossl_serial_number_print(BIO *out, const ASN1_INTEGER *bs, int indent)
crypto/openssl/crypto/x509/t_x509.c
517
if (bs->length == 0) {
crypto/openssl/crypto/x509/t_x509.c
524
ok = ASN1_INTEGER_get_int64(&l, bs);
crypto/openssl/crypto/x509/t_x509.c
528
if (bs->type == V_ASN1_NEG_INTEGER) {
crypto/openssl/crypto/x509/t_x509.c
538
neg = (bs->type == V_ASN1_NEG_INTEGER) ? " (Negative)" : "";
crypto/openssl/crypto/x509/t_x509.c
542
for (i = 0; i < bs->length - 1; i++) {
crypto/openssl/crypto/x509/t_x509.c
543
if (BIO_printf(out, "%02x%c", bs->data[i], ':') <= 0)
crypto/openssl/crypto/x509/t_x509.c
546
if (BIO_printf(out, "%02x", bs->data[i]) <= 0)
crypto/openssl/crypto/x509/t_x509.c
87
const ASN1_INTEGER *bs = X509_get0_serialNumber(x);
crypto/openssl/crypto/x509/t_x509.c
91
if (ossl_serial_number_print(bp, bs, 12) != 0)
crypto/openssl/crypto/x509/v3_addr.c
103
const ASN1_BIT_STRING *bs,
crypto/openssl/crypto/x509/v3_addr.c
106
if (bs->length < 0 || bs->length > length)
crypto/openssl/crypto/x509/v3_addr.c
108
if (bs->length > 0) {
crypto/openssl/crypto/x509/v3_addr.c
109
memcpy(addr, bs->data, bs->length);
crypto/openssl/crypto/x509/v3_addr.c
110
if ((bs->flags & 7) != 0) {
crypto/openssl/crypto/x509/v3_addr.c
111
unsigned char mask = 0xFF >> (8 - (bs->flags & 7));
crypto/openssl/crypto/x509/v3_addr.c
114
addr[bs->length - 1] &= ~mask;
crypto/openssl/crypto/x509/v3_addr.c
116
addr[bs->length - 1] |= mask;
crypto/openssl/crypto/x509/v3_addr.c
119
memset(addr + bs->length, fill, length - bs->length);
crypto/openssl/crypto/x509/v3_addr.c
126
#define addr_prefixlen(bs) ((int)((bs)->length * 8 - ((bs)->flags & 7)))
crypto/openssl/crypto/x509/v3_addr.c
133
const unsigned char fill, const ASN1_BIT_STRING *bs)
crypto/openssl/crypto/x509/v3_addr.c
138
if (bs->length < 0)
crypto/openssl/crypto/x509/v3_addr.c
142
if (!addr_expand(addr, bs, 4, fill))
crypto/openssl/crypto/x509/v3_addr.c
147
if (!addr_expand(addr, bs, 16, fill))
crypto/openssl/crypto/x509/v3_addr.c
161
for (i = 0; i < bs->length; i++)
crypto/openssl/crypto/x509/v3_addr.c
162
BIO_printf(out, "%s%02x", (i > 0 ? ":" : ""), bs->data[i]);
crypto/openssl/crypto/x509/v3_addr.c
163
BIO_printf(out, "[%d]", (int)(bs->flags & 7));
crypto/openssl/crypto/x509/v3_bitst.c
61
ASN1_BIT_STRING *bs;
crypto/openssl/crypto/x509/v3_bitst.c
64
if ((bs = ASN1_BIT_STRING_new()) == NULL) {
crypto/openssl/crypto/x509/v3_bitst.c
73
if (!ASN1_BIT_STRING_set_bit(bs, bnam->bitnum, 1)) {
crypto/openssl/crypto/x509/v3_bitst.c
75
ASN1_BIT_STRING_free(bs);
crypto/openssl/crypto/x509/v3_bitst.c
84
ASN1_BIT_STRING_free(bs);
crypto/openssl/crypto/x509/v3_bitst.c
88
return bs;
crypto/openssl/crypto/x509/v3_purp.c
442
BASIC_CONSTRAINTS *bs;
crypto/openssl/crypto/x509/v3_purp.c
475
if ((bs = X509_get_ext_d2i(x, NID_basic_constraints, &i, NULL)) != NULL) {
crypto/openssl/crypto/x509/v3_purp.c
476
if (bs->ca)
crypto/openssl/crypto/x509/v3_purp.c
478
if (bs->pathlen != NULL) {
crypto/openssl/crypto/x509/v3_purp.c
483
if (bs->pathlen->type == V_ASN1_NEG_INTEGER) {
crypto/openssl/crypto/x509/v3_purp.c
487
x->ex_pathlen = ASN1_INTEGER_get(bs->pathlen);
crypto/openssl/crypto/x509/v3_purp.c
490
BASIC_CONSTRAINTS_free(bs);
crypto/openssl/crypto/x509/v3_timespec.c
231
static int print_bit_month(BIO *out, ASN1_BIT_STRING *bs)
crypto/openssl/crypto/x509/v3_timespec.c
237
if (ASN1_BIT_STRING_get_bit(bs, i)) {
crypto/openssl/crypto/x509/v3_timespec.c
253
static int print_bit_week(BIO *out, ASN1_BIT_STRING *bs)
crypto/openssl/crypto/x509/v3_timespec.c
259
if (ASN1_BIT_STRING_get_bit(bs, i)) {
crypto/openssl/crypto/x509/v3_timespec.c
270
static int print_day_of_week(BIO *out, ASN1_BIT_STRING *bs)
crypto/openssl/crypto/x509/v3_timespec.c
276
if (ASN1_BIT_STRING_get_bit(bs, i)) {
crypto/openssl/crypto/x509/v3_timespec.c
333
static int print_bit_named_day(BIO *out, ASN1_BIT_STRING *bs)
crypto/openssl/crypto/x509/v3_timespec.c
335
return print_day_of_week(out, bs);
crypto/openssl/fuzz/x509.c
116
bs = OCSP_response_get1_basic(resp);
crypto/openssl/fuzz/x509.c
118
if (bs != NULL) {
crypto/openssl/fuzz/x509.c
128
OCSP_basic_verify(bs, certs, store, OCSP_PARTIAL_CHAIN);
crypto/openssl/fuzz/x509.c
133
OCSP_resp_find_status(bs, id, &status, &reason, &revtime, &thisupd,
crypto/openssl/fuzz/x509.c
145
OCSP_BASICRESP_free(bs);
crypto/openssl/fuzz/x509.c
48
OCSP_BASICRESP *bs = NULL;
crypto/openssl/include/crypto/x509.h
397
int ossl_serial_number_print(BIO *out, const ASN1_INTEGER *bs, int indent);
crypto/openssl/include/openssl/asn1.h
682
int ASN1_BIT_STRING_name_print(BIO *out, ASN1_BIT_STRING *bs,
crypto/openssl/include/openssl/asn1.h
685
int ASN1_BIT_STRING_set_asc(ASN1_BIT_STRING *bs, const char *name, int value,
crypto/openssl/include/openssl/asn1.h
852
int a2i_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *bs, char *buf, int size);
crypto/openssl/include/openssl/asn1.h
854
int a2i_ASN1_ENUMERATED(BIO *bp, ASN1_ENUMERATED *bs, char *buf, int size);
crypto/openssl/include/openssl/asn1.h
856
int a2i_ASN1_STRING(BIO *bp, ASN1_STRING *bs, char *buf, int size);
crypto/openssl/include/openssl/ocsp.h
313
int OCSP_check_nonce(OCSP_REQUEST *req, OCSP_BASICRESP *bs);
crypto/openssl/include/openssl/ocsp.h
328
const ASN1_OCTET_STRING *OCSP_resp_get0_signature(const OCSP_BASICRESP *bs);
crypto/openssl/include/openssl/ocsp.h
329
const X509_ALGOR *OCSP_resp_get0_tbs_sigalg(const OCSP_BASICRESP *bs);
crypto/openssl/include/openssl/ocsp.h
330
const OCSP_RESPDATA *OCSP_resp_get0_respdata(const OCSP_BASICRESP *bs);
crypto/openssl/include/openssl/ocsp.h
331
int OCSP_resp_get0_signer(OCSP_BASICRESP *bs, X509 **signer,
crypto/openssl/include/openssl/ocsp.h
334
int OCSP_resp_count(OCSP_BASICRESP *bs);
crypto/openssl/include/openssl/ocsp.h
335
OCSP_SINGLERESP *OCSP_resp_get0(OCSP_BASICRESP *bs, int idx);
crypto/openssl/include/openssl/ocsp.h
336
const ASN1_GENERALIZEDTIME *OCSP_resp_get0_produced_at(const OCSP_BASICRESP *bs);
crypto/openssl/include/openssl/ocsp.h
337
const STACK_OF(X509) *OCSP_resp_get0_certs(const OCSP_BASICRESP *bs);
crypto/openssl/include/openssl/ocsp.h
338
int OCSP_resp_get0_id(const OCSP_BASICRESP *bs,
crypto/openssl/include/openssl/ocsp.h
341
int OCSP_resp_get1_id(const OCSP_BASICRESP *bs,
crypto/openssl/include/openssl/ocsp.h
345
int OCSP_resp_find(OCSP_BASICRESP *bs, OCSP_CERTID *id, int last);
crypto/openssl/include/openssl/ocsp.h
350
int OCSP_resp_find_status(OCSP_BASICRESP *bs, OCSP_CERTID *id, int *status,
crypto/openssl/include/openssl/ocsp.h
374
OCSP_RESPONSE *OCSP_response_create(int status, OCSP_BASICRESP *bs);
crypto/openssl/include/openssl/ocsp.h
480
int OCSP_basic_verify(OCSP_BASICRESP *bs, STACK_OF(X509) *certs,
crypto/openssl/ssl/bio_ssl.c
170
BIO_SSL *bs;
crypto/openssl/ssl/bio_ssl.c
174
bs = BIO_get_data(b);
crypto/openssl/ssl/bio_ssl.c
175
ssl = bs->ssl;
crypto/openssl/ssl/bio_ssl.c
183
if (bs->renegotiate_count > 0) {
crypto/openssl/ssl/bio_ssl.c
184
bs->byte_count += *written;
crypto/openssl/ssl/bio_ssl.c
185
if (bs->byte_count > bs->renegotiate_count) {
crypto/openssl/ssl/bio_ssl.c
186
bs->byte_count = 0;
crypto/openssl/ssl/bio_ssl.c
187
bs->num_renegotiates++;
crypto/openssl/ssl/bio_ssl.c
192
if ((bs->renegotiate_timeout > 0) && (!r)) {
crypto/openssl/ssl/bio_ssl.c
196
if (tm > bs->last_time + bs->renegotiate_timeout) {
crypto/openssl/ssl/bio_ssl.c
197
bs->last_time = tm;
crypto/openssl/ssl/bio_ssl.c
198
bs->num_renegotiates++;
crypto/openssl/ssl/bio_ssl.c
230
BIO_SSL *bs, *dbs;
crypto/openssl/ssl/bio_ssl.c
236
bs = BIO_get_data(b);
crypto/openssl/ssl/bio_ssl.c
238
ssl = bs->ssl;
crypto/openssl/ssl/bio_ssl.c
276
ret = bs->renegotiate_timeout;
crypto/openssl/ssl/bio_ssl.c
279
bs->renegotiate_timeout = (unsigned long)num;
crypto/openssl/ssl/bio_ssl.c
280
bs->last_time = (unsigned long)time(NULL);
crypto/openssl/ssl/bio_ssl.c
283
ret = bs->renegotiate_count;
crypto/openssl/ssl/bio_ssl.c
285
bs->renegotiate_count = (unsigned long)num;
crypto/openssl/ssl/bio_ssl.c
288
ret = bs->num_renegotiates;
crypto/openssl/ssl/bio_ssl.c
295
bs = BIO_get_data(b);
crypto/openssl/ssl/bio_ssl.c
299
bs->ssl = ssl;
crypto/openssl/ssl/bio_ssl.c
387
dbs->num_renegotiates = bs->num_renegotiates;
crypto/openssl/ssl/bio_ssl.c
388
dbs->renegotiate_count = bs->renegotiate_count;
crypto/openssl/ssl/bio_ssl.c
389
dbs->byte_count = bs->byte_count;
crypto/openssl/ssl/bio_ssl.c
390
dbs->renegotiate_timeout = bs->renegotiate_timeout;
crypto/openssl/ssl/bio_ssl.c
391
dbs->last_time = bs->last_time;
crypto/openssl/ssl/bio_ssl.c
418
BIO_SSL *bs;
crypto/openssl/ssl/bio_ssl.c
421
bs = BIO_get_data(b);
crypto/openssl/ssl/bio_ssl.c
422
ssl = bs->ssl;
crypto/openssl/ssl/bio_ssl.c
64
BIO_SSL *bs = OPENSSL_zalloc(sizeof(*bs));
crypto/openssl/ssl/bio_ssl.c
66
if (bs == NULL)
crypto/openssl/ssl/bio_ssl.c
69
BIO_set_data(bi, bs);
crypto/openssl/ssl/bio_ssl.c
78
BIO_SSL *bs;
crypto/openssl/ssl/bio_ssl.c
82
bs = BIO_get_data(a);
crypto/openssl/ssl/bio_ssl.c
84
if (bs->ssl != NULL && !SSL_in_init(bs->ssl))
crypto/openssl/ssl/bio_ssl.c
85
SSL_shutdown(bs->ssl);
crypto/openssl/ssl/bio_ssl.c
87
SSL_free(bs->ssl);
crypto/openssl/ssl/bio_ssl.c
91
OPENSSL_free(bs);
crypto/openssl/ssl/record/methods/ssl3_meth.c
102
size_t bs;
crypto/openssl/ssl/record/methods/ssl3_meth.c
120
bs = EVP_CIPHER_CTX_get_block_size(ds);
crypto/openssl/ssl/record/methods/ssl3_meth.c
122
if (bs == 0)
crypto/openssl/ssl/record/methods/ssl3_meth.c
127
if ((bs != 1) && sending && !provided) {
crypto/openssl/ssl/record/methods/ssl3_meth.c
132
i = bs - (l % bs);
crypto/openssl/ssl/record/methods/ssl3_meth.c
146
if (l == 0 || l % bs != 0) {
crypto/openssl/ssl/record/methods/ssl3_meth.c
192
bs,
crypto/openssl/ssl/record/methods/tls1_meth.c
182
size_t bs, ctr, padnum, loop;
crypto/openssl/ssl/record/methods/tls1_meth.c
237
bs = EVP_CIPHER_get_block_size(EVP_CIPHER_CTX_get0_cipher(ds));
crypto/openssl/ssl/record/methods/tls1_meth.c
239
if (bs == 0) {
crypto/openssl/ssl/record/methods/tls1_meth.c
296
} else if ((bs != 1) && sending && !provided) {
crypto/openssl/ssl/record/methods/tls1_meth.c
301
padnum = bs - (reclen[ctr] % bs);
crypto/openssl/ssl/record/methods/tls1_meth.c
318
if (reclen[ctr] == 0 || reclen[ctr] % bs != 0) {
crypto/openssl/ssl/record/methods/tls1_meth.c
396
} else if (bs != 1 && RLAYER_USE_EXPLICIT_IV(rl)) {
crypto/openssl/ssl/record/methods/tls1_meth.c
397
recs[0].data += bs;
crypto/openssl/ssl/record/methods/tls1_meth.c
398
recs[0].input += bs;
crypto/openssl/ssl/record/methods/tls1_meth.c
399
recs[0].orig_len -= bs;
crypto/openssl/ssl/record/methods/tls1_meth.c
447
} else if (bs != 1 && RLAYER_USE_EXPLICIT_IV(rl)) {
crypto/openssl/ssl/record/methods/tls1_meth.c
448
if (recs[ctr].length < bs)
crypto/openssl/ssl/record/methods/tls1_meth.c
450
recs[ctr].data += bs;
crypto/openssl/ssl/record/methods/tls1_meth.c
451
recs[ctr].input += bs;
crypto/openssl/ssl/record/methods/tls1_meth.c
452
recs[ctr].length -= bs;
crypto/openssl/ssl/record/methods/tls1_meth.c
453
recs[ctr].orig_len -= bs;
crypto/openssl/ssl/record/methods/tls1_meth.c
466
bs,
crypto/openssl/test/destest.c
816
int clen, clen_upd, clen_fin, plen, plen_upd, plen_fin, expect, bs, i;
crypto/openssl/test/destest.c
824
|| !TEST_int_eq(bs = EVP_CIPHER_get_block_size(cipher), 8)
crypto/openssl/test/destest.c
825
|| !TEST_size_t_eq(bs * 3u, sizeof(key))
crypto/openssl/test/destest.c
826
|| !TEST_true(in_bytes % bs == 0)
crypto/openssl/test/destest.c
846
expect = (in_bytes + (bs - 1)) / bs * bs + 2 * bs;
crypto/openssl/test/ocspapitest.c
100
bs = NULL;
crypto/openssl/test/ocspapitest.c
107
OCSP_BASICRESP_free(bs);
crypto/openssl/test/ocspapitest.c
114
OCSP_BASICRESP *bs = NULL;
crypto/openssl/test/ocspapitest.c
124
bs = make_dummy_resp();
crypto/openssl/test/ocspapitest.c
126
if (!TEST_ptr(bs)
crypto/openssl/test/ocspapitest.c
130
|| !TEST_true(OCSP_basic_sign(bs, signer, key, EVP_sha1(),
crypto/openssl/test/ocspapitest.c
133
if (!TEST_true(OCSP_resp_get0_signer(bs, &tmp, extra_certs))
crypto/openssl/test/ocspapitest.c
136
OCSP_BASICRESP_free(bs);
crypto/openssl/test/ocspapitest.c
139
bs = make_dummy_resp();
crypto/openssl/test/ocspapitest.c
141
if (!TEST_ptr(bs)
crypto/openssl/test/ocspapitest.c
142
|| !TEST_true(OCSP_basic_sign(bs, signer, key, EVP_sha1(),
crypto/openssl/test/ocspapitest.c
145
if (!TEST_true(OCSP_resp_get0_signer(bs, &tmp, NULL))
crypto/openssl/test/ocspapitest.c
150
OCSP_BASICRESP_free(bs);
crypto/openssl/test/ocspapitest.c
72
OCSP_BASICRESP *bs = OCSP_BASICRESP_new();
crypto/openssl/test/ocspapitest.c
91
if (!TEST_ptr(bs)
crypto/openssl/test/ocspapitest.c
95
|| !TEST_true(OCSP_basic_add1_status(bs, cid,
crypto/openssl/test/ocspapitest.c
99
bs_out = bs;
crypto/openssl/test/test_test.c
412
const char bs[] = "1234567890123456789012345678901234567890123456789012"
crypto/openssl/test/test_test.c
425
&& TEST_true(BN_hex2bn(&b, bs))
lib/libbsdstat/bsdstat.c
84
bsdstat_get(struct bsdstat *sf, int s, char b[] __unused, size_t bs __unused)
lib/libbsdstat/bsdstat.h
100
static int _t##_get_curstat(struct _t *wf, int s, char b[], size_t bs) \
lib/libbsdstat/bsdstat.h
101
{ return wf->base.get_curstat(&wf->base, s, b, bs); } \
lib/libbsdstat/bsdstat.h
102
static int _t##_get_totstat(struct _t *wf, int s, char b[], size_t bs) \
lib/libbsdstat/bsdstat.h
103
{ return wf->base.get_totstat(&wf->base, s, b, bs); } \
lib/libc/locale/big5.c
101
_BIG5State *bs;
lib/libc/locale/big5.c
105
bs = (_BIG5State *)ps;
lib/libc/locale/big5.c
107
if ((bs->ch & ~0xFF) != 0) {
lib/libc/locale/big5.c
123
if (bs->ch != 0) {
lib/libc/locale/big5.c
128
wc = (bs->ch << 8) | (*s & 0xFF);
lib/libc/locale/big5.c
131
bs->ch = 0;
lib/libc/locale/big5.c
140
bs->ch = wc;
lib/libc/locale/big5.c
161
_BIG5State *bs;
lib/libc/locale/big5.c
163
bs = (_BIG5State *)ps;
lib/libc/locale/big5.c
165
if (bs->ch != 0) {
lib/libc/nameser/ns_name.c
741
ns_name_eq(ns_nname_ct a, size_t as, ns_nname_ct b, size_t bs) {
lib/libc/nameser/ns_name.c
742
ns_nname_ct ae = a + as, be = b + bs;
sbin/dhclient/conflex.c
229
int c, bs = 0;
sbin/dhclient/conflex.c
238
if (bs) {
sbin/dhclient/conflex.c
239
bs = 0;
sbin/dhclient/conflex.c
243
bs = 1;
sbin/newfs_msdos/mkfs_msdos.c
243
struct bs *bs;
sbin/newfs_msdos/mkfs_msdos.c
686
x1 = sizeof(struct bs);
sbin/newfs_msdos/mkfs_msdos.c
729
bs = (struct bs *)img;
sbin/newfs_msdos/mkfs_msdos.c
730
mk1(bs->bsJump[0], 0xeb);
sbin/newfs_msdos/mkfs_msdos.c
731
mk1(bs->bsJump[1], x1 - 2);
sbin/newfs_msdos/mkfs_msdos.c
732
mk1(bs->bsJump[2], 0x90);
sbin/newfs_msdos/mkfs_msdos.c
733
setstr(bs->bsOemName, o.OEM_string ? o.OEM_string : "BSD4.4 ",
sbin/newfs_msdos/mkfs_msdos.c
734
sizeof(bs->bsOemName));
sbin/pfctl/pfctl_radix.c
301
size_t bs;
sbin/pfctl/pfctl_radix.c
308
bs = buf_esize[b->pfrb_type];
sbin/pfctl/pfctl_radix.c
312
memcpy(((caddr_t)b->pfrb_caddr) + bs * b->pfrb_size, e, bs);
sbin/pfctl/pfctl_radix.c
324
size_t bs;
sbin/pfctl/pfctl_radix.c
332
bs = buf_esize[b->pfrb_type];
sbin/pfctl/pfctl_radix.c
333
if ((((caddr_t)prev)-((caddr_t)b->pfrb_caddr)) / bs >= b->pfrb_size-1)
sbin/pfctl/pfctl_radix.c
335
return (((caddr_t)prev) + bs);
sbin/pfctl/pfctl_radix.c
347
size_t bs;
sbin/pfctl/pfctl_radix.c
355
bs = buf_esize[b->pfrb_type];
sbin/pfctl/pfctl_radix.c
362
p = reallocarray(b->pfrb_caddr, minsize, bs);
sbin/pfctl/pfctl_radix.c
365
bzero(p + b->pfrb_msize * bs, (minsize - b->pfrb_msize) * bs);
stand/common/gfx_fb.c
1808
int rs, gs, bs;
stand/common/gfx_fb.c
1958
bs = 8 - (fls(gfx_state.tg_fb.fb_mask_blue) -
stand/common/gfx_fb.c
2035
p[j].Blue = b >> bs;
stand/efi/boot1/ufs_module.c
113
bs = devinfo->dev->Media->BlockSize;
stand/efi/boot1/ufs_module.c
114
if (bs != 0 && bs <= BSD_LABEL_BUFFER / 2)
stand/efi/boot1/ufs_module.c
115
dl = (struct disklabel *)&ufs_buffer[bs];
stand/efi/boot1/ufs_module.c
81
uint64_t bs;
stand/efi/loader/arch/amd64/multiboot2.c
260
struct multiboot_tag *bs;
stand/efi/loader/arch/amd64/multiboot2.c
266
bs = buf;
stand/efi/loader/arch/amd64/multiboot2.c
267
bs->type = MULTIBOOT_TAG_TYPE_EFI_BS;
stand/efi/loader/arch/amd64/multiboot2.c
268
bs->size = sizeof(*bs);
stand/efi/loader/arch/amd64/multiboot2.c
269
len += roundup2(bs->size, MULTIBOOT_TAG_ALIGN);
stand/libsa/dosfs.c
630
parsebs(DOS_FS *fs, DOS_BS *bs)
stand/libsa/dosfs.c
634
if (bs->bpb.media < 0xf0)
stand/libsa/dosfs.c
638
switch (cv2(bs->bpb.secsiz)) {
stand/libsa/dosfs.c
643
fs->sshift = ffs(cv2(bs->bpb.secsiz)) - 1;
stand/libsa/dosfs.c
650
if (!(fs->spc = bs->bpb.spc) || fs->spc & (fs->spc - 1))
stand/libsa/dosfs.c
655
fs->dirents = cv2(bs->bpb.dirents);
stand/libsa/dosfs.c
656
fs->spf = cv2(bs->bpb.spf);
stand/libsa/dosfs.c
657
fs->lsnfat = cv2(bs->bpb.ressec);
stand/libsa/dosfs.c
660
if (bs->bpb.fats != 2)
stand/libsa/dosfs.c
665
fs->spf = cv4(bs->bpb.fstype.f32.lspf);
stand/libsa/dosfs.c
668
if (bs->bpb.fats == 0 || bs->bpb.fats > 16)
stand/libsa/dosfs.c
670
fs->rdcl = cv4(bs->bpb.fstype.f32.rdcl);
stand/libsa/dosfs.c
678
fs->lsndir = fs->lsnfat + fs->spf * bs->bpb.fats;
stand/libsa/dosfs.c
680
if (!(sc = cv2(bs->bpb.secs)) && !(sc = cv4(bs->bpb.lsecs)))
stand/libsa/zfs/zfsimpl.c
2701
int bs = FZAP_BLOCK_SHIFT(zap);
stand/libsa/zfs/zfsimpl.c
2708
(*lp)->l_bs = bs;
stand/libsa/zfs/zfsimpl.c
2709
(*lp)->l_phys = malloc(1 << bs);
stand/libsa/zfs/zfsimpl.c
2715
err = dnode_read(zap->zap_spa, zap->zap_dnode, blk << bs, (*lp)->l_phys,
stand/libsa/zfs/zfsimpl.c
2716
1 << bs);
stand/libsa/zfs/zfsimpl.c
2727
int bs = FZAP_BLOCK_SHIFT(zap);
stand/libsa/zfs/zfsimpl.c
2728
uint64_t blk = idx >> (bs - 3);
stand/libsa/zfs/zfsimpl.c
2729
uint64_t off = idx & ((1 << (bs - 3)) - 1);
stand/libsa/zfs/zfsimpl.c
2736
rc = dnode_read(zap->zap_spa, zap->zap_dnode, (tbl->zt_blk + blk) << bs,
sys/dev/ath/ath_hal/ar5210/ar5210_beacon.c
116
ar5210SetStaBeaconTimers(struct ath_hal *ah, const HAL_BEACON_STATE *bs)
sys/dev/ath/ath_hal/ar5210/ar5210_beacon.c
122
HALASSERT(bs->bs_intval != 0);
sys/dev/ath/ath_hal/ar5210/ar5210_beacon.c
124
if (bs->bs_cfpmaxduration != 0) {
sys/dev/ath/ath_hal/ar5210/ar5210_beacon.c
131
OS_REG_WRITE(ah, AR_CFP_PERIOD, bs->bs_cfpperiod);
sys/dev/ath/ath_hal/ar5210/ar5210_beacon.c
134
OS_REG_WRITE(ah, AR_CFP_DUR, bs->bs_cfpmaxduration);
sys/dev/ath/ath_hal/ar5210/ar5210_beacon.c
137
OS_REG_WRITE(ah, AR_TIMER2, bs->bs_cfpnext << 3);
sys/dev/ath/ath_hal/ar5210/ar5210_beacon.c
147
OS_REG_WRITE(ah, AR_TIMER0, bs->bs_nexttbtt);
sys/dev/ath/ath_hal/ar5210/ar5210_beacon.c
158
| SM(bs->bs_intval, AR_BEACON_PERIOD)
sys/dev/ath/ath_hal/ar5210/ar5210_beacon.c
159
| SM(bs->bs_timoffset ? bs->bs_timoffset + 4 : 0, AR_BEACON_TIM)
sys/dev/ath/ath_hal/ar5210/ar5210_beacon.c
179
(bs->bs_bmissthreshold&7) == 0) {
sys/dev/ath/ath_hal/ar5210/ar5210_beacon.c
182
__func__, bs->bs_bmissthreshold);
sys/dev/ath/ath_hal/ar5210/ar5210_beacon.c
197
| SM(bs->bs_bmissthreshold > BMISS_MAX ?
sys/dev/ath/ath_hal/ar5210/ar5210_beacon.c
198
BMISS_MAX : bs->bs_bmissthreshold,
sys/dev/ath/ath_hal/ar5211/ar5211_beacon.c
122
ar5211SetStaBeaconTimers(struct ath_hal *ah, const HAL_BEACON_STATE *bs)
sys/dev/ath/ath_hal/ar5211/ar5211_beacon.c
128
HALASSERT(bs->bs_intval != 0);
sys/dev/ath/ath_hal/ar5211/ar5211_beacon.c
130
if (bs->bs_cfpmaxduration != 0) {
sys/dev/ath/ath_hal/ar5211/ar5211_beacon.c
136
OS_REG_WRITE(ah, AR_CFP_PERIOD, bs->bs_cfpperiod);
sys/dev/ath/ath_hal/ar5211/ar5211_beacon.c
139
OS_REG_WRITE(ah, AR_CFP_DUR, bs->bs_cfpmaxduration);
sys/dev/ath/ath_hal/ar5211/ar5211_beacon.c
142
OS_REG_WRITE(ah, AR_TIMER2, bs->bs_cfpnext << 3);
sys/dev/ath/ath_hal/ar5211/ar5211_beacon.c
152
OS_REG_WRITE(ah, AR_TIMER0, bs->bs_nexttbtt);
sys/dev/ath/ath_hal/ar5211/ar5211_beacon.c
163
| SM(bs->bs_intval, AR_BEACON_PERIOD)
sys/dev/ath/ath_hal/ar5211/ar5211_beacon.c
164
| SM(bs->bs_timoffset ? bs->bs_timoffset + 4 : 0, AR_BEACON_TIM)
sys/dev/ath/ath_hal/ar5211/ar5211_beacon.c
172
HALASSERT(bs->bs_bmissthreshold <= MS(0xffffffff, AR_RSSI_THR_BM_THR));
sys/dev/ath/ath_hal/ar5211/ar5211_beacon.c
174
| SM(bs->bs_bmissthreshold, AR_RSSI_THR_BM_THR);
sys/dev/ath/ath_hal/ar5211/ar5211_beacon.c
182
(bs->bs_sleepduration - SLEEP_SLOP) << 3);
sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c
146
ar5212SetStaBeaconTimers(struct ath_hal *ah, const HAL_BEACON_STATE *bs)
sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c
151
HALASSERT(bs->bs_intval != 0);
sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c
153
if (bs->bs_cfpmaxduration != 0) {
sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c
159
OS_REG_WRITE(ah, AR_CFP_PERIOD, bs->bs_cfpperiod);
sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c
162
OS_REG_WRITE(ah, AR_CFP_DUR, bs->bs_cfpmaxduration);
sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c
165
OS_REG_WRITE(ah, AR_TIMER2, bs->bs_cfpnext << 3);
sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c
175
OS_REG_WRITE(ah, AR_TIMER0, bs->bs_nexttbtt);
sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c
186
| SM(bs->bs_intval, AR_BEACON_PERIOD)
sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c
187
| SM(bs->bs_timoffset ? bs->bs_timoffset + 4 : 0, AR_BEACON_TIM)
sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c
195
HALASSERT(bs->bs_bmissthreshold <= MS(0xffffffff, AR_RSSI_THR_BM_THR));
sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c
197
| SM(bs->bs_bmissthreshold, AR_RSSI_THR_BM_THR);
sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c
229
beaconintval = bs->bs_intval & HAL_BEACON_PERIOD;
sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c
231
if (bs->bs_sleepduration > beaconintval) {
sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c
232
HALASSERT(roundup(bs->bs_sleepduration, beaconintval) ==
sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c
233
bs->bs_sleepduration);
sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c
234
beaconintval = bs->bs_sleepduration;
sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c
236
dtimperiod = bs->bs_dtimperiod;
sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c
237
if (bs->bs_sleepduration > dtimperiod) {
sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c
239
roundup(bs->bs_sleepduration, dtimperiod) ==
sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c
240
bs->bs_sleepduration);
sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c
241
dtimperiod = bs->bs_sleepduration;
sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c
245
nextTbtt = bs->bs_nextdtim;
sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c
247
nextTbtt = bs->bs_nexttbtt;
sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c
248
nextdtim = bs->bs_nextdtim;
sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c
265
__func__, bs->bs_nextdtim);
sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c
151
ar5416SetStaBeaconTimers(struct ath_hal *ah, const HAL_BEACON_STATE *bs)
sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c
155
HALASSERT(bs->bs_intval != 0);
sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c
159
OS_REG_WRITE(ah, AR_NEXT_TBTT, TU_TO_USEC(bs->bs_nexttbtt));
sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c
167
TU_TO_USEC(bs->bs_intval & HAL_BEACON_PERIOD));
sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c
169
TU_TO_USEC(bs->bs_intval & HAL_BEACON_PERIOD));
sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c
176
HALASSERT(bs->bs_bmissthreshold <=
sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c
179
AR_RSSI_THR_BM_THR, bs->bs_bmissthreshold);
sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c
229
beaconintval = bs->bs_intval & HAL_BEACON_PERIOD;
sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c
231
if (bs->bs_sleepduration > beaconintval) {
sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c
232
HALASSERT(roundup(bs->bs_sleepduration, beaconintval) ==
sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c
233
bs->bs_sleepduration);
sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c
234
beaconintval = bs->bs_sleepduration;
sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c
236
dtimperiod = bs->bs_dtimperiod;
sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c
237
if (bs->bs_sleepduration > dtimperiod) {
sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c
239
roundup(bs->bs_sleepduration, dtimperiod) ==
sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c
240
bs->bs_sleepduration);
sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c
241
dtimperiod = bs->bs_sleepduration;
sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c
245
nextTbtt = bs->bs_nextdtim;
sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c
247
nextTbtt = bs->bs_nexttbtt;
sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c
248
nextdtim = bs->bs_nextdtim;
sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c
251
TU_TO_USEC(bs->bs_nextdtim - SLEEP_SLOP));
sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c
278
__func__, bs->bs_nextdtim);
sys/dev/ath/if_ath_beacon.c
1027
HAL_BEACON_STATE bs;
sys/dev/ath/if_ath_beacon.c
1106
memset(&bs, 0, sizeof(bs));
sys/dev/ath/if_ath_beacon.c
1107
bs.bs_intval = intval;
sys/dev/ath/if_ath_beacon.c
1108
bs.bs_nexttbtt = nexttbtt;
sys/dev/ath/if_ath_beacon.c
1109
bs.bs_dtimperiod = dtimperiod*intval;
sys/dev/ath/if_ath_beacon.c
1110
bs.bs_nextdtim = bs.bs_nexttbtt + dtimcount*intval;
sys/dev/ath/if_ath_beacon.c
1111
bs.bs_cfpperiod = cfpperiod*bs.bs_dtimperiod;
sys/dev/ath/if_ath_beacon.c
1112
bs.bs_cfpnext = bs.bs_nextdtim + cfpcount*bs.bs_dtimperiod;
sys/dev/ath/if_ath_beacon.c
1113
bs.bs_cfpmaxduration = 0;
sys/dev/ath/if_ath_beacon.c
1124
bs.bs_timoffset = ni->ni_timoff;
sys/dev/ath/if_ath_beacon.c
1131
bs.bs_bmissthreshold = vap->iv_bmissthreshold;
sys/dev/ath/if_ath_beacon.c
1132
if (bs.bs_bmissthreshold > 10)
sys/dev/ath/if_ath_beacon.c
1133
bs.bs_bmissthreshold = 10;
sys/dev/ath/if_ath_beacon.c
1134
else if (bs.bs_bmissthreshold <= 0)
sys/dev/ath/if_ath_beacon.c
1135
bs.bs_bmissthreshold = 1;
sys/dev/ath/if_ath_beacon.c
1146
bs.bs_sleepduration =
sys/dev/ath/if_ath_beacon.c
1147
roundup(IEEE80211_MS_TO_TU(100), bs.bs_intval);
sys/dev/ath/if_ath_beacon.c
1148
if (bs.bs_sleepduration > bs.bs_dtimperiod)
sys/dev/ath/if_ath_beacon.c
1149
bs.bs_sleepduration = roundup(bs.bs_sleepduration, bs.bs_dtimperiod);
sys/dev/ath/if_ath_beacon.c
1158
, bs.bs_intval
sys/dev/ath/if_ath_beacon.c
1159
, bs.bs_nexttbtt
sys/dev/ath/if_ath_beacon.c
1160
, bs.bs_dtimperiod
sys/dev/ath/if_ath_beacon.c
1161
, bs.bs_nextdtim
sys/dev/ath/if_ath_beacon.c
1162
, bs.bs_bmissthreshold
sys/dev/ath/if_ath_beacon.c
1163
, bs.bs_sleepduration
sys/dev/ath/if_ath_beacon.c
1164
, bs.bs_cfpperiod
sys/dev/ath/if_ath_beacon.c
1165
, bs.bs_cfpmaxduration
sys/dev/ath/if_ath_beacon.c
1166
, bs.bs_cfpnext
sys/dev/ath/if_ath_beacon.c
1167
, bs.bs_timoffset
sys/dev/ath/if_ath_beacon.c
1170
ath_hal_beacontimers(ah, &bs);
sys/dev/ixgbe/ixgbe_api.c
432
s32 ixgbe_get_fcoe_boot_status(struct ixgbe_hw *hw, u16 *bs)
sys/dev/ixgbe/ixgbe_api.c
435
(hw, bs),
sys/dev/ixgbe/ixgbe_api.h
202
s32 ixgbe_get_fcoe_boot_status(struct ixgbe_hw *hw, u16 *bs);
sys/dev/ixgbe/ixgbe_common.c
4420
s32 ixgbe_get_fcoe_boot_status_generic(struct ixgbe_hw *hw, u16 *bs)
sys/dev/ixgbe/ixgbe_common.c
4428
*bs = ixgbe_fcoe_bootstatus_unavailable;
sys/dev/ixgbe/ixgbe_common.c
4454
*bs = ixgbe_fcoe_bootstatus_enabled;
sys/dev/ixgbe/ixgbe_common.c
4456
*bs = ixgbe_fcoe_bootstatus_disabled;
sys/dev/ixgbe/ixgbe_common.h
153
s32 ixgbe_get_fcoe_boot_status_generic(struct ixgbe_hw *hw, u16 *bs);
sys/dev/ocs_fc/sli4.c
6857
uint8_t dif, uint8_t bs, uint8_t timeout)
sys/dev/ocs_fc/sli4.c
6908
iread->bs = bs;
sys/dev/ocs_fc/sli4.c
6961
uint8_t dif, uint8_t bs, uint8_t timeout)
sys/dev/ocs_fc/sli4.c
7013
iwrite->bs = bs;
sys/dev/ocs_fc/sli4.c
7069
uint16_t xid, uint32_t rpi, ocs_remote_node_t *rnode, uint32_t flags, uint8_t dif, uint8_t bs,
sys/dev/ocs_fc/sli4.c
7134
trecv->bs = bs;
sys/dev/ocs_fc/sli4.c
7208
uint8_t dif, uint8_t bs, uint8_t csctl, uint32_t app_id)
sys/dev/ocs_fc/sli4.c
7213
cq_id, xid, rpi, rnode, flags, dif, bs, csctl, app_id);
sys/dev/ocs_fc/sli4.c
7351
uint32_t flags, uint8_t dif, uint8_t bs, uint8_t csctl, uint32_t app_id)
sys/dev/ocs_fc/sli4.c
7416
tsend->bs = bs;
sys/dev/ocs_fc/sli4.c
7690
xmit->bs = 0;
sys/dev/ocs_fc/sli4.h
4363
bs:3,
sys/dev/ocs_fc/sli4.h
4421
bs:3,
sys/dev/ocs_fc/sli4.h
4476
bs:3,
sys/dev/ocs_fc/sli4.h
4545
bs:3,
sys/dev/ocs_fc/sli4.h
4669
bs:3,
sys/dev/ocs_fc/sli4.h
4855
bs:3,
sys/dev/sdio/sdio_subr.c
114
sdio_set_block_size(struct sdio_func *f, uint16_t bs)
sys/dev/sdio/sdio_subr.c
121
if (bs > f->max_blksize)
sys/dev/sdio/sdio_subr.c
129
v = htole16(bs);
sys/dev/sdio/sdio_subr.c
136
f->cur_blksize = bs;
sys/dev/sound/pcm/channel.c
1150
struct snd_dbuf *b, *bs;
sys/dev/sound/pcm/channel.c
1187
bs = NULL;
sys/dev/sound/pcm/channel.c
1223
bs = sndbuf_create(c, "secondary");
sys/dev/sound/pcm/channel.c
1224
if (b == NULL || bs == NULL) {
sys/dev/sound/pcm/channel.c
1230
c->bufsoft = bs;
sys/dev/sound/pcm/channel.c
1231
knlist_init_mtx(&bs->sel.si_note, &c->lock);
sys/dev/sound/pcm/channel.c
1247
sndbuf_setfmt(bs, c->format);
sys/dev/sound/pcm/channel.c
1248
sndbuf_setspd(bs, c->speed);
sys/dev/sound/pcm/channel.c
1249
sndbuf_setup(bs, NULL, 0);
sys/dev/sound/pcm/channel.c
1257
bs->sl = bs->maxsize;
sys/dev/sound/pcm/channel.c
1258
bs->shadbuf = malloc(bs->sl, M_DEVBUF, M_WAITOK);
sys/dev/sound/pcm/channel.c
1292
struct snd_dbuf *bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
1328
if (bs) {
sys/dev/sound/pcm/channel.c
1329
knlist_clear(&bs->sel.si_note, 0);
sys/dev/sound/pcm/channel.c
1330
knlist_destroy(&bs->sel.si_note);
sys/dev/sound/pcm/channel.c
1331
sndbuf_destroy(bs);
sys/dev/sound/pcm/channel.c
1821
struct snd_dbuf *b, *bs, *pb;
sys/dev/sound/pcm/channel.c
1844
bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
1848
(blksz < 16 || blksz < bs->align || blkcnt < 2 ||
sys/dev/sound/pcm/channel.c
1852
chn_calclatency(c->direction, latency, bs->align,
sys/dev/sound/pcm/channel.c
1853
bs->align * bs->spd, CHN_2NDBUFMAXSIZE,
sys/dev/sound/pcm/channel.c
1860
blksz = bs->blksz;
sys/dev/sound/pcm/channel.c
1861
blkcnt = bs->blkcnt;
sys/dev/sound/pcm/channel.c
1874
sblksz = round_blksz(blksz, bs->align);
sys/dev/sound/pcm/channel.c
1887
sndbuf_xbytes(pb->bufsize, pb, bs) : 0;
sys/dev/sound/pcm/channel.c
1890
sndbuf_xbytes(pb->blksz, pb, bs) * 2 : 0;
sys/dev/sound/pcm/channel.c
1895
hblksz = round_blksz(sndbuf_xbytes(sblksz, bs, b),
sys/dev/sound/pcm/channel.c
1897
hblkcnt = round_pow2(bs->blkcnt);
sys/dev/sound/pcm/channel.c
1925
sndbuf_xbytes(b->blksz, b, bs), bs->align);
sys/dev/sound/pcm/channel.c
1938
limit = sndbuf_xbytes(b->blksz, b, bs) * 2;
sys/dev/sound/pcm/channel.c
1954
sblksz -= sblksz % bs->align;
sys/dev/sound/pcm/channel.c
1956
if (bs->blkcnt != sblkcnt || bs->blksz != sblksz ||
sys/dev/sound/pcm/channel.c
1957
bs->bufsize != (sblkcnt * sblksz)) {
sys/dev/sound/pcm/channel.c
1958
ret = sndbuf_remalloc(bs, sblkcnt, sblksz);
sys/dev/sound/pcm/channel.c
1969
c->timeout = ((u_int64_t)hz * bs->bufsize) /
sys/dev/sound/pcm/channel.c
1970
((u_int64_t)bs->spd * bs->align);
sys/dev/sound/pcm/channel.c
1980
c->lw = bs->blksz;
sys/dev/sound/pcm/channel.c
1991
bs->bufsize, bs->blksz,
sys/dev/sound/pcm/channel.c
1992
bs->blkcnt, limit);
sys/dev/sound/pcm/channel.c
279
struct snd_dbuf *bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
285
if (bs->prev_total < c->lw)
sys/dev/sound/pcm/channel.c
288
delta = bs->total - bs->prev_total;
sys/dev/sound/pcm/channel.c
291
delta = sndbuf_getfree(bs);
sys/dev/sound/pcm/channel.c
293
delta = sndbuf_getready(bs);
sys/dev/sound/pcm/channel.c
310
struct snd_dbuf *bs;
sys/dev/sound/pcm/channel.c
315
bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
318
KNOTE_LOCKED(&bs->sel.si_note, 0);
sys/dev/sound/pcm/channel.c
319
if (SEL_WAITING(&bs->sel) && chn_polltrigger(c))
sys/dev/sound/pcm/channel.c
320
selwakeuppri(&bs->sel, PRIBIO);
sys/dev/sound/pcm/channel.c
393
struct snd_dbuf *bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
399
sndbuf_acquire(bs, NULL, sndbuf_getfree(bs));
sys/dev/sound/pcm/channel.c
402
want = min(b->bufsize, imax(0, sndbuf_xbytes(bs->bufsize, bs, b) -
sys/dev/sound/pcm/channel.c
406
sndbuf_feed(bs, b, c, c->feeder, amt);
sys/dev/sound/pcm/channel.c
441
struct snd_dbuf *bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
451
p = sndbuf_getfreeptr(bs);
sys/dev/sound/pcm/channel.c
452
sz = min(buf->uio_resid, sndbuf_getfree(bs));
sys/dev/sound/pcm/channel.c
453
sz = min(sz, bs->bufsize - p);
sys/dev/sound/pcm/channel.c
455
off = sndbuf_getbufofs(bs, p);
sys/dev/sound/pcm/channel.c
456
sndbuf_acquire(bs, NULL, sz);
sys/dev/sound/pcm/channel.c
496
struct snd_dbuf *bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
502
sndbuf_dispose(bs, NULL, sndbuf_getready(bs));
sys/dev/sound/pcm/channel.c
504
amt = sndbuf_getfree(bs);
sys/dev/sound/pcm/channel.c
506
sndbuf_feed(b, bs, c, c->feeder, amt);
sys/dev/sound/pcm/channel.c
514
if (sndbuf_getready(bs) > 0)
sys/dev/sound/pcm/channel.c
542
struct snd_dbuf *bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
560
p = sndbuf_getreadyptr(bs);
sys/dev/sound/pcm/channel.c
561
sz = min(buf->uio_resid, sndbuf_getready(bs));
sys/dev/sound/pcm/channel.c
562
sz = min(sz, bs->bufsize - p);
sys/dev/sound/pcm/channel.c
564
off = sndbuf_getbufofs(bs, p);
sys/dev/sound/pcm/channel.c
565
sndbuf_dispose(bs, NULL, sz);
sys/dev/sound/pcm/channel.c
600
struct snd_dbuf *bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
615
i = sndbuf_getfree(bs);
sys/dev/sound/pcm/channel.c
618
if (sndbuf_getfree(bs) == 0) {
sys/dev/sound/pcm/channel.c
625
i = sndbuf_xbytes(sndbuf_getready(bs), bs, pb);
sys/dev/sound/pcm/channel.c
649
sndbuf_xbytes(bs->bufsize, bs, b));
sys/dev/sound/pcm/channel.c
675
struct snd_dbuf *bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
679
sndbuf_reset(bs);
sys/dev/sound/pcm/channel.c
690
struct snd_dbuf *b, *bs;
sys/dev/sound/pcm/channel.c
699
bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
702
(threshold < 1 && sndbuf_getready(bs) < 1))
sys/dev/sound/pcm/channel.c
707
if (threshold > 0 || sndbuf_getready(bs) > 0) {
sys/dev/sound/pcm/channel.c
717
minflush = threshold + sndbuf_xbytes(sndbuf_getready(b), b, bs);
sys/dev/sound/pcm/channel.c
721
if (syncdelay < 0 && (threshold > 0 || sndbuf_getready(bs) > 0))
sys/dev/sound/pcm/channel.c
722
minflush += sndbuf_xbytes(b->bufsize, b, bs);
sys/dev/sound/pcm/channel.c
730
minflush += (bs->align * bs->spd *
sys/dev/sound/pcm/channel.c
733
minflush -= minflush % bs->align;
sys/dev/sound/pcm/channel.c
736
threshold = min(minflush, sndbuf_getfree(bs));
sys/dev/sound/pcm/channel.c
737
sndbuf_clear(bs, threshold);
sys/dev/sound/pcm/channel.c
738
sndbuf_acquire(bs, NULL, threshold);
sys/dev/sound/pcm/channel.c
742
resid = sndbuf_getready(bs);
sys/dev/sound/pcm/channel.c
755
count = sndbuf_xbytes(minflush + resid, bs, b) / blksz;
sys/dev/sound/pcm/channel.c
772
resid = sndbuf_getready(bs);
sys/dev/sound/pcm/channel.c
792
if (minflush > 0 && sndbuf_getfree(bs) > 0) {
sys/dev/sound/pcm/channel.c
794
sndbuf_getfree(bs));
sys/dev/sound/pcm/channel.c
795
sndbuf_clear(bs, threshold);
sys/dev/sound/pcm/channel.c
796
sndbuf_acquire(bs, NULL, threshold);
sys/dev/sound/pcm/channel.c
797
resid = sndbuf_getready(bs);
sys/dev/sound/pcm/channel.c
821
struct snd_dbuf *bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
837
selrecord(td, &bs->sel);
sys/dev/sound/pcm/channel.c
853
struct snd_dbuf *bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
866
missing = sndbuf_getready(bs);
sys/dev/sound/pcm/dsp.c
1320
struct snd_dbuf *bs = rdch->bufsoft;
sys/dev/sound/pcm/dsp.c
1323
a->bytes = sndbuf_getready(bs);
sys/dev/sound/pcm/dsp.c
1324
a->fragments = a->bytes / bs->blksz;
sys/dev/sound/pcm/dsp.c
1325
a->fragstotal = bs->blkcnt;
sys/dev/sound/pcm/dsp.c
1326
a->fragsize = bs->blksz;
sys/dev/sound/pcm/dsp.c
1338
struct snd_dbuf *bs = wrch->bufsoft;
sys/dev/sound/pcm/dsp.c
1341
a->bytes = sndbuf_getfree(bs);
sys/dev/sound/pcm/dsp.c
1342
a->fragments = a->bytes / bs->blksz;
sys/dev/sound/pcm/dsp.c
1343
a->fragstotal = bs->blkcnt;
sys/dev/sound/pcm/dsp.c
1344
a->fragsize = bs->blksz;
sys/dev/sound/pcm/dsp.c
1355
struct snd_dbuf *bs = rdch->bufsoft;
sys/dev/sound/pcm/dsp.c
1358
a->bytes = bs->total;
sys/dev/sound/pcm/dsp.c
1359
a->blocks = sndbuf_getblocks(bs) - rdch->blocks;
sys/dev/sound/pcm/dsp.c
1360
a->ptr = sndbuf_getfreeptr(bs);
sys/dev/sound/pcm/dsp.c
1361
rdch->blocks = sndbuf_getblocks(bs);
sys/dev/sound/pcm/dsp.c
1372
struct snd_dbuf *bs = wrch->bufsoft;
sys/dev/sound/pcm/dsp.c
1375
a->bytes = bs->total;
sys/dev/sound/pcm/dsp.c
1376
a->blocks = sndbuf_getblocks(bs) - wrch->blocks;
sys/dev/sound/pcm/dsp.c
1377
a->ptr = sndbuf_getreadyptr(bs);
sys/dev/sound/pcm/dsp.c
1378
wrch->blocks = sndbuf_getblocks(bs);
sys/dev/sound/pcm/dsp.c
1463
struct snd_dbuf *bs = wrch->bufsoft;
sys/dev/sound/pcm/dsp.c
1466
*arg_i = sndbuf_getready(bs);
sys/dev/sound/pcm/dsp.c
1598
struct snd_dbuf *bs;
sys/dev/sound/pcm/dsp.c
1602
bs = wrch->bufsoft;
sys/dev/sound/pcm/dsp.c
1603
if ((bs->shadbuf != NULL) && (sndbuf_getready(bs) > 0)) {
sys/dev/sound/pcm/dsp.c
1604
bs->sl = sndbuf_getready(bs);
sys/dev/sound/pcm/dsp.c
1605
sndbuf_dispose(bs, bs->shadbuf, sndbuf_getready(bs));
sys/dev/sound/pcm/dsp.c
1606
sndbuf_fillsilence(bs);
sys/dev/sound/pcm/dsp.c
1622
struct snd_dbuf *bs;
sys/dev/sound/pcm/dsp.c
1626
bs = wrch->bufsoft;
sys/dev/sound/pcm/dsp.c
1627
if ((bs->shadbuf != NULL) && (bs->sl > 0)) {
sys/dev/sound/pcm/dsp.c
1628
sndbuf_softreset(bs);
sys/dev/sound/pcm/dsp.c
1629
sndbuf_acquire(bs, bs->shadbuf, bs->sl);
sys/dev/sound/pcm/dsp.c
1630
bs->sl = 0;
sys/dev/sound/pcm/dsp.c
1655
struct snd_dbuf *bs;
sys/dev/sound/pcm/dsp.c
1661
bs = chn->bufsoft;
sys/dev/sound/pcm/dsp.c
1662
oc->samples = bs->total / bs->align;
sys/dev/sound/pcm/dsp.c
1663
oc->fifo_samples = sndbuf_getready(bs) / bs->align;
sys/dev/sound/pcm/feeder_mixer.c
131
struct snd_dbuf *b, *bs;
sys/dev/sound/pcm/feeder_mixer.c
174
bs = ch->bufsoft;
sys/dev/sound/pcm/feeder_mixer.c
176
sndbuf_dispose(bs, NULL, sndbuf_getready(bs));
sys/dev/sound/pcm/feeder_mixer.c
177
cnt = sndbuf_getfree(bs);
sys/dev/sound/pcm/feeder_mixer.c
178
if (cnt < bs->align) {
sys/dev/sound/pcm/feeder_mixer.c
182
maxfeed = SND_FXROUND(SND_FXDIV_MAX, bs->align);
sys/dev/sound/pcm/feeder_mixer.c
184
cnt = FEEDER_FEED(ch->feeder, ch, bs->tmpbuf,
sys/dev/sound/pcm/feeder_mixer.c
187
sndbuf_acquire(bs, bs->tmpbuf, cnt);
sys/dev/sound/pcm/feeder_mixer.c
188
cnt = sndbuf_getfree(bs);
sys/dev/usb/controller/musb_otg_allwinner.c
124
struct bus_space bs;
sys/dev/usb/controller/musb_otg_allwinner.c
245
struct bus_space *bs = t;
sys/dev/usb/controller/musb_otg_allwinner.c
252
return (bus_space_read_1(bs_parent_space(bs), h, awusbdrd_reg(o)));
sys/dev/usb/controller/musb_otg_allwinner.c
273
struct bus_space *bs = t;
sys/dev/usb/controller/musb_otg_allwinner.c
277
return bus_space_read_2(bs_parent_space(bs), h, awusbdrd_reg(o));
sys/dev/usb/controller/musb_otg_allwinner.c
284
struct bus_space *bs = t;
sys/dev/usb/controller/musb_otg_allwinner.c
289
bus_space_write_1(bs_parent_space(bs), h, awusbdrd_reg(o), v);
sys/dev/usb/controller/musb_otg_allwinner.c
296
struct bus_space *bs = t;
sys/dev/usb/controller/musb_otg_allwinner.c
301
bus_space_write_2(bs_parent_space(bs), h, awusbdrd_reg(o), v);
sys/dev/usb/controller/musb_otg_allwinner.c
308
struct bus_space *bs = t;
sys/dev/usb/controller/musb_otg_allwinner.c
310
bus_space_read_multi_1(bs_parent_space(bs), h, awusbdrd_reg(o), d, c);
sys/dev/usb/controller/musb_otg_allwinner.c
317
struct bus_space *bs = t;
sys/dev/usb/controller/musb_otg_allwinner.c
319
bus_space_read_multi_4(bs_parent_space(bs), h, awusbdrd_reg(o), d, c);
sys/dev/usb/controller/musb_otg_allwinner.c
326
struct bus_space *bs = t;
sys/dev/usb/controller/musb_otg_allwinner.c
331
bus_space_write_multi_1(bs_parent_space(bs), h, awusbdrd_reg(o), d, c);
sys/dev/usb/controller/musb_otg_allwinner.c
338
struct bus_space *bs = t;
sys/dev/usb/controller/musb_otg_allwinner.c
343
bus_space_write_multi_4(bs_parent_space(bs), h, awusbdrd_reg(o), d, c);
sys/dev/usb/controller/musb_otg_allwinner.c
477
sc->bs.bs_parent = rman_get_bustag(sc->res[0]);
sys/dev/usb/controller/musb_otg_allwinner.c
479
sc->bs.bs_cookie = rman_get_bustag(sc->res[0]);
sys/dev/usb/controller/musb_otg_allwinner.c
483
sc->bs.bs_r_1 = awusbdrd_bs_r_1_noconf;
sys/dev/usb/controller/musb_otg_allwinner.c
485
sc->bs.bs_r_1 = awusbdrd_bs_r_1;
sys/dev/usb/controller/musb_otg_allwinner.c
486
sc->bs.bs_r_2 = awusbdrd_bs_r_2;
sys/dev/usb/controller/musb_otg_allwinner.c
487
sc->bs.bs_w_1 = awusbdrd_bs_w_1;
sys/dev/usb/controller/musb_otg_allwinner.c
488
sc->bs.bs_w_2 = awusbdrd_bs_w_2;
sys/dev/usb/controller/musb_otg_allwinner.c
489
sc->bs.bs_rm_1 = awusbdrd_bs_rm_1;
sys/dev/usb/controller/musb_otg_allwinner.c
490
sc->bs.bs_rm_4 = awusbdrd_bs_rm_4;
sys/dev/usb/controller/musb_otg_allwinner.c
491
sc->bs.bs_wm_1 = awusbdrd_bs_wm_1;
sys/dev/usb/controller/musb_otg_allwinner.c
492
sc->bs.bs_wm_4 = awusbdrd_bs_wm_4;
sys/dev/usb/controller/musb_otg_allwinner.c
494
sc->sc.sc_io_tag = &sc->bs;
sys/dev/usb/controller/musb_otg_allwinner.c
78
#define bs_parent_space(bs) ((bs)->bs_parent)
sys/dev/usb/controller/musb_otg_allwinner.c
81
#define bs_parent_space(bs) (bs)
sys/dev/xen/balloon/balloon.c
109
unsigned long target = min(bs.target_pages, bs.hard_limit);
sys/dev/xen/balloon/balloon.c
110
if (target > (bs.current_pages + bs.balloon_low + bs.balloon_high))
sys/dev/xen/balloon/balloon.c
111
target = bs.current_pages + bs.balloon_low + bs.balloon_high;
sys/dev/xen/balloon/balloon.c
185
bs.hard_limit = (bs.current_pages + rc -
sys/dev/xen/balloon/balloon.c
186
bs.driver_pages);
sys/dev/xen/balloon/balloon.c
194
bs.balloon_low--;
sys/dev/xen/balloon/balloon.c
202
bs.current_pages += nr_pages;
sys/dev/xen/balloon/balloon.c
241
bs.balloon_low++;
sys/dev/xen/balloon/balloon.c
249
bs.current_pages -= nr_pages;
sys/dev/xen/balloon/balloon.c
271
credit = current_target() - bs.current_pages;
sys/dev/xen/balloon/balloon.c
280
if (current_target() != bs.current_pages)
sys/dev/xen/balloon/balloon.c
296
bs.hard_limit = ~0UL;
sys/dev/xen/balloon/balloon.c
297
bs.target_pages = max(target, minimum_target());
sys/dev/xen/balloon/balloon.c
376
bs.current_pages = realmem;
sys/dev/xen/balloon/balloon.c
377
bs.target_pages = bs.current_pages;
sys/dev/xen/balloon/balloon.c
378
bs.balloon_low = 0;
sys/dev/xen/balloon/balloon.c
379
bs.balloon_high = 0;
sys/dev/xen/balloon/balloon.c
380
bs.driver_pages = 0UL;
sys/dev/xen/balloon/balloon.c
381
bs.hard_limit = ~0UL;
sys/dev/xen/balloon/balloon.c
83
&bs.current_pages, 0, "Current allocation");
sys/dev/xen/balloon/balloon.c
85
&bs.target_pages, 0, "Target allocation");
sys/dev/xen/balloon/balloon.c
87
&bs.driver_pages, 0, "Driver pages");
sys/dev/xen/balloon/balloon.c
89
&bs.hard_limit, 0, "Xen hard limit");
sys/dev/xen/balloon/balloon.c
91
&bs.balloon_low, 0, "Low-mem balloon");
sys/dev/xen/balloon/balloon.c
93
&bs.balloon_high, 0, "High-mem balloon");
sys/fs/tarfs/tarfs_vnops.c
152
off_t bs, be;
sys/fs/tarfs/tarfs_vnops.c
154
bs = tnp->blk[i].o;
sys/fs/tarfs/tarfs_vnops.c
158
else if (off < bs) {
sys/fs/tarfs/tarfs_vnops.c
160
ra = bs - off < iosize ?
sys/fs/tarfs/tarfs_vnops.c
161
0 : howmany(bs - (off + iosize), iosize);
sys/fs/tarfs/tarfs_vnops.c
170
rb = howmany(off - bs, iosize);
sys/geom/virstor/binstream.c
102
bs_write_u64(bin_stream_t * bs, uint64_t data)
sys/geom/virstor/binstream.c
104
le64enc(bs->data + bs->pos, data);
sys/geom/virstor/binstream.c
105
return (bs->pos += 8);
sys/geom/virstor/binstream.c
110
bs_read_u8(bin_stream_t * bs)
sys/geom/virstor/binstream.c
112
uint8_t data = *((uint8_t *) (bs->data + bs->pos));
sys/geom/virstor/binstream.c
113
bs->pos++;
sys/geom/virstor/binstream.c
123
bs_read_str(bin_stream_t * bs, char *buf, unsigned buf_size)
sys/geom/virstor/binstream.c
130
*work_buf = *(bs->data + bs->pos + len);
sys/geom/virstor/binstream.c
133
bs->pos += len;
sys/geom/virstor/binstream.c
139
bs_read_buf(bin_stream_t * bs, char *buf, unsigned buf_size)
sys/geom/virstor/binstream.c
143
*(buf + i) = *(bs->data + bs->pos + i);
sys/geom/virstor/binstream.c
144
bs->pos += buf_size;
sys/geom/virstor/binstream.c
149
bs_read_u16(bin_stream_t * bs)
sys/geom/virstor/binstream.c
151
uint16_t data = le16dec(bs->data + bs->pos);
sys/geom/virstor/binstream.c
152
bs->pos += 2;
sys/geom/virstor/binstream.c
158
bs_read_u32(bin_stream_t * bs)
sys/geom/virstor/binstream.c
160
uint32_t data = le32dec(bs->data + bs->pos);
sys/geom/virstor/binstream.c
161
bs->pos += 4;
sys/geom/virstor/binstream.c
167
bs_read_u64(bin_stream_t * bs)
sys/geom/virstor/binstream.c
169
uint64_t data = le64dec(bs->data + bs->pos);
sys/geom/virstor/binstream.c
170
bs->pos += 8;
sys/geom/virstor/binstream.c
39
bs_open(bin_stream_t * bs, void *data)
sys/geom/virstor/binstream.c
41
bs->data = (char *)data;
sys/geom/virstor/binstream.c
42
bs->pos = 0;
sys/geom/virstor/binstream.c
47
bs_reset(bin_stream_t * bs)
sys/geom/virstor/binstream.c
49
bs->pos = 0;
sys/geom/virstor/binstream.c
54
bs_write_str(bin_stream_t * bs, char *data)
sys/geom/virstor/binstream.c
58
*(bs->data + bs->pos + len) = *data;
sys/geom/virstor/binstream.c
61
bs->pos += len;
sys/geom/virstor/binstream.c
62
return bs->pos;
sys/geom/virstor/binstream.c
67
bs_write_buf(bin_stream_t * bs, char *data, unsigned data_size)
sys/geom/virstor/binstream.c
71
*(bs->data + bs->pos + i) = *(data + i);
sys/geom/virstor/binstream.c
72
bs->pos += data_size;
sys/geom/virstor/binstream.c
73
return bs->pos;
sys/geom/virstor/binstream.c
78
bs_write_u8(bin_stream_t * bs, uint8_t data)
sys/geom/virstor/binstream.c
80
*((uint8_t *) (bs->data + bs->pos)) = data;
sys/geom/virstor/binstream.c
81
return ++(bs->pos);
sys/geom/virstor/binstream.c
86
bs_write_u16(bin_stream_t * bs, uint16_t data)
sys/geom/virstor/binstream.c
88
le16enc(bs->data + bs->pos, data);
sys/geom/virstor/binstream.c
89
return (bs->pos += 2);
sys/geom/virstor/binstream.c
94
bs_write_u32(bin_stream_t * bs, uint32_t data)
sys/geom/virstor/binstream.c
96
le32enc(bs->data + bs->pos, data);
sys/geom/virstor/binstream.c
97
return (bs->pos += 4);
sys/geom/virstor/binstream.h
44
void bs_open (bin_stream_t * bs, void *data);
sys/geom/virstor/binstream.h
47
void bs_reset (bin_stream_t * bs);
sys/geom/virstor/binstream.h
50
unsigned bs_write_str(bin_stream_t * bs, char *data);
sys/geom/virstor/binstream.h
53
unsigned bs_write_buf(bin_stream_t * bs, char *data, unsigned data_size);
sys/geom/virstor/binstream.h
56
unsigned bs_write_u8(bin_stream_t * bs, uint8_t data);
sys/geom/virstor/binstream.h
59
unsigned bs_write_u16(bin_stream_t * bs, uint16_t data);
sys/geom/virstor/binstream.h
62
unsigned bs_write_u32(bin_stream_t * bs, uint32_t data);
sys/geom/virstor/binstream.h
65
unsigned bs_write_u64(bin_stream_t * bs, uint64_t data);
sys/geom/virstor/binstream.h
72
char *bs_read_str(bin_stream_t * bs, char *buf, unsigned buf_size);
sys/geom/virstor/binstream.h
75
void bs_read_buf(bin_stream_t * bs, char *buf, unsigned buf_size);
sys/geom/virstor/binstream.h
78
uint8_t bs_read_u8(bin_stream_t * bs);
sys/geom/virstor/binstream.h
81
uint16_t bs_read_u16(bin_stream_t * bs);
sys/geom/virstor/binstream.h
84
uint32_t bs_read_u32(bin_stream_t * bs);
sys/geom/virstor/binstream.h
87
uint64_t bs_read_u64(bin_stream_t * bs);
sys/geom/virstor/g_virstor.c
1244
size_t bs;
sys/geom/virstor/g_virstor.c
1246
bs = MIN(maxphys, sc->map_size - count);
sys/geom/virstor/g_virstor.c
1247
if (bs % sc->sectorsize != 0) {
sys/geom/virstor/g_virstor.c
1249
bs = rounddown(bs, sc->sectorsize);
sys/geom/virstor/g_virstor.c
1250
if (bs == 0)
sys/geom/virstor/g_virstor.c
1256
mapbuf = g_read_data(sc->components[0].gcons, off, bs, &error);
sys/geom/virstor/g_virstor.c
1267
bcopy(mapbuf, &sc->map[n], bs);
sys/geom/virstor/g_virstor.c
1268
off += bs;
sys/geom/virstor/g_virstor.c
1269
count += bs;
sys/geom/virstor/g_virstor.c
1270
n += bs / sizeof(*(sc->map));
sys/geom/virstor/g_virstor_md.c
42
bin_stream_t bs;
sys/geom/virstor/g_virstor_md.c
44
bs_open(&bs, data);
sys/geom/virstor/g_virstor_md.c
46
bs_write_buf(&bs, md->md_magic, sizeof(md->md_magic));
sys/geom/virstor/g_virstor_md.c
47
bs_write_u32(&bs, md->md_version);
sys/geom/virstor/g_virstor_md.c
48
bs_write_buf(&bs, md->md_name, sizeof(md->md_name));
sys/geom/virstor/g_virstor_md.c
49
bs_write_u64(&bs, md->md_virsize);
sys/geom/virstor/g_virstor_md.c
50
bs_write_u32(&bs, md->md_chunk_size);
sys/geom/virstor/g_virstor_md.c
51
bs_write_u32(&bs, md->md_id);
sys/geom/virstor/g_virstor_md.c
52
bs_write_u16(&bs, md->md_count);
sys/geom/virstor/g_virstor_md.c
54
bs_write_buf(&bs, md->provider, sizeof(md->provider));
sys/geom/virstor/g_virstor_md.c
55
bs_write_u16(&bs, md->no);
sys/geom/virstor/g_virstor_md.c
56
bs_write_u64(&bs, md->provsize);
sys/geom/virstor/g_virstor_md.c
57
bs_write_u32(&bs, md->chunk_count);
sys/geom/virstor/g_virstor_md.c
58
bs_write_u32(&bs, md->chunk_next);
sys/geom/virstor/g_virstor_md.c
59
bs_write_u16(&bs, md->chunk_reserved);
sys/geom/virstor/g_virstor_md.c
60
bs_write_u16(&bs, md->flags);
sys/geom/virstor/g_virstor_md.c
70
bin_stream_t bs;
sys/geom/virstor/g_virstor_md.c
72
bs_open(&bs, (char *)(data));
sys/geom/virstor/g_virstor_md.c
74
bs_read_buf(&bs, md->md_magic, sizeof(md->md_magic));
sys/geom/virstor/g_virstor_md.c
75
md->md_version = bs_read_u32(&bs);
sys/geom/virstor/g_virstor_md.c
76
bs_read_buf(&bs, md->md_name, sizeof(md->md_name));
sys/geom/virstor/g_virstor_md.c
77
md->md_virsize = bs_read_u64(&bs);
sys/geom/virstor/g_virstor_md.c
78
md->md_chunk_size = bs_read_u32(&bs);
sys/geom/virstor/g_virstor_md.c
79
md->md_id = bs_read_u32(&bs);
sys/geom/virstor/g_virstor_md.c
80
md->md_count = bs_read_u16(&bs);
sys/geom/virstor/g_virstor_md.c
82
bs_read_buf(&bs, md->provider, sizeof(md->provider));
sys/geom/virstor/g_virstor_md.c
83
md->no = bs_read_u16(&bs);
sys/geom/virstor/g_virstor_md.c
84
md->provsize = bs_read_u64(&bs);
sys/geom/virstor/g_virstor_md.c
85
md->chunk_count = bs_read_u32(&bs);
sys/geom/virstor/g_virstor_md.c
86
md->chunk_next = bs_read_u32(&bs);
sys/geom/virstor/g_virstor_md.c
87
md->chunk_reserved = bs_read_u16(&bs);
sys/geom/virstor/g_virstor_md.c
88
md->flags = bs_read_u16(&bs);
sys/kern/tty.c
125
size_t bs = 0;
sys/kern/tty.c
130
bs = MIN(tp->t_termios.c_ispeed / 5, TTYBUF_MAX);
sys/kern/tty.c
131
error = ttyinq_setsize(&tp->t_inq, tp, bs);
sys/kern/tty.c
139
bs = MIN(tp->t_termios.c_ospeed / 5, TTYBUF_MAX);
sys/kern/tty.c
140
error = ttyoutq_setsize(&tp->t_outq, tp, bs);
sys/kern/uipc_ktls.c
2138
int bs, delta;
sys/kern/uipc_ktls.c
2156
bs = tls->params.tls_bs;
sys/kern/uipc_ktls.c
2157
delta = (tls_len + tls->params.tls_tlen) & (bs - 1);
sys/net/bpf.c
1486
struct bpf_stat *bs = (struct bpf_stat *)addr;
sys/net/bpf.c
1489
bs->bs_recv = (u_int)counter_u64_fetch(d->bd_rcount);
sys/net/bpf.c
1490
bs->bs_drop = (u_int)counter_u64_fetch(d->bd_dcount);
sys/net/bridgestp.c
1000
bstp_set_all_sync(bs);
sys/net/bridgestp.c
1007
(bstp_rerooted(bs, bp) &&
sys/net/bridgestp.c
1093
bstp_transmit(bs, bp);
sys/net/bridgestp.c
1156
struct bstp_state *bs = bp->bp_bs;
sys/net/bridgestp.c
1166
bs->bs_allsynced = 0;
sys/net/bridgestp.c
1185
struct bstp_state *bs = bp->bp_bs;
sys/net/bridgestp.c
1188
BSTP_LOCK_ASSERT(bs);
sys/net/bridgestp.c
1190
LIST_FOREACH(bp2, &bs->bs_bplist, bp_next) {
sys/net/bridgestp.c
1198
bstp_set_all_reroot(struct bstp_state *bs)
sys/net/bridgestp.c
1202
BSTP_LOCK_ASSERT(bs);
sys/net/bridgestp.c
1204
LIST_FOREACH(bp, &bs->bs_bplist, bp_next)
sys/net/bridgestp.c
1209
bstp_set_all_sync(struct bstp_state *bs)
sys/net/bridgestp.c
1213
BSTP_LOCK_ASSERT(bs);
sys/net/bridgestp.c
1215
LIST_FOREACH(bp, &bs->bs_bplist, bp_next) {
sys/net/bridgestp.c
1220
bs->bs_allsynced = 0;
sys/net/bridgestp.c
1263
struct bstp_state *bs = bp->bp_bs;
sys/net/bridgestp.c
1296
bs->bs_allsynced = 0;
sys/net/bridgestp.c
1337
struct bstp_state *bs = bp->bp_bs;
sys/net/bridgestp.c
1353
bs->bs_migration_delay);
sys/net/bridgestp.c
1368
struct bstp_state *bs = bp->bp_bs;
sys/net/bridgestp.c
1401
bstp_transmit(bs, bp);
sys/net/bridgestp.c
1402
getmicrotime(&bs->bs_last_tc_time);
sys/net/bridgestp.c
1444
struct bstp_state *bs = bp->bp_bs;
sys/net/bridgestp.c
1458
bs->bs_root_max_age + bs->bs_root_fdelay);
sys/net/bridgestp.c
1476
bstp_rerooted(struct bstp_state *bs, struct bstp_port *bp)
sys/net/bridgestp.c
1481
LIST_FOREACH(bp2, &bs->bs_bplist, bp_next) {
sys/net/bridgestp.c
1493
bstp_set_htime(struct bstp_state *bs, int t)
sys/net/bridgestp.c
1499
if (bs->bs_protover != BSTP_PROTO_STP)
sys/net/bridgestp.c
1505
BSTP_LOCK(bs);
sys/net/bridgestp.c
1506
bs->bs_bridge_htime = t;
sys/net/bridgestp.c
1507
bstp_reinit(bs);
sys/net/bridgestp.c
1508
BSTP_UNLOCK(bs);
sys/net/bridgestp.c
1513
bstp_set_fdelay(struct bstp_state *bs, int t)
sys/net/bridgestp.c
1521
BSTP_LOCK(bs);
sys/net/bridgestp.c
1522
bs->bs_bridge_fdelay = t;
sys/net/bridgestp.c
1523
bstp_reinit(bs);
sys/net/bridgestp.c
1524
BSTP_UNLOCK(bs);
sys/net/bridgestp.c
1529
bstp_set_maxage(struct bstp_state *bs, int t)
sys/net/bridgestp.c
1537
BSTP_LOCK(bs);
sys/net/bridgestp.c
1538
bs->bs_bridge_max_age = t;
sys/net/bridgestp.c
1539
bstp_reinit(bs);
sys/net/bridgestp.c
154
bstp_transmit(struct bstp_state *bs, struct bstp_port *bp)
sys/net/bridgestp.c
1540
BSTP_UNLOCK(bs);
sys/net/bridgestp.c
1545
bstp_set_holdcount(struct bstp_state *bs, int count)
sys/net/bridgestp.c
1553
BSTP_LOCK(bs);
sys/net/bridgestp.c
1554
bs->bs_txholdcount = count;
sys/net/bridgestp.c
1555
LIST_FOREACH(bp, &bs->bs_bplist, bp_next)
sys/net/bridgestp.c
1557
BSTP_UNLOCK(bs);
sys/net/bridgestp.c
1562
bstp_set_protocol(struct bstp_state *bs, int proto)
sys/net/bridgestp.c
1576
BSTP_LOCK(bs);
sys/net/bridgestp.c
1577
bs->bs_protover = proto;
sys/net/bridgestp.c
1578
bs->bs_bridge_htime = BSTP_DEFAULT_HELLO_TIME;
sys/net/bridgestp.c
1579
LIST_FOREACH(bp, &bs->bs_bplist, bp_next) {
sys/net/bridgestp.c
158
if (bs->bs_running == 0)
sys/net/bridgestp.c
1583
bstp_set_port_proto(bp, bs->bs_protover);
sys/net/bridgestp.c
1588
bstp_reinit(bs);
sys/net/bridgestp.c
1589
BSTP_UNLOCK(bs);
sys/net/bridgestp.c
1594
bstp_set_priority(struct bstp_state *bs, int pri)
sys/net/bridgestp.c
1602
BSTP_LOCK(bs);
sys/net/bridgestp.c
1603
bs->bs_bridge_priority = pri;
sys/net/bridgestp.c
1604
bstp_reinit(bs);
sys/net/bridgestp.c
1605
BSTP_UNLOCK(bs);
sys/net/bridgestp.c
1612
struct bstp_state *bs = bp->bp_bs;
sys/net/bridgestp.c
1620
BSTP_LOCK(bs);
sys/net/bridgestp.c
1622
bstp_reinit(bs);
sys/net/bridgestp.c
1623
BSTP_UNLOCK(bs);
sys/net/bridgestp.c
1630
struct bstp_state *bs = bp->bp_bs;
sys/net/bridgestp.c
1639
BSTP_LOCK(bs);
sys/net/bridgestp.c
1648
bstp_reinit(bs);
sys/net/bridgestp.c
1649
BSTP_UNLOCK(bs);
sys/net/bridgestp.c
1656
struct bstp_state *bs = bp->bp_bs;
sys/net/bridgestp.c
1658
BSTP_LOCK(bs);
sys/net/bridgestp.c
1663
BSTP_UNLOCK(bs);
sys/net/bridgestp.c
167
bstp_hello_timer_expiry(bs, bp);
sys/net/bridgestp.c
1670
struct bstp_state *bs = bp->bp_bs;
sys/net/bridgestp.c
1672
BSTP_LOCK(bs);
sys/net/bridgestp.c
1677
bstp_edge_delay_expiry(bs, bp);
sys/net/bridgestp.c
1680
BSTP_UNLOCK(bs);
sys/net/bridgestp.c
1687
struct bstp_state *bs = bp->bp_bs;
sys/net/bridgestp.c
1689
BSTP_LOCK(bs);
sys/net/bridgestp.c
1691
BSTP_UNLOCK(bs);
sys/net/bridgestp.c
1698
struct bstp_state *bs = bp->bp_bs;
sys/net/bridgestp.c
170
if (bp->bp_txcount > bs->bs_txholdcount)
sys/net/bridgestp.c
1700
BSTP_LOCK(bs);
sys/net/bridgestp.c
1707
BSTP_UNLOCK(bs);
sys/net/bridgestp.c
175
bstp_transmit_bpdu(bs, bp);
sys/net/bridgestp.c
1754
struct bstp_state *bs = bp->bp_bs;
sys/net/bridgestp.c
1756
if (bp->bp_active == 1 && bs->bs_state_cb != NULL)
sys/net/bridgestp.c
1757
(*bs->bs_state_cb)(bp->bp_ifp, bp->bp_state);
sys/net/bridgestp.c
1768
struct bstp_state *bs = bp->bp_bs;
sys/net/bridgestp.c
1771
BSTP_LOCK(bs);
sys/net/bridgestp.c
1782
BSTP_UNLOCK(bs);
sys/net/bridgestp.c
1784
if (bp->bp_active == 1 && bs->bs_rtage_cb != NULL)
sys/net/bridgestp.c
1785
(*bs->bs_rtage_cb)(bp->bp_ifp, age);
sys/net/bridgestp.c
1788
BSTP_LOCK(bs);
sys/net/bridgestp.c
1790
BSTP_UNLOCK(bs);
sys/net/bridgestp.c
1796
struct bstp_state *bs = bp->bp_bs;
sys/net/bridgestp.c
180
bstp_transmit_bpdu(bs, bp);
sys/net/bridgestp.c
1802
BSTP_LOCK(bs);
sys/net/bridgestp.c
1803
bstp_update_state(bs, bp);
sys/net/bridgestp.c
1804
BSTP_UNLOCK(bs);
sys/net/bridgestp.c
1811
struct bstp_state *bs = bp->bp_bs;
sys/net/bridgestp.c
1822
BSTP_LOCK(bs);
sys/net/bridgestp.c
185
bstp_transmit_tcn(bs, bp);
sys/net/bridgestp.c
1850
bstp_enable_port(bs, bp);
sys/net/bridgestp.c
1855
bstp_disable_port(bs, bp);
sys/net/bridgestp.c
1863
bstp_disable_port(bs, bp);
sys/net/bridgestp.c
1867
bstp_assign_roles(bs);
sys/net/bridgestp.c
1868
BSTP_UNLOCK(bs);
sys/net/bridgestp.c
1872
bstp_enable_port(struct bstp_state *bs, struct bstp_port *bp)
sys/net/bridgestp.c
1878
bstp_disable_port(struct bstp_state *bs, struct bstp_port *bp)
sys/net/bridgestp.c
1887
struct bstp_state *bs = arg;
sys/net/bridgestp.c
1890
BSTP_LOCK_ASSERT(bs);
sys/net/bridgestp.c
1892
if (bs->bs_running == 0)
sys/net/bridgestp.c
1896
CURVNET_SET(bs->bs_vnet);
sys/net/bridgestp.c
1899
if (bstp_timer_dectest(&bs->bs_link_timer)) {
sys/net/bridgestp.c
1900
LIST_FOREACH(bp, &bs->bs_bplist, bp_next) {
sys/net/bridgestp.c
1904
bstp_timer_start(&bs->bs_link_timer, BSTP_LINK_TIMER);
sys/net/bridgestp.c
1907
LIST_FOREACH(bp, &bs->bs_bplist, bp_next) {
sys/net/bridgestp.c
1915
bstp_hello_timer_expiry(bs, bp);
sys/net/bridgestp.c
1918
bstp_message_age_expiry(bs, bp);
sys/net/bridgestp.c
1921
bstp_migrate_delay_expiry(bs, bp);
sys/net/bridgestp.c
1924
bstp_edge_delay_expiry(bs, bp);
sys/net/bridgestp.c
1927
bstp_update_state(bs, bp);
sys/net/bridgestp.c
1936
callout_reset(&bs->bs_bstpcallout, hz, bstp_tick, bs);
sys/net/bridgestp.c
194
bstp_transmit_bpdu(struct bstp_state *bs, struct bstp_port *bp)
sys/net/bridgestp.c
1976
bstp_hello_timer_expiry(struct bstp_state *bs, struct bstp_port *bp)
sys/net/bridgestp.c
198
BSTP_LOCK_ASSERT(bs);
sys/net/bridgestp.c
1984
bstp_transmit(bs, bp);
sys/net/bridgestp.c
1989
bstp_message_age_expiry(struct bstp_state *bs, struct bstp_port *bp)
sys/net/bridgestp.c
1993
bstp_assign_roles(bs);
sys/net/bridgestp.c
1999
bstp_migrate_delay_expiry(struct bstp_state *bs, struct bstp_port *bp)
sys/net/bridgestp.c
2005
bstp_edge_delay_expiry(struct bstp_state *bs, struct bstp_port *bp)
sys/net/bridgestp.c
2046
bstp_reinit(struct bstp_state *bs)
sys/net/bridgestp.c
2055
BSTP_LOCK_ASSERT(bs);
sys/net/bridgestp.c
2057
if (LIST_EMPTY(&bs->bs_bplist))
sys/net/bridgestp.c
2061
bridgeptr = LIST_FIRST(&bs->bs_bplist)->bp_ifp->if_bridge;
sys/net/bridgestp.c
2095
bs->bs_bridge_pv.pv_dbridge_id =
sys/net/bridgestp.c
2096
(((uint64_t)bs->bs_bridge_priority) << 48) |
sys/net/bridgestp.c
2104
bs->bs_bridge_pv.pv_root_id = bs->bs_bridge_pv.pv_dbridge_id;
sys/net/bridgestp.c
2105
bs->bs_bridge_pv.pv_cost = 0;
sys/net/bridgestp.c
2106
bs->bs_bridge_pv.pv_dport_id = 0;
sys/net/bridgestp.c
2107
bs->bs_bridge_pv.pv_port_id = 0;
sys/net/bridgestp.c
2109
if (bs->bs_running && callout_pending(&bs->bs_bstpcallout) == 0)
sys/net/bridgestp.c
2110
callout_reset(&bs->bs_bstpcallout, hz, bstp_tick, bs);
sys/net/bridgestp.c
2112
LIST_FOREACH(bp, &bs->bs_bplist, bp_next) {
sys/net/bridgestp.c
2118
bstp_assign_roles(bs);
sys/net/bridgestp.c
2119
bstp_timer_start(&bs->bs_link_timer, BSTP_LINK_TIMER);
sys/net/bridgestp.c
2124
bs->bs_bridge_pv.pv_dbridge_id =
sys/net/bridgestp.c
2125
((uint64_t)bs->bs_bridge_priority) << 48;
sys/net/bridgestp.c
2126
bs->bs_bridge_pv.pv_root_id = bs->bs_bridge_pv.pv_dbridge_id;
sys/net/bridgestp.c
2127
bs->bs_root_pv = bs->bs_bridge_pv;
sys/net/bridgestp.c
2129
LIST_FOREACH(bp, &bs->bs_bplist, bp_next) {
sys/net/bridgestp.c
2133
callout_stop(&bs->bs_bstpcallout);
sys/net/bridgestp.c
2162
bstp_attach(struct bstp_state *bs, struct bstp_cb_ops *cb)
sys/net/bridgestp.c
2164
BSTP_LOCK_INIT(bs);
sys/net/bridgestp.c
2165
callout_init_mtx(&bs->bs_bstpcallout, &bs->bs_mtx, 0);
sys/net/bridgestp.c
2166
LIST_INIT(&bs->bs_bplist);
sys/net/bridgestp.c
2168
bs->bs_bridge_max_age = BSTP_DEFAULT_MAX_AGE;
sys/net/bridgestp.c
2169
bs->bs_bridge_htime = BSTP_DEFAULT_HELLO_TIME;
sys/net/bridgestp.c
2170
bs->bs_bridge_fdelay = BSTP_DEFAULT_FORWARD_DELAY;
sys/net/bridgestp.c
2171
bs->bs_bridge_priority = BSTP_DEFAULT_BRIDGE_PRIORITY;
sys/net/bridgestp.c
2172
bs->bs_hold_time = BSTP_DEFAULT_HOLD_TIME;
sys/net/bridgestp.c
2173
bs->bs_migration_delay = BSTP_DEFAULT_MIGRATE_DELAY;
sys/net/bridgestp.c
2174
bs->bs_txholdcount = BSTP_DEFAULT_HOLD_COUNT;
sys/net/bridgestp.c
2175
bs->bs_protover = BSTP_PROTO_RSTP;
sys/net/bridgestp.c
2176
bs->bs_state_cb = cb->bcb_state;
sys/net/bridgestp.c
2177
bs->bs_rtage_cb = cb->bcb_rtage;
sys/net/bridgestp.c
2178
bs->bs_vnet = curvnet;
sys/net/bridgestp.c
2180
getmicrotime(&bs->bs_last_tc_time);
sys/net/bridgestp.c
2183
LIST_INSERT_HEAD(&bstp_list, bs, bs_list);
sys/net/bridgestp.c
2188
bstp_detach(struct bstp_state *bs)
sys/net/bridgestp.c
2190
KASSERT(LIST_EMPTY(&bs->bs_bplist), ("bstp still active"));
sys/net/bridgestp.c
2193
LIST_REMOVE(bs, bs_list);
sys/net/bridgestp.c
2195
callout_drain(&bs->bs_bstpcallout);
sys/net/bridgestp.c
2196
BSTP_LOCK_DESTROY(bs);
sys/net/bridgestp.c
2200
bstp_init(struct bstp_state *bs)
sys/net/bridgestp.c
2202
BSTP_LOCK(bs);
sys/net/bridgestp.c
2203
callout_reset(&bs->bs_bstpcallout, hz, bstp_tick, bs);
sys/net/bridgestp.c
2204
bs->bs_running = 1;
sys/net/bridgestp.c
2205
bstp_reinit(bs);
sys/net/bridgestp.c
2206
BSTP_UNLOCK(bs);
sys/net/bridgestp.c
2210
bstp_stop(struct bstp_state *bs)
sys/net/bridgestp.c
2214
BSTP_LOCK(bs);
sys/net/bridgestp.c
2216
LIST_FOREACH(bp, &bs->bs_bplist, bp_next)
sys/net/bridgestp.c
2219
bs->bs_running = 0;
sys/net/bridgestp.c
2220
callout_stop(&bs->bs_bstpcallout);
sys/net/bridgestp.c
2221
BSTP_UNLOCK(bs);
sys/net/bridgestp.c
2225
bstp_create(struct bstp_state *bs, struct bstp_port *bp, struct ifnet *ifp)
sys/net/bridgestp.c
2229
BSTP_LOCK(bs);
sys/net/bridgestp.c
2231
bp->bp_bs = bs;
sys/net/bridgestp.c
2241
bstp_set_port_proto(bp, bs->bs_protover);
sys/net/bridgestp.c
2245
BSTP_UNLOCK(bs);
sys/net/bridgestp.c
2252
struct bstp_state *bs = bp->bp_bs;
sys/net/bridgestp.c
226
bstp_send_bpdu(bs, bp, &bpdu);
sys/net/bridgestp.c
2267
BSTP_LOCK(bs);
sys/net/bridgestp.c
2268
LIST_INSERT_HEAD(&bs->bs_bplist, bp, bp_next);
sys/net/bridgestp.c
2271
bstp_reinit(bs);
sys/net/bridgestp.c
2272
bstp_update_roles(bs, bp);
sys/net/bridgestp.c
2273
BSTP_UNLOCK(bs);
sys/net/bridgestp.c
2280
struct bstp_state *bs = bp->bp_bs;
sys/net/bridgestp.c
2284
BSTP_LOCK(bs);
sys/net/bridgestp.c
2285
bstp_disable_port(bs, bp);
sys/net/bridgestp.c
2288
bstp_reinit(bs);
sys/net/bridgestp.c
2289
BSTP_UNLOCK(bs);
sys/net/bridgestp.c
230
bstp_transmit_tcn(struct bstp_state *bs, struct bstp_port *bp)
sys/net/bridgestp.c
237
KASSERT(bp == bs->bs_root_port, ("%s: bad root port\n", __func__));
sys/net/bridgestp.c
342
bstp_send_bpdu(struct bstp_state *bs, struct bstp_port *bp,
sys/net/bridgestp.c
349
BSTP_LOCK_ASSERT(bs);
sys/net/bridgestp.c
458
struct bstp_state *bs = bp->bp_bs;
sys/net/bridgestp.c
468
BSTP_LOCK(bs);
sys/net/bridgestp.c
519
bstp_received_stp(bs, bp, &m, &tpdu);
sys/net/bridgestp.c
523
bstp_received_rstp(bs, bp, &m, &tpdu);
sys/net/bridgestp.c
527
BSTP_UNLOCK(bs);
sys/net/bridgestp.c
533
bstp_received_stp(struct bstp_state *bs, struct bstp_port *bp,
sys/net/bridgestp.c
543
bstp_received_tcn(bs, bp, &tu);
sys/net/bridgestp.c
552
bstp_received_bpdu(bs, bp, cu);
sys/net/bridgestp.c
558
bstp_received_rstp(struct bstp_state *bs, struct bstp_port *bp,
sys/net/bridgestp.c
573
bstp_received_bpdu(bs, bp, cu);
sys/net/bridgestp.c
577
bstp_received_tcn(struct bstp_state *bs, struct bstp_port *bp,
sys/net/bridgestp.c
585
bstp_received_bpdu(struct bstp_state *bs, struct bstp_port *bp,
sys/net/bridgestp.c
590
BSTP_LOCK_ASSERT(bs);
sys/net/bridgestp.c
620
bs->bs_allsynced = 0;
sys/net/bridgestp.c
648
bstp_assign_roles(bs);
sys/net/bridgestp.c
691
bstp_update_state(bs, bp);
sys/net/bridgestp.c
800
bstp_assign_roles(struct bstp_state *bs)
sys/net/bridgestp.c
806
bs->bs_root_pv = bs->bs_bridge_pv;
sys/net/bridgestp.c
807
bs->bs_root_msg_age = 0;
sys/net/bridgestp.c
808
bs->bs_root_max_age = bs->bs_bridge_max_age;
sys/net/bridgestp.c
809
bs->bs_root_fdelay = bs->bs_bridge_fdelay;
sys/net/bridgestp.c
810
bs->bs_root_htime = bs->bs_bridge_htime;
sys/net/bridgestp.c
811
bs->bs_root_port = NULL;
sys/net/bridgestp.c
814
LIST_FOREACH(bp, &bs->bs_bplist, bp_next) {
sys/net/bridgestp.c
827
bs->bs_bridge_pv.pv_dbridge_id) == 0 &&
sys/net/bridgestp.c
828
bstp_info_cmp(&bs->bs_root_pv, &pv) == INFO_BETTER) {
sys/net/bridgestp.c
830
bs->bs_root_pv = pv;
sys/net/bridgestp.c
831
bs->bs_root_msg_age = bp->bp_port_msg_age +
sys/net/bridgestp.c
833
bs->bs_root_max_age = bp->bp_port_max_age;
sys/net/bridgestp.c
834
bs->bs_root_fdelay = bp->bp_port_fdelay;
sys/net/bridgestp.c
835
bs->bs_root_htime = bp->bp_port_htime;
sys/net/bridgestp.c
840
LIST_FOREACH(bp, &bs->bs_bplist, bp_next) {
sys/net/bridgestp.c
842
bp->bp_desg_pv.pv_root_id = bs->bs_root_pv.pv_root_id;
sys/net/bridgestp.c
843
bp->bp_desg_pv.pv_cost = bs->bs_root_pv.pv_cost;
sys/net/bridgestp.c
844
bp->bp_desg_pv.pv_dbridge_id = bs->bs_bridge_pv.pv_dbridge_id;
sys/net/bridgestp.c
849
bp->bp_desg_msg_age = bs->bs_root_msg_age;
sys/net/bridgestp.c
850
bp->bp_desg_max_age = bs->bs_root_max_age;
sys/net/bridgestp.c
851
bp->bp_desg_fdelay = bs->bs_root_fdelay;
sys/net/bridgestp.c
852
bp->bp_desg_htime = bs->bs_bridge_htime;
sys/net/bridgestp.c
884
bs->bs_root_port = bp;
sys/net/bridgestp.c
896
bs->bs_bridge_pv.pv_dbridge_id)) {
sys/net/bridgestp.c
918
bstp_update_state(struct bstp_state *bs, struct bstp_port *bp)
sys/net/bridgestp.c
923
BSTP_LOCK_ASSERT(bs);
sys/net/bridgestp.c
926
if (!bs->bs_allsynced) {
sys/net/bridgestp.c
928
LIST_FOREACH(bp2, &bs->bs_bplist, bp_next) {
sys/net/bridgestp.c
935
bs->bs_allsynced = synced;
sys/net/bridgestp.c
938
bstp_update_roles(bs, bp);
sys/net/bridgestp.c
943
bstp_update_roles(struct bstp_state *bs, struct bstp_port *bp)
sys/net/bridgestp.c
959
if ((bs->bs_allsynced && !bp->bp_agree) ||
sys/net/bridgestp.c
969
bstp_set_all_sync(bs);
sys/net/bridgestp.c
986
bstp_set_all_reroot(bs);
sys/net/bridgestp.c
990
if ((bs->bs_allsynced && !bp->bp_agree) ||
sys/net/if_bridge.c
1857
struct bstp_state *bs = &sc->sc_stp;
sys/net/if_bridge.c
1859
param->ifbrp_prio = bs->bs_bridge_priority;
sys/net/if_bridge.c
1875
struct bstp_state *bs = &sc->sc_stp;
sys/net/if_bridge.c
1877
param->ifbrp_hellotime = bs->bs_bridge_htime >> 8;
sys/net/if_bridge.c
1893
struct bstp_state *bs = &sc->sc_stp;
sys/net/if_bridge.c
1895
param->ifbrp_fwddelay = bs->bs_bridge_fdelay >> 8;
sys/net/if_bridge.c
1911
struct bstp_state *bs = &sc->sc_stp;
sys/net/if_bridge.c
1913
param->ifbrp_maxage = bs->bs_bridge_max_age >> 8;
sys/net/if_bridge.c
2104
struct bstp_state *bs = &sc->sc_stp;
sys/net/if_bridge.c
2107
req->ifbop_maxage = bs->bs_bridge_max_age >> 8;
sys/net/if_bridge.c
2108
req->ifbop_hellotime = bs->bs_bridge_htime >> 8;
sys/net/if_bridge.c
2109
req->ifbop_fwddelay = bs->bs_bridge_fdelay >> 8;
sys/net/if_bridge.c
2111
root_port = bs->bs_root_port;
sys/net/if_bridge.c
2117
req->ifbop_holdcount = bs->bs_txholdcount;
sys/net/if_bridge.c
2118
req->ifbop_priority = bs->bs_bridge_priority;
sys/net/if_bridge.c
2119
req->ifbop_protocol = bs->bs_protover;
sys/net/if_bridge.c
2120
req->ifbop_root_path_cost = bs->bs_root_pv.pv_cost;
sys/net/if_bridge.c
2121
req->ifbop_bridgeid = bs->bs_bridge_pv.pv_dbridge_id;
sys/net/if_bridge.c
2122
req->ifbop_designated_root = bs->bs_root_pv.pv_root_id;
sys/net/if_bridge.c
2123
req->ifbop_designated_bridge = bs->bs_root_pv.pv_dbridge_id;
sys/net/if_bridge.c
2124
req->ifbop_last_tc_time.tv_sec = bs->bs_last_tc_time.tv_sec;
sys/net/if_bridge.c
2125
req->ifbop_last_tc_time.tv_usec = bs->bs_last_tc_time.tv_usec;
sys/powerpc/mpc85xx/fsl_diu.c
290
#define MAKE_PXLFMT(as,rs,gs,bs,a,r,g,b,f,s) \
sys/powerpc/mpc85xx/fsl_diu.c
292
(gs << 4 * g) | (bs << 4 * b) | \
tests/sys/fs/fusefs/write.cc
1293
off_t bs = m_maxbcachebuf;
tests/sys/fs/fusefs/write.cc
1294
ssize_t fsize = 3 * bs;
tests/sys/fs/fusefs/write.cc
1297
readbuf = new char[bs];
tests/sys/fs/fusefs/write.cc
1298
zeros = new char[3 * bs]();
tests/sys/fs/fusefs/write.cc
1299
ones = new char[2 * bs];
tests/sys/fs/fusefs/write.cc
1300
memset(ones, 1, 2 * bs);
tests/sys/fs/fusefs/write.cc
1301
zeroones = new char[bs]();
tests/sys/fs/fusefs/write.cc
1302
memset((uint8_t*)zeroones + bs / 2, 1, bs / 2);
tests/sys/fs/fusefs/write.cc
1303
onezeros = new char[bs]();
tests/sys/fs/fusefs/write.cc
1304
memset(onezeros, 1, bs / 2);
tests/sys/fs/fusefs/write.cc
1313
ASSERT_EQ(3 * bs, pwrite(fd, zeros, 3 * bs, 0)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
1319
FuseTest::expect_write(ino, 0, bs, bs, 0, 0, zeros);
tests/sys/fs/fusefs/write.cc
1320
FuseTest::expect_write(ino, 2 * bs, bs, bs, 0, 0, zeros);
tests/sys/fs/fusefs/write.cc
1322
FuseTest::expect_write(ino, bs / 2, bs, bs, 0, 0, ones);
tests/sys/fs/fusefs/write.cc
1323
FuseTest::expect_write(ino, 3 * bs / 2, bs, bs, 0, 0, ones);
tests/sys/fs/fusefs/write.cc
1325
ASSERT_EQ(2 * bs, pwrite(fd, ones, 2 * bs, bs / 2)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
1332
expect_read(ino, 0, bs, bs, zeroones);
tests/sys/fs/fusefs/write.cc
1333
expect_read(ino, 2 * bs, bs, bs, onezeros);
tests/sys/fs/fusefs/write.cc
1335
ASSERT_EQ(bs / 2, pread(fd, readbuf, bs / 2, 0)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
1336
EXPECT_EQ(0, memcmp(zeros, readbuf, bs / 2));
tests/sys/fs/fusefs/write.cc
1337
ASSERT_EQ(bs / 2, pread(fd, readbuf, bs / 2, 5 * bs / 2))
tests/sys/fs/fusefs/write.cc
1339
EXPECT_EQ(0, memcmp(zeros, readbuf, bs / 2));
tests/sys/fs/fusefs/write.cc
1340
ASSERT_EQ(bs / 2, pread(fd, readbuf, bs / 2, bs / 2))
tests/sys/fs/fusefs/write.cc
1342
EXPECT_EQ(0, memcmp(ones, readbuf, bs / 2));
tests/sys/fs/fusefs/write.cc
1343
ASSERT_EQ(bs / 2, pread(fd, readbuf, bs / 2, 2 * bs))
tests/sys/fs/fusefs/write.cc
1345
EXPECT_EQ(0, memcmp(ones, readbuf, bs / 2));
tests/sys/sys/bitset_test.c
28
#define _BIT_FOREACH_COUNT(s, bs) do { \
tests/sys/sys/bitset_test.c
31
BIT_FOREACH_ISSET((s), i, (bs)) { \
tests/sys/sys/bitset_test.c
33
ATF_REQUIRE_MSG(BIT_ISSET((s), i, (bs)), \
tests/sys/sys/bitset_test.c
39
BIT_FOREACH_ISCLR((s), i, (bs)) { \
tests/sys/sys/bitset_test.c
41
ATF_REQUIRE_MSG(!BIT_ISSET((s), i, (bs)), \
tools/tools/ath/athaggrstats/athaggrstats.c
211
snprintrate(char b[], size_t bs, int rate)
tools/tools/ath/athaggrstats/athaggrstats.c
214
snprintf(b, bs, "MCS%u", rate &~ IEEE80211_RATE_MCS);
tools/tools/ath/athaggrstats/athaggrstats.c
216
snprintf(b, bs, "%u.5M", rate / 2);
tools/tools/ath/athaggrstats/athaggrstats.c
218
snprintf(b, bs, "%uM", rate / 2);
tools/tools/ath/athaggrstats/athaggrstats.c
222
ath_get_curstat(struct bsdstat *sf, int s, char b[], size_t bs)
tools/tools/ath/athaggrstats/athaggrstats.c
226
snprintf(b, bs, "%u", wf->cur.aggr_##x - wf->total.aggr_##x); return 1
tools/tools/ath/athaggrstats/athaggrstats.c
228
snprintf(b, bs, "%u", wf->cur.aggr_pkts[x] - wf->total.aggr_pkts[x]); return 1
tools/tools/ath/athaggrstats/athaggrstats.c
278
ath_get_totstat(struct bsdstat *sf, int s, char b[], size_t bs)
tools/tools/ath/athaggrstats/athaggrstats.c
282
snprintf(b, bs, "%u", wf->total.aggr_##x); return 1
tools/tools/ath/athaggrstats/athaggrstats.c
284
snprintf(b, bs, "%u", wf->total.aggr_pkts[x]); return 1
tools/tools/ath/athstats/athstats.c
1004
snprintf(b, bs, "%d", wf->total.ath.ast_rx_noise);
tools/tools/ath/athstats/athstats.c
1007
snprintf(b, bs, "%d",
tools/tools/ath/athstats/athstats.c
1011
snprintf(b, bs, "%d",
tools/tools/ath/athstats/athstats.c
539
snprintrate(char b[], size_t bs, int rate)
tools/tools/ath/athstats/athstats.c
542
snprintf(b, bs, "MCS%u", rate &~ IEEE80211_RATE_MCS);
tools/tools/ath/athstats/athstats.c
544
snprintf(b, bs, "%u.5M", rate / 2);
tools/tools/ath/athstats/athstats.c
546
snprintf(b, bs, "%uM", rate / 2);
tools/tools/ath/athstats/athstats.c
550
ath_get_curstat(struct bsdstat *sf, int s, char b[], size_t bs)
tools/tools/ath/athstats/athstats.c
554
snprintf(b, bs, "%u", wf->cur.ath.ast_##x - wf->total.ath.ast_##x); return 1
tools/tools/ath/athstats/athstats.c
556
snprintf(b, bs, "%u", wf->cur.ath.ast_rx_phy[x] - wf->total.ath.ast_rx_phy[x]); return 1
tools/tools/ath/athstats/athstats.c
558
snprintf(b, bs, "%u", wf->cur.ani_state.x); return 1
tools/tools/ath/athstats/athstats.c
560
snprintf(b, bs, "%u", wf->cur.ani_stats.ast_ani_##x - wf->total.ani_stats.ast_ani_##x); return 1
tools/tools/ath/athstats/athstats.c
562
snprintf(b, bs, "%u", wf->cur.ani_stats.ast_mibstats.x - wf->total.ani_stats.ast_mibstats.x); return 1
tools/tools/ath/athstats/athstats.c
564
snprintf(b, bs, "%u", wf->cur.ath.ast_ant_tx[x] - wf->total.ath.ast_ant_tx[x]); return 1
tools/tools/ath/athstats/athstats.c
566
snprintf(b, bs, "%u", wf->cur.ath.ast_ant_rx[x] - wf->total.ath.ast_ant_rx[x]); return 1
tools/tools/ath/athstats/athstats.c
570
snprintf(b, bs, "%lu",
tools/tools/ath/athstats/athstats.c
576
snprintf(b, bs, "%lu",
tools/tools/ath/athstats/athstats.c
581
snprintrate(b, bs, wf->cur.ath.ast_tx_rate);
tools/tools/ath/athstats/athstats.c
659
snprintf(b, bs, "%d", wf->cur.ath.ast_tx_rssi);
tools/tools/ath/athstats/athstats.c
662
snprintf(b, bs, "%d", wf->cur.ath.ast_rx_rssi);
tools/tools/ath/athstats/athstats.c
674
snprintf(b, bs, "-%d/+%d",
tools/tools/ath/athstats/athstats.c
712
snprintf(b, bs, "%u",
tools/tools/ath/athstats/athstats.c
716
snprintf(b, bs, "%u",
tools/tools/ath/athstats/athstats.c
720
snprintf(b, bs, "%u",
tools/tools/ath/athstats/athstats.c
751
snprintf(b, bs, "%d", wf->cur.ath.ast_rx_noise);
tools/tools/ath/athstats/athstats.c
754
snprintf(b, bs, "%d",
tools/tools/ath/athstats/athstats.c
758
snprintf(b, bs, "%d",
tools/tools/ath/athstats/athstats.c
804
ath_get_totstat(struct bsdstat *sf, int s, char b[], size_t bs)
tools/tools/ath/athstats/athstats.c
808
snprintf(b, bs, "%u", wf->total.ath.ast_##x); return 1
tools/tools/ath/athstats/athstats.c
810
snprintf(b, bs, "%u", wf->total.ath.ast_rx_phy[x]); return 1
tools/tools/ath/athstats/athstats.c
812
snprintf(b, bs, "%u", wf->total.ani_state.x); return 1
tools/tools/ath/athstats/athstats.c
814
snprintf(b, bs, "%u", wf->total.ani_stats.ast_ani_##x); return 1
tools/tools/ath/athstats/athstats.c
816
snprintf(b, bs, "%u", wf->total.ani_stats.ast_mibstats.x); return 1
tools/tools/ath/athstats/athstats.c
818
snprintf(b, bs, "%u", wf->total.ath.ast_ant_tx[x]); return 1
tools/tools/ath/athstats/athstats.c
820
snprintf(b, bs, "%u", wf->total.ath.ast_ant_rx[x]); return 1
tools/tools/ath/athstats/athstats.c
824
snprintf(b, bs, "%lu",
tools/tools/ath/athstats/athstats.c
829
snprintf(b, bs, "%lu",
tools/tools/ath/athstats/athstats.c
833
snprintrate(b, bs, wf->total.ath.ast_tx_rate);
tools/tools/ath/athstats/athstats.c
911
snprintf(b, bs, "%d", wf->total.ath.ast_tx_rssi);
tools/tools/ath/athstats/athstats.c
914
snprintf(b, bs, "%d", wf->total.ath.ast_rx_rssi);
tools/tools/ath/athstats/athstats.c
926
snprintf(b, bs, "-%d/+%d",
tools/tools/ath/athstats/athstats.c
965
snprintf(b, bs, "%u",
tools/tools/ath/athstats/athstats.c
969
snprintf(b, bs, "%u",
tools/tools/ath/athstats/athstats.c
973
snprintf(b, bs, "%u",
tools/tools/mwl/mwlstats/mwlstats.c
292
setrate(char b[], size_t bs, uint8_t rate)
tools/tools/mwl/mwlstats/mwlstats.c
295
snprintf(b, bs, "MCS%u", rate & IEEE80211_RATE_VAL);
tools/tools/mwl/mwlstats/mwlstats.c
297
snprintf(b, bs, "%u.5M", rate / 2);
tools/tools/mwl/mwlstats/mwlstats.c
299
snprintf(b, bs, "%uM", rate / 2);
tools/tools/mwl/mwlstats/mwlstats.c
303
mwl_get_curstat(struct bsdstat *sf, int s, char b[], size_t bs)
tools/tools/mwl/mwlstats/mwlstats.c
307
snprintf(b, bs, "%u", wf->cur.mst_##x - wf->total.mst_##x); return 1
tools/tools/mwl/mwlstats/mwlstats.c
309
snprintf(b, bs, "%u", wf->cur.hw_stats.x - wf->total.hw_stats.x); return 1
tools/tools/mwl/mwlstats/mwlstats.c
311
snprintf(b, bs, "%u", wf->cur.mst_ant_rx[x] - wf->total.mst_ant_rx[x]); return 1
tools/tools/mwl/mwlstats/mwlstats.c
313
snprintf(b, bs, "%u", wf->cur.mst_ant_tx[x] - wf->total.mst_ant_tx[x]); return 1
tools/tools/mwl/mwlstats/mwlstats.c
317
snprintf(b, bs, "%lu", (u_long)(
tools/tools/mwl/mwlstats/mwlstats.c
321
snprintf(b, bs, "%lu", (u_long)(
tools/tools/mwl/mwlstats/mwlstats.c
325
setrate(b, bs, wf->cur.mst_tx_rate);
tools/tools/mwl/mwlstats/mwlstats.c
382
snprintf(b, bs, "%d", wf->cur.mst_rx_rssi);
tools/tools/mwl/mwlstats/mwlstats.c
393
snprintf(b, bs, "%d", wf->cur.mst_rx_noise);
tools/tools/mwl/mwlstats/mwlstats.c
396
snprintf(b, bs, "%d",
tools/tools/mwl/mwlstats/mwlstats.c
409
mwl_get_totstat(struct bsdstat *sf, int s, char b[], size_t bs)
tools/tools/mwl/mwlstats/mwlstats.c
413
snprintf(b, bs, "%u", wf->total.mst_##x); return 1
tools/tools/mwl/mwlstats/mwlstats.c
415
snprintf(b, bs, "%u", wf->total.hw_stats.x); return 1
tools/tools/mwl/mwlstats/mwlstats.c
417
snprintf(b, bs, "%u", wf->total.mst_ant_tx[x]); return 1
tools/tools/mwl/mwlstats/mwlstats.c
419
snprintf(b, bs, "%u", wf->total.mst_ant_rx[x]); return 1
tools/tools/mwl/mwlstats/mwlstats.c
423
snprintf(b, bs, "%lu", (u_long)wf->total.mst_rx_packets);
tools/tools/mwl/mwlstats/mwlstats.c
426
snprintf(b, bs, "%lu", (u_long) wf->total.mst_tx_packets);
tools/tools/mwl/mwlstats/mwlstats.c
429
setrate(b, bs, wf->total.mst_tx_rate);
tools/tools/mwl/mwlstats/mwlstats.c
486
snprintf(b, bs, "%d", wf->total.mst_rx_rssi);
tools/tools/mwl/mwlstats/mwlstats.c
497
snprintf(b, bs, "%d", wf->total.mst_rx_noise);
tools/tools/mwl/mwlstats/mwlstats.c
500
snprintf(b, bs, "%d",
tools/tools/npe/npestats/npestats.c
176
npe_get_curstat(struct bsdstat *sf, int s, char b[], size_t bs)
tools/tools/npe/npestats/npestats.c
180
snprintf(b, bs, "%u", wf->cur.x - wf->total.x); return 1
tools/tools/npe/npestats/npestats.c
212
npe_get_totstat(struct bsdstat *sf, int s, char b[], size_t bs)
tools/tools/npe/npestats/npestats.c
216
snprintf(b, bs, "%u", wf->total.x); return 1
usr.bin/mt/mt.c
525
getblksiz(int bs)
usr.bin/mt/mt.c
528
if (bs == 0)
usr.bin/mt/mt.c
531
sprintf(buf, "%d bytes", bs);
usr.sbin/boot0cfg/boot0cfg.c
484
boot0version(const u_int8_t *bs)
usr.sbin/boot0cfg/boot0cfg.c
487
int v = boot0bs(bs);
usr.sbin/boot0cfg/boot0cfg.c
492
return *(const int *)(bs + OFF_VERSION) & 0xffff;
usr.sbin/boot0cfg/boot0cfg.c
512
boot0bs(const u_int8_t *bs)
usr.sbin/boot0cfg/boot0cfg.c
533
if (!memcmp(bs + p->off, p->key, p->len)) /* match */
usr.sbin/makefs/zfs/fs.c
50
sa_bswap_type_t bs;
usr.sbin/makefs/zfs/fs.c
793
SA_ATTR_ENCODE(attr, (uint64_t)i, sa->size, sa->bs);
usr.sbin/makefs/zfs/fs.c
95
#define _ZPL_ATTR(n, s, b) { .name = #n, .id = n, .size = s, .bs = b }
usr.sbin/wlanstat/wlanstat.c
1027
return wlan_getinfo(wf, s, b, bs);
usr.sbin/wlanstat/wlanstat.c
577
setreason(char b[], size_t bs, unsigned int v)
usr.sbin/wlanstat/wlanstat.c
605
snprintf(b, bs, "%s (%u)", reasons[v], v);
usr.sbin/wlanstat/wlanstat.c
607
snprintf(b, bs, "%u", v);
usr.sbin/wlanstat/wlanstat.c
611
setstatus(char b[], size_t bs, unsigned int v)
usr.sbin/wlanstat/wlanstat.c
642
snprintf(b, bs, "%s (%u)", status[v], v);
usr.sbin/wlanstat/wlanstat.c
644
snprintf(b, bs, "%u", v);
usr.sbin/wlanstat/wlanstat.c
648
wlan_getinfo(struct wlanstatfoo_p *wf, int s, char b[], size_t bs)
usr.sbin/wlanstat/wlanstat.c
654
snprintf(b, bs, "%.1fM", (float) si->isi_txmbps/2.0);
usr.sbin/wlanstat/wlanstat.c
657
snprintf(b, bs, "%.1f", (float) si->isi_rssi/2.0);
usr.sbin/wlanstat/wlanstat.c
660
snprintf(b, bs, "%d", si->isi_noise);
usr.sbin/wlanstat/wlanstat.c
663
snprintf(b, bs, "%.1f", (float) si->isi_rssi/2.0
usr.sbin/wlanstat/wlanstat.c
669
setstatus(b, bs, wf->cur.is_rx_authfail_code);
usr.sbin/wlanstat/wlanstat.c
674
setreason(b, bs, wf->cur.is_rx_deauth_code);
usr.sbin/wlanstat/wlanstat.c
679
setreason(b, bs, wf->cur.is_rx_disassoc_code);
usr.sbin/wlanstat/wlanstat.c
687
wlan_get_curstat(struct bsdstat *sf, int s, char b[], size_t bs)
usr.sbin/wlanstat/wlanstat.c
691
snprintf(b, bs, "%u", wf->cur.is_##x - wf->total.is_##x); return 1
usr.sbin/wlanstat/wlanstat.c
693
snprintf(b, bs, "%u", \
usr.sbin/wlanstat/wlanstat.c
855
return wlan_getinfo(wf, s, b, bs);
usr.sbin/wlanstat/wlanstat.c
861
wlan_get_totstat(struct bsdstat *sf, int s, char b[], size_t bs)
usr.sbin/wlanstat/wlanstat.c
865
snprintf(b, bs, "%u", wf->total.is_##x); return 1
usr.sbin/wlanstat/wlanstat.c
867
snprintf(b, bs, "%u", wf->ntotal.is_stats.ns_##x); return 1