Lines Matching refs:bp
191 struct buf *bp;
269 &rasize, 1, NOCRED, &bp);
271 error = (int)buf_bread(vp, (daddr64_t)((unsigned)lbn), size, NOCRED, &bp);
274 n = min(n, size - buf_resid(bp));
276 buf_brelse(bp);
280 error = uiomove((caddr_t)(buf_dataptr(bp) + on), (int)n, uio);
283 buf_markaged(bp);
284 buf_brelse(bp);
413 struct buf *bp = NULL;
441 (error = cd9660_blkatoff(vdp, SECTOFF(imp, idp->curroff), NULL, &bp))) {
454 if (bp != NULL)
455 buf_brelse(bp);
456 if ((error = cd9660_blkatoff(vdp, SECTOFF(imp, idp->curroff), NULL, &bp)))
464 (buf_dataptr(bp) + entryoffsetinblock);
506 idp->current.d_fileno = ((daddr_t)buf_blkno(bp) << imp->im_bshift) +
621 if (bp)
622 buf_brelse (bp);
647 struct buf *bp;
665 imp->logical_block_size, NOCRED, &bp);
667 buf_brelse(bp);
674 dirp = (ISODIR *)(buf_dataptr(bp) + (ip->i_number & imp->im_bmask));
682 buf_brelse(bp);
702 buf_brelse(bp);
708 buf_brelse(bp);
736 buf_t bp = ap->a_bp;
737 vnode_t vp = buf_vnode(bp);
950 struct buf *bp;
991 error = (int)buf_bread(ip->i_devvp, (daddr64_t)((unsigned)block), CDXA_SECTOR_SIZE, NOCRED, &bp);
993 buf_brelse(bp);
996 if (buf_resid(bp)) {
1008 bcopy(CAST_DOWN(caddr_t, (buf_dataptr(bp)+sect_off)), buffer, count);
1011 error = uiomove(CAST_DOWN(caddr_t, (buf_dataptr(bp)+sect_off)), count, uio);
1021 buf_markaged(bp);
1022 buf_brelse(bp);