Lines Matching refs:rq
13 struct request *rq; in issue_park_cmd() local
34 rq = blk_get_request(q, READ, __GFP_RECLAIM); in issue_park_cmd()
35 rq->cmd[0] = REQ_PARK_HEADS; in issue_park_cmd()
36 rq->cmd_len = 1; in issue_park_cmd()
37 rq->cmd_type = REQ_TYPE_DRV_PRIV; in issue_park_cmd()
38 rq->special = &timeout; in issue_park_cmd()
39 rc = blk_execute_rq(q, NULL, rq, 1); in issue_park_cmd()
40 blk_put_request(rq); in issue_park_cmd()
48 rq = blk_get_request(q, READ, GFP_NOWAIT); in issue_park_cmd()
49 if (IS_ERR(rq)) in issue_park_cmd()
52 rq->cmd[0] = REQ_UNPARK_HEADS; in issue_park_cmd()
53 rq->cmd_len = 1; in issue_park_cmd()
54 rq->cmd_type = REQ_TYPE_DRV_PRIV; in issue_park_cmd()
55 elv_add_request(q, rq, ELEVATOR_INSERT_FRONT); in issue_park_cmd()
61 ide_startstop_t ide_do_park_unpark(ide_drive_t *drive, struct request *rq) in ide_do_park_unpark() argument
67 if (rq->cmd[0] == REQ_PARK_HEADS) { in ide_do_park_unpark()
68 drive->sleep = *(unsigned long *)rq->special; in ide_do_park_unpark()
83 cmd.rq = rq; in ide_do_park_unpark()