Lines Matching refs:next_rq
212 struct request *rq, *next_rq = NULL; in bsg_map_hdr() local
251 next_rq = blk_get_request(q, READ, GFP_KERNEL); in bsg_map_hdr()
252 if (IS_ERR(next_rq)) { in bsg_map_hdr()
253 ret = PTR_ERR(next_rq); in bsg_map_hdr()
254 next_rq = NULL; in bsg_map_hdr()
257 rq->next_rq = next_rq; in bsg_map_hdr()
258 next_rq->cmd_type = rq->cmd_type; in bsg_map_hdr()
261 ret = blk_rq_map_user(q, next_rq, NULL, dxferp, in bsg_map_hdr()
291 if (next_rq) { in bsg_map_hdr()
292 blk_rq_unmap_user(next_rq->bio); in bsg_map_hdr()
293 blk_put_request(next_rq); in bsg_map_hdr()
335 if (rq->next_rq) in bsg_add_command()
336 bc->bidi_bio = rq->next_rq->bio; in bsg_add_command()
422 if (rq->next_rq) { in blk_complete_sgv4_hdr_rq()
424 hdr->din_resid = rq->next_rq->resid_len; in blk_complete_sgv4_hdr_rq()
426 blk_put_request(rq->next_rq); in blk_complete_sgv4_hdr_rq()
921 if (rq->next_rq) in bsg_ioctl()
922 bidi_bio = rq->next_rq->bio; in bsg_ioctl()