Lines Matching refs:bp
83 buf_t bp,
125 if (bp == NULL) {
126 bp = buf_alloc((vnode_t)0);
129 orig_bflags = buf_flags(bp);
138 assert(bp->b_lflags & BL_BUSY);
143 bp->b_dev = dev;
144 bp->b_proc = p;
153 buf_setflags(bp, B_PHYS | B_RAW);
168 buf_reset(bp, flags);
171 buf_setblkno(bp, uio_offset(uio) / blocksize);
172 buf_setcount(bp, iosize);
173 buf_setdataptr(bp, (uintptr_t)CAST_DOWN(caddr_t, uio_curriovbase(uio)));
180 (*f_minphys)(bp);
181 todo = buf_count(bp);
189 error = vslock(CAST_USER_ADDR_T(buf_dataptr(bp)),
196 (*f_strategy)(bp);
200 error = (int)buf_biowait(bp);
207 vsunlock(CAST_USER_ADDR_T(buf_dataptr(bp)),
215 done = buf_count(bp) - buf_resid(bp);
228 buf_free(bp);
230 buf_setflags(bp, orig_bflags);
245 minphys(struct buf *bp)
248 buf_setcount(bp, min(MAXPHYS, buf_count(bp)));
249 return buf_count(bp);