Symbol: bs
crypto/libressl/apps/openssl/ocsp.c
1006
bs = OCSP_response_get1_basic(resp);
crypto/libressl/apps/openssl/ocsp.c
1008
if (!bs) {
crypto/libressl/apps/openssl/ocsp.c
1014
((i = OCSP_check_nonce(ocsp_config.req, bs)) <= 0)) {
crypto/libressl/apps/openssl/ocsp.c
1023
i = OCSP_basic_verify(bs, verify_other, store,
crypto/libressl/apps/openssl/ocsp.c
1026
i = OCSP_basic_verify(bs, NULL, store, 0);
crypto/libressl/apps/openssl/ocsp.c
1035
if (!print_ocsp_summary(out, bs, ocsp_config.req, ocsp_config.reqnames,
crypto/libressl/apps/openssl/ocsp.c
1057
OCSP_BASICRESP_free(bs);
crypto/libressl/apps/openssl/ocsp.c
1137
print_ocsp_summary(BIO *out, OCSP_BASICRESP *bs, OCSP_REQUEST *req,
crypto/libressl/apps/openssl/ocsp.c
1148
if (!bs || !req || !sk_OPENSSL_STRING_num(names) ||
crypto/libressl/apps/openssl/ocsp.c
1157
if (!OCSP_resp_find_status(bs, id, &status, &reason,
crypto/libressl/apps/openssl/ocsp.c
1204
OCSP_BASICRESP *bs = NULL;
crypto/libressl/apps/openssl/ocsp.c
1214
bs = OCSP_BASICRESP_new();
crypto/libressl/apps/openssl/ocsp.c
1242
OCSP_basic_add1_status(bs, cid,
crypto/libressl/apps/openssl/ocsp.c
1250
OCSP_basic_add1_status(bs, cid,
crypto/libressl/apps/openssl/ocsp.c
1254
OCSP_basic_add1_status(bs, cid,
crypto/libressl/apps/openssl/ocsp.c
1266
single = OCSP_basic_add1_status(bs, cid,
crypto/libressl/apps/openssl/ocsp.c
1282
OCSP_copy_nonce(bs, req);
crypto/libressl/apps/openssl/ocsp.c
1284
OCSP_basic_sign(bs, rcert, rkey, NULL, rother, flags);
crypto/libressl/apps/openssl/ocsp.c
1286
*resp = OCSP_response_create(OCSP_RESPONSE_STATUS_SUCCESSFUL, bs);
crypto/libressl/apps/openssl/ocsp.c
1292
OCSP_BASICRESP_free(bs);
crypto/libressl/apps/openssl/ocsp.c
739
OCSP_BASICRESP *bs = NULL;
crypto/libressl/apps/openssl/ocsp.c
86
static int print_ocsp_summary(BIO *out, OCSP_BASICRESP *bs, OCSP_REQUEST *req,
crypto/libressl/apps/openssl/x509.c
1342
ASN1_INTEGER *bs = NULL;
crypto/libressl/apps/openssl/x509.c
1372
if (!save_serial(buf, NULL, serial, &bs))
crypto/libressl/apps/openssl/x509.c
1379
return bs;
crypto/libressl/apps/openssl/x509.c
1389
ASN1_INTEGER *bs = NULL;
crypto/libressl/apps/openssl/x509.c
1405
bs = sno;
crypto/libressl/apps/openssl/x509.c
1406
else if ((bs = x509_load_serial(CAfile, serialfile, create)) == NULL)
crypto/libressl/apps/openssl/x509.c
1427
if (!X509_set_serialNumber(x, bs))
crypto/libressl/apps/openssl/x509.c
1461
ASN1_INTEGER_free(bs);
crypto/libressl/crypto/asn1/a_bitstr.c
187
ASN1_BIT_STRING_name_print(BIO *out, ASN1_BIT_STRING *bs,
crypto/libressl/crypto/asn1/a_bitstr.c
195
if (ASN1_BIT_STRING_get_bit(bs, bnam->bitnum)) {
crypto/libressl/crypto/asn1/a_bitstr.c
207
ASN1_BIT_STRING_set_asc(ASN1_BIT_STRING *bs, const char *name, int value,
crypto/libressl/crypto/asn1/a_bitstr.c
215
if (bs) {
crypto/libressl/crypto/asn1/a_bitstr.c
216
if (!ASN1_BIT_STRING_set_bit(bs, bitnum, value))
crypto/libressl/crypto/asn1/a_enum.c
258
a2i_ASN1_ENUMERATED(BIO *bp, ASN1_ENUMERATED *bs, char *buf, int size)
crypto/libressl/crypto/asn1/a_enum.c
267
bs->type = V_ASN1_ENUMERATED;
crypto/libressl/crypto/asn1/a_enum.c
337
bs->length = num;
crypto/libressl/crypto/asn1/a_enum.c
338
bs->data = s;
crypto/libressl/crypto/asn1/a_int.c
425
a2i_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *bs, char *buf, int size)
crypto/libressl/crypto/asn1/a_int.c
433
bs->type = V_ASN1_INTEGER;
crypto/libressl/crypto/asn1/a_int.c
502
bs->length = num;
crypto/libressl/crypto/asn1/a_int.c
503
bs->data = s;
crypto/libressl/crypto/asn1/t_req.c
178
ASN1_BIT_STRING *bs = NULL;
crypto/libressl/crypto/asn1/t_req.c
193
bs = at->value.asn1_string;
crypto/libressl/crypto/asn1/t_req.c
203
if (BIO_write(bp, (char *)bs->data,
crypto/libressl/crypto/asn1/t_req.c
204
bs->length) != bs->length)
crypto/libressl/crypto/asn1/t_x509.c
119
ASN1_INTEGER *bs;
crypto/libressl/crypto/asn1/t_x509.c
153
bs = X509_get_serialNumber(x);
crypto/libressl/crypto/asn1/t_x509.c
155
if (bs->length <= (int)sizeof(long))
crypto/libressl/crypto/asn1/t_x509.c
156
l = ASN1_INTEGER_get(bs);
crypto/libressl/crypto/asn1/t_x509.c
163
if (bs->type == V_ASN1_NEG_INTEGER)
crypto/libressl/crypto/asn1/t_x509.c
168
for (i = 0; i < bs->length; i++) {
crypto/libressl/crypto/asn1/t_x509.c
169
if (BIO_printf(bp, "%02x%c", bs->data[i],
crypto/libressl/crypto/asn1/t_x509.c
170
((i + 1 == bs->length) ? '\n' : ':')) <= 0)
crypto/libressl/crypto/ocsp/ocsp_cl.c
222
OCSP_resp_count(OCSP_BASICRESP *bs)
crypto/libressl/crypto/ocsp/ocsp_cl.c
224
if (!bs)
crypto/libressl/crypto/ocsp/ocsp_cl.c
226
return sk_OCSP_SINGLERESP_num(bs->tbsResponseData->responses);
crypto/libressl/crypto/ocsp/ocsp_cl.c
231
OCSP_resp_get0(OCSP_BASICRESP *bs, int idx)
crypto/libressl/crypto/ocsp/ocsp_cl.c
233
if (!bs)
crypto/libressl/crypto/ocsp/ocsp_cl.c
235
return sk_OCSP_SINGLERESP_value(bs->tbsResponseData->responses, idx);
crypto/libressl/crypto/ocsp/ocsp_cl.c
239
OCSP_resp_get0_produced_at(const OCSP_BASICRESP *bs)
crypto/libressl/crypto/ocsp/ocsp_cl.c
241
return bs->tbsResponseData->producedAt;
crypto/libressl/crypto/ocsp/ocsp_cl.c
245
OCSP_resp_get0_certs(const OCSP_BASICRESP *bs)
crypto/libressl/crypto/ocsp/ocsp_cl.c
247
return bs->certs;
crypto/libressl/crypto/ocsp/ocsp_cl.c
251
OCSP_resp_get0_id(const OCSP_BASICRESP *bs, const ASN1_OCTET_STRING **pid,
crypto/libressl/crypto/ocsp/ocsp_cl.c
254
const OCSP_RESPID *rid = bs->tbsResponseData->responderId;
crypto/libressl/crypto/ocsp/ocsp_cl.c
270
OCSP_resp_get0_signature(const OCSP_BASICRESP *bs)
crypto/libressl/crypto/ocsp/ocsp_cl.c
272
return bs->signature;
crypto/libressl/crypto/ocsp/ocsp_cl.c
276
OCSP_resp_get0_tbs_sigalg(const OCSP_BASICRESP *bs)
crypto/libressl/crypto/ocsp/ocsp_cl.c
278
return bs->signatureAlgorithm;
crypto/libressl/crypto/ocsp/ocsp_cl.c
282
OCSP_resp_get0_respdata(const OCSP_BASICRESP *bs)
crypto/libressl/crypto/ocsp/ocsp_cl.c
284
return bs->tbsResponseData;
crypto/libressl/crypto/ocsp/ocsp_cl.c
289
OCSP_resp_find(OCSP_BASICRESP *bs, OCSP_CERTID *id, int last)
crypto/libressl/crypto/ocsp/ocsp_cl.c
295
if (!bs)
crypto/libressl/crypto/ocsp/ocsp_cl.c
301
sresp = bs->tbsResponseData->responses;
crypto/libressl/crypto/ocsp/ocsp_cl.c
351
OCSP_resp_find_status(OCSP_BASICRESP *bs, OCSP_CERTID *id, int *status,
crypto/libressl/crypto/ocsp/ocsp_cl.c
358
i = OCSP_resp_find(bs, id, -1);
crypto/libressl/crypto/ocsp/ocsp_cl.c
362
single = OCSP_resp_get0(bs, i);
crypto/libressl/crypto/ocsp/ocsp_ext.c
392
OCSP_check_nonce(OCSP_REQUEST *req, OCSP_BASICRESP *bs)
crypto/libressl/crypto/ocsp/ocsp_ext.c
405
resp_idx = OCSP_BASICRESP_get_ext_by_NID(bs,
crypto/libressl/crypto/ocsp/ocsp_ext.c
418
resp_ext = OCSP_BASICRESP_get_ext(bs, resp_idx);
crypto/libressl/crypto/ocsp/ocsp_srv.c
119
OCSP_response_create(int status, OCSP_BASICRESP *bs)
crypto/libressl/crypto/ocsp/ocsp_srv.c
127
if (!bs)
crypto/libressl/crypto/ocsp/ocsp_srv.c
132
if (!ASN1_item_pack(bs, &OCSP_BASICRESP_it,
crypto/libressl/crypto/ocsp/ocsp_vfy.c
102
ret = OCSP_BASICRESP_verify(bs, skey, 0);
crypto/libressl/crypto/ocsp/ocsp_vfy.c
114
} else if (bs->certs && certs) {
crypto/libressl/crypto/ocsp/ocsp_vfy.c
115
untrusted = sk_X509_dup(bs->certs);
crypto/libressl/crypto/ocsp/ocsp_vfy.c
126
untrusted = bs->certs;
crypto/libressl/crypto/ocsp/ocsp_vfy.c
158
ret = ocsp_check_issuer(bs, chain, flags);
crypto/libressl/crypto/ocsp/ocsp_vfy.c
182
if (bs->certs && certs)
crypto/libressl/crypto/ocsp/ocsp_vfy.c
188
OCSP_resp_get0_signer(OCSP_BASICRESP *bs, X509 **signer,
crypto/libressl/crypto/ocsp/ocsp_vfy.c
191
return ocsp_find_signer(signer, bs, extra_certs, NULL, 0) > 0;
crypto/libressl/crypto/ocsp/ocsp_vfy.c
195
ocsp_find_signer(X509 **psigner, OCSP_BASICRESP *bs, STACK_OF(X509) *certs,
crypto/libressl/crypto/ocsp/ocsp_vfy.c
199
OCSP_RESPID *rid = bs->tbsResponseData->responderId;
crypto/libressl/crypto/ocsp/ocsp_vfy.c
206
(signer = ocsp_find_signer_sk(bs->certs, rid))) {
crypto/libressl/crypto/ocsp/ocsp_vfy.c
244
ocsp_check_issuer(OCSP_BASICRESP *bs, STACK_OF(X509) *chain,
crypto/libressl/crypto/ocsp/ocsp_vfy.c
252
sresp = bs->tbsResponseData->responses;
crypto/libressl/crypto/ocsp/ocsp_vfy.c
66
static int ocsp_find_signer(X509 **psigner, OCSP_BASICRESP *bs,
crypto/libressl/crypto/ocsp/ocsp_vfy.c
69
static int ocsp_check_issuer(OCSP_BASICRESP *bs, STACK_OF(X509) *chain,
crypto/libressl/crypto/ocsp/ocsp_vfy.c
81
OCSP_basic_verify(OCSP_BASICRESP *bs, STACK_OF(X509) *certs, X509_STORE *st,
crypto/libressl/crypto/ocsp/ocsp_vfy.c
90
ret = ocsp_find_signer(&signer, bs, certs, st, flags);
crypto/libressl/crypto/x509/x509_addr.c
530
addr_expand(unsigned char *addr, const ASN1_BIT_STRING *bs, const int length,
crypto/libressl/crypto/x509/x509_addr.c
533
if (bs->length < 0 || bs->length > length)
crypto/libressl/crypto/x509/x509_addr.c
539
if (bs->length > 0) {
crypto/libressl/crypto/x509/x509_addr.c
541
uint8_t unused_bits = bs->flags & 7;
crypto/libressl/crypto/x509/x509_addr.c
544
memcpy(addr, bs->data, bs->length);
crypto/libressl/crypto/x509/x509_addr.c
547
addr[bs->length - 1] &= ~mask;
crypto/libressl/crypto/x509/x509_addr.c
549
addr[bs->length - 1] |= mask;
crypto/libressl/crypto/x509/x509_addr.c
552
memset(addr + bs->length, fill, length - bs->length);
crypto/libressl/crypto/x509/x509_addr.c
560
#define addr_prefix_len(bs) ((int) ((bs)->length * 8 - ((bs)->flags & 7)))
crypto/libressl/crypto/x509/x509_addr.c
567
const ASN1_BIT_STRING *bs)
crypto/libressl/crypto/x509/x509_addr.c
572
if (bs->length < 0)
crypto/libressl/crypto/x509/x509_addr.c
576
if (!addr_expand(addr, bs, 4, fill))
crypto/libressl/crypto/x509/x509_addr.c
582
if (!addr_expand(addr, bs, 16, fill))
crypto/libressl/crypto/x509/x509_addr.c
596
for (i = 0; i < bs->length; i++)
crypto/libressl/crypto/x509/x509_addr.c
598
bs->data[i]);
crypto/libressl/crypto/x509/x509_addr.c
599
BIO_printf(out, "[%d]", (int)(bs->flags & 7));
crypto/libressl/crypto/x509/x509_bitst.c
157
ASN1_BIT_STRING *bs;
crypto/libressl/crypto/x509/x509_bitst.c
161
if (!(bs = ASN1_BIT_STRING_new())) {
crypto/libressl/crypto/x509/x509_bitst.c
170
if (!ASN1_BIT_STRING_set_bit(bs,
crypto/libressl/crypto/x509/x509_bitst.c
173
ASN1_BIT_STRING_free(bs);
crypto/libressl/crypto/x509/x509_bitst.c
182
ASN1_BIT_STRING_free(bs);
crypto/libressl/crypto/x509/x509_bitst.c
186
return bs;
crypto/libressl/crypto/x509/x509_purp.c
442
BASIC_CONSTRAINTS *bs;
crypto/libressl/crypto/x509/x509_purp.c
460
if ((bs = X509_get_ext_d2i(x, NID_basic_constraints, &i, NULL))) {
crypto/libressl/crypto/x509/x509_purp.c
461
if (bs->ca)
crypto/libressl/crypto/x509/x509_purp.c
463
if (bs->pathlen) {
crypto/libressl/crypto/x509/x509_purp.c
464
if ((bs->pathlen->type == V_ASN1_NEG_INTEGER) ||
crypto/libressl/crypto/x509/x509_purp.c
465
!bs->ca) {
crypto/libressl/crypto/x509/x509_purp.c
469
x->ex_pathlen = ASN1_INTEGER_get(bs->pathlen);
crypto/libressl/crypto/x509/x509_purp.c
472
BASIC_CONSTRAINTS_free(bs);
crypto/libressl/include/openssl/asn1.h
585
int ASN1_BIT_STRING_name_print(BIO *out, ASN1_BIT_STRING *bs,
crypto/libressl/include/openssl/asn1.h
589
int ASN1_BIT_STRING_set_asc(ASN1_BIT_STRING *bs, const char *name, int value,
crypto/libressl/include/openssl/asn1.h
735
int a2i_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *bs, char *buf, int size);
crypto/libressl/include/openssl/asn1.h
737
int a2i_ASN1_ENUMERATED(BIO *bp, ASN1_ENUMERATED *bs, char *buf, int size);
crypto/libressl/include/openssl/asn1.h
739
int a2i_ASN1_STRING(BIO *bp, ASN1_STRING *bs, char *buf, int size);
crypto/libressl/include/openssl/ocsp.h
211
int OCSP_check_nonce(OCSP_REQUEST *req, OCSP_BASICRESP *bs);
crypto/libressl/include/openssl/ocsp.h
223
const ASN1_OCTET_STRING *OCSP_resp_get0_signature(const OCSP_BASICRESP *bs);
crypto/libressl/include/openssl/ocsp.h
224
const X509_ALGOR *OCSP_resp_get0_tbs_sigalg(const OCSP_BASICRESP *bs);
crypto/libressl/include/openssl/ocsp.h
225
const OCSP_RESPDATA *OCSP_resp_get0_respdata(const OCSP_BASICRESP *bs);
crypto/libressl/include/openssl/ocsp.h
226
int OCSP_resp_get0_signer(OCSP_BASICRESP *bs, X509 **signer,
crypto/libressl/include/openssl/ocsp.h
229
int OCSP_resp_count(OCSP_BASICRESP *bs);
crypto/libressl/include/openssl/ocsp.h
230
OCSP_SINGLERESP *OCSP_resp_get0(OCSP_BASICRESP *bs, int idx);
crypto/libressl/include/openssl/ocsp.h
231
const ASN1_GENERALIZEDTIME *OCSP_resp_get0_produced_at(const OCSP_BASICRESP *bs);
crypto/libressl/include/openssl/ocsp.h
232
const STACK_OF(X509) *OCSP_resp_get0_certs(const OCSP_BASICRESP *bs);
crypto/libressl/include/openssl/ocsp.h
233
int OCSP_resp_get0_id(const OCSP_BASICRESP *bs,
crypto/libressl/include/openssl/ocsp.h
236
int OCSP_resp_find(OCSP_BASICRESP *bs, OCSP_CERTID *id, int last);
crypto/libressl/include/openssl/ocsp.h
240
int OCSP_resp_find_status(OCSP_BASICRESP *bs, OCSP_CERTID *id, int *status,
crypto/libressl/include/openssl/ocsp.h
262
OCSP_RESPONSE *OCSP_response_create(int status, OCSP_BASICRESP *bs);
crypto/libressl/include/openssl/ocsp.h
421
int OCSP_basic_verify(OCSP_BASICRESP *bs, STACK_OF(X509) *certs,
crypto/libressl/ssl/bio_ssl.c
110
BIO_SSL *bs;
crypto/libressl/ssl/bio_ssl.c
112
bs = calloc(1, sizeof(BIO_SSL));
crypto/libressl/ssl/bio_ssl.c
113
if (bs == NULL) {
crypto/libressl/ssl/bio_ssl.c
118
bi->ptr = (char *)bs;
crypto/libressl/ssl/bio_ssl.c
126
BIO_SSL *bs;
crypto/libressl/ssl/bio_ssl.c
130
bs = (BIO_SSL *)a->ptr;
crypto/libressl/ssl/bio_ssl.c
131
if (bs->ssl != NULL)
crypto/libressl/ssl/bio_ssl.c
132
SSL_shutdown(bs->ssl);
crypto/libressl/ssl/bio_ssl.c
134
if (a->init && (bs->ssl != NULL))
crypto/libressl/ssl/bio_ssl.c
135
SSL_free(bs->ssl);
crypto/libressl/ssl/bio_ssl.c
221
BIO_SSL *bs;
crypto/libressl/ssl/bio_ssl.c
225
bs = (BIO_SSL *)b->ptr;
crypto/libressl/ssl/bio_ssl.c
226
ssl = bs->ssl;
crypto/libressl/ssl/bio_ssl.c
238
if (bs->renegotiate_count > 0) {
crypto/libressl/ssl/bio_ssl.c
239
bs->byte_count += ret;
crypto/libressl/ssl/bio_ssl.c
240
if (bs->byte_count > bs->renegotiate_count) {
crypto/libressl/ssl/bio_ssl.c
241
bs->byte_count = 0;
crypto/libressl/ssl/bio_ssl.c
242
bs->num_renegotiates++;
crypto/libressl/ssl/bio_ssl.c
247
if ((bs->renegotiate_timeout > 0) && (!r)) {
crypto/libressl/ssl/bio_ssl.c
251
if (tm > bs->last_time + bs->renegotiate_timeout) {
crypto/libressl/ssl/bio_ssl.c
252
bs->last_time = tm;
crypto/libressl/ssl/bio_ssl.c
253
bs->num_renegotiates++;
crypto/libressl/ssl/bio_ssl.c
285
BIO_SSL *bs;
crypto/libressl/ssl/bio_ssl.c
289
bs = (BIO_SSL *)b->ptr;
crypto/libressl/ssl/bio_ssl.c
290
ssl = bs->ssl;
crypto/libressl/ssl/bio_ssl.c
323
ret = bs->renegotiate_timeout;
crypto/libressl/ssl/bio_ssl.c
326
bs->renegotiate_timeout = (unsigned long)num;
crypto/libressl/ssl/bio_ssl.c
327
bs->last_time = time(NULL);
crypto/libressl/ssl/bio_ssl.c
330
ret = bs->renegotiate_count;
crypto/libressl/ssl/bio_ssl.c
332
bs->renegotiate_count = (unsigned long)num;
crypto/libressl/ssl/bio_ssl.c
335
ret = bs->num_renegotiates;
crypto/libressl/ssl/bio_ssl.c
469
BIO_SSL *bs;
crypto/libressl/ssl/bio_ssl.c
472
bs = (BIO_SSL *)b->ptr;
crypto/libressl/ssl/bio_ssl.c
473
ssl = bs->ssl;
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));
games/sail/dr_3.c
216
int bs, sb;
games/sail/dr_3.c
219
bs = from->specs->guns;
games/sail/dr_3.c
220
if (sb > bs)
games/sail/dr_3.c
222
if (sb < bs)
games/sail/extern.h
194
char bs;
games/sail/game.c
65
Move = ship->specs->bs;
games/sail/misc.c
60
int bb, bs, sb, ss, result;
games/sail/misc.c
74
bs = distance((bow2r - stern1r), (bow2c - stern1c));
games/sail/misc.c
77
result = min(bb, min(bs, min(sb, ss)));
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) {
sbin/dhclient/conflex.c
240
int c, bs = 0;
sbin/dhclient/conflex.c
248
if (bs) {
sbin/dhclient/conflex.c
249
bs = 0;
sbin/dhclient/conflex.c
252
bs = 1;
sbin/newfs_msdos/mkfs_msdos.c
238
struct bs *bs;
sbin/newfs_msdos/mkfs_msdos.c
673
x1 = sizeof(struct bs);
sbin/newfs_msdos/mkfs_msdos.c
716
bs = (struct bs *)img;
sbin/newfs_msdos/mkfs_msdos.c
717
mk1(bs->bsJump[0], 0xeb);
sbin/newfs_msdos/mkfs_msdos.c
718
mk1(bs->bsJump[1], x1 - 2);
sbin/newfs_msdos/mkfs_msdos.c
719
mk1(bs->bsJump[2], 0x90);
sbin/newfs_msdos/mkfs_msdos.c
720
setstr(bs->bsOemName, o.OEM_string ? o.OEM_string : "BSD4.4 ",
sbin/newfs_msdos/mkfs_msdos.c
721
sizeof(bs->bsOemName));
stand/lib/dosfs.c
448
parsebs(DOS_FS *fs, DOS_BS *bs)
stand/lib/dosfs.c
452
if ((bs->jmp[0] != 0x69 &&
stand/lib/dosfs.c
453
bs->jmp[0] != 0xe9 &&
stand/lib/dosfs.c
454
(bs->jmp[0] != 0xeb || bs->jmp[2] != 0x90)) ||
stand/lib/dosfs.c
455
bs->bpb.media < 0xf0)
stand/lib/dosfs.c
457
if (cv2(bs->bpb.secsiz) != SECSIZ)
stand/lib/dosfs.c
459
if (!(fs->spc = bs->bpb.spc) || fs->spc & (fs->spc - 1))
stand/lib/dosfs.c
463
if ((fs->spf = cv2(bs->bpb.spf))) {
stand/lib/dosfs.c
464
if (bs->bpb.fats != 2)
stand/lib/dosfs.c
466
if (!(fs->dirents = cv2(bs->bpb.dirents)))
stand/lib/dosfs.c
469
if (!(fs->spf = cv4(bs->bpb.lspf)))
stand/lib/dosfs.c
471
if (!bs->bpb.fats || bs->bpb.fats > 16)
stand/lib/dosfs.c
473
if ((fs->rdcl = cv4(bs->bpb.rdcl)) < LOCLUS)
stand/lib/dosfs.c
476
if (!(fs->lsnfat = cv2(bs->bpb.ressec)))
stand/lib/dosfs.c
478
fs->lsndir = fs->lsnfat + fs->spf * bs->bpb.fats;
stand/lib/dosfs.c
480
if (!(sc = cv2(bs->bpb.secs)) && !(sc = cv4(bs->bpb.lsecs)))
sys/dev/disk/iscsi/initiator/iscsi_subr.c
116
cmd->F = (bs < bleft)? 0: 1; // is this the last one?
sys/dev/disk/iscsi/initiator/iscsi_subr.c
117
bs = MIN(bs, bleft);
sys/dev/disk/iscsi/initiator/iscsi_subr.c
119
wpq->pdu.ds_len = bs;
sys/dev/disk/iscsi/initiator/iscsi_subr.c
123
sdebug(6, "bs=%x bo=%x bp=%p dsn=%x error=%d", bs, bo, bp, dsn, error);
sys/dev/disk/iscsi/initiator/iscsi_subr.c
126
bo += bs;
sys/dev/disk/iscsi/initiator/iscsi_subr.c
127
bp += bs;
sys/dev/disk/iscsi/initiator/iscsi_subr.c
128
bleft -= bs;
sys/dev/disk/iscsi/initiator/iscsi_subr.c
81
u_int bleft, bs, dsn, bo;
sys/dev/disk/iscsi/initiator/iscsi_subr.c
88
bs = MIN(sp->opt.maxXmitDataSegmentLength, ddtl);
sys/dev/disk/iscsi/initiator/iscsi_subr.c
90
bs = ddtl;
sys/dev/disk/iscsi/initiator/iscsi_subr.c
93
edtl, ddtl, bo, dsn, bs, sp->opt.maxXmitDataSegmentLength);
sys/dev/netif/ath/ath/if_ath_beacon.c
1076
memset(&bs, 0, sizeof(bs));
sys/dev/netif/ath/ath/if_ath_beacon.c
1077
bs.bs_intval = intval;
sys/dev/netif/ath/ath/if_ath_beacon.c
1078
bs.bs_nexttbtt = nexttbtt;
sys/dev/netif/ath/ath/if_ath_beacon.c
1079
bs.bs_dtimperiod = dtimperiod*intval;
sys/dev/netif/ath/ath/if_ath_beacon.c
1080
bs.bs_nextdtim = bs.bs_nexttbtt + dtimcount*intval;
sys/dev/netif/ath/ath/if_ath_beacon.c
1081
bs.bs_cfpperiod = cfpperiod*bs.bs_dtimperiod;
sys/dev/netif/ath/ath/if_ath_beacon.c
1082
bs.bs_cfpnext = bs.bs_nextdtim + cfpcount*bs.bs_dtimperiod;
sys/dev/netif/ath/ath/if_ath_beacon.c
1083
bs.bs_cfpmaxduration = 0;
sys/dev/netif/ath/ath/if_ath_beacon.c
1094
bs.bs_timoffset = ni->ni_timoff;
sys/dev/netif/ath/ath/if_ath_beacon.c
1101
bs.bs_bmissthreshold = vap->iv_bmissthreshold;
sys/dev/netif/ath/ath/if_ath_beacon.c
1102
if (bs.bs_bmissthreshold > 10)
sys/dev/netif/ath/ath/if_ath_beacon.c
1103
bs.bs_bmissthreshold = 10;
sys/dev/netif/ath/ath/if_ath_beacon.c
1104
else if (bs.bs_bmissthreshold <= 0)
sys/dev/netif/ath/ath/if_ath_beacon.c
1105
bs.bs_bmissthreshold = 1;
sys/dev/netif/ath/ath/if_ath_beacon.c
1116
bs.bs_sleepduration =
sys/dev/netif/ath/ath/if_ath_beacon.c
1117
roundup(IEEE80211_MS_TO_TU(100), bs.bs_intval);
sys/dev/netif/ath/ath/if_ath_beacon.c
1118
if (bs.bs_sleepduration > bs.bs_dtimperiod)
sys/dev/netif/ath/ath/if_ath_beacon.c
1119
bs.bs_sleepduration = roundup(bs.bs_sleepduration, bs.bs_dtimperiod);
sys/dev/netif/ath/ath/if_ath_beacon.c
1128
, bs.bs_intval
sys/dev/netif/ath/ath/if_ath_beacon.c
1129
, bs.bs_nexttbtt
sys/dev/netif/ath/ath/if_ath_beacon.c
1130
, bs.bs_dtimperiod
sys/dev/netif/ath/ath/if_ath_beacon.c
1131
, bs.bs_nextdtim
sys/dev/netif/ath/ath/if_ath_beacon.c
1132
, bs.bs_bmissthreshold
sys/dev/netif/ath/ath/if_ath_beacon.c
1133
, bs.bs_sleepduration
sys/dev/netif/ath/ath/if_ath_beacon.c
1134
, bs.bs_cfpperiod
sys/dev/netif/ath/ath/if_ath_beacon.c
1135
, bs.bs_cfpmaxduration
sys/dev/netif/ath/ath/if_ath_beacon.c
1136
, bs.bs_cfpnext
sys/dev/netif/ath/ath/if_ath_beacon.c
1137
, bs.bs_timoffset
sys/dev/netif/ath/ath/if_ath_beacon.c
1140
ath_hal_beacontimers(ah, &bs);
sys/dev/netif/ath/ath/if_ath_beacon.c
997
HAL_BEACON_STATE bs;
sys/dev/netif/ath/ath_hal/ar5210/ar5210_beacon.c
117
ar5210SetStaBeaconTimers(struct ath_hal *ah, const HAL_BEACON_STATE *bs)
sys/dev/netif/ath/ath_hal/ar5210/ar5210_beacon.c
123
HALASSERT(bs->bs_intval != 0);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_beacon.c
125
if (bs->bs_cfpmaxduration != 0) {
sys/dev/netif/ath/ath_hal/ar5210/ar5210_beacon.c
132
OS_REG_WRITE(ah, AR_CFP_PERIOD, bs->bs_cfpperiod);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_beacon.c
135
OS_REG_WRITE(ah, AR_CFP_DUR, bs->bs_cfpmaxduration);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_beacon.c
138
OS_REG_WRITE(ah, AR_TIMER2, bs->bs_cfpnext << 3);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_beacon.c
148
OS_REG_WRITE(ah, AR_TIMER0, bs->bs_nexttbtt);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_beacon.c
159
| SM(bs->bs_intval, AR_BEACON_PERIOD)
sys/dev/netif/ath/ath_hal/ar5210/ar5210_beacon.c
160
| SM(bs->bs_timoffset ? bs->bs_timoffset + 4 : 0, AR_BEACON_TIM)
sys/dev/netif/ath/ath_hal/ar5210/ar5210_beacon.c
180
(bs->bs_bmissthreshold&7) == 0) {
sys/dev/netif/ath/ath_hal/ar5210/ar5210_beacon.c
183
__func__, bs->bs_bmissthreshold);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_beacon.c
198
| SM(bs->bs_bmissthreshold > BMISS_MAX ?
sys/dev/netif/ath/ath_hal/ar5210/ar5210_beacon.c
199
BMISS_MAX : bs->bs_bmissthreshold,
sys/dev/netif/ath/ath_hal/ar5211/ar5211_beacon.c
123
ar5211SetStaBeaconTimers(struct ath_hal *ah, const HAL_BEACON_STATE *bs)
sys/dev/netif/ath/ath_hal/ar5211/ar5211_beacon.c
129
HALASSERT(bs->bs_intval != 0);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_beacon.c
131
if (bs->bs_cfpmaxduration != 0) {
sys/dev/netif/ath/ath_hal/ar5211/ar5211_beacon.c
137
OS_REG_WRITE(ah, AR_CFP_PERIOD, bs->bs_cfpperiod);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_beacon.c
140
OS_REG_WRITE(ah, AR_CFP_DUR, bs->bs_cfpmaxduration);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_beacon.c
143
OS_REG_WRITE(ah, AR_TIMER2, bs->bs_cfpnext << 3);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_beacon.c
153
OS_REG_WRITE(ah, AR_TIMER0, bs->bs_nexttbtt);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_beacon.c
164
| SM(bs->bs_intval, AR_BEACON_PERIOD)
sys/dev/netif/ath/ath_hal/ar5211/ar5211_beacon.c
165
| SM(bs->bs_timoffset ? bs->bs_timoffset + 4 : 0, AR_BEACON_TIM)
sys/dev/netif/ath/ath_hal/ar5211/ar5211_beacon.c
173
HALASSERT(bs->bs_bmissthreshold <= MS(0xffffffff, AR_RSSI_THR_BM_THR));
sys/dev/netif/ath/ath_hal/ar5211/ar5211_beacon.c
175
| SM(bs->bs_bmissthreshold, AR_RSSI_THR_BM_THR);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_beacon.c
183
(bs->bs_sleepduration - SLEEP_SLOP) << 3);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_beacon.c
147
ar5212SetStaBeaconTimers(struct ath_hal *ah, const HAL_BEACON_STATE *bs)
sys/dev/netif/ath/ath_hal/ar5212/ar5212_beacon.c
152
HALASSERT(bs->bs_intval != 0);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_beacon.c
154
if (bs->bs_cfpmaxduration != 0) {
sys/dev/netif/ath/ath_hal/ar5212/ar5212_beacon.c
160
OS_REG_WRITE(ah, AR_CFP_PERIOD, bs->bs_cfpperiod);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_beacon.c
163
OS_REG_WRITE(ah, AR_CFP_DUR, bs->bs_cfpmaxduration);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_beacon.c
166
OS_REG_WRITE(ah, AR_TIMER2, bs->bs_cfpnext << 3);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_beacon.c
176
OS_REG_WRITE(ah, AR_TIMER0, bs->bs_nexttbtt);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_beacon.c
187
| SM(bs->bs_intval, AR_BEACON_PERIOD)
sys/dev/netif/ath/ath_hal/ar5212/ar5212_beacon.c
188
| SM(bs->bs_timoffset ? bs->bs_timoffset + 4 : 0, AR_BEACON_TIM)
sys/dev/netif/ath/ath_hal/ar5212/ar5212_beacon.c
196
HALASSERT(bs->bs_bmissthreshold <= MS(0xffffffff, AR_RSSI_THR_BM_THR));
sys/dev/netif/ath/ath_hal/ar5212/ar5212_beacon.c
198
| SM(bs->bs_bmissthreshold, AR_RSSI_THR_BM_THR);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_beacon.c
230
beaconintval = bs->bs_intval & HAL_BEACON_PERIOD;
sys/dev/netif/ath/ath_hal/ar5212/ar5212_beacon.c
232
if (bs->bs_sleepduration > beaconintval) {
sys/dev/netif/ath/ath_hal/ar5212/ar5212_beacon.c
233
HALASSERT(roundup(bs->bs_sleepduration, beaconintval) ==
sys/dev/netif/ath/ath_hal/ar5212/ar5212_beacon.c
234
bs->bs_sleepduration);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_beacon.c
235
beaconintval = bs->bs_sleepduration;
sys/dev/netif/ath/ath_hal/ar5212/ar5212_beacon.c
237
dtimperiod = bs->bs_dtimperiod;
sys/dev/netif/ath/ath_hal/ar5212/ar5212_beacon.c
238
if (bs->bs_sleepduration > dtimperiod) {
sys/dev/netif/ath/ath_hal/ar5212/ar5212_beacon.c
240
roundup(bs->bs_sleepduration, dtimperiod) ==
sys/dev/netif/ath/ath_hal/ar5212/ar5212_beacon.c
241
bs->bs_sleepduration);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_beacon.c
242
dtimperiod = bs->bs_sleepduration;
sys/dev/netif/ath/ath_hal/ar5212/ar5212_beacon.c
246
nextTbtt = bs->bs_nextdtim;
sys/dev/netif/ath/ath_hal/ar5212/ar5212_beacon.c
248
nextTbtt = bs->bs_nexttbtt;
sys/dev/netif/ath/ath_hal/ar5212/ar5212_beacon.c
249
nextdtim = bs->bs_nextdtim;
sys/dev/netif/ath/ath_hal/ar5212/ar5212_beacon.c
266
__func__, bs->bs_nextdtim);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_beacon.c
152
ar5416SetStaBeaconTimers(struct ath_hal *ah, const HAL_BEACON_STATE *bs)
sys/dev/netif/ath/ath_hal/ar5416/ar5416_beacon.c
156
HALASSERT(bs->bs_intval != 0);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_beacon.c
160
OS_REG_WRITE(ah, AR_NEXT_TBTT, TU_TO_USEC(bs->bs_nexttbtt));
sys/dev/netif/ath/ath_hal/ar5416/ar5416_beacon.c
168
TU_TO_USEC(bs->bs_intval & HAL_BEACON_PERIOD));
sys/dev/netif/ath/ath_hal/ar5416/ar5416_beacon.c
170
TU_TO_USEC(bs->bs_intval & HAL_BEACON_PERIOD));
sys/dev/netif/ath/ath_hal/ar5416/ar5416_beacon.c
177
HALASSERT(bs->bs_bmissthreshold <=
sys/dev/netif/ath/ath_hal/ar5416/ar5416_beacon.c
180
AR_RSSI_THR_BM_THR, bs->bs_bmissthreshold);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_beacon.c
230
beaconintval = bs->bs_intval & HAL_BEACON_PERIOD;
sys/dev/netif/ath/ath_hal/ar5416/ar5416_beacon.c
232
if (bs->bs_sleepduration > beaconintval) {
sys/dev/netif/ath/ath_hal/ar5416/ar5416_beacon.c
233
HALASSERT(roundup(bs->bs_sleepduration, beaconintval) ==
sys/dev/netif/ath/ath_hal/ar5416/ar5416_beacon.c
234
bs->bs_sleepduration);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_beacon.c
235
beaconintval = bs->bs_sleepduration;
sys/dev/netif/ath/ath_hal/ar5416/ar5416_beacon.c
237
dtimperiod = bs->bs_dtimperiod;
sys/dev/netif/ath/ath_hal/ar5416/ar5416_beacon.c
238
if (bs->bs_sleepduration > dtimperiod) {
sys/dev/netif/ath/ath_hal/ar5416/ar5416_beacon.c
240
roundup(bs->bs_sleepduration, dtimperiod) ==
sys/dev/netif/ath/ath_hal/ar5416/ar5416_beacon.c
241
bs->bs_sleepduration);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_beacon.c
242
dtimperiod = bs->bs_sleepduration;
sys/dev/netif/ath/ath_hal/ar5416/ar5416_beacon.c
246
nextTbtt = bs->bs_nextdtim;
sys/dev/netif/ath/ath_hal/ar5416/ar5416_beacon.c
248
nextTbtt = bs->bs_nexttbtt;
sys/dev/netif/ath/ath_hal/ar5416/ar5416_beacon.c
249
nextdtim = bs->bs_nextdtim;
sys/dev/netif/ath/ath_hal/ar5416/ar5416_beacon.c
252
TU_TO_USEC(bs->bs_nextdtim - SLEEP_SLOP));
sys/dev/netif/ath/ath_hal/ar5416/ar5416_beacon.c
279
__func__, bs->bs_nextdtim);
sys/dev/netif/ix/ixgbe_api.c
385
s32 ixgbe_get_fcoe_boot_status(struct ixgbe_hw *hw, u16 *bs)
sys/dev/netif/ix/ixgbe_api.c
388
(hw, bs),
sys/dev/netif/ix/ixgbe_api.h
198
s32 ixgbe_get_fcoe_boot_status(struct ixgbe_hw *hw, u16 *bs);
sys/dev/netif/ix/ixgbe_common.c
4336
s32 ixgbe_get_fcoe_boot_status_generic(struct ixgbe_hw *hw, u16 *bs)
sys/dev/netif/ix/ixgbe_common.c
4344
*bs = ixgbe_fcoe_bootstatus_unavailable;
sys/dev/netif/ix/ixgbe_common.c
4370
*bs = ixgbe_fcoe_bootstatus_enabled;
sys/dev/netif/ix/ixgbe_common.c
4372
*bs = ixgbe_fcoe_bootstatus_disabled;
sys/dev/netif/ix/ixgbe_common.h
154
s32 ixgbe_get_fcoe_boot_status_generic(struct ixgbe_hw *hw, u16 *bs);
sys/dev/sound/pcm/channel.c
1212
struct snd_dbuf *b, *bs;
sys/dev/sound/pcm/channel.c
1221
bs = NULL;
sys/dev/sound/pcm/channel.c
1233
bs = sndbuf_create(c->dev, c->name, "secondary", c);
sys/dev/sound/pcm/channel.c
1234
if (bs == NULL)
sys/dev/sound/pcm/channel.c
1252
sndbuf_setup(bs, NULL, 0);
sys/dev/sound/pcm/channel.c
1255
c->bufsoft = bs;
sys/dev/sound/pcm/channel.c
1290
sndbuf_setfmt(bs, c->format);
sys/dev/sound/pcm/channel.c
1291
sndbuf_setspd(bs, c->speed);
sys/dev/sound/pcm/channel.c
1299
bs->sl = sndbuf_getmaxsize(bs);
sys/dev/sound/pcm/channel.c
1300
bs->shadbuf = kmalloc(bs->sl, M_DEVBUF, M_WAITOK | M_ZERO);
sys/dev/sound/pcm/channel.c
1301
if (bs->shadbuf == NULL) {
sys/dev/sound/pcm/channel.c
1314
if (bs)
sys/dev/sound/pcm/channel.c
1315
sndbuf_destroy(bs);
sys/dev/sound/pcm/channel.c
1332
struct snd_dbuf *bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
1343
sndbuf_destroy(bs);
sys/dev/sound/pcm/channel.c
1756
struct snd_dbuf *b, *bs, *pb;
sys/dev/sound/pcm/channel.c
1779
bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
1783
(blksz < 16 || blksz < sndbuf_getalign(bs) || blkcnt < 2 ||
sys/dev/sound/pcm/channel.c
1787
chn_calclatency(c->direction, latency, sndbuf_getalign(bs),
sys/dev/sound/pcm/channel.c
1788
sndbuf_getalign(bs) * sndbuf_getspd(bs), CHN_2NDBUFMAXSIZE,
sys/dev/sound/pcm/channel.c
1795
blksz = sndbuf_getblksz(bs);
sys/dev/sound/pcm/channel.c
1796
blkcnt = sndbuf_getblkcnt(bs);
sys/dev/sound/pcm/channel.c
1809
sblksz = round_blksz(blksz, sndbuf_getalign(bs));
sys/dev/sound/pcm/channel.c
1822
sndbuf_xbytes(sndbuf_getsize(pb), pb, bs) : 0;
sys/dev/sound/pcm/channel.c
1825
sndbuf_xbytes(sndbuf_getblksz(pb), pb, bs) * 2 : 0;
sys/dev/sound/pcm/channel.c
1830
hblksz = round_blksz(sndbuf_xbytes(sblksz, bs, b),
sys/dev/sound/pcm/channel.c
1832
hblkcnt = round_pow2(sndbuf_getblkcnt(bs));
sys/dev/sound/pcm/channel.c
1868
sndbuf_xbytes(sndbuf_getblksz(b), b, bs),
sys/dev/sound/pcm/channel.c
1869
sndbuf_getalign(bs));
sys/dev/sound/pcm/channel.c
1882
limit = sndbuf_xbytes(sndbuf_getblksz(b), b, bs) * 2;
sys/dev/sound/pcm/channel.c
1906
sblksz -= sblksz % sndbuf_getalign(bs);
sys/dev/sound/pcm/channel.c
1908
if (sndbuf_getblkcnt(bs) != sblkcnt || sndbuf_getblksz(bs) != sblksz ||
sys/dev/sound/pcm/channel.c
1909
sndbuf_getsize(bs) != (sblkcnt * sblksz)) {
sys/dev/sound/pcm/channel.c
1910
ret = sndbuf_remalloc(bs, sblkcnt, sblksz);
sys/dev/sound/pcm/channel.c
1921
c->timeout = ((u_int64_t)hz * sndbuf_getsize(bs)) /
sys/dev/sound/pcm/channel.c
1922
((u_int64_t)sndbuf_getspd(bs) * sndbuf_getalign(bs));
sys/dev/sound/pcm/channel.c
1932
c->lw = sndbuf_getblksz(bs);
sys/dev/sound/pcm/channel.c
1943
sndbuf_getsize(bs), sndbuf_getblksz(bs),
sys/dev/sound/pcm/channel.c
1944
sndbuf_getblkcnt(bs), limit);
sys/dev/sound/pcm/channel.c
277
struct snd_dbuf *bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
283
if (sndbuf_getprevtotal(bs) < c->lw)
sys/dev/sound/pcm/channel.c
286
delta = sndbuf_gettotal(bs) - sndbuf_getprevtotal(bs);
sys/dev/sound/pcm/channel.c
289
delta = sndbuf_getfree(bs);
sys/dev/sound/pcm/channel.c
291
delta = sndbuf_getready(bs);
sys/dev/sound/pcm/channel.c
306
delta < sndbuf_getsize(bs) / 2) {
sys/dev/sound/pcm/channel.c
325
struct snd_dbuf *bs;
sys/dev/sound/pcm/channel.c
330
bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
334
if (SLIST_FIRST(&sndbuf_getkq(bs)->ki_note) && chn_polltrigger(c)) {
sys/dev/sound/pcm/channel.c
335
KNOTE(&sndbuf_getkq(bs)->ki_note, 0);
sys/dev/sound/pcm/channel.c
416
struct snd_dbuf *bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
422
sndbuf_acquire(bs, NULL, sndbuf_getfree(bs));
sys/dev/sound/pcm/channel.c
426
imax(0, sndbuf_xbytes(sndbuf_getsize(bs), bs, b) -
sys/dev/sound/pcm/channel.c
430
sndbuf_feed(bs, b, c, c->feeder, amt);
sys/dev/sound/pcm/channel.c
482
struct snd_dbuf *bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
492
sz = min(buf->uio_resid, sndbuf_getfree(bs));
sys/dev/sound/pcm/channel.c
500
p = sndbuf_getfreeptr(bs);
sys/dev/sound/pcm/channel.c
501
t = min(sz, sndbuf_getsize(bs) - p);
sys/dev/sound/pcm/channel.c
502
off = sndbuf_getbufofs(bs, p);
sys/dev/sound/pcm/channel.c
507
sndbuf_acquire(bs, NULL, t);
sys/dev/sound/pcm/channel.c
551
struct snd_dbuf *bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
557
sndbuf_dispose(bs, NULL, sndbuf_getready(bs));
sys/dev/sound/pcm/channel.c
559
amt = sndbuf_getfree(bs);
sys/dev/sound/pcm/channel.c
561
sndbuf_feed(b, bs, c, c->feeder, amt);
sys/dev/sound/pcm/channel.c
569
if (sndbuf_getready(bs) > 0)
sys/dev/sound/pcm/channel.c
613
struct snd_dbuf *bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
631
sz = min(buf->uio_resid, sndbuf_getready(bs));
sys/dev/sound/pcm/channel.c
639
p = sndbuf_getreadyptr(bs);
sys/dev/sound/pcm/channel.c
640
t = min(sz, sndbuf_getsize(bs) - p);
sys/dev/sound/pcm/channel.c
641
off = sndbuf_getbufofs(bs, p);
sys/dev/sound/pcm/channel.c
646
sndbuf_dispose(bs, NULL, t);
sys/dev/sound/pcm/channel.c
701
struct snd_dbuf *bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
716
i = sndbuf_getfree(bs);
sys/dev/sound/pcm/channel.c
719
if (sndbuf_getfree(bs) == 0) {
sys/dev/sound/pcm/channel.c
726
i = sndbuf_xbytes(sndbuf_getready(bs), bs, pb);
sys/dev/sound/pcm/channel.c
750
sndbuf_xbytes(sndbuf_getsize(bs), bs, b));
sys/dev/sound/pcm/channel.c
776
struct snd_dbuf *bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
780
sndbuf_reset(bs);
sys/dev/sound/pcm/channel.c
791
struct snd_dbuf *b, *bs;
sys/dev/sound/pcm/channel.c
800
bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
803
(threshold < 1 && sndbuf_getready(bs) < 1))
sys/dev/sound/pcm/channel.c
808
if (threshold > 0 || sndbuf_getready(bs) > 0) {
sys/dev/sound/pcm/channel.c
818
minflush = threshold + sndbuf_xbytes(sndbuf_getready(b), b, bs);
sys/dev/sound/pcm/channel.c
822
if (syncdelay < 0 && (threshold > 0 || sndbuf_getready(bs) > 0))
sys/dev/sound/pcm/channel.c
823
minflush += sndbuf_xbytes(sndbuf_getsize(b), b, bs);
sys/dev/sound/pcm/channel.c
831
minflush += (sndbuf_getalign(bs) * sndbuf_getspd(bs) *
sys/dev/sound/pcm/channel.c
834
minflush -= minflush % sndbuf_getalign(bs);
sys/dev/sound/pcm/channel.c
837
threshold = min(minflush, sndbuf_getfree(bs));
sys/dev/sound/pcm/channel.c
838
sndbuf_clear(bs, threshold);
sys/dev/sound/pcm/channel.c
839
sndbuf_acquire(bs, NULL, threshold);
sys/dev/sound/pcm/channel.c
843
resid = sndbuf_getready(bs);
sys/dev/sound/pcm/channel.c
856
count = sndbuf_xbytes(minflush + resid, bs, b) / blksz;
sys/dev/sound/pcm/channel.c
873
resid = sndbuf_getready(bs);
sys/dev/sound/pcm/channel.c
893
if (minflush > 0 && sndbuf_getfree(bs) > 0) {
sys/dev/sound/pcm/channel.c
895
sndbuf_getfree(bs));
sys/dev/sound/pcm/channel.c
896
sndbuf_clear(bs, threshold);
sys/dev/sound/pcm/channel.c
897
sndbuf_acquire(bs, NULL, threshold);
sys/dev/sound/pcm/channel.c
898
resid = sndbuf_getready(bs);
sys/dev/sound/pcm/channel.c
952
struct snd_dbuf *bs = c->bufsoft;
sys/dev/sound/pcm/channel.c
965
missing = sndbuf_getready(bs);
sys/dev/sound/pcm/dsp.c
1645
struct snd_dbuf *bs = rdch->bufsoft;
sys/dev/sound/pcm/dsp.c
1648
a->bytes = sndbuf_getready(bs);
sys/dev/sound/pcm/dsp.c
1649
a->fragments = a->bytes / sndbuf_getblksz(bs);
sys/dev/sound/pcm/dsp.c
1650
a->fragstotal = sndbuf_getblkcnt(bs);
sys/dev/sound/pcm/dsp.c
1651
a->fragsize = sndbuf_getblksz(bs);
sys/dev/sound/pcm/dsp.c
1663
struct snd_dbuf *bs = wrch->bufsoft;
sys/dev/sound/pcm/dsp.c
1667
a->bytes = sndbuf_getfree(bs);
sys/dev/sound/pcm/dsp.c
1668
a->fragments = a->bytes / sndbuf_getblksz(bs);
sys/dev/sound/pcm/dsp.c
1669
a->fragstotal = sndbuf_getblkcnt(bs);
sys/dev/sound/pcm/dsp.c
1670
a->fragsize = sndbuf_getblksz(bs);
sys/dev/sound/pcm/dsp.c
1681
struct snd_dbuf *bs = rdch->bufsoft;
sys/dev/sound/pcm/dsp.c
1685
a->bytes = sndbuf_gettotal(bs);
sys/dev/sound/pcm/dsp.c
1686
a->blocks = sndbuf_getblocks(bs) - rdch->blocks;
sys/dev/sound/pcm/dsp.c
1687
a->ptr = sndbuf_getfreeptr(bs);
sys/dev/sound/pcm/dsp.c
1688
rdch->blocks = sndbuf_getblocks(bs);
sys/dev/sound/pcm/dsp.c
1699
struct snd_dbuf *bs = wrch->bufsoft;
sys/dev/sound/pcm/dsp.c
1703
a->bytes = sndbuf_gettotal(bs);
sys/dev/sound/pcm/dsp.c
1704
a->blocks = sndbuf_getblocks(bs) - wrch->blocks;
sys/dev/sound/pcm/dsp.c
1705
a->ptr = sndbuf_getreadyptr(bs);
sys/dev/sound/pcm/dsp.c
1706
wrch->blocks = sndbuf_getblocks(bs);
sys/dev/sound/pcm/dsp.c
1787
struct snd_dbuf *bs = wrch->bufsoft;
sys/dev/sound/pcm/dsp.c
1791
*arg_i = sndbuf_getready(bs);
sys/dev/sound/pcm/dsp.c
1923
struct snd_dbuf *bs;
sys/dev/sound/pcm/dsp.c
1927
bs = wrch->bufsoft;
sys/dev/sound/pcm/dsp.c
1928
if ((bs->shadbuf != NULL) && (sndbuf_getready(bs) > 0)) {
sys/dev/sound/pcm/dsp.c
1929
bs->sl = sndbuf_getready(bs);
sys/dev/sound/pcm/dsp.c
1930
sndbuf_dispose(bs, bs->shadbuf, sndbuf_getready(bs));
sys/dev/sound/pcm/dsp.c
1931
sndbuf_fillsilence(bs);
sys/dev/sound/pcm/dsp.c
1947
struct snd_dbuf *bs;
sys/dev/sound/pcm/dsp.c
1951
bs = wrch->bufsoft;
sys/dev/sound/pcm/dsp.c
1952
if ((bs->shadbuf != NULL) && (bs->sl > 0)) {
sys/dev/sound/pcm/dsp.c
1953
sndbuf_softreset(bs);
sys/dev/sound/pcm/dsp.c
1954
sndbuf_acquire(bs, bs->shadbuf, bs->sl);
sys/dev/sound/pcm/dsp.c
1955
bs->sl = 0;
sys/dev/sound/pcm/dsp.c
1980
struct snd_dbuf *bs;
sys/dev/sound/pcm/dsp.c
1986
bs = chn->bufsoft;
sys/dev/sound/pcm/dsp.c
1992
oc->samples = sndbuf_gettotal(bs) / sndbuf_getalign(bs);
sys/dev/sound/pcm/dsp.c
1993
oc->fifo_samples = sndbuf_getready(bs) / sndbuf_getalign(bs);
sys/dev/sound/pcm/dsp.c
2193
struct snd_dbuf *bs = NULL;
sys/dev/sound/pcm/dsp.c
2213
bs = rdch->bufsoft;
sys/dev/sound/pcm/dsp.c
2223
bs = wrch->bufsoft;
sys/dev/sound/pcm/dsp.c
2235
klist = &sndbuf_getkq(bs)->ki_note;
sys/dev/sound/pcm/dsp.c
2250
struct snd_dbuf *bs = ch->bufsoft;
sys/dev/sound/pcm/dsp.c
2254
klist = &sndbuf_getkq(bs)->ki_note;
sys/dev/sound/pcm/feeder_mixer.c
181
struct snd_dbuf *b, *bs;
sys/dev/sound/pcm/feeder_mixer.c
232
bs = ch->bufsoft;
sys/dev/sound/pcm/feeder_mixer.c
234
sndbuf_dispose(bs, NULL, sndbuf_getready(bs));
sys/dev/sound/pcm/feeder_mixer.c
235
cnt = sndbuf_getfree(bs);
sys/dev/sound/pcm/feeder_mixer.c
236
if (cnt < sndbuf_getalign(bs)) {
sys/dev/sound/pcm/feeder_mixer.c
240
maxfeed = SND_FXROUND(SND_FXDIV_MAX, sndbuf_getalign(bs));
sys/dev/sound/pcm/feeder_mixer.c
242
cnt = FEEDER_FEED(ch->feeder, ch, bs->tmpbuf,
sys/dev/sound/pcm/feeder_mixer.c
245
sndbuf_acquire(bs, bs->tmpbuf, cnt);
sys/dev/sound/pcm/feeder_mixer.c
246
cnt = sndbuf_getfree(bs);
sys/net/bpf.c
929
struct bpf_stat *bs = (struct bpf_stat *)ap->a_data;
sys/net/bpf.c
931
bs->bs_recv = d->bd_rcount;
sys/net/bpf.c
932
bs->bs_drop = d->bd_dcount;
tools/tools/ath/athstats/athstats.c
497
snprintrate(char b[], size_t bs, int rate)
tools/tools/ath/athstats/athstats.c
500
snprintf(b, bs, "MCS%u", rate &~ IEEE80211_RATE_MCS);
tools/tools/ath/athstats/athstats.c
502
snprintf(b, bs, "%u.5M", rate / 2);
tools/tools/ath/athstats/athstats.c
504
snprintf(b, bs, "%uM", rate / 2);
tools/tools/ath/athstats/athstats.c
508
ath_get_curstat(struct statfoo *sf, int s, char b[], size_t bs)
tools/tools/ath/athstats/athstats.c
512
snprintf(b, bs, "%u", wf->cur.ath.ast_##x - wf->total.ath.ast_##x); return 1
tools/tools/ath/athstats/athstats.c
514
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
516
snprintf(b, bs, "%u", wf->cur.ani_state.x); return 1
tools/tools/ath/athstats/athstats.c
518
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
520
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
522
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
524
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
528
snprintf(b, bs, "%lu",
tools/tools/ath/athstats/athstats.c
533
snprintf(b, bs, "%lu",
tools/tools/ath/athstats/athstats.c
537
snprintrate(b, bs, wf->cur.ath.ast_tx_rate);
tools/tools/ath/athstats/athstats.c
615
snprintf(b, bs, "%d", wf->cur.ath.ast_tx_rssi);
tools/tools/ath/athstats/athstats.c
618
snprintf(b, bs, "%d", wf->cur.ath.ast_rx_rssi);
tools/tools/ath/athstats/athstats.c
630
snprintf(b, bs, "-%d/+%d",
tools/tools/ath/athstats/athstats.c
668
snprintf(b, bs, "%u",
tools/tools/ath/athstats/athstats.c
672
snprintf(b, bs, "%u",
tools/tools/ath/athstats/athstats.c
676
snprintf(b, bs, "%u",
tools/tools/ath/athstats/athstats.c
706
snprintf(b, bs, "%d", wf->cur.ath.ast_rx_noise);
tools/tools/ath/athstats/athstats.c
709
snprintf(b, bs, "%d",
tools/tools/ath/athstats/athstats.c
713
snprintf(b, bs, "%d",
tools/tools/ath/athstats/athstats.c
729
ath_get_totstat(struct statfoo *sf, int s, char b[], size_t bs)
tools/tools/ath/athstats/athstats.c
733
snprintf(b, bs, "%u", wf->total.ath.ast_##x); return 1
tools/tools/ath/athstats/athstats.c
735
snprintf(b, bs, "%u", wf->total.ath.ast_rx_phy[x]); return 1
tools/tools/ath/athstats/athstats.c
737
snprintf(b, bs, "%u", wf->total.ani_state.x); return 1
tools/tools/ath/athstats/athstats.c
739
snprintf(b, bs, "%u", wf->total.ani_stats.ast_ani_##x); return 1
tools/tools/ath/athstats/athstats.c
741
snprintf(b, bs, "%u", wf->total.ani_stats.ast_mibstats.x); return 1
tools/tools/ath/athstats/athstats.c
743
snprintf(b, bs, "%u", wf->total.ath.ast_ant_tx[x]); return 1
tools/tools/ath/athstats/athstats.c
745
snprintf(b, bs, "%u", wf->total.ath.ast_ant_rx[x]); return 1
tools/tools/ath/athstats/athstats.c
749
snprintf(b, bs, "%lu",
tools/tools/ath/athstats/athstats.c
753
snprintf(b, bs, "%lu", wf->total.ath.ast_tx_packets);
tools/tools/ath/athstats/athstats.c
756
snprintrate(b, bs, wf->total.ath.ast_tx_rate);
tools/tools/ath/athstats/athstats.c
834
snprintf(b, bs, "%d", wf->total.ath.ast_tx_rssi);
tools/tools/ath/athstats/athstats.c
837
snprintf(b, bs, "%d", wf->total.ath.ast_rx_rssi);
tools/tools/ath/athstats/athstats.c
849
snprintf(b, bs, "-%d/+%d",
tools/tools/ath/athstats/athstats.c
888
snprintf(b, bs, "%u",
tools/tools/ath/athstats/athstats.c
892
snprintf(b, bs, "%u",
tools/tools/ath/athstats/athstats.c
896
snprintf(b, bs, "%u",
tools/tools/ath/athstats/athstats.c
926
snprintf(b, bs, "%d", wf->total.ath.ast_rx_noise);
tools/tools/ath/athstats/athstats.c
929
snprintf(b, bs, "%d",
tools/tools/ath/athstats/athstats.c
933
snprintf(b, bs, "%d",
tools/tools/ath/athstats/statfoo.c
82
statfoo_get(struct statfoo *sf, int s, char b[], size_t bs)
tools/tools/ath/athstats/statfoo.h
100
{ return wf->base.get_curstat(&wf->base, s, b, bs); } \
tools/tools/ath/athstats/statfoo.h
101
static int _t##_get_totstat(struct _t *wf, int s, char b[], size_t bs) \
tools/tools/ath/athstats/statfoo.h
102
{ return wf->base.get_totstat(&wf->base, s, b, bs); } \
tools/tools/ath/athstats/statfoo.h
99
static int _t##_get_curstat(struct _t *wf, int s, char b[], size_t bs) \
tools/tools/bus_autoconf/bus_sections.c
57
format_info_new(char *pstr, uint16_t bo, uint16_t bs)
tools/tools/bus_autoconf/bus_sections.c
71
pfi->bit_size = bs;
tools/tools/net80211/wlanstats/statfoo.c
88
statfoo_get(struct statfoo *sf, int s, char b[], size_t bs)
tools/tools/net80211/wlanstats/statfoo.h
100
static int _t##_get_curstat(struct _t *wf, int s, char b[], size_t bs) \
tools/tools/net80211/wlanstats/statfoo.h
101
{ return wf->base.get_curstat(&wf->base, s, b, bs); } \
tools/tools/net80211/wlanstats/statfoo.h
102
static int _t##_get_totstat(struct _t *wf, int s, char b[], size_t bs) \
tools/tools/net80211/wlanstats/statfoo.h
103
{ return wf->base.get_totstat(&wf->base, s, b, bs); } \
tools/tools/net80211/wlanstats/wlanstats.c
551
setreason(char b[], size_t bs, int v)
tools/tools/net80211/wlanstats/wlanstats.c
580
snprintf(b, bs, "%s (%u)", reasons[v], v);
tools/tools/net80211/wlanstats/wlanstats.c
582
snprintf(b, bs, "%u", v);
tools/tools/net80211/wlanstats/wlanstats.c
587
setstatus(char b[], size_t bs, int v)
tools/tools/net80211/wlanstats/wlanstats.c
619
snprintf(b, bs, "%s (%u)", status[v], v);
tools/tools/net80211/wlanstats/wlanstats.c
621
snprintf(b, bs, "%u", v);
tools/tools/net80211/wlanstats/wlanstats.c
626
wlan_getinfo(struct wlanstatfoo_p *wf, int s, char b[], size_t bs)
tools/tools/net80211/wlanstats/wlanstats.c
632
snprintf(b, bs, "%uM", si->isi_txmbps/2);
tools/tools/net80211/wlanstats/wlanstats.c
635
snprintf(b, bs, "%d", si->isi_rssi);
tools/tools/net80211/wlanstats/wlanstats.c
638
snprintf(b, bs, "%d", si->isi_noise);
tools/tools/net80211/wlanstats/wlanstats.c
641
snprintf(b, bs, "%d", si->isi_rssi + si->isi_noise);
tools/tools/net80211/wlanstats/wlanstats.c
646
setstatus(b, bs, wf->cur.is_rx_authfail_code);
tools/tools/net80211/wlanstats/wlanstats.c
651
setreason(b, bs, wf->cur.is_rx_deauth_code);
tools/tools/net80211/wlanstats/wlanstats.c
656
setreason(b, bs, wf->cur.is_rx_disassoc_code);
tools/tools/net80211/wlanstats/wlanstats.c
664
wlan_get_curstat(struct statfoo *sf, int s, char b[], size_t bs)
tools/tools/net80211/wlanstats/wlanstats.c
668
snprintf(b, bs, "%u", wf->cur.is_##x - wf->total.is_##x); return 1
tools/tools/net80211/wlanstats/wlanstats.c
670
snprintf(b, bs, "%u", \
tools/tools/net80211/wlanstats/wlanstats.c
818
return wlan_getinfo(wf, s, b, bs);
tools/tools/net80211/wlanstats/wlanstats.c
824
wlan_get_totstat(struct statfoo *sf, int s, char b[], size_t bs)
tools/tools/net80211/wlanstats/wlanstats.c
828
snprintf(b, bs, "%u", wf->total.is_##x); return 1
tools/tools/net80211/wlanstats/wlanstats.c
830
snprintf(b, bs, "%u", wf->ntotal.is_stats.ns_##x); return 1
tools/tools/net80211/wlanstats/wlanstats.c
976
return wlan_getinfo(wf, s, b, bs);
usr.bin/mt/mt.c
547
getblksiz(int bs)
usr.bin/mt/mt.c
550
if (bs == 0)
usr.bin/mt/mt.c
553
sprintf(buf, "%d bytes", bs);
usr.sbin/boot0cfg/boot0cfg.c
321
boot0version(const u_int8_t *bs)
usr.sbin/boot0cfg/boot0cfg.c
326
if (memcmp(bs + 0x1c, idold, sizeof(idold)) == 0)
usr.sbin/boot0cfg/boot0cfg.c
330
return *(const int *)(bs + OFF_VERSION) & 0xffff;
usr.sbin/boot0cfg/boot0cfg.c
338
boot0bs(const u_int8_t *bs)
usr.sbin/boot0cfg/boot0cfg.c
358
if (memcmp(bs + ident[i].off, ident[i].key, ident[i].len) == 0)
usr.sbin/pfctl/pfctl_radix.c
413
size_t bs;
usr.sbin/pfctl/pfctl_radix.c
420
bs = buf_esize[b->pfrb_type];
usr.sbin/pfctl/pfctl_radix.c
424
memcpy(((caddr_t)b->pfrb_caddr) + bs * b->pfrb_size, e, bs);
usr.sbin/pfctl/pfctl_radix.c
436
size_t bs;
usr.sbin/pfctl/pfctl_radix.c
444
bs = buf_esize[b->pfrb_type];
usr.sbin/pfctl/pfctl_radix.c
445
if ((((c_caddr_t)prev)-((c_caddr_t)b->pfrb_caddr)) / bs + 1 >=
usr.sbin/pfctl/pfctl_radix.c
448
return (((c_caddr_t)prev) + bs);
usr.sbin/pfctl/pfctl_radix.c
460
size_t bs;
usr.sbin/pfctl/pfctl_radix.c
468
bs = buf_esize[b->pfrb_type];
usr.sbin/pfctl/pfctl_radix.c
472
b->pfrb_caddr = calloc(bs, minsize);
usr.sbin/pfctl/pfctl_radix.c
479
if (minsize < 0 || (size_t)minsize >= SIZE_T_MAX / bs) {
usr.sbin/pfctl/pfctl_radix.c
484
p = realloc(b->pfrb_caddr, minsize * bs);
usr.sbin/pfctl/pfctl_radix.c
487
bzero(p + b->pfrb_msize * bs, (minsize - b->pfrb_msize) * bs);