/freebsd/sys/netsmb/ |
H A D | smb_trantcp.c | 153 nbp->nbp_tso = so; in nb_connect_in() 159 error = soreserve(so, nbp->nbp_sndbuf, nbp->nbp_rcvbuf); in nb_connect_in() 453 struct nbpcb *nbp; in smb_nbst_create() local 455 nbp = malloc(sizeof *nbp, M_NBDATA, M_WAITOK); in smb_nbst_create() 456 bzero(nbp, sizeof *nbp); in smb_nbst_create() 459 nbp->nbp_vc = vcp; in smb_nbst_create() 471 if (nbp == NULL) in smb_nbst_done() 552 timespecadd(&nbp->nbp_timo, &ts2, &nbp->nbp_timo); in smb_nbst_connect() 553 timespecadd(&nbp->nbp_timo, &ts2, &nbp->nbp_timo); /* * 4 */ in smb_nbst_connect() 566 if (nbp == NULL || nbp->nbp_tso == NULL) in smb_nbst_disconnect() [all …]
|
/freebsd/sys/ufs/ffs/ |
H A D | ffs_rawread.c | 277 nbp = NULL; in ffs_rawread_main() 294 nbp = NULL; in ffs_rawread_main() 310 nbp); in ffs_rawread_main() 311 nbp = NULL; in ffs_rawread_main() 346 bp = nbp; in ffs_rawread_main() 347 nbp = tbp; in ffs_rawread_main() 350 pbrelvp(nbp); in ffs_rawread_main() 352 nbp = NULL; in ffs_rawread_main() 366 nbp = NULL; in ffs_rawread_main() 385 vunmapbuf(nbp); in ffs_rawread_main() [all …]
|
H A D | ffs_balloc.c | 97 struct buf *bp, *nbp; in ffs_balloc_ufs1() local 359 bdwrite(nbp); in ffs_balloc_ufs1() 363 bdwrite(nbp); in ffs_balloc_ufs1() 457 *bpp = nbp; in ffs_balloc_ufs1() 475 brelse(nbp); in ffs_balloc_ufs1() 483 *bpp = nbp; in ffs_balloc_ufs1() 981 bdwrite(nbp); in ffs_balloc_ufs2() 985 bdwrite(nbp); in ffs_balloc_ufs2() 1079 *bpp = nbp; in ffs_balloc_ufs2() 1103 brelse(nbp); in ffs_balloc_ufs2() [all …]
|
H A D | ffs_snapshot.c | 338 0, &nbp); in ffs_snapshot() 341 bawrite(nbp); in ffs_snapshot() 349 bawrite(nbp); in ffs_snapshot() 359 bawrite(nbp); in ffs_snapshot() 395 bawrite(nbp); in ffs_snapshot() 461 bawrite(nbp); in ffs_snapshot() 821 bawrite(nbp); in ffs_snapshot() 826 brelse(nbp); in ffs_snapshot() 834 bawrite(nbp); in ffs_snapshot() 910 struct buf *nbp, in cgaccount() argument [all …]
|
H A D | ffs_softdep.c | 197 struct buf *nbp) in softdep_setup_allocindir_page() argument 6128 lbn = nbp->b_lblkno; in softdep_setup_allocindir_meta() 12812 struct buf *bp, *nbp; in softdep_fsync_mountdev() local 12958 struct buf *nbp; in softdep_sync_buf() local 12998 nbp = getdirtybuf(nbp, LOCK_PTR(ump), waitfor); in softdep_sync_buf() 12999 if (nbp == NULL) in softdep_sync_buf() 13029 nbp = getdirtybuf(nbp, LOCK_PTR(ump), waitfor); in softdep_sync_buf() 13030 if (nbp == NULL) in softdep_sync_buf() 14835 &nbp->nb_jnewblk, in newblk_print() 14836 &nbp->nb_bmsafemap, in newblk_print() [all …]
|
/freebsd/sys/fs/msdosfs/ |
H A D | msdosfs_conv.c | 1001 nbp->nb_len = 0; in mbnambuf_init() 1002 nbp->nb_last_id = -1; in mbnambuf_init() 1003 nbp->nb_buf[sizeof(nbp->nb_buf) - 1] = '\0'; in mbnambuf_init() 1021 if (nbp->nb_len != 0 && id != nbp->nb_last_id - 1) { in mbnambuf_write() 1024 id, nbp->nb_last_id); in mbnambuf_write() 1043 sizeof(nbp->nb_buf)) in mbnambuf_write() 1051 nbp->nb_len = newlen; in mbnambuf_write() 1052 nbp->nb_last_id = id; in mbnambuf_write() 1069 mbnambuf_init(nbp); in mbnambuf_flush() 1072 memcpy(dp->d_name, &nbp->nb_buf[0], nbp->nb_len); in mbnambuf_flush() [all …]
|
H A D | direntry.h | 147 char *mbnambuf_flush(struct mbnambuf *nbp, struct dirent *dp); 148 void mbnambuf_init(struct mbnambuf *nbp); 149 int mbnambuf_write(struct mbnambuf *nbp, char *name, int id); 156 int winChkName(struct mbnambuf *nbp, const u_char *un, size_t unlen, 158 int win2unixfn(struct mbnambuf *nbp, struct winentry *wep, int chksum,
|
/freebsd/usr.sbin/makefs/ffs/ |
H A D | ffs_balloc.c | 275 clrbuf(nbp); in ffs_balloc_ufs1() 307 clrbuf(nbp); in ffs_balloc_ufs1() 308 *bpp = nbp; in ffs_balloc_ufs1() 322 NULL, &nbp); in ffs_balloc_ufs1() 324 brelse(nbp); in ffs_balloc_ufs1() 327 *bpp = nbp; in ffs_balloc_ufs1() 532 clrbuf(nbp); in ffs_balloc_ufs2() 564 clrbuf(nbp); in ffs_balloc_ufs2() 565 *bpp = nbp; in ffs_balloc_ufs2() 581 brelse(nbp); in ffs_balloc_ufs2() [all …]
|
/freebsd/sys/fs/ext2fs/ |
H A D | ext2_balloc.c | 103 struct buf *bp, *nbp; in ext2_balloc() local 241 nbp->b_blkno = fsbtodb(fs, nb); in ext2_balloc() 242 vfs_bio_clrbuf(nbp); in ext2_balloc() 247 if ((error = bwrite(nbp)) != 0) { in ext2_balloc() 281 nbp->b_blkno = fsbtodb(fs, nb); in ext2_balloc() 283 vfs_bio_clrbuf(nbp); in ext2_balloc() 296 *bpp = nbp; in ext2_balloc() 306 MAXBSIZE, seqcount, 0, &nbp); in ext2_balloc() 311 brelse(nbp); in ext2_balloc() 316 nbp->b_blkno = fsbtodb(fs, nb); in ext2_balloc() [all …]
|
/freebsd/sbin/fsck_ffs/ |
H A D | dir.c | 781 struct bufarea *bp, *nbp; in expanddir() local 787 nbp = NULL; in expanddir() 817 if (nbp->b_errs) in expanddir() 825 memset(&nbp->b_un.b_buf[lastlbnsize], 0, in expanddir() 831 dirty(nbp); in expanddir() 832 brelse(nbp); in expanddir() 868 if (nbp->b_errs) in expanddir() 878 dirty(nbp); in expanddir() 879 brelse(nbp); in expanddir() 889 if (nbp != NULL) { in expanddir() [all …]
|
H A D | fsutil.c | 608 struct bufarea *bp, *nbp; in ckfini() local 674 TAILQ_FOREACH_REVERSE_SAFE(bp, &bufqueuehd, bufqueue, b_list, nbp) { in ckfini() 711 TAILQ_FOREACH_REVERSE_SAFE(bp, &bufqueuehd, bufqueue, b_list, nbp) { in ckfini()
|
/freebsd/sys/geom/journal/ |
H A D | g_journal.c | 849 *head = nbp; in g_journal_insert() 852 nbp->bio_next = cbp; in g_journal_insert() 912 cbp->bio_next = nbp; in g_journal_insert() 939 cbp->bio_next = nbp; in g_journal_insert() 971 *head = nbp; in g_journal_insert() 974 nbp->bio_next = cbp; in g_journal_insert() 998 *head = nbp; in g_journal_insert() 1000 pbp->bio_next = nbp; in g_journal_insert() 1001 nbp->bio_next = NULL; in g_journal_insert() 1588 nbp->bio_data = in g_journal_read() [all …]
|
/freebsd/usr.sbin/ppp/ |
H A D | mbuf.c | 168 struct mbuf *nbp; in m_free() local 174 nbp = bp->m_next; in m_free() 181 bp = nbp; in m_free() 387 struct mbuf *nbp; in m_pullup() local 390 nbp = m_get(m_length(bp), bp->m_type); in m_pullup() 392 for (cp = MBUF_CTOP(nbp); bp; bp = m_free(bp)) { in m_pullup() 396 bp = nbp; in m_pullup()
|
H A D | async.c | 192 struct mbuf *nbp, **last; in async_LayerPull() local 202 last = &nbp; in async_LayerPull() 215 return nbp; in async_LayerPull()
|
/freebsd/sys/amd64/amd64/ |
H A D | exec_machdep.c | 917 int nbp; /* number of breakpoints that triggered */ in user_dbreg_trap() local 940 nbp = 0; in user_dbreg_trap() 948 addr[nbp++] = (caddr_t)rdr0(); in user_dbreg_trap() 951 addr[nbp++] = (caddr_t)rdr1(); in user_dbreg_trap() 954 addr[nbp++] = (caddr_t)rdr2(); in user_dbreg_trap() 957 addr[nbp++] = (caddr_t)rdr3(); in user_dbreg_trap() 960 for (i = 0; i < nbp; i++) { in user_dbreg_trap() 965 return (nbp); in user_dbreg_trap()
|
/freebsd/sys/ufs/ufs/ |
H A D | ufs_bmap.c | 158 struct buf *nbp, in ufs_bmaparray() argument 200 if (nbp == NULL) { in ufs_bmaparray() 204 nbp->b_xflags |= BX_ALTDATA; in ufs_bmaparray()
|
/freebsd/sys/i386/i386/ |
H A D | exec_machdep.c | 1390 int nbp; /* number of breakpoints that triggered */ in user_dbreg_trap() local 1413 nbp = 0; in user_dbreg_trap() 1421 addr[nbp++] = (caddr_t)rdr0(); in user_dbreg_trap() 1424 addr[nbp++] = (caddr_t)rdr1(); in user_dbreg_trap() 1427 addr[nbp++] = (caddr_t)rdr2(); in user_dbreg_trap() 1430 addr[nbp++] = (caddr_t)rdr3(); in user_dbreg_trap() 1433 for (i = 0; i < nbp; i++) { in user_dbreg_trap() 1438 return (nbp); in user_dbreg_trap()
|
/freebsd/sys/fs/nfsclient/ |
H A D | nfs_clsubs.c | 352 struct buf *bp, *nbp; in ncl_clearcommit() local 360 TAILQ_FOREACH_SAFE(bp, &bo->bo_dirty.bv_hd, b_bobufs, nbp) { in ncl_clearcommit()
|
H A D | nfs_clvnops.c | 2905 struct buf *nbp; in ncl_flush() local 2946 TAILQ_FOREACH_SAFE(bp, &bo->bo_dirty.bv_hd, b_bobufs, nbp) { in ncl_flush() 2977 TAILQ_FOREACH_SAFE(bp, &bo->bo_dirty.bv_hd, b_bobufs, nbp) { in ncl_flush() 2981 nbp = TAILQ_NEXT(bp, b_bobufs); in ncl_flush() 2987 nbp = TAILQ_NEXT(bp, b_bobufs); in ncl_flush() 3015 nbp = TAILQ_NEXT(bp, b_bobufs); in ncl_flush() 3101 TAILQ_FOREACH_SAFE(bp, &bo->bo_dirty.bv_hd, b_bobufs, nbp) { in ncl_flush()
|
/freebsd/sys/kern/ |
H A D | vfs_bio.c | 1793 struct buf *bp, *nbp; in buf_recycle() local 1797 nbp = NULL; in buf_recycle() 1808 while ((bp = nbp) != NULL) { in buf_recycle() 2397 struct buf *nbp; in bufbdflush() local 2411 BUF_LOCK(nbp, in bufbdflush() 2414 if (bp == nbp) in bufbdflush() 2420 BUF_UNLOCK(nbp); in bufbdflush() 2424 vfs_bio_awrite(nbp); in bufbdflush() 2426 bremfree(nbp); in bufbdflush() 2427 bawrite(nbp); in bufbdflush() [all …]
|
H A D | vfs_subr.c | 2414 struct buf *bp, *nbp; in flushbuflist() local 2435 if (nbp != NULL) { in flushbuflist() 2436 lblkno = nbp->b_lblkno; in flushbuflist() 2469 if (nbp == NULL) in flushbuflist() 2472 if (nbp == NULL || (nbp->b_xflags & (BX_VNDIRTY | BX_VNCLEAN)) in flushbuflist() 2531 struct buf *bp, *nbp; in vtruncbuf() local 2617 struct buf *bp, *nbp; in v_inval_buf_range_locked() local 2642 if (nbp != NULL && in v_inval_buf_range_locked() 2644 nbp->b_vp != vp || in v_inval_buf_range_locked() 2665 if (nbp != NULL && in v_inval_buf_range_locked() [all …]
|
H A D | vfs_cluster.c | 555 struct buf *nbp, *tbp; in cluster_callback() local 573 tbp; tbp = nbp) { in cluster_callback() 574 nbp = TAILQ_NEXT(&tbp->b_cluster, cluster_entry); in cluster_callback()
|
/freebsd/contrib/sendmail/src/ |
H A D | util.c | 1576 char *nbp; local 1584 nbp = sm_malloc_x(nn); 1585 memmove(nbp, bp, p - bp); 1586 p = &nbp[p - bp]; 1589 bp = nbp; 2485 char *nbp = sm_pmalloc_x(l); local 2489 bp = nbp;
|
/freebsd/sys/cam/ |
H A D | cam_iosched.c | 1645 struct bio *nbp; in cam_iosched_queue_work() local 1650 nbp = bioq_takefirst(&isc->trim_queue); in cam_iosched_queue_work() 1651 len += nbp->bio_length; in cam_iosched_queue_work() 1652 nbp->bio_error = 0; in cam_iosched_queue_work() 1653 biodone(nbp); in cam_iosched_queue_work()
|
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_proc.c | 125 dt_bkpt_t *dbp, *nbp; in dt_proc_bpdestroy() local 129 for (dbp = dt_list_next(&dpr->dpr_bps); dbp != NULL; dbp = nbp) { in dt_proc_bpdestroy() 135 nbp = dt_list_next(dbp); in dt_proc_bpdestroy()
|