Lines Matching refs:next_rq
117 if (rq->next_rq) { in bsg_scsi_complete_rq()
119 hdr->din_resid = scsi_req(rq->next_rq)->resid_len; in bsg_scsi_complete_rq()
144 struct request *rq, *next_rq = NULL; in bsg_map_hdr() local
180 next_rq = blk_get_request(q, REQ_OP_SCSI_IN, 0); in bsg_map_hdr()
181 if (IS_ERR(next_rq)) { in bsg_map_hdr()
182 ret = PTR_ERR(next_rq); in bsg_map_hdr()
186 rq->next_rq = next_rq; in bsg_map_hdr()
187 ret = blk_rq_map_user(q, next_rq, NULL, uptr64(hdr->din_xferp), in bsg_map_hdr()
206 if (rq->next_rq) in bsg_map_hdr()
207 blk_rq_unmap_user(rq->next_rq->bio); in bsg_map_hdr()
209 if (rq->next_rq) in bsg_map_hdr()
210 blk_put_request(rq->next_rq); in bsg_map_hdr()
224 if (rq->next_rq) { in blk_complete_sgv4_hdr_rq()
226 blk_put_request(rq->next_rq); in blk_complete_sgv4_hdr_rq()
421 if (rq->next_rq) in bsg_ioctl()
422 bidi_bio = rq->next_rq->bio; in bsg_ioctl()