| /freebsd/sys/netsmb/ |
| H A D | smb_trantcp.c | 74 static int nbssn_recv(struct nbpcb *nbp, struct mbuf **mpp, int *lenp, 96 nb_intr(struct nbpcb *nbp, struct proc *p) in nb_intr() argument 104 struct nbpcb *nbp = arg; in nb_upcall() local 106 if (arg == NULL || nbp->nbp_selectid == NULL) in nb_upcall() 108 wakeup(nbp->nbp_selectid); in nb_upcall() 144 nb_connect_in(struct nbpcb *nbp, struct sockaddr_in *to, struct thread *td) in nb_connect_in() argument 153 nbp->nbp_tso = so; in nb_connect_in() 155 soupcall_set(so, SO_RCV, nb_upcall, nbp); in nb_connect_in() 159 error = soreserve(so, nbp->nbp_sndbuf, nbp->nbp_rcvbuf); in nb_connect_in() 171 (error = nb_intr(nbp, td->td_proc)) != 0) { in nb_connect_in() [all …]
|
| /freebsd/sys/ufs/ffs/ |
| H A D | ffs_rawread.c | 256 struct buf *bp, *nbp, *tbp; in ffs_rawread_main() local 272 nbp = NULL; in ffs_rawread_main() 286 nbp = uma_zalloc(ffsraw_pbuf_zone, in ffs_rawread_main() 289 nbp = NULL; in ffs_rawread_main() 290 if (nbp != NULL) { in ffs_rawread_main() 291 pbgetvp(vp, nbp); in ffs_rawread_main() 301 nbp); in ffs_rawread_main() 303 pbrelvp(nbp); in ffs_rawread_main() 305 nbp); in ffs_rawread_main() 306 nbp = NULL; in ffs_rawread_main() [all …]
|
| H A D | ffs_balloc.c | 97 struct buf *bp, *nbp; in ffs_balloc_ufs1() local 353 nbp = getblk(vp, indirs[i].in_lbn, fs->fs_bsize, 0, 0, 0); in ffs_balloc_ufs1() 354 nbp->b_blkno = fsbtodb(fs, nb); in ffs_balloc_ufs1() 355 vfs_bio_clrbuf(nbp); in ffs_balloc_ufs1() 357 softdep_setup_allocindir_meta(nbp, ip, bp, in ffs_balloc_ufs1() 359 bdwrite(nbp); in ffs_balloc_ufs1() 361 if (nbp->b_bufsize == fs->fs_bsize) in ffs_balloc_ufs1() 362 nbp->b_flags |= B_CLUSTEROK; in ffs_balloc_ufs1() 363 bdwrite(nbp); in ffs_balloc_ufs1() 365 if ((error = bwrite(nbp)) != 0) { in ffs_balloc_ufs1() [all …]
|
| H A D | ffs_snapshot.c | 209 struct buf *bp, *nbp, *ibp; in ffs_snapshot() local 347 0, &nbp); in ffs_snapshot() 350 bawrite(nbp); in ffs_snapshot() 355 fs->fs_bsize, KERNCRED, 0, &nbp); in ffs_snapshot() 358 bawrite(nbp); in ffs_snapshot() 365 fs->fs_bsize, KERNCRED, 0, &nbp); in ffs_snapshot() 368 bawrite(nbp); in ffs_snapshot() 400 fs->fs_bsize, KERNCRED, 0, &nbp); in ffs_snapshot() 403 error = cgaccount(cg, vp, nbp, 1); in ffs_snapshot() 404 bawrite(nbp); in ffs_snapshot() [all …]
|
| H A D | ffs_softdep.c | 197 struct buf *nbp) in softdep_setup_allocindir_page() argument 204 softdep_setup_allocindir_meta(struct buf *nbp, in softdep_setup_allocindir_meta() argument 6082 struct buf *nbp) /* buffer holding allocated page */ in softdep_setup_allocindir_page() argument 6095 KASSERT(lbn == nbp->b_lblkno, in softdep_setup_allocindir_page() 6110 pagedep_lookup(mp, nbp, ip->i_number, lbn, DEPALLOC, &pagedep); in softdep_setup_allocindir_page() 6111 WORKLIST_INSERT(&nbp->b_dep, &aip->ai_block.nb_list); in softdep_setup_allocindir_page() 6124 struct buf *nbp, /* newly allocated indirect block */ in softdep_setup_allocindir_meta() argument 6141 lbn = nbp->b_lblkno; in softdep_setup_allocindir_meta() 6145 WORKLIST_INSERT(&nbp->b_dep, &aip->ai_block.nb_list); in softdep_setup_allocindir_meta() 12823 struct buf *bp, *nbp; in softdep_fsync_mountdev() local [all …]
|
| H A D | ffs_vnops.c | 267 struct buf *bp, *nbp; in ffs_syncvnode() local 304 TAILQ_FOREACH_SAFE(bp, &bo->bo_dirty.bv_hd, b_bobufs, nbp) { in ffs_syncvnode() 399 nbp = TAILQ_FIRST(&bo->bo_dirty.bv_hd); in ffs_syncvnode()
|
| /freebsd/sys/fs/msdosfs/ |
| H A D | msdosfs_conv.c | 582 winChkName(struct mbnambuf *nbp, const u_char *un, size_t unlen, int chksum, in winChkName() argument 593 if (!mbnambuf_flush(nbp, &dirbuf) || dirbuf.d_namlen == 0) in winChkName() 629 win2unixfn(struct mbnambuf *nbp, struct winentry *wep, int chksum, in win2unixfn() argument 661 if (mbnambuf_write(nbp, name, in win2unixfn() 681 if (mbnambuf_write(nbp, name, in win2unixfn() 701 if (mbnambuf_write(nbp, name, in win2unixfn() 717 if (mbnambuf_write(nbp, name, (wep->weCnt & WIN_CNT) - 1) != 0) in win2unixfn() 1005 mbnambuf_init(struct mbnambuf *nbp) in mbnambuf_init() argument 1008 nbp->nb_len = 0; in mbnambuf_init() 1009 nbp->nb_last_id = -1; in mbnambuf_init() [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 | 81 struct m_buf *bp, *nbp; in ffs_balloc_ufs1() local 272 nbp = getblk((void *)ip->i_devvp, indirs[i].in_lbn, in ffs_balloc_ufs1() 274 nbp->b_blkno = fsbtodb(fs, nb); in ffs_balloc_ufs1() 275 clrbuf(nbp); in ffs_balloc_ufs1() 281 if ((error = bwrite(nbp)) != 0) { in ffs_balloc_ufs1() 304 nbp = getblk((void *)ip->i_devvp, lbn, fs->fs_bsize, in ffs_balloc_ufs1() 306 nbp->b_blkno = fsbtodb(fs, nb); 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() [all …]
|
| /freebsd/sys/fs/ext2fs/ |
| H A D | ext2_balloc.c | 103 struct buf *bp, *nbp; in ext2_balloc() local 240 nbp = getblk(vp, indirs[i].in_lbn, fs->e2fs_bsize, 0, 0, 0); in ext2_balloc() 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() 280 nbp = getblk(vp, lbn, fs->e2fs_bsize, 0, 0, 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() [all …]
|
| /freebsd/sbin/fsck_ffs/ |
| H A D | dir.c | 781 struct bufarea *bp, *nbp; in expanddir() local 787 nbp = NULL; in expanddir() 816 nbp = getdatablk(newblk, sblock.fs_bsize, BT_DIRDATA); in expanddir() 817 if (nbp->b_errs) in expanddir() 824 memmove(nbp->b_un.b_buf, bp->b_un.b_buf, lastlbnsize); in expanddir() 825 memset(&nbp->b_un.b_buf[lastlbnsize], 0, in expanddir() 827 for (cp = &nbp->b_un.b_buf[lastlbnsize]; in expanddir() 828 cp < &nbp->b_un.b_buf[sblock.fs_bsize]; in expanddir() 831 dirty(nbp); in expanddir() 832 brelse(nbp); 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 | 810 struct bio *nbp, *cbp, *pbp; in g_journal_insert() local 846 nbp = g_journal_new_bio(nstart, nend, joffset, data, in g_journal_insert() 849 *head = nbp; in g_journal_insert() 851 pbp->bio_next = nbp; in g_journal_insert() 852 nbp->bio_next = cbp; in g_journal_insert() 854 GJ_DEBUG(3, "INSERT(%p): 2 (nbp=%p pbp=%p)", *head, nbp, in g_journal_insert() 909 nbp = g_journal_new_bio(nstart, cend, joffset, data, in g_journal_insert() 911 nbp->bio_next = cbp->bio_next; in g_journal_insert() 912 cbp->bio_next = nbp; in g_journal_insert() 936 nbp = g_journal_new_bio(nstart, nend, joffset, data, in g_journal_insert() [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 | 969 int nbp; /* number of breakpoints that triggered */ in user_dbreg_trap() local 992 nbp = 0; in user_dbreg_trap() 1000 addr[nbp++] = (caddr_t)rdr0(); in user_dbreg_trap() 1003 addr[nbp++] = (caddr_t)rdr1(); in user_dbreg_trap() 1006 addr[nbp++] = (caddr_t)rdr2(); in user_dbreg_trap() 1009 addr[nbp++] = (caddr_t)rdr3(); in user_dbreg_trap() 1012 for (i = 0; i < nbp; i++) { in user_dbreg_trap() 1017 return (nbp); in user_dbreg_trap()
|
| /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 | 355 struct buf *bp, *nbp; in ncl_clearcommit() local 363 TAILQ_FOREACH_SAFE(bp, &bo->bo_dirty.bv_hd, b_bobufs, nbp) { in ncl_clearcommit()
|
| /freebsd/sys/kern/ |
| H A D | vfs_bio.c | 1806 struct buf *bp, *nbp; in buf_recycle() local 1810 nbp = NULL; in buf_recycle() 1815 nbp = TAILQ_FIRST(&bq->bq_queue); in buf_recycle() 1821 while ((bp = nbp) != NULL) { in buf_recycle() 1826 nbp = TAILQ_NEXT(bp, b_freelist); in buf_recycle() 1878 nbp = TAILQ_FIRST(&bq->bq_queue); in buf_recycle() 2408 struct buf *nbp; in bufbdflush() local 2420 TAILQ_FOREACH(nbp, &bo->bo_dirty.bv_hd, b_bobufs) { in bufbdflush() 2421 if ((nbp->b_vflags & BV_BKGRDINPROG) || in bufbdflush() 2422 BUF_LOCK(nbp, in bufbdflush() [all …]
|
| H A D | vfs_cluster.c | 556 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()
|
| H A D | vfs_subr.c | 2459 struct buf *bp, *nbp; in flushbuflist() local 2467 TAILQ_FOREACH_SAFE(bp, &bufv->bv_hd, b_bobufs, nbp) { in flushbuflist() 2480 if (nbp != NULL) { in flushbuflist() 2481 lblkno = nbp->b_lblkno; in flushbuflist() 2482 xflags = nbp->b_xflags & (BX_VNDIRTY | BX_VNCLEAN); in flushbuflist() 2514 if (nbp == NULL) in flushbuflist() 2516 nbp = gbincore(bo, lblkno); in flushbuflist() 2517 if (nbp == NULL || (nbp->b_xflags & (BX_VNDIRTY | BX_VNCLEAN)) in flushbuflist() 2575 struct buf *bp, *nbp; in vtruncbuf() local 2601 TAILQ_FOREACH_SAFE(bp, &bo->bo_dirty.bv_hd, b_bobufs, nbp) { in vtruncbuf() [all …]
|
| /freebsd/sys/ufs/ufs/ |
| H A D | ufs_bmap.c | 189 struct buf *nbp, in ufs_bmaparray() argument 237 if (nbp == NULL) { in ufs_bmaparray() 241 nbp->b_xflags |= BX_ALTDATA; in ufs_bmaparray()
|
| /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/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()
|
| /freebsd/sys/cam/ |
| H A D | cam_iosched.c | 1671 struct bio *nbp; in cam_iosched_queue_work() local 1676 nbp = bioq_takefirst(&isc->trim_queue); in cam_iosched_queue_work() 1677 len += nbp->bio_length; in cam_iosched_queue_work() 1678 nbp->bio_error = 0; in cam_iosched_queue_work() 1679 biodone(nbp); in cam_iosched_queue_work()
|