| /openbsd/src/usr.sbin/makefs/ffs/ |
| D | ffs_balloc.c | 74 struct mkfsbuf *bp, *nbp; in ffs_balloc_ufs1() local 261 nbp = getblk(ip->i_devvp, indirs[i].in_lbn, fs->fs_bsize, 0, 0); in ffs_balloc_ufs1() 262 nbp->b_blkno = fsbtodb(fs, nb); in ffs_balloc_ufs1() 263 clrbuf(nbp); in ffs_balloc_ufs1() 269 if ((error = bwrite(nbp)) != 0) { in ffs_balloc_ufs1() 292 nbp = getblk(ip->i_devvp, lbn, fs->fs_bsize, 0, 0); in ffs_balloc_ufs1() 293 nbp->b_blkno = fsbtodb(fs, nb); in ffs_balloc_ufs1() 294 clrbuf(nbp); in ffs_balloc_ufs1() 295 *bpp = nbp; in ffs_balloc_ufs1() 308 error = bread(ip->i_devvp, lbn, (int)fs->fs_bsize, 0, &nbp); in ffs_balloc_ufs1() [all …]
|
| /openbsd/src/sys/ufs/ext2fs/ |
| D | ext2fs_balloc.c | 59 struct buf *bp, *nbp; in ext2fs_buf_alloc() local 173 nbp = getblk(vp, indirs[i].in_lbn, fs->e2fs_bsize, 0, INFSLP); in ext2fs_buf_alloc() 174 nbp->b_blkno = fsbtodb(fs, nb); in ext2fs_buf_alloc() 175 clrbuf(nbp); in ext2fs_buf_alloc() 180 if ((error = bwrite(nbp)) != 0) { in ext2fs_buf_alloc() 221 nbp = getblk(vp, lbn, fs->e2fs_bsize, 0, INFSLP); in ext2fs_buf_alloc() 222 nbp->b_blkno = fsbtodb(fs, nb); in ext2fs_buf_alloc() 224 clrbuf(nbp); in ext2fs_buf_alloc() 225 *bpp = nbp; in ext2fs_buf_alloc() 230 error = bread(vp, lbn, (int)fs->e2fs_bsize, &nbp); in ext2fs_buf_alloc() [all …]
|
| /openbsd/src/sys/ufs/ffs/ |
| D | ffs_balloc.c | 75 struct buf *bp, *nbp; in ffs1_balloc() local 278 nbp = getblk(vp, indirs[i].in_lbn, fs->fs_bsize, 0, INFSLP); in ffs1_balloc() 279 nbp->b_blkno = fsbtodb(fs, nb); in ffs1_balloc() 280 clrbuf(nbp); in ffs1_balloc() 286 if ((error = bwrite(nbp)) != 0) { in ffs1_balloc() 317 nbp = getblk(vp, lbn, fs->fs_bsize, 0, INFSLP); in ffs1_balloc() 318 nbp->b_blkno = fsbtodb(fs, nb); in ffs1_balloc() 320 clrbuf(nbp); in ffs1_balloc() 321 *bpp = nbp; in ffs1_balloc() 338 error = bread(vp, lbn, (int)fs->fs_bsize, &nbp); in ffs1_balloc() [all …]
|
| D | ffs_vnops.c | 420 struct buf *bp, *nbp; in ffs_fsync() local 435 LIST_FOREACH_SAFE(bp, &vp->v_dirtyblkhd, b_vnbufs, nbp) { in ffs_fsync() 469 nbp = LIST_FIRST(&vp->v_dirtyblkhd); in ffs_fsync()
|
| /openbsd/src/games/hunt/huntd/ |
| D | shots.c | 842 BULLET *nbp; in chkslime() local 870 nbp = malloc(sizeof (BULLET)); in chkslime() 871 if (nbp == NULL) { in chkslime() 875 *nbp = *bp; in chkslime() 878 move_slime(nbp, nbp->b_type == SLIME ? conf_slimespeed : in chkslime() 892 BULLET *nbp; in move_slime() local 1012 nbp = create_shot(bp->b_type, bp->b_y, bp->b_x - 1, LEFTS, in move_slime() 1014 move_slime(nbp, speed - 1, next); in move_slime() 1018 nbp = create_shot(bp->b_type, bp->b_y, bp->b_x + 1, RIGHT, in move_slime() 1021 move_slime(nbp, speed - 1, next); in move_slime() [all …]
|
| /openbsd/src/sys/uvm/ |
| D | uvm_swap.c | 1216 struct vndbuf *nbp; in sw_reg_strategy() local 1269 nbp = pool_get(&vndbuf_pool, PR_WAITOK); in sw_reg_strategy() 1270 nbp->vb_buf.b_flags = bp->b_flags | B_CALL; in sw_reg_strategy() 1271 nbp->vb_buf.b_bcount = sz; in sw_reg_strategy() 1272 nbp->vb_buf.b_bufsize = sz; in sw_reg_strategy() 1273 nbp->vb_buf.b_error = 0; in sw_reg_strategy() 1274 nbp->vb_buf.b_data = addr; in sw_reg_strategy() 1275 nbp->vb_buf.b_bq = NULL; in sw_reg_strategy() 1276 nbp->vb_buf.b_blkno = nbn + btodb(off); in sw_reg_strategy() 1277 nbp->vb_buf.b_proc = bp->b_proc; in sw_reg_strategy() [all …]
|
| D | uvm_pdaemon.c | 343 struct buf *bp, *nbp; in uvm_aiodone_daemon() local 368 nbp = TAILQ_NEXT(bp, b_freelist); in uvm_aiodone_daemon() 372 bp = nbp; in uvm_aiodone_daemon()
|
| /openbsd/src/sys/dev/pci/drm/amd/display/dc/dce/ |
| D | dce_mem_input.c | 314 struct dce_watermarks nbp, in dce_mi_program_display_marks() argument 331 program_nbp_watermark(dce_mi, 2, nbp.a_mark); /* set a */ in dce_mi_program_display_marks() 332 program_nbp_watermark(dce_mi, 1, nbp.d_mark); /* set d */ in dce_mi_program_display_marks() 341 struct dce_watermarks nbp, in dce60_mi_program_display_marks() argument 358 dce60_program_nbp_watermark(dce_mi, 2, nbp.a_mark); /* set a */ in dce60_mi_program_display_marks() 359 dce60_program_nbp_watermark(dce_mi, 1, nbp.d_mark); /* set d */ in dce60_mi_program_display_marks() 367 struct dce_watermarks nbp, in dce112_mi_program_display_marks() argument 388 program_nbp_watermark(dce_mi, 0, nbp.a_mark); /* set a */ in dce112_mi_program_display_marks() 389 program_nbp_watermark(dce_mi, 1, nbp.b_mark); /* set b */ in dce112_mi_program_display_marks() 390 program_nbp_watermark(dce_mi, 2, nbp.c_mark); /* set c */ in dce112_mi_program_display_marks() [all …]
|
| /openbsd/src/sys/nfs/ |
| D | nfs_syscalls.c | 598 struct buf *bp, *nbp; in nfssvc_iod() local 655 LIST_FOREACH(nbp, &vp->v_dirtyblkhd, b_vnbufs) { in nfssvc_iod() 656 if ((nbp->b_flags & in nfssvc_iod() 659 nbp->b_flags |= B_ASYNC; in nfssvc_iod() 660 bremfree(nbp); in nfssvc_iod() 661 buf_acquire(nbp); in nfssvc_iod() 668 if (nbp) { in nfssvc_iod() 669 nbp->b_flags &= ~(B_READ|B_DONE|B_ERROR); in nfssvc_iod() 670 buf_undirty(nbp); in nfssvc_iod() 671 nbp->b_vp->v_numoutput++; in nfssvc_iod() [all …]
|
| D | nfs_vnops.c | 3048 struct buf *nbp; in nfs_flush() local 3074 LIST_FOREACH_SAFE(bp, &vp->v_dirtyblkhd, b_vnbufs, nbp) { in nfs_flush() 3143 LIST_FOREACH_SAFE(bp, &vp->v_dirtyblkhd, b_vnbufs, nbp) { in nfs_flush()
|
| /openbsd/src/usr.bin/cvs/ |
| D | entries.c | 423 cvs_parse_tagfile(char *dir, char **tagp, char **datep, int *nbp) in cvs_parse_tagfile() argument 439 if (nbp != NULL) in cvs_parse_tagfile() 440 *nbp = 0; in cvs_parse_tagfile() 488 if (nbp != NULL) in cvs_parse_tagfile() 489 *nbp = 1; in cvs_parse_tagfile()
|
| /openbsd/src/sys/dev/pci/drm/amd/display/dc/inc/hw/ |
| D | mem_input.h | 121 struct dce_watermarks nbp, 129 struct dce_watermarks nbp,
|
| /openbsd/src/sys/net/ |
| D | if_ppp.c | 361 struct bpf_program *bp, *nbp; in pppioctl() local 529 nbp = (struct bpf_program *) data; in pppioctl() 530 if ((unsigned) nbp->bf_len > BPF_MAXINSNS) in pppioctl() 532 newcodelen = nbp->bf_len * sizeof(struct bpf_insn); in pppioctl() 533 if (nbp->bf_len != 0) { in pppioctl() 534 newcode = mallocarray(nbp->bf_len, in pppioctl() 536 if ((error = copyin((caddr_t)nbp->bf_insns, in pppioctl() 541 if (!bpf_validate(newcode, nbp->bf_len)) { in pppioctl() 551 bp->bf_len = nbp->bf_len; in pppioctl()
|
| D | bpf.c | 1765 struct bpf_if *bp, *nbp; in bpfdetach() local 1769 TAILQ_FOREACH_SAFE(bp, &bpf_iflist, bif_next, nbp) { in bpfdetach()
|
| /openbsd/src/sbin/fsck_ext2fs/ |
| D | utilities.c | 233 struct bufarea *bp, *nbp; in ckfini() local 250 for (bp = bufhead.b_prev; bp && bp != &bufhead; bp = nbp) { in ckfini() 253 nbp = bp->b_prev; in ckfini()
|
| /openbsd/src/sys/dev/pci/drm/amd/display/dc/dce110/ |
| D | dce110_mem_input_v.c | 926 struct dce_watermarks nbp, in dce_mem_input_v_program_display_marks() argument 939 nbp); in dce_mem_input_v_program_display_marks() 949 struct dce_watermarks nbp, in dce_mem_input_program_chroma_display_marks() argument 961 nbp); in dce_mem_input_program_chroma_display_marks()
|
| /openbsd/src/sbin/fsck_ffs/ |
| D | utilities.c | 295 struct bufarea *bp, *nbp; in ckfini() local 333 for (bp = bufhead.b_prev; bp && bp != &bufhead; bp = nbp) { in ckfini() 336 nbp = bp->b_prev; in ckfini()
|
| /openbsd/src/etc/ |
| D | services | 102 at-nbp 202/tcp # AppleTalk name binding 103 at-nbp 202/udp 321 nbp 2/ddp # Name Binding Protocol
|
| /openbsd/src/sys/kern/ |
| D | spec_vnops.c | 404 struct buf *nbp; in spec_fsync() local 414 LIST_FOREACH_SAFE(bp, &vp->v_dirtyblkhd, b_vnbufs, nbp) { in spec_fsync()
|
| D | vfs_subr.c | 1976 struct buf *nbp, *blist; in vinvalbuf() local 2014 for (bp = blist; bp; bp = nbp) { in vinvalbuf() 2015 nbp = LIST_NEXT(bp, b_vnbufs); in vinvalbuf() 2071 struct buf *bp, *nbp; in vflushbuf() local 2076 LIST_FOREACH_SAFE(bp, &vp->v_dirtyblkhd, b_vnbufs, nbp) { in vflushbuf()
|
| /openbsd/src/sys/arch/sparc64/sparc64/ |
| D | autoconf.c | 443 bootpath_nodes(struct bootpath *bp, int nbp) in bootpath_nodes() argument 453 for (i = 0; i < nbp; i++, bp++) { in bootpath_nodes()
|