Lines Matching defs:wr_bp
25662 struct buf *wr_bp;
25851 wr_bp = NULL;
25872 * a valid bp in wr_bp.
25875 &wr_bp);
25894 bcopy(addr, &wr_bp->b_un.b_addr[io_start_offset],
25906 wr_bp = &wr_buf;
25907 bzero(wr_bp, sizeof (struct buf));
25908 wr_bp->b_flags = B_BUSY;
25909 wr_bp->b_un.b_addr = addr;
25910 wr_bp->b_bcount = nblk << DEV_BSHIFT;
25911 wr_bp->b_resid = 0;
25928 dma_resid = wr_bp->b_bcount;
25938 wr_bp->b_flags &= ~B_ERROR;
25942 ((wr_bp->b_bcount - dma_resid) /
25950 rval = sd_setup_next_rw_pkt(un, wr_pktp, wr_bp,
25954 rval = sd_setup_rw_pkt(un, &wr_pktp, wr_bp,
25959 rval = sd_setup_rw_pkt(un, &wr_pktp, wr_bp,
25969 if (wr_bp->b_flags & B_ERROR) {
25973 geterror(wr_bp));
25979 if (wr_bp->b_flags & B_ERROR) {
25982 "0x%x, retrying\n", geterror(wr_bp));
25985 if (wr_bp->b_flags & B_ERROR) {
25989 "giving up.\n", geterror(wr_bp));
25999 scsi_free_consistent_buf(wr_bp);
26100 scsi_free_consistent_buf(wr_bp);