Lines Matching defs:rq
17 * @rq: request to complete
20 static void blk_end_sync_rq(struct request *rq, blk_status_t error)
22 struct completion *waiting = rq->end_io_data;
24 rq->end_io_data = (void *)(uintptr_t)error;
28 * the rq pointer) could be invalid right after this complete()
37 * @rq: request to insert
49 struct request *rq, int at_head,
53 WARN_ON(!blk_rq_is_passthrough(rq));
55 rq->rq_disk = bd_disk;
56 rq->end_io = done;
58 blk_account_io_start(rq);
64 blk_mq_sched_insert_request(rq, at_head, true, false);
72 * @rq: request to insert
81 struct request *rq, int at_head)
86 rq->end_io_data = &wait;
87 blk_execute_rq_nowait(q, bd_disk, rq, at_head, blk_end_sync_rq);
96 return (blk_status_t)(uintptr_t)rq->end_io_data;