Lines Matching refs:bp
1766 struct buf *bp;
1798 error = (int)buf_bread(devvp, blockNumber, devBlockSize, cred, &bp);
1800 if (bp) buf_brelse(bp);
1807 error = uiomove((caddr_t)buf_dataptr(bp) + blockOffset, (int)xfersize, auio);
1809 buf_brelse(bp);
1814 error = VNOP_BWRITE(bp);
1820 buf_brelse(bp);
2296 buf_t bp = ap->a_bp;
2297 vnode_t vp = buf_vnode(bp);
3057 register struct buf *bp = ap->a_bp;
3058 register struct vnode *vp = buf_vnode(bp);
3074 if (((u_int16_t *)((char *)buf_dataptr(bp) + buf_count(bp) - 2))[0] == 0x000e) {
3076 block.blockHeader = bp;
3077 block.buffer = (char *)buf_dataptr(bp);
3078 block.blockNum = buf_lblkno(bp);
3080 block.blockReadFromDisk = (buf_fromcache(bp) == 0);
3081 block.blockSize = buf_count(bp);
3091 if ((buf_flags(bp) & B_LOCKED)) {
3094 panic("hfs: CLEARING the lock bit on bp %p\n", bp);
3096 buf_clearflags(bp, B_LOCKED);
3509 struct buf *bp = NULL;
3536 error = (int)buf_meta_bread(vp, blk, iosize, cred, &bp);
3541 if (buf_count(bp) != iosize) {
3542 printf("hfs_clonesysfile: b_bcount is only %d\n", buf_count(bp));
3545 bcopy((char *)buf_dataptr(bp), offset, iosize);
3547 buf_markinvalid(bp);
3548 buf_brelse(bp);
3549 bp = NULL;
3559 bp = buf_getblk(vp, start_blk + blkno, iosize, 0, 0, BLK_META);
3560 if (bp == NULL) {
3565 bcopy(offset, (char *)buf_dataptr(bp), iosize);
3566 error = (int)buf_bwrite(bp);
3567 bp = NULL;
3574 if (bp) {
3575 buf_brelse(bp);