Home
last modified time | relevance | path

Searched refs:nbp (Results 1 – 25 of 40) sorted by relevance

12

/freebsd-9-stable/sys/netsmb/
Dsmb_trantcp.c75 static int nbssn_recv(struct nbpcb *nbp, struct mbuf **mpp, int *lenp,
97 nb_intr(struct nbpcb *nbp, struct proc *p) in nb_intr() argument
105 struct nbpcb *nbp = arg; in nb_upcall() local
107 if (arg == NULL || nbp->nbp_selectid == NULL) in nb_upcall()
109 wakeup(nbp->nbp_selectid); in nb_upcall()
145 nb_connect_in(struct nbpcb *nbp, struct sockaddr_in *to, struct thread *td) in nb_connect_in() argument
154 nbp->nbp_tso = so; in nb_connect_in()
156 soupcall_set(so, SO_RCV, nb_upcall, nbp); in nb_connect_in()
160 error = soreserve(so, nbp->nbp_sndbuf, nbp->nbp_rcvbuf); in nb_connect_in()
178 (error = nb_intr(nbp, td->td_proc)) != 0) { in nb_connect_in()
[all …]
/freebsd-9-stable/sys/ufs/ffs/
Dffs_rawread.c275 struct buf *bp, *nbp, *tbp; in ffs_rawread_main() local
298 nbp = NULL; in ffs_rawread_main()
317 nbp = trypbuf(&ffsrawbufcnt); in ffs_rawread_main()
319 nbp = NULL; in ffs_rawread_main()
320 if (nbp != NULL) { in ffs_rawread_main()
321 nsa = nbp->b_data; in ffs_rawread_main()
322 pbgetvp(vp, nbp); in ffs_rawread_main()
332 nbp, in ffs_rawread_main()
335 pbrelvp(nbp); in ffs_rawread_main()
336 relpbuf(nbp, &ffsrawbufcnt); in ffs_rawread_main()
[all …]
Dffs_balloc.c98 struct buf *bp, *nbp; in ffs_balloc_ufs1() local
330 nbp = getblk(vp, indirs[i].in_lbn, fs->fs_bsize, 0, 0, 0); in ffs_balloc_ufs1()
331 nbp->b_blkno = fsbtodb(fs, nb); in ffs_balloc_ufs1()
332 vfs_bio_clrbuf(nbp); in ffs_balloc_ufs1()
334 softdep_setup_allocindir_meta(nbp, ip, bp, in ffs_balloc_ufs1()
336 bdwrite(nbp); in ffs_balloc_ufs1()
342 if ((error = bwrite(nbp)) != 0) { in ffs_balloc_ufs1()
406 nbp = getblk(vp, lbn, fs->fs_bsize, 0, 0, gbflags); in ffs_balloc_ufs1()
407 nbp->b_blkno = fsbtodb(fs, nb); in ffs_balloc_ufs1()
409 vfs_bio_clrbuf(nbp); in ffs_balloc_ufs1()
[all …]
Dffs_snapshot.c216 struct buf *bp, *nbp, *ibp; local
342 0, &nbp);
345 bawrite(nbp);
350 fs->fs_bsize, KERNCRED, 0, &nbp);
353 bawrite(nbp);
360 fs->fs_bsize, KERNCRED, 0, &nbp);
363 bawrite(nbp);
382 fs->fs_bsize, KERNCRED, 0, &nbp);
385 error = cgaccount(cg, vp, nbp, 1);
386 bawrite(nbp);
[all …]
/freebsd-9-stable/sys/fs/msdosfs/
Dmsdosfs_conv.c595 winChkName(nbp, un, unlen, chksum, pmp) in winChkName() argument
596 struct mbnambuf *nbp; in winChkName()
610 if (!mbnambuf_flush(nbp, &dirbuf) || dirbuf.d_namlen == 0)
646 win2unixfn(nbp, wep, chksum, pmp) in win2unixfn() argument
647 struct mbnambuf *nbp; in win2unixfn()
681 mbnambuf_write(nbp, name, (wep->weCnt & WIN_CNT) - 1);
699 mbnambuf_write(nbp, name, (wep->weCnt & WIN_CNT) - 1);
717 mbnambuf_write(nbp, name, (wep->weCnt & WIN_CNT) - 1);
731 mbnambuf_write(nbp, name, (wep->weCnt & WIN_CNT) - 1);
1016 mbnambuf_init(struct mbnambuf *nbp) in mbnambuf_init() argument
[all …]
Ddirentry.h146 char *mbnambuf_flush(struct mbnambuf *nbp, struct dirent *dp);
147 void mbnambuf_init(struct mbnambuf *nbp);
148 void mbnambuf_write(struct mbnambuf *nbp, char *name, int id);
155 int winChkName(struct mbnambuf *nbp, const u_char *un, size_t unlen,
157 int win2unixfn(struct mbnambuf *nbp, struct winentry *wep, int chksum,
/freebsd-9-stable/usr.sbin/makefs/ffs/
Dffs_balloc.c83 struct buf *bp, *nbp; in ffs_balloc_ufs1() local
271 nbp = getblk(ip->i_fd, ip->i_fs, indirs[i].in_lbn, in ffs_balloc_ufs1()
273 nbp->b_blkno = fsbtodb(fs, nb); in ffs_balloc_ufs1()
274 clrbuf(nbp); in ffs_balloc_ufs1()
280 if ((error = bwrite(nbp)) != 0) { in ffs_balloc_ufs1()
303 nbp = getblk(ip->i_fd, ip->i_fs, lbn, fs->fs_bsize); in ffs_balloc_ufs1()
304 nbp->b_blkno = fsbtodb(fs, nb); in ffs_balloc_ufs1()
305 clrbuf(nbp); in ffs_balloc_ufs1()
306 *bpp = nbp; in ffs_balloc_ufs1()
319 error = bread(ip->i_fd, ip->i_fs, lbn, (int)fs->fs_bsize, &nbp); in ffs_balloc_ufs1()
[all …]
/freebsd-9-stable/sys/fs/ext2fs/
Dext2_balloc.c65 struct buf *bp, *nbp; in ext2_balloc() local
217 nbp = getblk(vp, indirs[i].in_lbn, fs->e2fs_bsize, 0, 0, 0); in ext2_balloc()
218 nbp->b_blkno = fsbtodb(fs, nb); in ext2_balloc()
219 vfs_bio_clrbuf(nbp); in ext2_balloc()
224 if ((error = bwrite(nbp)) != 0) { in ext2_balloc()
256 nbp = getblk(vp, lbn, fs->e2fs_bsize, 0, 0, 0); in ext2_balloc()
257 nbp->b_blkno = fsbtodb(fs, nb); in ext2_balloc()
259 vfs_bio_clrbuf(nbp); in ext2_balloc()
272 *bpp = nbp; in ext2_balloc()
281 MAXBSIZE, seqcount, &nbp); in ext2_balloc()
[all …]
/freebsd-9-stable/sys/fs/hpfs/
Dhpfs_alsubr.c221 struct buf *nbp; in hpfs_splitalsec() local
226 error = hpfs_allocalsec(hpmp, asp->as_parent, &nbp); in hpfs_splitalsec()
230 nasp = (alsec_t *)nbp->b_data; in hpfs_splitalsec()
251 *nbpp = nbp; in hpfs_splitalsec()
317 struct buf *nbp; in hpfs_alblk2alsec() local
320 error = hpfs_allocalsec(hpmp, 0, &nbp); in hpfs_alblk2alsec()
324 nasp = (alsec_t *)nbp->b_data; in hpfs_alblk2alsec()
334 *nbpp = nbp; in hpfs_alblk2alsec()
487 struct buf *nbp; in hpfs_addextent() local
497 error = hpfs_alblk2alsec (hpmp, rabp, &nrasp, &nbp); in hpfs_addextent()
[all …]
/freebsd-9-stable/sys/geom/journal/
Dg_journal.c802 struct bio *nbp, *cbp, *pbp; in g_journal_insert() local
838 nbp = g_journal_new_bio(nstart, nend, joffset, data, in g_journal_insert()
841 *head = nbp; in g_journal_insert()
843 pbp->bio_next = nbp; in g_journal_insert()
844 nbp->bio_next = cbp; in g_journal_insert()
846 GJ_DEBUG(3, "INSERT(%p): 2 (nbp=%p pbp=%p)", *head, nbp, in g_journal_insert()
901 nbp = g_journal_new_bio(nstart, cend, joffset, data, in g_journal_insert()
903 nbp->bio_next = cbp->bio_next; in g_journal_insert()
904 cbp->bio_next = nbp; in g_journal_insert()
928 nbp = g_journal_new_bio(nstart, nend, joffset, data, in g_journal_insert()
[all …]
/freebsd-9-stable/usr.sbin/ppp/
Dmbuf.c168 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()
Dasync.c193 struct mbuf *nbp, **last; in async_LayerPull() local
203 last = &nbp; in async_LayerPull()
216 return nbp; in async_LayerPull()
/freebsd-9-stable/contrib/amd/libamu/
Dmount_fs.c884 struct netbuf *nbp; in print_nfs_args() local
904 nbp = nap->addr; in print_nfs_args()
906 nbp->maxlen, nbp->len, in print_nfs_args()
907 get_hex_string(nbp->len, nbp->buf)); in print_nfs_args()
908 nbp = nap->syncaddr; in print_nfs_args()
909 plog(XLOG_DEBUG, "NA->syncaddr {netbuf} %p", nbp); in print_nfs_args()
/freebsd-9-stable/sys/ufs/ufs/
Dufs_bmap.c105 ufs_bmaparray(vp, bn, bnp, nbp, runp, runb) in ufs_bmaparray() argument
109 struct buf *nbp;
154 if (nbp == NULL)
156 nbp->b_xflags |= BX_ALTDATA;
/freebsd-9-stable/sys/kern/
Dvfs_bio.c1147 struct buf *nbp; in bufbdflush() local
1157 TAILQ_FOREACH(nbp, &bo->bo_dirty.bv_hd, b_bobufs) { in bufbdflush()
1158 if ((nbp->b_vflags & BV_BKGRDINPROG) || in bufbdflush()
1159 BUF_LOCK(nbp, in bufbdflush()
1162 if (bp == nbp) in bufbdflush()
1166 if (buf_countdeps(nbp, 0)) { in bufbdflush()
1168 BUF_UNLOCK(nbp); in bufbdflush()
1171 if (nbp->b_flags & B_CLUSTEROK) { in bufbdflush()
1172 vfs_bio_awrite(nbp); in bufbdflush()
1174 bremfree(nbp); in bufbdflush()
[all …]
Dvfs_subr.c1366 struct buf *bp, *nbp; in flushbuflist() local
1374 TAILQ_FOREACH_SAFE(bp, &bufv->bv_hd, b_bobufs, nbp) { in flushbuflist()
1381 if (nbp != NULL) { in flushbuflist()
1382 lblkno = nbp->b_lblkno; in flushbuflist()
1383 xflags = nbp->b_xflags & in flushbuflist()
1425 if (nbp != NULL && in flushbuflist()
1426 (nbp->b_bufobj != bo || in flushbuflist()
1427 nbp->b_lblkno != lblkno || in flushbuflist()
1428 (nbp->b_xflags & in flushbuflist()
1444 struct buf *bp, *nbp; in vtruncbuf() local
[all …]
Dvfs_cluster.c536 struct buf *nbp, *tbp; local
554 tbp; tbp = nbp) {
555 nbp = TAILQ_NEXT(&tbp->b_cluster, cluster_entry);
/freebsd-9-stable/sys/fs/nfsclient/
Dnfs_clsubs.c367 struct buf *bp, *nbp; in ncl_clearcommit() local
375 TAILQ_FOREACH_SAFE(bp, &bo->bo_dirty.bv_hd, b_bobufs, nbp) { in ncl_clearcommit()
/freebsd-9-stable/contrib/sendmail/src/
Dutil.c1430 char *nbp; local
1438 nbp = sm_malloc_x(nn);
1439 memmove(nbp, bp, p - bp);
1440 p = &nbp[p - bp];
1443 bp = nbp;
2337 char *nbp = sm_pmalloc_x(l); local
2341 bp = nbp;
/freebsd-9-stable/sys/gnu/fs/xfs/
Dxfs_ialloc_btree.c1198 xfs_buf_t *nbp; /* new (root) buffer */ in xfs_inobt_newroot() local
1231 nbp = xfs_btree_get_bufs(args.mp, args.tp, args.agno, args.agbno, 0); in xfs_inobt_newroot()
1232 new = XFS_BUF_TO_INOBT_BLOCK(nbp); in xfs_inobt_newroot()
1295 xfs_inobt_log_block(args.tp, nbp, XFS_BB_ALL_BITS); in xfs_inobt_newroot()
1310 xfs_inobt_log_keys(cur, nbp, 1, 2); in xfs_inobt_newroot()
1317 xfs_inobt_log_ptrs(cur, nbp, 1, 2); in xfs_inobt_newroot()
1321 xfs_btree_setbuf(cur, cur->bc_nlevels, nbp); in xfs_inobt_newroot()
Dxfs_alloc_btree.c1306 xfs_buf_t *nbp; /* new (root) buffer */ in xfs_alloc_newroot() local
1330 nbp = xfs_btree_get_bufs(mp, cur->bc_tp, cur->bc_private.a.agno, nbno, in xfs_alloc_newroot()
1332 new = XFS_BUF_TO_ALLOC_BLOCK(nbp); in xfs_alloc_newroot()
1401 xfs_alloc_log_block(cur->bc_tp, nbp, XFS_BB_ALL_BITS); in xfs_alloc_newroot()
1424 xfs_alloc_log_keys(cur, nbp, 1, 2); in xfs_alloc_newroot()
1435 xfs_alloc_log_ptrs(cur, nbp, 1, 2); in xfs_alloc_newroot()
1439 xfs_btree_setbuf(cur, cur->bc_nlevels, nbp); in xfs_alloc_newroot()
/freebsd-9-stable/sys/amd64/amd64/
Dmachdep.c2504 int nbp; /* number of breakpoints that triggered */ in user_dbreg_trap() local
2518 nbp = 0; in user_dbreg_trap()
2536 addr[nbp++] = (caddr_t)rdr0(); in user_dbreg_trap()
2539 addr[nbp++] = (caddr_t)rdr1(); in user_dbreg_trap()
2542 addr[nbp++] = (caddr_t)rdr2(); in user_dbreg_trap()
2545 addr[nbp++] = (caddr_t)rdr3(); in user_dbreg_trap()
2548 for (i = 0; i < nbp; i++) { in user_dbreg_trap()
2553 return nbp; in user_dbreg_trap()
/freebsd-9-stable/sys/pc98/pc98/
Dmachdep.c2915 int nbp; /* number of breakpoints that triggered */ in user_dbreg_trap() local
2929 nbp = 0; in user_dbreg_trap()
2947 addr[nbp++] = (caddr_t)rdr0(); in user_dbreg_trap()
2950 addr[nbp++] = (caddr_t)rdr1(); in user_dbreg_trap()
2953 addr[nbp++] = (caddr_t)rdr2(); in user_dbreg_trap()
2956 addr[nbp++] = (caddr_t)rdr3(); in user_dbreg_trap()
2959 for (i = 0; i < nbp; i++) { in user_dbreg_trap()
2964 return nbp; in user_dbreg_trap()
/freebsd-9-stable/cddl/contrib/opensolaris/lib/libdtrace/common/
Ddt_proc.c127 dt_bkpt_t *dbp, *nbp; in dt_proc_bpdestroy() local
131 for (dbp = dt_list_next(&dpr->dpr_bps); dbp != NULL; dbp = nbp) { in dt_proc_bpdestroy()
137 nbp = dt_list_next(dbp); in dt_proc_bpdestroy()
/freebsd-9-stable/sys/i386/i386/
Dmachdep.c3629 int nbp; /* number of breakpoints that triggered */ in user_dbreg_trap() local
3643 nbp = 0; in user_dbreg_trap()
3661 addr[nbp++] = (caddr_t)rdr0(); in user_dbreg_trap()
3664 addr[nbp++] = (caddr_t)rdr1(); in user_dbreg_trap()
3667 addr[nbp++] = (caddr_t)rdr2(); in user_dbreg_trap()
3670 addr[nbp++] = (caddr_t)rdr3(); in user_dbreg_trap()
3673 for (i = 0; i < nbp; i++) { in user_dbreg_trap()
3678 return nbp; in user_dbreg_trap()

12