• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/ide/

Lines Matching defs:rq

86 	struct request *rq;			/* The corresponding request */
298 * Error codes which are returned in rq->errors to the higher part
483 struct request *rq = HWGROUP(drive)->rq;
496 if (!rq)
498 if (!blk_special_request(rq)) {
503 rq->errors = error;
510 struct request *rq = pc->rq;
517 rq_for_each_bio(bio, rq) {
544 struct request *rq = pc->rq;
551 rq_for_each_bio(bio, rq) {
580 struct request *rq = pc->rq;
581 struct bio *bio = rq->bio;
583 while ((bio = rq->bio) != NULL)
592 static void idefloppy_queue_pc_head (ide_drive_t *drive,idefloppy_pc_t *pc,struct request *rq)
596 ide_init_drive_cmd(rq);
597 rq->buffer = (char *) pc;
598 rq->cmd_type = REQ_TYPE_SPECIAL;
599 rq->rq_disk = floppy->disk;
600 (void) ide_do_drive_cmd(drive, rq, ide_preempt);
702 struct request *rq;
707 rq = idefloppy_next_rq_storage(drive);
709 idefloppy_queue_pc_head(drive, pc, rq);
723 struct request *rq = pc->rq;
753 rq->errors++;
1137 static void idefloppy_create_rw_cmd (idefloppy_floppy_t *floppy, idefloppy_pc_t *pc, struct request *rq, unsigned long sector)
1140 int blocks = rq->nr_sectors / floppy->bs_factor;
1141 int cmd = rq_data_dir(rq);
1157 pc->rq = rq;
1158 pc->b_count = cmd == READ ? 0 : rq->bio->bi_size;
1159 if (rq->cmd_flags & REQ_RW)
1167 idefloppy_blockpc_cmd(idefloppy_floppy_t *floppy, idefloppy_pc_t *pc, struct request *rq)
1173 if (rq->cmd[0] != IDEFLOPPY_START_STOP_CMD)
1177 memcpy(pc->c, rq->cmd, sizeof(pc->c));
1184 static ide_startstop_t idefloppy_do_request (ide_drive_t *drive, struct request *rq, sector_t block_s)
1191 rq->rq_disk ? rq->rq_disk->disk_name : "?",
1192 rq->flags, rq->errors);
1194 "current_nr_sectors: %d\n", (long)rq->sector,
1195 rq->nr_sectors, rq->current_nr_sectors);
1197 if (rq->errors >= ERROR_MAX) {
1211 if (blk_fs_request(rq)) {
1212 if (((long)rq->sector % floppy->bs_factor) ||
1213 (rq->nr_sectors % floppy->bs_factor)) {
1220 idefloppy_create_rw_cmd(floppy, pc, rq, block);
1221 } else if (blk_special_request(rq)) {
1222 pc = (idefloppy_pc_t *) rq->buffer;
1223 } else if (blk_pc_request(rq)) {
1225 if (idefloppy_blockpc_cmd(floppy, pc, rq)) {
1230 blk_dump_rq_flags(rq,
1236 pc->rq = rq;
1247 struct request rq;
1249 ide_init_drive_cmd (&rq);
1250 rq.buffer = (char *) pc;
1251 rq.cmd_type = REQ_TYPE_SPECIAL;
1252 rq.rq_disk = floppy->disk;
1254 return ide_do_drive_cmd(drive, &rq, ide_wait);