Lines Matching refs:rq
896 bufinit(struct buf *buf, struct request *rq, struct bio *bio) in bufinit() argument
899 buf->rq = rq; in bufinit()
908 struct request *rq; in nextbuf() local
918 rq = d->ip.rq; in nextbuf()
919 if (rq == NULL) { in nextbuf()
920 rq = blk_peek_request(q); in nextbuf()
921 if (rq == NULL) in nextbuf()
923 blk_start_request(rq); in nextbuf()
924 d->ip.rq = rq; in nextbuf()
925 d->ip.nxbio = rq->bio; in nextbuf()
926 rq->special = (void *) rqbiocnt(rq); in nextbuf()
934 bufinit(buf, rq, bio); in nextbuf()
938 d->ip.rq = NULL; in nextbuf()
1102 aoe_end_request(struct aoedev *d, struct request *rq, int fastfail) in aoe_end_request() argument
1109 if (rq == d->ip.rq) in aoe_end_request()
1110 d->ip.rq = NULL; in aoe_end_request()
1112 bio = rq->bio; in aoe_end_request()
1114 } while (__blk_end_request(rq, bok ? 0 : -EIO, bio->bi_iter.bi_size)); in aoe_end_request()
1124 struct request *rq; in aoe_end_buf() local
1129 rq = buf->rq; in aoe_end_buf()
1132 n = (unsigned long) rq->special; in aoe_end_buf()
1133 rq->special = (void *) --n; in aoe_end_buf()
1135 aoe_end_request(d, rq, 0); in aoe_end_buf()