/freebsd-11.0-release/lib/libutil/ |
H A D | kinfo_getvmmap.c | 19 char *buf, *bp, *eb; local 43 bp = buf; 45 while (bp < eb) { 46 kv = (struct kinfo_vmentry *)(uintptr_t)bp; 49 bp += kv->kve_structsize; 58 bp = buf; 62 while (bp < eb) { 63 kv = (struct kinfo_vmentry *)(uintptr_t)bp; 69 bp += kv->kve_structsize;
|
/freebsd-11.0-release/contrib/nvi/ex/ |
H A D | ex_source.c | 42 char *bp; local 49 INT2CHAR(sp, cmdp->argv[0]->bp, cmdp->argv[0]->len + 1, name, nlen); 68 MALLOC(sp, bp, char *, (size_t)sb.st_size + 1); 69 if (bp == NULL) { 73 bp[sb.st_size] = '\0'; 76 len = read(fd, bp, (int)sb.st_size); 81 free(bp); 87 if (CHAR2INT(sp, bp, (size_t)sb.st_size + 1, wp, wlen)) 93 free(bp);
|
/freebsd-11.0-release/crypto/heimdal/appl/rcp/ |
H A D | util.c | 146 allocbuf(bp, fd, blksize) 147 BUF *bp; 161 if (bp->cnt >= size) 162 return (bp); 163 if ((p = realloc(bp->buf, size)) == NULL) { 164 if (bp->buf) 165 free(bp->buf); 166 bp->buf = NULL; 167 bp->cnt = 0; 172 bp [all...] |
/freebsd-11.0-release/lib/libc/gen/ |
H A D | check_utility_compat.c | 52 char *p, *bp; local 65 bp = buf; 66 while ((p = strsep(&bp, ",")) != NULL) {
|
/freebsd-11.0-release/contrib/mtree/ |
H A D | getid.c | 252 char *cp, *bp, *ep; local 256 bp = grline; 258 _gr_group.gr_name = strsep(&bp, ":\n"); 261 _gr_group.gr_passwd = strsep(&bp, ":\n"); 262 if (!(cp = strsep(&bp, ":\n"))) 271 if (bp == NULL) 273 for (_gr_group.gr_mem = m = members;; bp++) { 276 if (*bp == ',') { 278 *bp = '\0'; 282 } else if (*bp 399 char *cp, *bp, *ep; local [all...] |
/freebsd-11.0-release/sys/fs/nandfs/ |
H A D | nandfs_cpfile.c | 97 struct buf *bp; local 105 error = nandfs_bread(cp_node, 0, NOCRED, 0, &bp); 107 brelse(bp); 111 error = nandfs_dirty_buf(bp, 0); 120 error = nandfs_bread(cp_node, blk, NOCRED, 0, &bp); 122 error = nandfs_bcreate(cp_node, blk, NOCRED, 0, &bp); 124 if (bp) 125 brelse(bp); 129 nandfs_dirty_buf(bp, 1); 144 struct buf *bp; local 218 struct buf *bp; local 343 struct buf *bp; local 490 struct buf *bp; local 563 struct buf *bp = NULL; local 688 struct buf *bp; local 753 struct buf *bp; local [all...] |
H A D | nandfs_segment.c | 88 struct buf *bp; local 164 bp = getblk(fsdev->nd_devvp, nandfs_block_to_dblock(fsdev, 166 bzero(bp->b_data, seginfo->fsdev->nd_blocksize); 167 bp->b_bufobj = &seginfo->fsdev->nd_devvp->v_bufobj; 168 bp->b_flags |= B_MANAGED; 171 TAILQ_INSERT_TAIL(&seg->segsum, bp, b_cluster.cluster_entry); 172 seg->current_off = bp->b_data + sizeof(struct nandfs_segment_summary); 194 struct buf *bp, *tbp; local 197 TAILQ_FOREACH_SAFE(bp, &seg->segsum, b_cluster.cluster_entry, 199 TAILQ_REMOVE(&seg->segsum, bp, b_cluste 244 struct buf *bp; local 278 struct buf *bp = NULL; local 324 struct buf *bp; local 365 nandfs_add_blocks(struct nandfs_seginfo *seginfo, struct nandfs_node *node, struct buf *bp) argument 425 struct buf *bp, *tbd; local 527 nandfs_update_phys_block(struct nandfs_device *fsdev, struct buf *bp, uint64_t phys_blknr, union nandfs_binfo *binfo) argument 578 struct buf *bp, *seg_bp; local 646 struct buf *bp; local 697 nandfs_save_buf(struct buf *bp, uint64_t blocknr, struct nandfs_device *fsdev) argument 732 nandfs_clean_buf(struct nandfs_device *fsdev, struct buf *bp) argument 748 struct buf *bp, *tbp, *next_bp; local 793 struct buf *bp, *tbp, *next_bp; local 918 struct buf *bp, *tbd; local 1273 struct buf *bp; local [all...] |
/freebsd-11.0-release/sys/geom/ |
H A D | geom_disk.c | 162 g_disk_kerneldump(struct bio *bp, struct disk *dp) argument 167 gkd = (struct g_kerneldump*)bp->bio_data; 168 gp = bp->bio_to->geom; 172 g_io_deliver(bp, ENODEV); 183 g_io_deliver(bp, 0); 187 g_disk_setstate(struct bio *bp, struct g_disk_softc *sc) argument 191 memcpy(&sc->state, bp->bio_data, sizeof(sc->state)); 209 g_io_deliver(bp, 0); 213 g_disk_done(struct bio *bp) argument 221 bp2 = bp 270 g_disk_maxsize(struct disk *dp, struct bio *bp) argument 278 g_disk_maxsegs(struct disk *dp, struct bio *bp) argument 284 g_disk_advance(struct disk *dp, struct bio *bp, off_t off) argument 347 g_disk_vlist_limit(struct disk *dp, struct bio *bp, bus_dma_segment_t **pendseg) argument 371 g_disk_limit(struct disk *dp, struct bio *bp) argument 409 g_disk_start(struct bio *bp) argument 556 struct bio *bp; local [all...] |
H A D | geom_vfs.c | 96 struct buf *bp; local 106 bp = bip->bio_caller2; 107 vp = bp->b_vp; 122 if (bp->b_iocmd == BIO_READ) { 123 if (LK_HOLDER(bp->b_lock.lk_lock) == LK_KERNPROC) 127 } else if (bp->b_iocmd == BIO_WRITE) { 128 if (LK_HOLDER(bp->b_lock.lk_lock) == LK_KERNPROC) 144 bp->b_error = bip->bio_error; 145 bp->b_ioflags = bip->bio_flags; 147 bp 161 g_vfs_strategy(struct bufobj *bo, struct buf *bp) argument [all...] |
/freebsd-11.0-release/usr.sbin/ppp/ |
H A D | tcpmss.c | 144 tcpmss_Check(struct bundle *bundle, struct mbuf *bp) argument 150 return bp; 152 bp = m_pullup(bp); 153 plen = m_length(bp); 154 pip = (struct ip *)MBUF_CTOP(bp); 164 MSSFixup((struct tcphdr *)(MBUF_CTOP(bp) + hlen), plen - hlen, 167 return bp; 172 struct mbuf *bp, int pri __unused, u_short *proto __unused) 174 return tcpmss_Check(bundle, bp); 171 tcpmss_LayerPush(struct bundle *bundle, struct link *l __unused, struct mbuf *bp, int pri __unused, u_short *proto __unused) argument 178 tcpmss_LayerPull(struct bundle *bundle, struct link *l __unused, struct mbuf *bp, u_short *proto __unused) argument [all...] |
H A D | pap.c | 87 struct mbuf *bp; local 101 bp = m_get(plen + sizeof(struct fsmheader), MB_PAPOUT); 102 memcpy(MBUF_CTOP(bp), &lh, sizeof(struct fsmheader)); 103 cp = MBUF_CTOP(bp) + sizeof(struct fsmheader); 109 link_PushPacket(&authp->physical->link, bp, bundle, 117 struct mbuf *bp; local 126 bp = m_get(plen + sizeof(struct fsmheader), MB_PAPOUT); 127 memcpy(MBUF_CTOP(bp), &lh, sizeof(struct fsmheader)); 128 cp = MBUF_CTOP(bp) + sizeof(struct fsmheader); 138 link_PushPacket(&authp->physical->link, bp, auth 180 pap_Input(struct bundle *bundle, struct link *l, struct mbuf *bp) argument [all...] |
H A D | link.c | 182 struct mbuf *bp; local 184 for (bp = NULL, pri = LINK_QUEUES(l) - 1; pri >= 0; pri--) 186 bp = m_dequeue(l->Queue + pri); 193 return bp; 248 link_PushPacket(struct link *l, struct mbuf *bp, struct bundle *b, int pri, argument 263 bp->priv = 0; /* Adjusted by the async layer ! */ 264 for (layer = l->nlayers; layer && bp; layer--) 266 bp = (*l->layer[layer - 1]->push)(b, l, bp, pri, &proto); 268 if (bp) { 278 struct mbuf *bp, *lbp[LAYER_MAX], *next; local 373 Despatch(struct bundle *bundle, struct link *l, struct mbuf *bp, u_short proto) argument [all...] |
/freebsd-11.0-release/contrib/nvi/common/ |
H A D | delete.c | 44 CHAR_T *bp, *p; local 47 bp = NULL; 85 GET_SPACE_RETW(sp, bp, blen, fm->cno); 86 MEMCPY(bp, p, fm->cno); 87 if (db_set(sp, fm->lno, bp, fm->cno)) 97 GET_SPACE_RETW(sp, bp, blen, len); 99 MEMCPY(bp, p, fm->cno); 100 MEMCPY(bp + fm->cno, p + (tm->cno + 1), 103 bp, len - ((tm->cno - fm->cno) + 1))) 116 GET_SPACE_RETW(sp, bp, ble [all...] |
/freebsd-11.0-release/sys/cddl/boot/zfs/ |
H A D | zfsimpl.h | 128 * overhead, three DVAs per bp, plus one more bit in case we do anything 208 * fill count number of non-zero blocks under this bp 209 * checksum[4] 256-bit checksum of the data this bp describes 261 * bp's they are stored in units of SPA_MINBLOCKSHIFT. 270 #define BPE_GET_ETYPE(bp) \ 271 (ASSERT(BP_IS_EMBEDDED(bp)), \ 272 BF64_GET((bp)->blk_prop, 40, 8)) 273 #define BPE_SET_ETYPE(bp, t) do { \ 274 ASSERT(BP_IS_EMBEDDED(bp)); \ 275 BF64_SET((bp) [all...] |
/freebsd-11.0-release/sys/vm/ |
H A D | vnode_pager.c | 525 struct buf *bp; local 559 bp = getpbuf(&vnode_pbuf_freecnt); 562 bp->b_iocmd = BIO_READ; 563 bp->b_iodone = bdone; 564 KASSERT(bp->b_rcred == NOCRED, ("leaking read ucred")); 565 KASSERT(bp->b_wcred == NOCRED, ("leaking write ucred")); 566 bp->b_rcred = crhold(curthread->td_ucred); 567 bp->b_wcred = crhold(curthread->td_ucred); 568 bp->b_data = (caddr_t)sf_buf_kva(sf) + i * bsize; 569 bp 748 struct buf *bp; local 1024 vnode_pager_generic_getpages_done_async(struct buf *bp) argument 1040 vnode_pager_generic_getpages_done(struct buf *bp) argument [all...] |
/freebsd-11.0-release/sys/geom/journal/ |
H A D | g_journal.c | 642 g_journal_metadata_done(struct bio *bp) argument 648 if (bp->bio_error != 0) { 649 GJ_LOGREQ(0, bp, "Cannot update metadata (error=%d).", 650 bp->bio_error); 652 GJ_LOGREQ(2, bp, "Metadata updated."); 654 gj_free(bp->bio_data, bp->bio_length); 655 g_destroy_bio(bp); 663 struct bio *bp; local 695 bp 720 g_journal_start(struct bio *bp) argument 751 g_journal_std_done(struct bio *bp) argument 766 struct bio *bp; local 1084 g_journal_read_first(struct g_journal_softc *sc, struct bio *bp) argument 1108 struct bio *bioq, *bp, *lbp; local 1159 g_journal_copy_read_done(struct bio *bp) argument 1195 g_journal_copy_write_done(struct bio *bp) argument 1235 struct bio *bp, *fbp, *pbp; local 1345 g_journal_flush_done(struct bio *bp) argument 1372 struct bio *bioq, *bp, *lbp; local 1404 g_journal_add_current(struct g_journal_softc *sc, struct bio *bp) argument 1430 struct bio *bp; local 1449 g_journal_add_request(struct g_journal_softc *sc, struct bio *bp) argument 1478 struct bio *bp; local 1523 struct bio *bp; local 1567 struct bio *bp, *nbp, *head; local 1667 g_journal_read_done(struct bio *bp) argument 1770 g_journal_sync_read(struct g_consumer *cp, struct bio *bp, off_t offset, void *data) argument 1806 struct bio *bp, *fbp, *tbp; local 2057 struct bio *bp; local 2721 struct bio *bp; local [all...] |
/freebsd-11.0-release/contrib/tcpdump/ |
H A D | print-frag6.c | 36 frag6_print(netdissect_options *ndo, register const u_char *bp, register const u_char *bp2) argument 41 dp = (const struct ip6_frag *)bp; 51 (long)(bp - bp2) - sizeof(struct ip6_frag))); 56 (long)(bp - bp2) - sizeof(struct ip6_frag)));
|
/freebsd-11.0-release/crypto/openssl/crypto/pem/ |
H A D | pem_pk8.c | 69 static int do_pk8pkey(BIO *bp, EVP_PKEY *x, int isder, 72 static int do_pk8pkey_fp(FILE *bp, EVP_PKEY *x, int isder, 83 int PEM_write_bio_PKCS8PrivateKey_nid(BIO *bp, EVP_PKEY *x, int nid, argument 87 return do_pk8pkey(bp, x, 0, nid, NULL, kstr, klen, cb, u); 90 int PEM_write_bio_PKCS8PrivateKey(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc, argument 94 return do_pk8pkey(bp, x, 0, -1, enc, kstr, klen, cb, u); 97 int i2d_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc, argument 101 return do_pk8pkey(bp, x, 1, -1, enc, kstr, klen, cb, u); 104 int i2d_PKCS8PrivateKey_nid_bio(BIO *bp, EVP_PKEY *x, int nid, argument 108 return do_pk8pkey(bp, 111 do_pk8pkey(BIO *bp, EVP_PKEY *x, int isder, int nid, const EVP_CIPHER *enc, char *kstr, int klen, pem_password_cb *cb, void *u) argument 159 d2i_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY **x, pem_password_cb *cb, void *u) argument 228 BIO *bp; local 242 BIO *bp; local [all...] |
/freebsd-11.0-release/contrib/netbsd-tests/net/bpf/ |
H A D | t_div-by-zero.c | 22 struct bpf_program bp; local 37 bp.bf_len = __arraycount(bins); 38 bp.bf_insns = bins; 43 ATF_REQUIRE_EQ_MSG(rump_sys_ioctl(fd, BIOCSETF, &bp), -1,
|
/freebsd-11.0-release/sys/geom/nop/ |
H A D | g_nop.h | 47 #define G_NOP_LOGREQ(bp, ...) G_NOP_LOGREQLVL(2, bp, __VA_ARGS__) 48 #define G_NOP_LOGREQLVL(lvl, bp, ...) do { \ 53 g_print_bio(bp); \
|
/freebsd-11.0-release/contrib/ntp/libntp/ |
H A D | uglydate.c | 19 char *bp; local 27 LIB_GETBUF(bp); 45 snprintf(bp, LIB_BUFLENGTH, 50 return bp;
|
/freebsd-11.0-release/sys/dev/nvd/ |
H A D | nvd.c | 169 nvd_bio_submit(struct nvd_disk *ndisk, struct bio *bp) argument 173 bp->bio_driver1 = NULL; 175 err = nvme_ns_bio_process(ndisk->ns, bp, nvd_done); 178 if (__predict_false(bp->bio_flags & BIO_ORDERED)) 180 bp->bio_error = err; 181 bp->bio_flags |= BIO_ERROR; 182 bp->bio_resid = bp->bio_bcount; 183 biodone(bp); 191 nvd_strategy(struct bio *bp) argument 232 struct bio *bp; local 250 struct bio *bp; local 379 struct bio *bp; local [all...] |
/freebsd-11.0-release/sys/geom/mountver/ |
H A D | g_mountver.h | 49 #define G_MOUNTVER_LOGREQ(bp, ...) do { \ 54 g_print_bio(bp); \
|
/freebsd-11.0-release/crypto/openssl/crypto/x509/ |
H A D | x_all.c | 168 X509 *d2i_X509_bio(BIO *bp, X509 **x509) argument 170 return ASN1_item_d2i_bio(ASN1_ITEM_rptr(X509), bp, x509); 173 int i2d_X509_bio(BIO *bp, X509 *x509) argument 175 return ASN1_item_i2d_bio(ASN1_ITEM_rptr(X509), bp, x509); 190 X509_CRL *d2i_X509_CRL_bio(BIO *bp, X509_CRL **crl) argument 192 return ASN1_item_d2i_bio(ASN1_ITEM_rptr(X509_CRL), bp, crl); 195 int i2d_X509_CRL_bio(BIO *bp, X509_CRL *crl) argument 197 return ASN1_item_i2d_bio(ASN1_ITEM_rptr(X509_CRL), bp, crl); 212 PKCS7 *d2i_PKCS7_bio(BIO *bp, PKCS7 **p7) argument 214 return ASN1_item_d2i_bio(ASN1_ITEM_rptr(PKCS7), bp, p 217 i2d_PKCS7_bio(BIO *bp, PKCS7 *p7) argument 234 d2i_X509_REQ_bio(BIO *bp, X509_REQ **req) argument 239 i2d_X509_REQ_bio(BIO *bp, X509_REQ *req) argument 280 d2i_RSAPrivateKey_bio(BIO *bp, RSA **rsa) argument 285 i2d_RSAPrivateKey_bio(BIO *bp, RSA *rsa) argument 290 d2i_RSAPublicKey_bio(BIO *bp, RSA **rsa) argument 295 d2i_RSA_PUBKEY_bio(BIO *bp, RSA **rsa) argument 300 i2d_RSAPublicKey_bio(BIO *bp, RSA *rsa) argument 305 i2d_RSA_PUBKEY_bio(BIO *bp, RSA *rsa) argument 334 d2i_DSAPrivateKey_bio(BIO *bp, DSA **dsa) argument 339 i2d_DSAPrivateKey_bio(BIO *bp, DSA *dsa) argument 344 d2i_DSA_PUBKEY_bio(BIO *bp, DSA **dsa) argument 349 i2d_DSA_PUBKEY_bio(BIO *bp, DSA *dsa) argument 378 d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey) argument 383 i2d_EC_PUBKEY_bio(BIO *bp, EC_KEY *ecdsa) argument 388 d2i_ECPrivateKey_bio(BIO *bp, EC_KEY **eckey) argument 393 i2d_ECPrivateKey_bio(BIO *bp, EC_KEY *eckey) argument 457 d2i_PKCS8_bio(BIO *bp, X509_SIG **p8) argument 462 i2d_PKCS8_bio(BIO *bp, X509_SIG *p8) argument 515 d2i_PKCS8_PRIV_KEY_INFO_bio(BIO *bp, PKCS8_PRIV_KEY_INFO **p8inf) argument 522 i2d_PKCS8_PRIV_KEY_INFO_bio(BIO *bp, PKCS8_PRIV_KEY_INFO *p8inf) argument 528 i2d_PKCS8PrivateKeyInfo_bio(BIO *bp, EVP_PKEY *key) argument 540 i2d_PrivateKey_bio(BIO *bp, EVP_PKEY *pkey) argument 545 d2i_PrivateKey_bio(BIO *bp, EVP_PKEY **a) argument 550 i2d_PUBKEY_bio(BIO *bp, EVP_PKEY *pkey) argument 555 d2i_PUBKEY_bio(BIO *bp, EVP_PKEY **a) argument [all...] |
/freebsd-11.0-release/crypto/openssl/crypto/x509v3/ |
H A D | v3_ocsp.c | 92 BIO *bp, int ind); 160 static int i2r_ocsp_crlid(const X509V3_EXT_METHOD *method, void *in, BIO *bp, argument 165 if (BIO_printf(bp, "%*scrlUrl: ", ind, "") <= 0) 167 if (!ASN1_STRING_print(bp, (ASN1_STRING *)a->crlUrl)) 169 if (BIO_write(bp, "\n", 1) <= 0) 173 if (BIO_printf(bp, "%*scrlNum: ", ind, "") <= 0) 175 if (i2a_ASN1_INTEGER(bp, a->crlNum) <= 0) 177 if (BIO_write(bp, "\n", 1) <= 0) 181 if (BIO_printf(bp, "%*scrlTime: ", ind, "") <= 0) 183 if (!ASN1_GENERALIZEDTIME_print(bp, 193 i2r_ocsp_acutoff(const X509V3_EXT_METHOD *method, void *cutoff, BIO *bp, int ind) argument 203 i2r_object(const X509V3_EXT_METHOD *method, void *oid, BIO *bp, int ind) argument 286 i2r_ocsp_serviceloc(const X509V3_EXT_METHOD *method, void *in, BIO *bp, int ind) argument [all...] |