| /netbsd-src/sys/arch/next68k/next68k/ |
| H A D | disksubr.c | 78 int i, t, nbp; in parse_nextstep_label() local 116 lp->d_npartitions = nbp = 0; in parse_nextstep_label() 119 lp->d_partitions[nbp].p_size = in parse_nextstep_label() 122 lp->d_partitions[nbp].p_offset = in parse_nextstep_label() 126 lp->d_partitions[nbp].p_fsize = in parse_nextstep_label() 129 lp->d_partitions[nbp].p_fstype = FS_BSDFFS; in parse_nextstep_label() 139 lp->d_partitions[nbp].p_fstype = t; in parse_nextstep_label() 142 lp->d_partitions[nbp].p_frag = in parse_nextstep_label() 146 lp->d_partitions[nbp].p_frag = 0; in parse_nextstep_label() 147 lp->d_partitions[nbp].p_cpg = in parse_nextstep_label() [all …]
|
| /netbsd-src/usr.sbin/makefs/ffs/ |
| H A D | ffs_balloc.c | 90 struct buf *bp, *nbp; in ffs_balloc_ufs1() local 275 nbp = getblk(ip->i_devvp, indirs[i].in_lbn, fs->fs_bsize, 0, 0); in ffs_balloc_ufs1() 276 nbp->b_blkno = FFS_FSBTODB(fs, nb); in ffs_balloc_ufs1() 277 clrbuf(nbp); in ffs_balloc_ufs1() 283 if ((error = bwrite(nbp)) != 0) { in ffs_balloc_ufs1() 306 nbp = getblk(ip->i_devvp, lbn, fs->fs_bsize, 0, 0); in ffs_balloc_ufs1() 307 nbp->b_blkno = FFS_FSBTODB(fs, nb); in ffs_balloc_ufs1() 308 clrbuf(nbp); in ffs_balloc_ufs1() 309 *bpp = nbp; in ffs_balloc_ufs1() 322 error = bread(ip->i_devvp, lbn, (int)fs->fs_bsize, 0, &nbp); in ffs_balloc_ufs1() [all …]
|
| /netbsd-src/sys/ufs/ext2fs/ |
| H A D | ext2fs_balloc.c | 100 struct buf *bp, *nbp; in ext2fs_balloc() local 236 nbp = getblk(vp, indirs[i].in_lbn, fs->e2fs_bsize, 0, 0); in ext2fs_balloc() 237 nbp->b_blkno = EXT2_FSBTODB(fs, nb); in ext2fs_balloc() 238 clrbuf(nbp); in ext2fs_balloc() 243 if ((error = bwrite(nbp)) != 0) { in ext2fs_balloc() 287 nbp = getblk(vp, lbn, fs->e2fs_bsize, 0, 0); in ext2fs_balloc() 288 nbp->b_blkno = EXT2_FSBTODB(fs, nb); in ext2fs_balloc() 290 clrbuf(nbp); in ext2fs_balloc() 291 *bpp = nbp; in ext2fs_balloc() 299 B_MODIFY, &nbp); in ext2fs_balloc() [all …]
|
| /netbsd-src/sys/dev/ |
| H A D | cgd.c | 850 struct buf *nbp; in cgd_diskstart() local 862 nbp = getiobuf(sc->sc_tvn, false); in cgd_diskstart() 863 if (nbp == NULL) in cgd_diskstart() 868 putiobuf(nbp); in cgd_diskstart() 874 cx->cx_nbp = nbp; in cgd_diskstart() 887 putiobuf(nbp); in cgd_diskstart() 908 struct buf *nbp; in cgd_diskstart2() local 911 nbp = cx->cx_nbp; in cgd_diskstart2() 913 nbp->b_data = cx->cx_dstv; in cgd_diskstart2() 914 nbp->b_flags = bp->b_flags; in cgd_diskstart2() [all …]
|
| H A D | fss.c | 1164 struct buf *bp, *nbp; in fss_bs_thread() local 1287 nbp = getiobuf(NULL, true); in fss_bs_thread() 1288 nbp->b_flags = B_READ | (bp->b_flags & B_PHYS); in fss_bs_thread() 1289 nbp->b_resid = nbp->b_bcount = bp->b_bcount; in fss_bs_thread() 1290 nbp->b_bufsize = bp->b_bcount; in fss_bs_thread() 1291 nbp->b_data = bp->b_data; in fss_bs_thread() 1292 nbp->b_blkno = bp->b_blkno; in fss_bs_thread() 1293 nbp->b_lblkno = 0; in fss_bs_thread() 1294 nbp->b_dev = sc->sc_bdev; in fss_bs_thread() 1295 SET(nbp->b_cflags, BC_BUSY); /* mark buffer busy */ in fss_bs_thread() [all …]
|
| H A D | vnd.c | 869 struct buf *nbp = NULL; in handle_with_strategy() local 933 nbp = getiobuf(vp, true); in handle_with_strategy() 934 nestiobuf_setup(bp, nbp, offset, sz); in handle_with_strategy() 935 nbp->b_blkno = nbn + btodb(off); in handle_with_strategy() 941 (long) (vnd-vnd_softc), &nbp->vb_buf, in handle_with_strategy() 942 nbp->vb_buf.b_vp, nbp->vb_buf.b_blkno, in handle_with_strategy() 943 nbp->vb_buf.b_flags, nbp->vb_buf.b_data, in handle_with_strategy() 944 nbp in handle_with_strategy() [all...] |
| /netbsd-src/games/hunt/huntd/ |
| H A D | shots.c | 753 BULLET *nbp; in chkslime() local 782 nbp = malloc(sizeof(*nbp)); in chkslime() 783 *nbp = *bp; in chkslime() 785 move_slime(nbp, nbp->b_type == SLIME ? SLIMESPEED : LAVASPEED, next); in chkslime() 787 move_slime(nbp, SLIMESPEED, next); in chkslime() 801 BULLET *nbp; in move_slime() local 920 nbp = create_shot(bp->b_type, bp->b_y, bp->b_x - 1, LEFTS, in move_slime() 922 move_slime(nbp, speed - 1, next); in move_slime() 926 nbp = create_shot(bp->b_type, bp->b_y, bp->b_x + 1, RIGHT, in move_slime() 929 move_slime(nbp, speed - 1, next); in move_slime() [all …]
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/amd/display/dc/dce/ |
| H A D | amdgpu_dce_mem_input.c | 270 struct dce_watermarks nbp, in dce_mi_program_display_marks() argument 287 program_nbp_watermark(dce_mi, 2, nbp.a_mark); /* set a */ in dce_mi_program_display_marks() 288 program_nbp_watermark(dce_mi, 1, nbp.d_mark); /* set d */ in dce_mi_program_display_marks() 295 struct dce_watermarks nbp, in dce112_mi_program_display_marks() argument 316 program_nbp_watermark(dce_mi, 0, nbp.a_mark); /* set a */ in dce112_mi_program_display_marks() 317 program_nbp_watermark(dce_mi, 1, nbp.b_mark); /* set b */ in dce112_mi_program_display_marks() 318 program_nbp_watermark(dce_mi, 2, nbp.c_mark); /* set c */ in dce112_mi_program_display_marks() 319 program_nbp_watermark(dce_mi, 3, nbp.d_mark); /* set d */ in dce112_mi_program_display_marks() 328 struct dce_watermarks nbp, in dce120_mi_program_display_marks() argument 349 program_nbp_watermark(dce_mi, 0, nbp.a_mark); /* set a */ in dce120_mi_program_display_marks() [all …]
|
| /netbsd-src/sys/uvm/ |
| H A D | uvm_swap.c | 1387 struct vndbuf *nbp; in sw_reg_strategy() local 1445 nbp = pool_get(&vndbuf_pool, PR_WAITOK); in sw_reg_strategy() 1446 buf_init(&nbp->vb_buf); in sw_reg_strategy() 1447 nbp->vb_buf.b_flags = bp->b_flags; in sw_reg_strategy() 1448 nbp->vb_buf.b_cflags = bp->b_cflags; in sw_reg_strategy() 1449 nbp->vb_buf.b_oflags = bp->b_oflags; in sw_reg_strategy() 1450 nbp->vb_buf.b_bcount = sz; in sw_reg_strategy() 1451 nbp->vb_buf.b_bufsize = sz; in sw_reg_strategy() 1452 nbp->vb_buf.b_error = 0; in sw_reg_strategy() 1453 nbp->vb_buf.b_data = addr; in sw_reg_strategy() [all …]
|
| /netbsd-src/sys/ufs/ffs/ |
| H A D | ffs_snapshot.c | 182 struct buf *bp, *nbp; 348 for (bp = LIST_FIRST(&vp->v_cleanblkhd); bp; bp = nbp) { 349 nbp = LIST_NEXT(bp, b_vnbufs); 355 nbp = LIST_FIRST(&vp->v_cleanblkhd); 428 struct buf *ibp, *nbp; 513 0, &nbp); 516 bawrite(nbp); 521 fs->fs_bsize, l->l_cred, 0, &nbp); 524 bawrite(nbp); 537 fs->fs_bsize, l->l_cred, 0, &nbp); [all …]
|
| H A D | ffs_balloc.c | 114 struct buf *bp, *nbp; in ffs_balloc_ufs1() local 348 fs->fs_bsize, true, &nbp); in ffs_balloc_ufs1() 357 if ((error = bwrite(nbp)) != 0) { in ffs_balloc_ufs1() 432 B_MODIFY, &nbp); in ffs_balloc_ufs1() 438 fs->fs_bsize, true, &nbp); in ffs_balloc_ufs1() 442 *bpp = nbp; in ffs_balloc_ufs1() 532 struct buf *bp, *nbp; in ffs_balloc_ufs2() local 866 fs->fs_bsize, true, &nbp); in ffs_balloc_ufs2() 875 if ((error = bwrite(nbp)) != 0) { in ffs_balloc_ufs2() 950 B_MODIFY, &nbp); in ffs_balloc_ufs2() [all …]
|
| /netbsd-src/sys/kern/ |
| H A D | bufq_priocscan.c | 167 struct buf *nbp; in cscan_get() local 177 nbp = rb_tree_find_node_geq(&q->cq_buffers, key); in cscan_get() 178 if (nbp != NULL && cscan_tree_compare_nodes(q, nbp, bp) < 0) { in cscan_get() 180 nbp, bp); in cscan_get()
|
| H A D | vfs_subr.c | 203 struct buf *bp, *nbp; in vinvalbuf() 224 for (bp = LIST_FIRST(&vp->v_dirtyblkhd); bp; bp = nbp) { in vinvalbuf() 226 nbp = LIST_NEXT(bp, b_vnbufs); in vinvalbuf() 237 for (bp = LIST_FIRST(&vp->v_cleanblkhd); bp; bp = nbp) { in vinvalbuf() 239 nbp = LIST_NEXT(bp, b_vnbufs); in vinvalbuf() 283 struct buf *bp, *nbp; in vtruncbuf() 296 for (bp = LIST_FIRST(&vp->v_dirtyblkhd); bp; bp = nbp) { in vtruncbuf() 298 nbp = LIST_NEXT(bp, b_vnbufs); in vtruncbuf() 311 for (bp = LIST_FIRST(&vp->v_cleanblkhd); bp; bp = nbp) { in vtruncbuf() 313 nbp in vtruncbuf() 202 struct buf *bp, *nbp; vinvalbuf() local 282 struct buf *bp, *nbp; vtruncbuf() local 337 struct buf *bp, *nbp; vflushbuf() local [all...] |
| /netbsd-src/sys/arch/arm/arm32/ |
| H A D | arm32_boot.c | 165 const struct boot_physmem *bp, size_t nbp) in initarm_common() argument 252 KASSERT(bp != NULL || nbp == 0); in initarm_common() 253 KASSERT(bp == NULL || nbp != 0); in initarm_common() 276 for (size_t j = 0; j < nbp && start < end; j++) { in initarm_common()
|
| /netbsd-src/sys/dev/dkwedge/ |
| H A D | dk.c | 1558 struct buf *bp, *nbp; in dkstart() local 1576 nbp = getiobuf(sc->sc_parent->dk_rawvp, false); in dkstart() 1578 if (nbp == NULL) { in dkstart() 1597 putiobuf(nbp); in dkstart() 1608 nbp->b_data = bp->b_data; in dkstart() 1609 nbp->b_flags = bp->b_flags; in dkstart() 1610 nbp->b_oflags = bp->b_oflags; in dkstart() 1611 nbp->b_cflags = bp->b_cflags; in dkstart() 1612 nbp->b_iodone = dkiodone; in dkstart() 1613 nbp->b_proc = bp->b_proc; in dkstart() [all …]
|
| /netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/ |
| H A D | vdev_disk.c | 434 buf_t *bp, *nbp; in vdev_disk_io_start() local 519 nbp = getiobuf(vp, true); in vdev_disk_io_start() 520 nbp->b_blkno = btodb(zio->io_offset + off); in vdev_disk_io_start() 522 nestiobuf_setup(bp, nbp, off, size); in vdev_disk_io_start() 523 (void)VOP_STRATEGY(vp, nbp); in vdev_disk_io_start()
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/amd/display/dc/inc/hw/ |
| H A D | mem_input.h | 110 struct dce_watermarks nbp, 118 struct dce_watermarks nbp,
|
| /netbsd-src/sys/fs/nilfs/ |
| H A D | nilfs_vnops.c | 389 struct buf *nbp; in nilfs_read_filebuf() local 445 nbp = getiobuf(NULL, true); in nilfs_read_filebuf() 446 nestiobuf_setup(bp, nbp, buf_offset, blocksize); in nilfs_read_filebuf() 447 KASSERT(nbp->b_vp == node->vnode); in nilfs_read_filebuf() 450 nbp->b_lblkno = i; in nilfs_read_filebuf() 451 nbp->b_blkno = v2pmap[i] * blk2dev; /* in DEV_BSIZE */ in nilfs_read_filebuf() 452 nbp->b_rawblkno = nbp->b_blkno; in nilfs_read_filebuf() 454 VOP_STRATEGY(nilfsdev->devvp, nbp); in nilfs_read_filebuf()
|
| /netbsd-src/external/bsd/am-utils/dist/libamu/ |
| H A D | mount_fs.c | 734 struct netbuf *nbp; in print_nfs23_args() local 755 nbp = nap->addr; in print_nfs23_args() 757 nbp->maxlen, nbp->len, in print_nfs23_args() 758 get_hex_string(nbp->len, nbp->buf)); in print_nfs23_args() 759 nbp = nap->syncaddr; in print_nfs23_args() 760 plog(XLOG_DEBUG, "NA->syncaddr {netbuf} %p", nbp); in print_nfs23_args()
|
| /netbsd-src/sbin/fsck_lfs/ |
| H A D | bufcache.c | 105 struct ubuf *bp, *nbp; in bufrehash() local 127 nbp = LIST_NEXT(bp, b_hash); in bufrehash() 131 bp = nbp; in bufrehash()
|
| /netbsd-src/sys/dev/scsipi/ |
| H A D | cd.c | 608 struct buf *nbp; in cd_make_bounce_buffer() local 614 nbp = getiobuf(NULL, false); in cd_make_bounce_buffer() 615 if (nbp == NULL) in cd_make_bounce_buffer() 618 nbp->b_data = malloc(count, M_DEVBUF, M_NOWAIT); in cd_make_bounce_buffer() 619 if (nbp->b_data == NULL) { in cd_make_bounce_buffer() 620 putiobuf(nbp); in cd_make_bounce_buffer() 625 nbp->b_error = 0; in cd_make_bounce_buffer() 626 nbp->b_dev = bp->b_dev; in cd_make_bounce_buffer() 627 nbp->b_proc = bp->b_proc; in cd_make_bounce_buffer() 628 nbp in cd_make_bounce_buffer() [all...] |
| /netbsd-src/sbin/fsck_ext2fs/ |
| H A D | utilities.c | 260 struct bufarea *bp, *nbp; in ckfini() local 277 for (bp = bufhead.b_prev; bp && bp != &bufhead; bp = nbp) { in ckfini() 280 nbp = bp->b_prev; in ckfini()
|
| /netbsd-src/sys/arch/aarch64/aarch64/ |
| H A D | aarch64_machdep.c | 244 const struct boot_physmem *bp, size_t nbp) in initarm_common() argument 370 KASSERT(bp != NULL || nbp == 0); in initarm_common() 371 KASSERT(bp == NULL || nbp != 0); in initarm_common() 395 for (size_t j = 0; j < nbp && start < end; j++) { in initarm_common()
|
| /netbsd-src/sys/dev/gpib/ |
| H A D | ct.c | 411 struct buf *nbp = 0; in ctcommand() local 437 nbp = (struct buf *)geteblk(MAXBSIZE); in ctcommand() 438 bp->b_data = nbp->b_data; in ctcommand() 458 if (nbp) in ctcommand() 459 brelse(nbp, 0); in ctcommand()
|
| /netbsd-src/sys/arch/hp300/dev/ |
| H A D | ct.c | 454 struct buf *nbp = 0; in ctcommand() local 474 nbp = (struct buf *)geteblk(MAXBSIZE); in ctcommand() 475 bp->b_data = nbp->b_data; in ctcommand() 496 if (nbp) in ctcommand() 497 brelse(nbp, 0); in ctcommand()
|