Lines Matching defs:bp
602 ud_common_ad(struct ud_inode *ip, struct buf *bp)
614 addr = bp->b_un.b_addr + sizeof (struct alloc_ext_desc);
615 aed = (struct alloc_ext_desc *)bp->b_un.b_addr;
712 struct buf *bp;
720 bp = ud_bread(ip->i_dev, bno << ip->i_udf->udf_l2d_shift,
722 if (bp->b_flags & B_ERROR)
723 error = bp->b_error;
725 aed = (struct alloc_ext_desc *)bp->b_un.b_addr;
732 ud_common_ad(ip, bp);
734 brelse(bp);
1256 struct buf *bp;
1270 bp = (struct buf *)kmem_zalloc(biosize(), KM_SLEEP);
1271 sema_init(&bp->b_sem, 0, NULL, SEMA_DEFAULT, NULL);
1272 sema_init(&bp->b_io, 0, NULL, SEMA_DEFAULT, NULL);
1274 bp->b_flags = B_WRITE | B_BUSY;
1275 bp->b_edev = ip->i_dev;
1276 bp->b_dev = cmpdev(ip->i_dev);
1277 bp->b_blkno = bno << udf_vfsp->udf_l2d_shift;
1278 bp->b_bcount = dummy;
1279 bp->b_un.b_addr = kmem_zalloc(bp->b_bcount, KM_SLEEP);
1280 bp->b_file = ip->i_vnode;
1281 bp->b_offset = -1;
1283 (void) bdev_strategy(bp);
1284 if (error = biowait(bp)) {
1288 kmem_free(bp->b_un.b_addr, dummy);
1289 sema_destroy(&bp->b_io);
1290 sema_destroy(&bp->b_sem);
1291 kmem_free((caddr_t)bp, biosize());