Lines Matching refs:bp
406 struct buf *bp;
460 (int *)&bsize, 1, NOCRED, &bp);
462 error = buf_bread(vp, bn, (int)bsize, NOCRED, &bp);
468 n = bsize - buf_resid(bp);
472 buf_brelse(bp);
477 error = uiomove((char *)buf_dataptr(bp) + on, n, uio);
479 buf_markaged(bp);
480 buf_brelse(bp);
500 struct buf *bp;
576 bp = buf_getblk(vp, bn, bsize, 0, 0, BLK_WRITE);
578 error = (int)buf_bread(vp, bn, bsize, NOCRED, &bp);
582 error = (int)buf_error(bp);
584 buf_brelse(bp);
587 n = min(n, bsize - buf_resid(bp));
589 error = uiomove((char *)buf_dataptr(bp) + on, n, uio);
591 buf_brelse(bp);
594 buf_markaged(bp);
597 error = buf_bwrite(bp);
600 error = buf_bawrite(bp);
602 error = buf_bdwrite(bp);
1623 buf_t bp;
1636 bp = ap->a_bp;
1637 bdev = buf_device(bp);
1638 mp = buf_vnode(bp)->v_mount;
1642 if (bp->b_flags & B_META)
1643 bp->b_attr.ba_flags |= BA_META;
1646 bp->b_flags |= B_THROTTLED_IO;
1647 bp->b_attr.ba_flags |= BA_THROTTLED_IO;
1648 bp->b_flags &= ~B_PASSIVE;
1650 bp->b_flags |= B_PASSIVE;
1654 bp->b_attr.ba_flags |= BA_DELAYIDLESLEEP;
1657 bflags = bp->b_flags;
1677 if (bp->b_attr.ba_flags & BA_NOCACHE)
1681 bp, bdev, (int)buf_blkno(bp), buf_count(bp), 0);
1700 INCR_PENDING_IO(buf_count(bp), mp->mnt_pending_write_size);
1703 INCR_PENDING_IO(buf_count(bp), mp->mnt_pending_read_size);
1727 typedef int strategy_fcn_ret_t(struct buf *bp);
1729 strategy_ret = (*(strategy_fcn_ret_t*)bdevsw[major(bdev)].d_strategy)(bp);