tag | line | file | source code |
rq | 155 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
rq | 159 | drivers/block/ide-cd.c | if (!uptodate && rq->bh != 0) |
rq | 161 | drivers/block/ide-cd.c | int adj = rq->current_nr_sectors - 1; |
rq | 162 | drivers/block/ide-cd.c | rq->current_nr_sectors -= adj; |
rq | 163 | drivers/block/ide-cd.c | rq->sector += adj; |
rq | 184 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
rq | 204 | drivers/block/ide-cd.c | if (rq->cmd == READ) |
rq | 218 | drivers/block/ide-cd.c | pc = (struct packet_command *)rq->buffer; |
rq | 236 | drivers/block/ide-cd.c | if ((++rq->errors > ERROR_MAX)) |
rq | 243 | drivers/block/ide-cd.c | else if (rq->cmd == PACKET_COMMAND) |
rq | 245 | drivers/block/ide-cd.c | struct packet_command *pc = (struct packet_command *)rq->buffer; |
rq | 258 | drivers/block/ide-cd.c | else if ((++rq->errors > ERROR_MAX)) |
rq | 425 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
rq | 439 | drivers/block/ide-cd.c | if (rq->current_nr_sectors > 0) |
rq | 442 | drivers/block/ide-cd.c | dev->name, rq->current_nr_sectors); |
rq | 471 | drivers/block/ide-cd.c | nskip = MIN ((int)(rq->current_nr_sectors - (rq->bh->b_size >> SECTOR_BITS)), |
rq | 480 | drivers/block/ide-cd.c | --rq->current_nr_sectors; |
rq | 492 | drivers/block/ide-cd.c | if (rq->current_nr_sectors == 0 && |
rq | 493 | drivers/block/ide-cd.c | rq->nr_sectors > 0) |
rq | 498 | drivers/block/ide-cd.c | if (rq->current_nr_sectors == 0) |
rq | 500 | drivers/block/ide-cd.c | cdrom_buffer_sectors (dev, rq->sector, sectors_to_transfer); |
rq | 509 | drivers/block/ide-cd.c | rq->current_nr_sectors); |
rq | 514 | drivers/block/ide-cd.c | IN_WORDS (rq->buffer, SECTOR_SIZE / 2); |
rq | 515 | drivers/block/ide-cd.c | rq->buffer += SECTOR_SIZE; |
rq | 516 | drivers/block/ide-cd.c | --rq->nr_sectors; |
rq | 517 | drivers/block/ide-cd.c | --rq->current_nr_sectors; |
rq | 518 | drivers/block/ide-cd.c | ++rq->sector; |
rq | 538 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
rq | 545 | drivers/block/ide-cd.c | while (rq->nr_sectors > 0 && |
rq | 546 | drivers/block/ide-cd.c | rq->sector >= info->sector_buffered && |
rq | 547 | drivers/block/ide-cd.c | rq->sector < info->sector_buffered + info->nsectors_buffered) |
rq | 549 | drivers/block/ide-cd.c | if (rq->current_nr_sectors == 0) |
rq | 552 | drivers/block/ide-cd.c | memcpy (rq->buffer, |
rq | 554 | drivers/block/ide-cd.c | (rq->sector - info->sector_buffered) * SECTOR_SIZE, |
rq | 556 | drivers/block/ide-cd.c | rq->buffer += SECTOR_SIZE; |
rq | 557 | drivers/block/ide-cd.c | --rq->current_nr_sectors; |
rq | 558 | drivers/block/ide-cd.c | --rq->nr_sectors; |
rq | 559 | drivers/block/ide-cd.c | ++rq->sector; |
rq | 563 | drivers/block/ide-cd.c | if (rq->nr_sectors == 0) |
rq | 570 | drivers/block/ide-cd.c | if (rq->current_nr_sectors == 0) |
rq | 577 | drivers/block/ide-cd.c | if (rq->current_nr_sectors < (rq->bh->b_size >> SECTOR_BITS) && |
rq | 578 | drivers/block/ide-cd.c | (rq->sector % SECTORS_PER_FRAME) != 0) |
rq | 581 | drivers/block/ide-cd.c | dev->name, rq->sector); |
rq | 600 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
rq | 605 | drivers/block/ide-cd.c | nsect = rq->nr_sectors; |
rq | 608 | drivers/block/ide-cd.c | sector = rq->sector; |
rq | 620 | drivers/block/ide-cd.c | if (rq->current_nr_sectors != (rq->bh->b_size >> SECTOR_BITS)) |
rq | 623 | drivers/block/ide-cd.c | dev->name, rq->current_nr_sectors); |
rq | 631 | drivers/block/ide-cd.c | rq->current_nr_sectors += nskip; |
rq | 679 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
rq | 683 | drivers/block/ide-cd.c | if (rq->buffer != rq->bh->b_data) |
rq | 685 | drivers/block/ide-cd.c | int n = (rq->buffer - rq->bh->b_data) / SECTOR_SIZE; |
rq | 686 | drivers/block/ide-cd.c | rq->buffer = rq->bh->b_data; |
rq | 687 | drivers/block/ide-cd.c | rq->nr_sectors += n; |
rq | 688 | drivers/block/ide-cd.c | rq->current_nr_sectors += n; |
rq | 689 | drivers/block/ide-cd.c | rq->sector -= n; |
rq | 692 | drivers/block/ide-cd.c | if (rq->current_nr_sectors > (rq->bh->b_size >> SECTOR_BITS)) |
rq | 693 | drivers/block/ide-cd.c | rq->current_nr_sectors = rq->bh->b_size; |
rq | 723 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
rq | 724 | drivers/block/ide-cd.c | struct packet_command *pc = (struct packet_command *)rq->buffer; |
rq | 827 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
rq | 828 | drivers/block/ide-cd.c | struct packet_command *pc = (struct packet_command *)rq->buffer; |
rq | 843 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
rq | 844 | drivers/block/ide-cd.c | struct packet_command *pc = (struct packet_command *)rq->buffer; |
rq | 917 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
rq | 919 | drivers/block/ide-cd.c | if (rq -> cmd == PACKET_COMMAND) |
rq | 922 | drivers/block/ide-cd.c | if (rq -> cmd != READ) |
rq | 924 | drivers/block/ide-cd.c | printk ("ide-cd: bad cmd %d\n", rq -> cmd); |
rq | 512 | drivers/block/ide.c | struct request *rq = ide_cur_rq[DEV_HWIF]; |
rq | 513 | drivers/block/ide.c | byte *args = (byte *) rq->buffer; |
rq | 515 | drivers/block/ide.c | rq->errors = !OK_STAT(stat,READY_STAT,BAD_STAT); |
rq | 523 | drivers/block/ide.c | up(rq->sem); |
rq | 606 | drivers/block/ide.c | struct request *rq; |
rq | 610 | drivers/block/ide.c | if ((rq = ide_cur_rq[DEV_HWIF]) == NULL || dev == NULL) |
rq | 613 | drivers/block/ide.c | if (rq->cmd == IDE_DRIVE_CMD) { /* never retry an explicit DRIVE_CMD */ |
rq | 619 | drivers/block/ide.c | rq->errors |= ERROR_RESET; |
rq | 624 | drivers/block/ide.c | rq->errors = ERROR_MAX; |
rq | 626 | drivers/block/ide.c | rq->errors |= ERROR_RECAL; |
rq | 628 | drivers/block/ide.c | if ((stat & DRQ_STAT) && rq->cmd == READ) { |
rq | 635 | drivers/block/ide.c | rq->errors |= ERROR_RESET; /* Mmmm.. timing problem */ |
rq | 637 | drivers/block/ide.c | if (rq->errors >= ERROR_MAX) |
rq | 640 | drivers/block/ide.c | if ((rq->errors & ERROR_RESET) == ERROR_RESET) |
rq | 642 | drivers/block/ide.c | else if ((rq->errors & ERROR_RECAL) == ERROR_RECAL) |
rq | 644 | drivers/block/ide.c | ++rq->errors; |
rq | 653 | drivers/block/ide.c | struct request *rq; |
rq | 663 | drivers/block/ide.c | rq = ide_cur_rq[DEV_HWIF]; |
rq | 665 | drivers/block/ide.c | if ((nsect = rq->current_nr_sectors) > msect) |
rq | 670 | drivers/block/ide.c | IN_SECTORS(rq->buffer,nsect); |
rq | 673 | drivers/block/ide.c | dev->name, rq->sector, rq->sector+nsect-1, |
rq | 674 | drivers/block/ide.c | (unsigned long) rq->buffer+(nsect<<9), rq->nr_sectors-nsect); |
rq | 676 | drivers/block/ide.c | rq->sector += nsect; |
rq | 677 | drivers/block/ide.c | rq->buffer += nsect<<9; |
rq | 678 | drivers/block/ide.c | rq->errors = 0; |
rq | 679 | drivers/block/ide.c | i = (rq->nr_sectors -= nsect); |
rq | 680 | drivers/block/ide.c | if ((rq->current_nr_sectors -= nsect) <= 0) |
rq | 696 | drivers/block/ide.c | struct request *rq = ide_cur_rq[DEV_HWIF]; |
rq | 701 | drivers/block/ide.c | dev->name, rq->sector, (unsigned long) rq->buffer, |
rq | 702 | drivers/block/ide.c | rq->nr_sectors-1); |
rq | 704 | drivers/block/ide.c | if ((rq->nr_sectors == 1) ^ ((stat & DRQ_STAT) != 0)) { |
rq | 705 | drivers/block/ide.c | rq->sector++; |
rq | 706 | drivers/block/ide.c | rq->buffer += 512; |
rq | 707 | drivers/block/ide.c | rq->errors = 0; |
rq | 708 | drivers/block/ide.c | i = --rq->nr_sectors; |
rq | 709 | drivers/block/ide.c | --rq->current_nr_sectors; |
rq | 710 | drivers/block/ide.c | if (rq->current_nr_sectors <= 0) |
rq | 714 | drivers/block/ide.c | OUT_SECTORS(rq->buffer,1); |
rq | 728 | drivers/block/ide.c | struct request *rq = &ide_write_rq[DEV_HWIF]; |
rq | 732 | drivers/block/ide.c | unsigned int nsect = rq->current_nr_sectors; |
rq | 737 | drivers/block/ide.c | OUT_SECTORS(rq->buffer,nsect); |
rq | 740 | drivers/block/ide.c | dev->name, rq->sector, (unsigned long) rq->buffer, |
rq | 741 | drivers/block/ide.c | nsect, rq->nr_sectors - nsect); |
rq | 743 | drivers/block/ide.c | if ((rq->nr_sectors -= nsect) <= 0) |
rq | 745 | drivers/block/ide.c | if ((rq->current_nr_sectors -= nsect) == 0) { |
rq | 746 | drivers/block/ide.c | if ((rq->bh = rq->bh->b_reqnext) != NULL) { |
rq | 747 | drivers/block/ide.c | rq->current_nr_sectors = rq->bh->b_size>>9; |
rq | 748 | drivers/block/ide.c | rq->buffer = rq->bh->b_data; |
rq | 754 | drivers/block/ide.c | rq->buffer += nsect << 9; |
rq | 763 | drivers/block/ide.c | struct request *rq = &ide_write_rq[DEV_HWIF]; |
rq | 767 | drivers/block/ide.c | if (rq->nr_sectors) { |
rq | 774 | drivers/block/ide.c | if (!rq->nr_sectors) { /* all done? */ |
rq | 775 | drivers/block/ide.c | rq = ide_cur_rq[DEV_HWIF]; |
rq | 776 | drivers/block/ide.c | for (i = rq->nr_sectors; i > 0;){ |
rq | 777 | drivers/block/ide.c | i -= rq->current_nr_sectors; |
rq | 948 | drivers/block/ide.c | static inline int do_rw_disk (ide_dev_t *dev, struct request *rq, unsigned long block) |
rq | 951 | drivers/block/ide.c | OUT_BYTE(rq->nr_sectors,HD_NSECTOR); |
rq | 955 | drivers/block/ide.c | dev->name, (rq->cmd==READ)?"read":"writ", |
rq | 956 | drivers/block/ide.c | block, rq->nr_sectors, (unsigned long) rq->buffer); |
rq | 974 | drivers/block/ide.c | dev->name, (rq->cmd==READ)?"read":"writ", cyl, |
rq | 975 | drivers/block/ide.c | head, sect, rq->nr_sectors, (unsigned long) rq->buffer); |
rq | 978 | drivers/block/ide.c | if (rq->cmd == READ) { |
rq | 983 | drivers/block/ide.c | if (rq->cmd == WRITE) { |
rq | 990 | drivers/block/ide.c | ide_write_rq[DEV_HWIF] = *rq; /* scratchpad */ |
rq | 994 | drivers/block/ide.c | OUT_SECTORS(rq->buffer,1); |
rq | 1000 | drivers/block/ide.c | if (rq->cmd == IDE_DRIVE_CMD) { |
rq | 1001 | drivers/block/ide.c | byte *args = rq->buffer; |
rq | 1017 | drivers/block/ide.c | printk("%s: bad command: %d\n", dev->name, rq->cmd); |
rq | 1038 | drivers/block/ide.c | struct request *rq; |
rq | 1045 | drivers/block/ide.c | if ((rq = ide_cur_rq[HWIF]) == NULL) { |
rq | 1046 | drivers/block/ide.c | rq = blk_dev[ide_major[HWIF]].current_request; |
rq | 1047 | drivers/block/ide.c | if ((rq == NULL) || (rq->dev < 0)) { |
rq | 1052 | drivers/block/ide.c | rq = blk_dev[ide_major[hwif^=1]].current_request; |
rq | 1053 | drivers/block/ide.c | if ((rq != NULL) && (rq->dev >= 0)) |
rq | 1059 | drivers/block/ide.c | blk_dev[ide_major[HWIF]].current_request = rq->next; |
rq | 1060 | drivers/block/ide.c | ide_cur_rq[HWIF] = rq; |
rq | 1063 | drivers/block/ide.c | printk("%s: do_request: current=0x%08lx\n",ide_name[HWIF],(unsigned long)rq); |
rq | 1065 | drivers/block/ide.c | minor = MINOR(rq->dev); |
rq | 1068 | drivers/block/ide.c | if ((MAJOR(rq->dev) != ide_major[HWIF]) || (drive >= MAX_DRIVES)) { |
rq | 1069 | drivers/block/ide.c | printk("%s: bad device number: 0x%04x\n", ide_name[HWIF], rq->dev); |
rq | 1073 | drivers/block/ide.c | if (rq->bh && !rq->bh->b_lock) { |
rq | 1078 | drivers/block/ide.c | block = rq->sector; |
rq | 1079 | drivers/block/ide.c | blockend = block + rq->nr_sectors; |
rq | 1082 | drivers/block/ide.c | dev->name, block, rq->nr_sectors); |
rq | 1101 | drivers/block/ide.c | if (do_rw_disk(dev, rq, block)) |
rq | 1356 | drivers/block/ide.c | struct request rq, *cur_rq; |
rq | 1361 | drivers/block/ide.c | rq.buffer = args; |
rq | 1362 | drivers/block/ide.c | rq.cmd = IDE_DRIVE_CMD; |
rq | 1363 | drivers/block/ide.c | rq.errors = 0; |
rq | 1364 | drivers/block/ide.c | rq.sector = 0; |
rq | 1365 | drivers/block/ide.c | rq.nr_sectors = 0; |
rq | 1366 | drivers/block/ide.c | rq.current_nr_sectors = 0; |
rq | 1367 | drivers/block/ide.c | rq.sem = &sem; |
rq | 1368 | drivers/block/ide.c | rq.bh = NULL; |
rq | 1369 | drivers/block/ide.c | rq.bhtail = NULL; |
rq | 1370 | drivers/block/ide.c | rq.next = NULL; |
rq | 1371 | drivers/block/ide.c | rq.dev = dev; |
rq | 1378 | drivers/block/ide.c | bdev->current_request = &rq; /* service ours immediately */ |
rq | 1383 | drivers/block/ide.c | cur_rq->next = &rq; /* add rq to the end */ |
rq | 1388 | drivers/block/ide.c | return rq.errors ? -EIO : 0; /* return -EIO if errors */ |
rq | 328 | drivers/net/de4x5.c | static int de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd); |
rq | 1792 | drivers/net/de4x5.c | static int de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
rq | 1795 | drivers/net/de4x5.c | struct de4x5_ioctl *ioc = (struct de4x5_ioctl *) &rq->ifr_data; |
rq | 297 | drivers/net/ewrk3.c | static int ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd); |
rq | 1609 | drivers/net/ewrk3.c | static int ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
rq | 1612 | drivers/net/ewrk3.c | struct ewrk3_ioctl *ioc = (struct ewrk3_ioctl *) &rq->ifr_data; |
rq | 1024 | drivers/net/plip.c | plip_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
rq | 1027 | drivers/net/plip.c | struct plipconf *pc = (struct plipconf *) &rq->ifr_data; |