/freebsd/sys/net/ |
H A D | bridgestp.c | 949 if (bp->bp_sync || !bp->bp_synced || bp->bp_reroot) { in bstp_update_roles() 967 if (bp->bp_proposed && !bp->bp_agree) { in bstp_update_roles() 975 if (bp->bp_sync || !bp->bp_synced || bp->bp_reroot) { in bstp_update_roles() 1034 !bp->bp_synced) || (bp->bp_agreed && !bp->bp_synced) || in bstp_update_roles() 1036 (bp->bp_sync && bp->bp_synced)) { in bstp_update_roles() 1071 bp->bp_agreed = bp->bp_protover; in bstp_update_roles() 1124 if (bp->bp_rcvdtc || bp->bp_rcvdtcn || bp->bp_rcvdtca || in bstp_update_tc() 1163 if (bp->bp_synced && !bp->bp_agreed) { in bstp_update_info() 1169 bp->bp_port_pv = bp->bp_desg_pv; in bstp_update_info() 1173 bp->bp_port_htime = bp->bp_desg_htime; in bstp_update_info() [all …]
|
/freebsd/sys/geom/ |
H A D | geom_io.c | 269 bzero(bp, sizeof(*bp)); in g_reset_bio() 515 bp->_bio_caller1 = bp->bio_caller1; in g_io_request() 516 bp->_bio_caller2 = bp->bio_caller2; in g_io_request() 517 bp->_bio_cflags = bp->bio_cflags; in g_io_request() 586 bp->bio_to->geom->start(bp); in g_io_request() 617 bp->bio_done(bp); in g_io_deliver() 652 bp->bio_bcount = bp->bio_length; in g_io_deliver() 653 bp->bio_resid = bp->bio_bcount - bp->bio_completed; in g_io_deliver() 757 bp, bp->bio_to->name); in g_io_transient_map_bio() 839 "len %ld", bp, bp->bio_to->name, bp->bio_offset, in g_io_schedule_down() [all …]
|
/freebsd/sys/kern/ |
H A D | vfs_bio.c | 1471 nbusy, bp, bp->b_vp, bp->b_flags, in bufshutdown() 1847 bp->b_qindex, bp)); in buf_recycle() 1953 bp, bp->b_vp, bp->b_flags); in bq_remove() 2126 bp->b_data = bp->b_kvabase; in bufkva_alloc() 2544 bp, bp->b_vp, bp->b_flags); in bdirty() 2694 bp, bp->b_vp, bp->b_flags); in brelse() 3667 bp, bp->b_vp, bp->b_flags); in flushbufqueues() 4615 (*bp->b_ckhashcalc)(bp); in bufdone() 5086 bp->b_data = bp->b_kvabase + bp->b_offset; in vmapbuf() 5479 bp->b_error, bp->b_bufsize, bp->b_bcount, bp->b_resid, in DB_SHOW_COMMAND() [all …]
|
H A D | subr_disk.c | 43 if (bp->bio_dev != NULL) in disk_err() 47 bp->bio_disk->d_name, bp->bio_disk->d_unit, what); in disk_err() 50 switch(bp->bio_cmd) { in disk_err() 58 sn = bp->bio_pblkno; in disk_err() 68 (intmax_t)(bp->bio_pblkno + (bp->bio_bcount - 1) / DEV_BSIZE)); in disk_err() 168 head->last_offset = bp->bio_offset + bp->bio_length; in bioq_remove() 181 struct bio *bp; in bioq_flush() local 219 struct bio *bp; in bioq_takefirst() local 222 if (bp != NULL) in bioq_takefirst() 224 return (bp); in bioq_takefirst() [all …]
|
H A D | vfs_cluster.c | 246 bp->b_iooffset = dbtob(bp->b_blkno); in cluster_read() 507 bp->b_pages[bp->b_npages] = m; in cluster_rbuild() 535 if (bp->b_bufsize > bp->b_kvasize) in cluster_rbuild() 537 bp->b_bufsize, bp->b_kvasize); in cluster_rbuild() 748 bp->b_blkno == bp->b_lblkno && in cluster_write() 994 bp->b_pages[bp->b_npages] = m; in cluster_wbuild() 1024 if (bp->b_bufsize > bp->b_kvasize) in cluster_wbuild() 1027 bp->b_bufsize, bp->b_kvasize); in cluster_wbuild() 1030 bp->b_dirtyend = bp->b_bufsize; in cluster_wbuild() 1070 if (bp->b_blkno == bp->b_lblkno) in cluster_collectbufs() [all …]
|
/freebsd/usr.sbin/ppp/ |
H A D | mbuf.c | 82 for (len = 0; bp; bp = bp->m_next) in m_length() 191 bp = m_free(bp); in m_freem() 213 bp = m_free(bp); in mbuf_Read() 217 bp = m_free(bp); in mbuf_Read() 236 bp = bp->m_next; in mbuf_View() 247 if (bp && bp->m_offset) { in m_prepend() 283 bp = m_free(bp); in m_adj() 290 for (; bp; bp = bp->m_next, n -= bp->m_len) in m_adj() 316 bp = bp->m_next; in mbuf_Write() 400 bcopy(MBUF_CTOP(bp), bp + 1, bp->m_len); in m_pullup() [all …]
|
/freebsd/libexec/bootpd/tools/bootptest/ |
H A D | print-bootp.c | 111 dump_hex(bp->bp_chaddr, bp->bp_hlen); in bootp_print() 124 TCHECK(bp->bp_ciaddr, sizeof(bp->bp_ciaddr)); in bootp_print() 129 TCHECK(bp->bp_yiaddr, sizeof(bp->bp_yiaddr)); in bootp_print() 134 TCHECK(bp->bp_siaddr, sizeof(bp->bp_siaddr)); in bootp_print() 139 TCHECK(bp->bp_giaddr, sizeof(bp->bp_giaddr)); in bootp_print() 143 TCHECK(bp->bp_sname[0], sizeof(bp->bp_sname)); in bootp_print() 151 TCHECK(bp->bp_file[0], sizeof(bp->bp_file)); in bootp_print() 313 printfn(bp, bp + len); in rfc1048_print() 360 if (isascii(*bp) && isprint(*bp)) { in rfc1048_print() 362 printfn(bp, bp + len); in rfc1048_print() [all …]
|
/freebsd/contrib/tcpdump/ |
H A D | print-pim.c | 195 bp += 4; in pimv1_join_prune_print() 205 bp += 4; in pimv1_join_prune_print() 211 bp += 4; in pimv1_join_prune_print() 221 bp += 4; in pimv1_join_prune_print() 227 bp += 4; in pimv1_join_prune_print() 234 bp += 4; in pimv1_join_prune_print() 251 bp += 6; in pimv1_join_prune_print() 406 bp += 4; in cisco_autorp_print() 422 bp += 1; in cisco_autorp_print() 427 bp += 1; in cisco_autorp_print() [all …]
|
H A D | print-ptp.c | 405 len -= 2; bp += 2; control = GET_U_1(bp) ; in ptp_print_2() 486 bp += 6; in ptp_print_timestamp() 492 bp += 4; in ptp_print_timestamp() 508 bp += 6; in ptp_print_timestamp_identity() 514 bp += 4; in ptp_print_timestamp_identity() 520 bp += 8; in ptp_print_timestamp_identity() 526 bp += 2; in ptp_print_timestamp_identity() 542 bp += 6; in ptp_print_announce_msg() 548 bp += 4; in ptp_print_announce_msg() 554 bp += 2; in ptp_print_announce_msg() [all …]
|
H A D | print-pgm.c | 433 bp++; in pgm_print() 439 bp++; in pgm_print() 459 bp++; in pgm_print() 461 bp++; in pgm_print() 482 bp += 2; in pgm_print() 493 bp += 2; in pgm_print() 495 bp += 4; in pgm_print() 497 bp += 4; in pgm_print() 499 bp += 4; in pgm_print() 505 bp += 2; in pgm_print() [all …]
|
H A D | print-gre.c | 120 bp += 2; in gre_print_0() 127 bp += 2; in gre_print_0() 135 bp += 2; in gre_print_0() 142 bp += 2; in gre_print_0() 151 bp += 4; in gre_print_0() 160 bp += 4; in gre_print_0() 243 bp += 2; in gre_print_1() 254 bp += 2; in gre_print_1() 266 bp += 4; in gre_print_1() 274 bp += 4; in gre_print_1() [all …]
|
H A D | print-dvmrp.c | 93 bp += 8; in dvmrp_print() 161 GET_U_1(bp + 1) << 8 | GET_U_1(bp + 2); in print_report() 181 bp++; in print_report() 187 bp++; in print_report() 249 bp++; in print_neighbors() 251 bp++; in print_neighbors() 253 bp++; in print_neighbors() 293 bp++; in print_neighbors2() 295 bp++; in print_neighbors2() 297 bp++; in print_neighbors2() [all …]
|
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_buf.c | 54 bp->dbu_buf = bp->dbu_ptr = dt_zalloc(dtp, len); in dt_buf_create() 60 bp->dbu_err = 0; in dt_buf_create() 70 bp->dbu_name, (ulong_t)bp->dbu_len, bp->dbu_resizes); in dt_buf_destroy() 78 if ((bp->dbu_ptr = bp->dbu_buf) != NULL) in dt_buf_reset() 81 dt_buf_create(dtp, bp, bp->dbu_name, bp->dbu_len); in dt_buf_reset() 88 size_t off = (size_t)(bp->dbu_ptr - bp->dbu_buf); in dt_buf_write() 96 if (bp->dbu_ptr + adj + len > bp->dbu_buf + bp->dbu_len) { in dt_buf_write() 101 while (bp->dbu_ptr + adj + len > bp->dbu_buf + new_len) { in dt_buf_write() 141 size_t off = (size_t)(bp->dbu_ptr - bp->dbu_buf); in dt_buf_offset() 148 return (bp->dbu_ptr - bp->dbu_buf); in dt_buf_len() [all …]
|
/freebsd/contrib/mandoc/ |
H A D | eqn_term.c | 47 eqn_box(p, bp); in term_eqn() 60 if ((bp->type == EQN_LIST && bp->expectargs > 1) || in eqn_box() 61 (bp->type == EQN_PILE && (bp->prev || bp->next)) || in eqn_box() 62 (bp->parent != NULL && (bp->parent->pos == EQNPOS_SQRT || in eqn_box() 64 ((bp->top != NULL || bp->bottom != NULL) && in eqn_box() 66 bp->parent->pos != EQNPOS_OVER && bp->next != NULL) || in eqn_box() 68 (bp->type == EQN_SUBEXPR && bp->pos != EQNPOS_SQRT && in eqn_box() 83 term_word(p, bp->left != NULL ? bp->left : "("); in eqn_box() 98 if ((cp = strchr(bp->text, '\0')) > bp->text && in eqn_box() 170 term_word(p, bp->right != NULL ? bp->right : ")"); in eqn_box() [all …]
|
/freebsd/lib/libc/db/hash/ |
H A D | hash_buf.c | 112 if (!bp || (bp->addr != addr)) in __get_buf() 130 if (!bp) { in __get_buf() 162 bp = LRU; in newbuf() 204 if ((bp->addr != 0) || (bp->flags & BUF_BUCKET)) { in newbuf() 213 bp->addr, (int)IS_BUCKET(bp->flags), 0)) in newbuf() 271 bp->addr, (bp->ovfl ? bp->ovfl->addr : 0), 0); in newbuf() 282 (bp ? bp->addr : 0)); in newbuf() 323 for (bp = LRU; bp != &hashp->bufhead;) { in __buf_free() 325 if (bp->addr || IS_BUCKET(bp->flags)) { in __buf_free() 328 bp->addr, IS_BUCKET(bp->flags), 0)) in __buf_free() [all …]
|
/freebsd/lib/libc/db/mpool/ |
H A D | mpool.c | 112 BKT *bp; in mpool_new() local 146 BKT *bp; in mpool_delete() local 163 free(bp); in mpool_delete() 178 BKT *bp; in mpool_get() local 258 (mp->pgin)(mp->pgcookie, bp->pgno, bp->page); in mpool_get() 271 BKT *bp; in mpool_put() local 297 BKT *bp; in mpool_close() local 318 BKT *bp; in mpool_sync() local 338 BKT *bp; in mpool_bkt() local 379 bp->page = (char *)bp + sizeof(BKT); in mpool_bkt() [all …]
|
/freebsd/sys/geom/eli/ |
H A D | g_eli_privacy.c | 78 uiomove_fromphys(bp->bio_ma, bp->bio_ma_offset, bp->bio_length, &uio); in g_eli_bio_copyin() 100 bp->bio_inbed, bp->bio_children); in g_eli_crypto_read_done() 104 bp->bio_inbed, bp->bio_children, crp->crp_etype); in g_eli_crypto_read_done() 115 if (bp->bio_inbed < bp->bio_children) in g_eli_crypto_read_done() 126 g_io_deliver(bp, bp->bio_error); in g_eli_crypto_read_done() 153 bp->bio_inbed, bp->bio_children); in g_eli_crypto_write_done() 168 if (bp->bio_inbed < bp->bio_children) in g_eli_crypto_write_done() 179 g_io_deliver(bp, bp->bio_error); in g_eli_crypto_write_done() 281 if (!g_eli_alloc_data(bp, bp->bio_length)) { in g_eli_crypto_run() 288 g_io_deliver(bp, bp->bio_error); in g_eli_crypto_run() [all …]
|
H A D | g_eli_integrity.c | 141 bp->bio_inbed, bp->bio_children, crp->crp_payload_length, (intmax_t)bp->bio_completed); in g_eli_auth_read_done() 164 bp->bio_inbed, bp->bio_children, crp->crp_etype); in g_eli_auth_read_done() 175 if (bp->bio_inbed < bp->bio_children) in g_eli_auth_read_done() 277 g_io_deliver(bp, bp->bio_error); in g_eli_auth_read_done() 303 bp->bio_inbed, bp->bio_children); in g_eli_auth_write_done() 317 if (bp->bio_inbed < bp->bio_children) in g_eli_auth_write_done() 326 g_io_deliver(bp, bp->bio_error); in g_eli_auth_write_done() 337 nsec = bp->bio_length / bp->bio_to->sectorsize; in g_eli_auth_write_done() 390 nsec = bp->bio_length / bp->bio_to->sectorsize; in g_eli_auth_read() 403 g_io_deliver(bp, bp->bio_error); in g_eli_auth_read() [all …]
|
/freebsd/usr.sbin/bsnmpd/modules/snmp_bridge/ |
H A D | bridge_port.c | 66 free(bp); in bridge_ports_free() 270 bzero(bp, sizeof(*bp)); in bridge_new_port() 315 for (bp = bif->f_bp; bp != NULL; bp = TAILQ_NEXT(bp, b_p)) { in bridge_port_find() 334 bp = bridge_port_bif_next(bp)) { in bridge_ports_dump() 336 bp->p_name, bp->port_no); in bridge_ports_dump() 373 (bp = bridge_port_bif_next(bp)) == NULL) in op_dot1d_base_port() 445 (bp = bridge_port_bif_next(bp)) == NULL) in op_dot1d_stp_port() 603 (bp = bridge_port_bif_next(bp)) == NULL) in op_dot1d_stp_ext_port() 875 bp = bridge_port_next(bp); in bridge_port_index_getnext() 884 bp = bridge_port_next(bp); in bridge_port_index_getnext() [all …]
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | spa.h | 443 #define BP_GET_TYPE(bp) BF64_GET((bp)->blk_prop, 48, 8) argument 446 #define BP_GET_LEVEL(bp) BF64_GET((bp)->blk_prop, 56, 5) argument 464 (BP_USES_CRYPT(bp) && BP_GET_LEVEL(bp) > 0) 467 (BP_IS_ENCRYPTED(bp) || BP_IS_AUTHENTICATED(bp)) 469 #define BP_GET_DEDUP(bp) BF64_GET((bp)->blk_prop, 62, 1) argument 475 #define BP_GET_FREE(bp) BF64_GET((bp)->blk_fill, 0, 1) argument 478 #define BP_GET_LOGICAL_BIRTH(bp) (bp)->blk_birth_word[1] argument 499 ((BP_IS_EMBEDDED(bp)) ? 1 : (bp)->blk_fill)) 528 (BP_IS_METADATA(bp) ? BP_GET_PSIZE(bp) : BP_GET_LSIZE(bp)) 556 #define BP_IDENTITY(bp) (ASSERT(!BP_IS_EMBEDDED(bp)), &(bp)->blk_dva[0]) argument [all …]
|
/freebsd/contrib/byacc/ |
H A D | symtab.c | 32 bucket *bp; in make_bucket() local 37 NO_SPACE(bp); in make_bucket() 39 bp->link = 0; in make_bucket() 40 bp->next = 0; in make_bucket() 45 bp->tag = 0; in make_bucket() 48 bp->prec = 0; in make_bucket() 59 return (bp); in make_bucket() 68 bp = *bpp; in lookup() 70 while (bp) in lookup() 75 bp = *bpp; in lookup() [all …]
|
/freebsd/usr.sbin/rtadvd/ |
H A D | advcap.c | 266 bp++; in tskip() 269 bp++; in tskip() 277 bp++; in tskip() 280 bp++; in tskip() 286 bp++; in tskip() 306 bp = tskip(bp); in tgetnum() 316 bp++; in tgetnum() 339 bp = tskip(bp); in tgetflag() 344 if (!*bp || *bp == ':') in tgetflag() 366 bp = tskip(bp); in tgetstr() [all …]
|
/freebsd/usr.sbin/makefs/ffs/ |
H A D | buf.c | 119 free(bp); in brelse() 138 brelse(bp); in bwrite() 141 rv = write(bp->b_fs->fd, bp->b_data, bytes); in bwrite() 146 brelse(bp); in bwrite() 171 (long long)bp->b_lblkno, (long long)bp->b_blkno, in bcleanup() 172 bp->b_bcount, bp->b_bufsize); in bcleanup() 189 bp = NULL; in getblk() 203 bp = ecalloc(1, sizeof(*bp)); in getblk() 205 bp->b_blkno = bp->b_lblkno = blkno; in getblk() 211 if (bp->b_data == NULL || bp->b_bcount > bp->b_bufsize) { in getblk() [all …]
|
/freebsd/usr.sbin/lpr/common_source/ |
H A D | printcap.c | 94 char *bp; in getprintcap() local 99 free(bp); in getprintcap() 140 char *bp; in firstprinter() local 152 free(bp); in firstprinter() 162 char *bp; in nextprinter() local 174 free(bp); in nextprinter() 410 if (cgetcap(bp, lng, ':')) in capdb_getaltlog() 412 if (cgetcap(bp, shrt, ':')) in capdb_getaltlog() 429 nameend = strpbrk(bp, "|:"); in capdb_canonical_name() 431 nameend = bp + 1; in capdb_canonical_name() [all …]
|
/freebsd/sys/fs/fuse/ |
H A D | fuse_io.c | 150 for (err = 0, bp = NULL; uio->uio_resid > 0; bp = NULL) { in fuse_read_biobackend() 194 bp = NULL; in fuse_read_biobackend() 547 if (!bp) { in fuse_write_biobackend() 633 if (bp->b_dirtyoff >= bp->b_dirtyend) in fuse_write_biobackend() 634 bp->b_dirtyoff = bp->b_dirtyend = 0; in fuse_write_biobackend() 684 bp->b_dirtyoff = MIN(on, bp->b_dirtyoff); in fuse_write_biobackend() 685 bp->b_dirtyend = MAX((on + n), bp->b_dirtyend); in fuse_write_biobackend() 757 cred = bp->b_iocmd == BIO_READ ? bp->b_rcred : bp->b_wcred; in fuse_io_strategy() 867 if (bp->b_dirtyend > bp->b_dirtyoff) { in fuse_io_strategy() 872 io.iov_base = (char *)bp->b_data + bp->b_dirtyoff; in fuse_io_strategy() [all …]
|