Lines Matching refs:bp
83 buf_t bp,
121 if (bp == NULL) {
122 bp = buf_alloc((vnode_t)0);
125 orig_bflags = buf_flags(bp);
134 assert(bp->b_lflags & BL_BUSY);
139 bp->b_dev = dev;
140 bp->b_proc = p;
149 buf_setflags(bp, B_PHYS | B_RAW);
164 buf_reset(bp, flags);
167 buf_setblkno(bp, uio_offset(uio) / blocksize);
168 buf_setcount(bp, iosize);
169 buf_setdataptr(bp, (uintptr_t)CAST_DOWN(caddr_t, uio_curriovbase(uio)));
176 (*f_minphys)(bp);
177 todo = buf_count(bp);
185 error = vslock(CAST_USER_ADDR_T(buf_dataptr(bp)),
192 (*f_strategy)(bp);
196 error = (int)buf_biowait(bp);
203 vsunlock(CAST_USER_ADDR_T(buf_dataptr(bp)),
211 done = buf_count(bp) - buf_resid(bp);
224 buf_free(bp);
226 buf_setflags(bp, orig_bflags);
241 minphys(struct buf *bp)
244 buf_setcount(bp, min(MAXPHYS, buf_count(bp)));
245 return buf_count(bp);