tag | line | file | source code |
rq | 126 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
rq | 147 | drivers/block/ide-cd.c | if (rq->cmd == READ) |
rq | 161 | drivers/block/ide-cd.c | pc = (struct packet_command *)rq->buffer; |
rq | 180 | drivers/block/ide-cd.c | if ((++rq->errors > ERROR_MAX)) |
rq | 187 | drivers/block/ide-cd.c | else if (rq->cmd == PACKET_COMMAND) |
rq | 189 | drivers/block/ide-cd.c | struct packet_command *pc = (struct packet_command *)rq->buffer; |
rq | 202 | drivers/block/ide-cd.c | else if ((++rq->errors > ERROR_MAX)) |
rq | 278 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
rq | 284 | drivers/block/ide-cd.c | if (rq->current_nr_sectors <= 0) |
rq | 289 | drivers/block/ide-cd.c | if (rq->current_nr_sectors > 0) |
rq | 291 | drivers/block/ide-cd.c | cdrom_start_read (dev, rq->sector); |
rq | 308 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
rq | 323 | drivers/block/ide-cd.c | IN_WORDS (rq->buffer, len/2); |
rq | 325 | drivers/block/ide-cd.c | rq->current_nr_sectors -= BLOCKS_PER_FRAME; |
rq | 326 | drivers/block/ide-cd.c | rq->nr_sectors -= BLOCKS_PER_FRAME; |
rq | 327 | drivers/block/ide-cd.c | rq->sector += BLOCKS_PER_FRAME; |
rq | 328 | drivers/block/ide-cd.c | rq->buffer += CD_FRAMESIZE; |
rq | 344 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
rq | 357 | drivers/block/ide-cd.c | conv.l.l0 = rq->sector / BLOCKS_PER_FRAME; |
rq | 382 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
rq | 384 | drivers/block/ide-cd.c | if (rq->cmd == READ && |
rq | 385 | drivers/block/ide-cd.c | (rq->current_nr_sectors != BLOCKS_PER_FRAME || |
rq | 386 | drivers/block/ide-cd.c | (rq->sector & (BLOCKS_PER_FRAME-1)) != 0)) |
rq | 389 | drivers/block/ide-cd.c | rq->current_nr_sectors, rq->sector); |
rq | 417 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
rq | 418 | drivers/block/ide-cd.c | struct packet_command *pc = (struct packet_command *)rq->buffer; |
rq | 521 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
rq | 522 | drivers/block/ide-cd.c | struct packet_command *pc = (struct packet_command *)rq->buffer; |
rq | 537 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
rq | 538 | drivers/block/ide-cd.c | struct packet_command *pc = (struct packet_command *)rq->buffer; |
rq | 611 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
rq | 613 | drivers/block/ide-cd.c | if (rq -> cmd == PACKET_COMMAND) |
rq | 616 | drivers/block/ide-cd.c | if (rq -> cmd != READ) |
rq | 618 | drivers/block/ide-cd.c | printk ("ide-cd: bad cmd %d\n", rq -> cmd); |
rq | 623 | drivers/block/ide-cd.c | if (rq->cmd == READ) |
rq | 627 | drivers/block/ide-cd.c | if ((rq->nr_sectors & (BLOCKS_PER_FRAME-1)) == BLOCKS_PER_FRAME-1 && |
rq | 628 | drivers/block/ide-cd.c | (rq->sector & (BLOCKS_PER_FRAME-1)) == 1 && |
rq | 629 | drivers/block/ide-cd.c | (rq->current_nr_sectors & (BLOCKS_PER_FRAME-1)) == 0) |
rq | 631 | drivers/block/ide-cd.c | rq->nr_sectors &= (BLOCKS_PER_FRAME-1); |
rq | 632 | drivers/block/ide-cd.c | rq->sector = (rq->sector+BLOCKS_PER_FRAME) & (BLOCKS_PER_FRAME-1); |
rq | 494 | drivers/block/ide.c | struct request *rq = ide_cur_rq[DEV_HWIF]; |
rq | 495 | drivers/block/ide.c | byte *args = (byte *) rq->buffer; |
rq | 497 | drivers/block/ide.c | rq->errors = !OK_STAT(stat,READY_STAT,BAD_STAT); |
rq | 505 | drivers/block/ide.c | up(rq->sem); |
rq | 588 | drivers/block/ide.c | struct request *rq; |
rq | 592 | drivers/block/ide.c | if ((rq = ide_cur_rq[DEV_HWIF]) == NULL || dev == NULL) |
rq | 595 | drivers/block/ide.c | if (rq->cmd == IDE_DRIVE_CMD) { /* never retry an explicit DRIVE_CMD */ |
rq | 603 | drivers/block/ide.c | rq->errors = ERROR_MAX; |
rq | 605 | drivers/block/ide.c | rq->errors |= ERROR_RECAL; |
rq | 607 | drivers/block/ide.c | if ((stat & DRQ_STAT) && rq->cmd == READ) { |
rq | 613 | drivers/block/ide.c | rq->errors |= ERROR_RESET; /* Mmmm.. timing problem */ |
rq | 615 | drivers/block/ide.c | if (rq->errors >= ERROR_MAX) |
rq | 618 | drivers/block/ide.c | if ((rq->errors & ERROR_RESET) == ERROR_RESET) |
rq | 620 | drivers/block/ide.c | else if ((rq->errors & ERROR_RECAL) == ERROR_RECAL) |
rq | 622 | drivers/block/ide.c | ++rq->errors; |
rq | 631 | drivers/block/ide.c | struct request *rq; |
rq | 641 | drivers/block/ide.c | rq = ide_cur_rq[DEV_HWIF]; |
rq | 643 | drivers/block/ide.c | if ((nsect = rq->current_nr_sectors) > msect) |
rq | 648 | drivers/block/ide.c | IN_SECTORS(rq->buffer,nsect); |
rq | 651 | drivers/block/ide.c | dev->name, rq->sector, rq->sector+nsect-1, |
rq | 652 | drivers/block/ide.c | (unsigned long) rq->buffer+(nsect<<9), rq->nr_sectors-nsect); |
rq | 654 | drivers/block/ide.c | rq->sector += nsect; |
rq | 655 | drivers/block/ide.c | rq->buffer += nsect<<9; |
rq | 656 | drivers/block/ide.c | rq->errors = 0; |
rq | 657 | drivers/block/ide.c | i = (rq->nr_sectors -= nsect); |
rq | 658 | drivers/block/ide.c | if ((rq->current_nr_sectors -= nsect) <= 0) |
rq | 674 | drivers/block/ide.c | struct request *rq = ide_cur_rq[DEV_HWIF]; |
rq | 679 | drivers/block/ide.c | dev->name, rq->sector, (unsigned long) rq->buffer, |
rq | 680 | drivers/block/ide.c | rq->nr_sectors-1); |
rq | 682 | drivers/block/ide.c | if ((rq->nr_sectors == 1) ^ ((stat & DRQ_STAT) != 0)) { |
rq | 683 | drivers/block/ide.c | rq->sector++; |
rq | 684 | drivers/block/ide.c | rq->buffer += 512; |
rq | 685 | drivers/block/ide.c | rq->errors = 0; |
rq | 686 | drivers/block/ide.c | i = --rq->nr_sectors; |
rq | 687 | drivers/block/ide.c | --rq->current_nr_sectors; |
rq | 688 | drivers/block/ide.c | if (rq->current_nr_sectors <= 0) |
rq | 692 | drivers/block/ide.c | OUT_SECTORS(rq->buffer,1); |
rq | 706 | drivers/block/ide.c | struct request *rq = &ide_write_rq[DEV_HWIF]; |
rq | 710 | drivers/block/ide.c | unsigned int nsect = rq->current_nr_sectors; |
rq | 715 | drivers/block/ide.c | OUT_SECTORS(rq->buffer,nsect); |
rq | 718 | drivers/block/ide.c | dev->name, rq->sector, (unsigned long) rq->buffer, |
rq | 719 | drivers/block/ide.c | nsect, rq->nr_sectors - nsect); |
rq | 721 | drivers/block/ide.c | if ((rq->nr_sectors -= nsect) <= 0) |
rq | 723 | drivers/block/ide.c | if ((rq->current_nr_sectors -= nsect) == 0) { |
rq | 724 | drivers/block/ide.c | if ((rq->bh = rq->bh->b_reqnext) != NULL) { |
rq | 725 | drivers/block/ide.c | rq->current_nr_sectors = rq->bh->b_size>>9; |
rq | 726 | drivers/block/ide.c | rq->buffer = rq->bh->b_data; |
rq | 732 | drivers/block/ide.c | rq->buffer += nsect << 9; |
rq | 741 | drivers/block/ide.c | struct request *rq = &ide_write_rq[DEV_HWIF]; |
rq | 745 | drivers/block/ide.c | if (rq->nr_sectors) { |
rq | 752 | drivers/block/ide.c | if (!rq->nr_sectors) { /* all done? */ |
rq | 753 | drivers/block/ide.c | rq = ide_cur_rq[DEV_HWIF]; |
rq | 754 | drivers/block/ide.c | for (i = rq->nr_sectors; i > 0;){ |
rq | 755 | drivers/block/ide.c | i -= rq->current_nr_sectors; |
rq | 927 | drivers/block/ide.c | static inline int do_rw_disk (ide_dev_t *dev, struct request *rq, unsigned long block) |
rq | 930 | drivers/block/ide.c | OUT_BYTE(rq->nr_sectors,HD_NSECTOR); |
rq | 934 | drivers/block/ide.c | dev->name, (rq->cmd==READ)?"read":"writ", |
rq | 935 | drivers/block/ide.c | block, rq->nr_sectors, (unsigned long) rq->buffer); |
rq | 953 | drivers/block/ide.c | dev->name, (rq->cmd==READ)?"read":"writ", cyl, |
rq | 954 | drivers/block/ide.c | head, sect, rq->nr_sectors, (unsigned long) rq->buffer); |
rq | 957 | drivers/block/ide.c | if (rq->cmd == READ) { |
rq | 962 | drivers/block/ide.c | if (rq->cmd == WRITE) { |
rq | 969 | drivers/block/ide.c | ide_write_rq[DEV_HWIF] = *rq; /* scratchpad */ |
rq | 973 | drivers/block/ide.c | OUT_SECTORS(rq->buffer,1); |
rq | 979 | drivers/block/ide.c | if (rq->cmd == IDE_DRIVE_CMD) { |
rq | 980 | drivers/block/ide.c | byte *args = rq->buffer; |
rq | 996 | drivers/block/ide.c | printk("%s: bad command: %d\n", dev->name, rq->cmd); |
rq | 1017 | drivers/block/ide.c | struct request *rq; |
rq | 1024 | drivers/block/ide.c | if ((rq = ide_cur_rq[HWIF]) == NULL) { |
rq | 1025 | drivers/block/ide.c | rq = blk_dev[ide_major[HWIF]].current_request; |
rq | 1026 | drivers/block/ide.c | if ((rq == NULL) || (rq->dev < 0)) { |
rq | 1031 | drivers/block/ide.c | rq = blk_dev[ide_major[hwif^=1]].current_request; |
rq | 1032 | drivers/block/ide.c | if ((rq != NULL) && (rq->dev >= 0)) |
rq | 1038 | drivers/block/ide.c | blk_dev[ide_major[HWIF]].current_request = rq->next; |
rq | 1039 | drivers/block/ide.c | ide_cur_rq[HWIF] = rq; |
rq | 1042 | drivers/block/ide.c | printk("%s: do_request: current=0x%08lx\n",ide_name[HWIF],(unsigned long)rq); |
rq | 1044 | drivers/block/ide.c | minor = MINOR(rq->dev); |
rq | 1047 | drivers/block/ide.c | if ((MAJOR(rq->dev) != ide_major[HWIF]) || (drive >= MAX_DRIVES)) { |
rq | 1048 | drivers/block/ide.c | printk("%s: bad device number: 0x%04x\n", ide_name[HWIF], rq->dev); |
rq | 1052 | drivers/block/ide.c | if (rq->bh && !rq->bh->b_lock) { |
rq | 1057 | drivers/block/ide.c | block = rq->sector; |
rq | 1058 | drivers/block/ide.c | blockend = block + rq->nr_sectors; |
rq | 1061 | drivers/block/ide.c | dev->name, block, rq->nr_sectors); |
rq | 1080 | drivers/block/ide.c | if (do_rw_disk(dev, rq, block)) |
rq | 1335 | drivers/block/ide.c | struct request rq, *cur_rq; |
rq | 1340 | drivers/block/ide.c | rq.buffer = args; |
rq | 1341 | drivers/block/ide.c | rq.cmd = IDE_DRIVE_CMD; |
rq | 1342 | drivers/block/ide.c | rq.errors = 0; |
rq | 1343 | drivers/block/ide.c | rq.sector = 0; |
rq | 1344 | drivers/block/ide.c | rq.nr_sectors = 0; |
rq | 1345 | drivers/block/ide.c | rq.current_nr_sectors = 0; |
rq | 1346 | drivers/block/ide.c | rq.sem = &sem; |
rq | 1347 | drivers/block/ide.c | rq.bh = NULL; |
rq | 1348 | drivers/block/ide.c | rq.bhtail = NULL; |
rq | 1349 | drivers/block/ide.c | rq.next = NULL; |
rq | 1350 | drivers/block/ide.c | rq.dev = dev; |
rq | 1357 | drivers/block/ide.c | bdev->current_request = &rq; /* service ours immediately */ |
rq | 1362 | drivers/block/ide.c | cur_rq->next = &rq; /* add rq to the end */ |
rq | 1367 | drivers/block/ide.c | return rq.errors ? -EIO : 0; /* return -EIO if errors */ |
rq | 296 | drivers/net/ewrk3.c | static int ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd); |
rq | 1608 | drivers/net/ewrk3.c | static int ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
rq | 1611 | drivers/net/ewrk3.c | struct ewrk3_ioctl *ioc = (struct ewrk3_ioctl *) &rq->ifr_data; |
rq | 889 | drivers/net/plip.c | static int plip_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
rq | 892 | drivers/net/plip.c | struct plipconf *pc = (struct plipconf *) &rq->ifr_data; |