Lines Matching refs:tbp
364 struct buf *tbp; local
368 tbp = (struct buf *)malloc(sizeof *tbp, M_DEVBUF, M_WAITOK);
369 bzero((caddr_t)tbp, sizeof *tbp);
370 tbp->b_proc = curproc;
371 tbp->b_dev = bp->b_dev;
387 tbp->b_flags = B_BUSY | B_READ;
388 tbp->b_blkno = bn - btodb(boff);
389 tbp->b_un.b_addr = cbuf;
390 tbp->b_bcount = bsize;
394 tbp->b_blkno, count, boff, addr);
396 sdstrategy(tbp);
397 biowait(tbp);
398 if (tbp->b_flags & B_ERROR) {
400 bp->b_error = tbp->b_error;
411 tbp->b_blkno, count, boff, addr);
415 tbp->b_blkno = bn;
416 tbp->b_un.b_addr = addr;
417 tbp->b_bcount = count;
421 tbp->b_blkno, count, addr);
424 tbp->b_flags = B_BUSY | (bp->b_flags & B_READ);
425 sdstrategy(tbp);
426 biowait(tbp);
427 if (tbp->b_flags & B_ERROR) {
429 bp->b_error = tbp->b_error;
443 free((caddr_t)tbp, M_DEVBUF);