tag | line | file | source code |
rq | 163 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
rq | 167 | drivers/block/ide-cd.c | if (!uptodate && rq->bh != 0) |
rq | 169 | drivers/block/ide-cd.c | int adj = rq->current_nr_sectors - 1; |
rq | 170 | drivers/block/ide-cd.c | rq->current_nr_sectors -= adj; |
rq | 171 | drivers/block/ide-cd.c | rq->sector += adj; |
rq | 192 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
rq | 212 | drivers/block/ide-cd.c | if (rq->cmd == READ) |
rq | 226 | drivers/block/ide-cd.c | pc = (struct packet_command *)rq->buffer; |
rq | 244 | drivers/block/ide-cd.c | if ((++rq->errors > ERROR_MAX)) |
rq | 251 | drivers/block/ide-cd.c | else if (rq->cmd == PACKET_COMMAND) |
rq | 253 | drivers/block/ide-cd.c | struct packet_command *pc = (struct packet_command *)rq->buffer; |
rq | 266 | drivers/block/ide-cd.c | else if ((++rq->errors > ERROR_MAX)) |
rq | 433 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
rq | 447 | drivers/block/ide-cd.c | if (rq->current_nr_sectors > 0) |
rq | 450 | drivers/block/ide-cd.c | dev->name, rq->current_nr_sectors); |
rq | 479 | drivers/block/ide-cd.c | nskip = MIN ((int)(rq->current_nr_sectors - (rq->bh->b_size >> SECTOR_BITS)), |
rq | 488 | drivers/block/ide-cd.c | --rq->current_nr_sectors; |
rq | 500 | drivers/block/ide-cd.c | if (rq->current_nr_sectors == 0 && |
rq | 501 | drivers/block/ide-cd.c | rq->nr_sectors > 0) |
rq | 506 | drivers/block/ide-cd.c | if (rq->current_nr_sectors == 0) |
rq | 508 | drivers/block/ide-cd.c | cdrom_buffer_sectors (dev, rq->sector, sectors_to_transfer); |
rq | 517 | drivers/block/ide-cd.c | rq->current_nr_sectors); |
rq | 522 | drivers/block/ide-cd.c | IN_WORDS (rq->buffer, SECTOR_SIZE / 2); |
rq | 523 | drivers/block/ide-cd.c | rq->buffer += SECTOR_SIZE; |
rq | 524 | drivers/block/ide-cd.c | --rq->nr_sectors; |
rq | 525 | drivers/block/ide-cd.c | --rq->current_nr_sectors; |
rq | 526 | drivers/block/ide-cd.c | ++rq->sector; |
rq | 546 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
rq | 553 | drivers/block/ide-cd.c | while (rq->nr_sectors > 0 && |
rq | 554 | drivers/block/ide-cd.c | rq->sector >= info->sector_buffered && |
rq | 555 | drivers/block/ide-cd.c | rq->sector < info->sector_buffered + info->nsectors_buffered) |
rq | 557 | drivers/block/ide-cd.c | if (rq->current_nr_sectors == 0) |
rq | 560 | drivers/block/ide-cd.c | memcpy (rq->buffer, |
rq | 562 | drivers/block/ide-cd.c | (rq->sector - info->sector_buffered) * SECTOR_SIZE, |
rq | 564 | drivers/block/ide-cd.c | rq->buffer += SECTOR_SIZE; |
rq | 565 | drivers/block/ide-cd.c | --rq->current_nr_sectors; |
rq | 566 | drivers/block/ide-cd.c | --rq->nr_sectors; |
rq | 567 | drivers/block/ide-cd.c | ++rq->sector; |
rq | 571 | drivers/block/ide-cd.c | if (rq->nr_sectors == 0) |
rq | 578 | drivers/block/ide-cd.c | if (rq->current_nr_sectors == 0) |
rq | 585 | drivers/block/ide-cd.c | if (rq->current_nr_sectors < (rq->bh->b_size >> SECTOR_BITS) && |
rq | 586 | drivers/block/ide-cd.c | (rq->sector % SECTORS_PER_FRAME) != 0) |
rq | 589 | drivers/block/ide-cd.c | dev->name, rq->sector); |
rq | 608 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
rq | 613 | drivers/block/ide-cd.c | nsect = rq->nr_sectors; |
rq | 616 | drivers/block/ide-cd.c | sector = rq->sector; |
rq | 628 | drivers/block/ide-cd.c | if (rq->current_nr_sectors != (rq->bh->b_size >> SECTOR_BITS)) |
rq | 631 | drivers/block/ide-cd.c | dev->name, rq->current_nr_sectors); |
rq | 639 | drivers/block/ide-cd.c | rq->current_nr_sectors += nskip; |
rq | 687 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
rq | 691 | drivers/block/ide-cd.c | if (rq->buffer != rq->bh->b_data) |
rq | 693 | drivers/block/ide-cd.c | int n = (rq->buffer - rq->bh->b_data) / SECTOR_SIZE; |
rq | 694 | drivers/block/ide-cd.c | rq->buffer = rq->bh->b_data; |
rq | 695 | drivers/block/ide-cd.c | rq->nr_sectors += n; |
rq | 696 | drivers/block/ide-cd.c | rq->current_nr_sectors += n; |
rq | 697 | drivers/block/ide-cd.c | rq->sector -= n; |
rq | 700 | drivers/block/ide-cd.c | if (rq->current_nr_sectors > (rq->bh->b_size >> SECTOR_BITS)) |
rq | 701 | drivers/block/ide-cd.c | rq->current_nr_sectors = rq->bh->b_size; |
rq | 731 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
rq | 732 | drivers/block/ide-cd.c | struct packet_command *pc = (struct packet_command *)rq->buffer; |
rq | 835 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
rq | 836 | drivers/block/ide-cd.c | struct packet_command *pc = (struct packet_command *)rq->buffer; |
rq | 851 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
rq | 852 | drivers/block/ide-cd.c | struct packet_command *pc = (struct packet_command *)rq->buffer; |
rq | 925 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
rq | 927 | drivers/block/ide-cd.c | if (rq -> cmd == PACKET_COMMAND) |
rq | 930 | drivers/block/ide-cd.c | if (rq -> cmd != READ) |
rq | 932 | 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 | 1013 | drivers/net/plip.c | plip_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
rq | 1016 | drivers/net/plip.c | struct plipconf *pc = (struct plipconf *) &rq->ifr_data; |