tag | line | file | source code |
rq | 345 | drivers/block/blk.h | struct request *req = hwgroup->rq; |
rq | 379 | drivers/block/blk.h | hwgroup->rq = NULL; |
rq | 458 | drivers/block/ide-cd.c | static void restore_request (struct request *rq) |
rq | 460 | drivers/block/ide-cd.c | if (rq->buffer != rq->bh->b_data) |
rq | 462 | drivers/block/ide-cd.c | int n = (rq->buffer - rq->bh->b_data) / SECTOR_SIZE; |
rq | 463 | drivers/block/ide-cd.c | rq->buffer = rq->bh->b_data; |
rq | 464 | drivers/block/ide-cd.c | rq->nr_sectors += n; |
rq | 465 | drivers/block/ide-cd.c | rq->sector -= n; |
rq | 467 | drivers/block/ide-cd.c | rq->current_nr_sectors = rq->bh->b_size >> SECTOR_BITS; |
rq | 475 | drivers/block/ide-cd.c | struct request *rq; |
rq | 485 | drivers/block/ide-cd.c | rq = HWGROUP(drive)->rq; |
rq | 488 | drivers/block/ide-cd.c | if (rq != NULL) |
rq | 490 | drivers/block/ide-cd.c | restore_request (rq); |
rq | 491 | drivers/block/ide-cd.c | rq->next = blk_dev[major].current_request; |
rq | 492 | drivers/block/ide-cd.c | blk_dev[major].current_request = rq; |
rq | 493 | drivers/block/ide-cd.c | HWGROUP(drive)->rq = NULL; |
rq | 523 | drivers/block/ide-cd.c | rq = &HWIF(drive)->request_sense_request; |
rq | 524 | drivers/block/ide-cd.c | rq->dev = MKDEV (major, (drive->select.b.unit) << PARTN_BITS); |
rq | 525 | drivers/block/ide-cd.c | rq->cmd = REQUEST_SENSE_COMMAND; |
rq | 526 | drivers/block/ide-cd.c | rq->errors = 0; |
rq | 527 | drivers/block/ide-cd.c | rq->sector = 0; |
rq | 528 | drivers/block/ide-cd.c | rq->nr_sectors = 0; |
rq | 529 | drivers/block/ide-cd.c | rq->current_nr_sectors = 0; |
rq | 530 | drivers/block/ide-cd.c | rq->buffer = (char *)pc; |
rq | 531 | drivers/block/ide-cd.c | rq->sem = sem; |
rq | 532 | drivers/block/ide-cd.c | rq->bh = NULL; |
rq | 533 | drivers/block/ide-cd.c | rq->bhtail = NULL; |
rq | 534 | drivers/block/ide-cd.c | rq->next = NULL; |
rq | 540 | drivers/block/ide-cd.c | rq->next = blk_dev[major].current_request; |
rq | 541 | drivers/block/ide-cd.c | blk_dev[major].current_request = rq; |
rq | 549 | drivers/block/ide-cd.c | struct request *rq = HWGROUP(drive)->rq; |
rq | 553 | drivers/block/ide-cd.c | if (!uptodate && rq->bh != 0) |
rq | 555 | drivers/block/ide-cd.c | int adj = rq->current_nr_sectors - 1; |
rq | 556 | drivers/block/ide-cd.c | rq->current_nr_sectors -= adj; |
rq | 557 | drivers/block/ide-cd.c | rq->sector += adj; |
rq | 560 | drivers/block/ide-cd.c | if (rq->cmd == REQUEST_SENSE_COMMAND && uptodate) |
rq | 562 | drivers/block/ide-cd.c | struct packet_command *pc = (struct packet_command *)rq->buffer; |
rq | 584 | drivers/block/ide-cd.c | struct request *rq = HWGROUP(drive)->rq; |
rq | 598 | drivers/block/ide-cd.c | if (rq == NULL) |
rq | 602 | drivers/block/ide-cd.c | cmd = rq->cmd; |
rq | 610 | drivers/block/ide-cd.c | struct packet_command *pc = (struct packet_command *)rq->buffer; |
rq | 621 | drivers/block/ide-cd.c | struct packet_command *pc = (struct packet_command *)rq->buffer; |
rq | 661 | drivers/block/ide-cd.c | sem = rq->sem; |
rq | 662 | drivers/block/ide-cd.c | rq->sem = NULL; |
rq | 693 | drivers/block/ide-cd.c | if (++rq->errors > ERROR_MAX) |
rq | 714 | drivers/block/ide-cd.c | else if ((++rq->errors > ERROR_MAX)) |
rq | 907 | drivers/block/ide-cd.c | struct request *rq = HWGROUP(drive)->rq; |
rq | 921 | drivers/block/ide-cd.c | if (rq->current_nr_sectors > 0) |
rq | 924 | drivers/block/ide-cd.c | drive->name, rq->current_nr_sectors); |
rq | 953 | drivers/block/ide-cd.c | nskip = MIN ((int)(rq->current_nr_sectors - (rq->bh->b_size >> SECTOR_BITS)), |
rq | 962 | drivers/block/ide-cd.c | --rq->current_nr_sectors; |
rq | 974 | drivers/block/ide-cd.c | if (rq->current_nr_sectors == 0 && |
rq | 975 | drivers/block/ide-cd.c | rq->nr_sectors > 0) |
rq | 980 | drivers/block/ide-cd.c | if (rq->current_nr_sectors == 0) |
rq | 982 | drivers/block/ide-cd.c | cdrom_buffer_sectors (drive, rq->sector, sectors_to_transfer); |
rq | 991 | drivers/block/ide-cd.c | rq->current_nr_sectors); |
rq | 996 | drivers/block/ide-cd.c | cdrom_in_bytes (drive, rq->buffer, SECTOR_SIZE); |
rq | 997 | drivers/block/ide-cd.c | rq->buffer += SECTOR_SIZE; |
rq | 998 | drivers/block/ide-cd.c | --rq->nr_sectors; |
rq | 999 | drivers/block/ide-cd.c | --rq->current_nr_sectors; |
rq | 1000 | drivers/block/ide-cd.c | ++rq->sector; |
rq | 1020 | drivers/block/ide-cd.c | struct request *rq = HWGROUP(drive)->rq; |
rq | 1027 | drivers/block/ide-cd.c | while (rq->nr_sectors > 0 && |
rq | 1028 | drivers/block/ide-cd.c | rq->sector >= info->sector_buffered && |
rq | 1029 | drivers/block/ide-cd.c | rq->sector < info->sector_buffered + info->nsectors_buffered) |
rq | 1031 | drivers/block/ide-cd.c | if (rq->current_nr_sectors == 0) |
rq | 1034 | drivers/block/ide-cd.c | memcpy (rq->buffer, |
rq | 1036 | drivers/block/ide-cd.c | (rq->sector - info->sector_buffered) * SECTOR_SIZE, |
rq | 1038 | drivers/block/ide-cd.c | rq->buffer += SECTOR_SIZE; |
rq | 1039 | drivers/block/ide-cd.c | --rq->current_nr_sectors; |
rq | 1040 | drivers/block/ide-cd.c | --rq->nr_sectors; |
rq | 1041 | drivers/block/ide-cd.c | ++rq->sector; |
rq | 1045 | drivers/block/ide-cd.c | if (rq->nr_sectors == 0) |
rq | 1052 | drivers/block/ide-cd.c | if (rq->current_nr_sectors == 0) |
rq | 1059 | drivers/block/ide-cd.c | if (rq->current_nr_sectors < (rq->bh->b_size >> SECTOR_BITS) && |
rq | 1060 | drivers/block/ide-cd.c | (rq->sector % SECTORS_PER_FRAME) != 0) |
rq | 1063 | drivers/block/ide-cd.c | drive->name, rq->sector); |
rq | 1082 | drivers/block/ide-cd.c | struct request *rq = HWGROUP(drive)->rq; |
rq | 1087 | drivers/block/ide-cd.c | nsect = rq->nr_sectors; |
rq | 1090 | drivers/block/ide-cd.c | sector = rq->sector; |
rq | 1102 | drivers/block/ide-cd.c | if (rq->current_nr_sectors != (rq->bh->b_size >> SECTOR_BITS)) |
rq | 1105 | drivers/block/ide-cd.c | drive->name, rq->current_nr_sectors); |
rq | 1113 | drivers/block/ide-cd.c | rq->current_nr_sectors += nskip; |
rq | 1156 | drivers/block/ide-cd.c | struct request *rq = HWGROUP(drive)->rq; |
rq | 1160 | drivers/block/ide-cd.c | restore_request (rq); |
rq | 1191 | drivers/block/ide-cd.c | struct request *rq = HWGROUP(drive)->rq; |
rq | 1192 | drivers/block/ide-cd.c | struct packet_command *pc = (struct packet_command *)rq->buffer; |
rq | 1304 | drivers/block/ide-cd.c | struct request *rq = HWGROUP(drive)->rq; |
rq | 1305 | drivers/block/ide-cd.c | struct packet_command *pc = (struct packet_command *)rq->buffer; |
rq | 1318 | drivers/block/ide-cd.c | struct request *rq = HWGROUP(drive)->rq; |
rq | 1319 | drivers/block/ide-cd.c | struct packet_command *pc = (struct packet_command *)rq->buffer; |
rq | 1456 | drivers/block/ide-cd.c | struct request *rq = HWGROUP(drive)->rq; |
rq | 1458 | drivers/block/ide-cd.c | if (rq -> cmd == PACKET_COMMAND || rq -> cmd == REQUEST_SENSE_COMMAND) |
rq | 1461 | drivers/block/ide-cd.c | else if (rq -> cmd == RESET_DRIVE_COMMAND) |
rq | 1468 | drivers/block/ide-cd.c | else if (rq -> cmd != READ) |
rq | 1470 | drivers/block/ide-cd.c | printk ("ide-cd: bad cmd %d\n", rq -> cmd); |
rq | 746 | drivers/block/ide.c | struct request *rq = HWGROUP(drive)->rq; |
rq | 747 | drivers/block/ide.c | byte *args = (byte *) rq->buffer; |
rq | 749 | drivers/block/ide.c | rq->errors = !OK_STAT(stat,READY_STAT,BAD_STAT); |
rq | 757 | drivers/block/ide.c | up(rq->sem); |
rq | 758 | drivers/block/ide.c | HWGROUP(drive)->rq = NULL; |
rq | 819 | drivers/block/ide.c | if (HWGROUP(drive)->rq) |
rq | 820 | drivers/block/ide.c | printk(", sector=%ld", HWGROUP(drive)->rq->sector); |
rq | 858 | drivers/block/ide.c | struct request *rq; |
rq | 862 | drivers/block/ide.c | if ((rq = HWGROUP(drive)->rq) == NULL || drive == NULL) |
rq | 864 | drivers/block/ide.c | if (rq->cmd == IDE_DRIVE_CMD) { /* never retry an explicit DRIVE_CMD */ |
rq | 869 | drivers/block/ide.c | rq->errors |= ERROR_RESET; |
rq | 874 | drivers/block/ide.c | rq->errors = ERROR_MAX; |
rq | 876 | drivers/block/ide.c | rq->errors |= ERROR_RECAL; |
rq | 878 | drivers/block/ide.c | if ((stat & DRQ_STAT) && rq->cmd != WRITE) |
rq | 882 | drivers/block/ide.c | rq->errors |= ERROR_RESET; /* Mmmm.. timing problem */ |
rq | 885 | drivers/block/ide.c | if (rq->errors > 3 && drive->using_dma) { /* DMA troubles? */ |
rq | 888 | drivers/block/ide.c | --rq->errors; |
rq | 892 | drivers/block/ide.c | if (rq->errors >= ERROR_MAX) |
rq | 895 | drivers/block/ide.c | if ((rq->errors & ERROR_RESET) == ERROR_RESET) { |
rq | 896 | drivers/block/ide.c | ++rq->errors; |
rq | 898 | drivers/block/ide.c | } else if ((rq->errors & ERROR_RECAL) == ERROR_RECAL) |
rq | 900 | drivers/block/ide.c | ++rq->errors; |
rq | 913 | drivers/block/ide.c | struct request *rq; |
rq | 923 | drivers/block/ide.c | rq = HWGROUP(drive)->rq; |
rq | 925 | drivers/block/ide.c | if ((nsect = rq->current_nr_sectors) > msect) |
rq | 930 | drivers/block/ide.c | ide_input_data(drive, rq->buffer, nsect * SECTOR_WORDS); |
rq | 933 | drivers/block/ide.c | drive->name, rq->sector, rq->sector+nsect-1, |
rq | 934 | drivers/block/ide.c | (unsigned long) rq->buffer+(nsect<<9), rq->nr_sectors-nsect); |
rq | 936 | drivers/block/ide.c | rq->sector += nsect; |
rq | 937 | drivers/block/ide.c | rq->buffer += nsect<<9; |
rq | 938 | drivers/block/ide.c | rq->errors = 0; |
rq | 939 | drivers/block/ide.c | i = (rq->nr_sectors -= nsect); |
rq | 940 | drivers/block/ide.c | if ((rq->current_nr_sectors -= nsect) <= 0) |
rq | 958 | drivers/block/ide.c | struct request *rq = HWGROUP(drive)->rq; |
rq | 963 | drivers/block/ide.c | drive->name, rq->sector, (unsigned long) rq->buffer, |
rq | 964 | drivers/block/ide.c | rq->nr_sectors-1); |
rq | 966 | drivers/block/ide.c | if ((rq->nr_sectors == 1) ^ ((stat & DRQ_STAT) != 0)) { |
rq | 967 | drivers/block/ide.c | rq->sector++; |
rq | 968 | drivers/block/ide.c | rq->buffer += 512; |
rq | 969 | drivers/block/ide.c | rq->errors = 0; |
rq | 970 | drivers/block/ide.c | i = --rq->nr_sectors; |
rq | 971 | drivers/block/ide.c | --rq->current_nr_sectors; |
rq | 972 | drivers/block/ide.c | if (rq->current_nr_sectors <= 0) |
rq | 975 | drivers/block/ide.c | ide_output_data (drive, rq->buffer, SECTOR_WORDS); |
rq | 994 | drivers/block/ide.c | struct request *rq = &HWGROUP(drive)->wrq; |
rq | 998 | drivers/block/ide.c | unsigned int nsect = rq->current_nr_sectors; |
rq | 1003 | drivers/block/ide.c | ide_output_data(drive, rq->buffer, nsect<<7); |
rq | 1006 | drivers/block/ide.c | drive->name, rq->sector, (unsigned long) rq->buffer, |
rq | 1007 | drivers/block/ide.c | nsect, rq->nr_sectors - nsect); |
rq | 1009 | drivers/block/ide.c | if ((rq->nr_sectors -= nsect) <= 0) |
rq | 1011 | drivers/block/ide.c | if ((rq->current_nr_sectors -= nsect) == 0) { |
rq | 1012 | drivers/block/ide.c | if ((rq->bh = rq->bh->b_reqnext) != NULL) { |
rq | 1013 | drivers/block/ide.c | rq->current_nr_sectors = rq->bh->b_size>>9; |
rq | 1014 | drivers/block/ide.c | rq->buffer = rq->bh->b_data; |
rq | 1020 | drivers/block/ide.c | rq->buffer += nsect << 9; |
rq | 1032 | drivers/block/ide.c | struct request *rq = &HWGROUP(drive)->wrq; |
rq | 1036 | drivers/block/ide.c | if (rq->nr_sectors) { |
rq | 1042 | drivers/block/ide.c | if (!rq->nr_sectors) { /* all done? */ |
rq | 1043 | drivers/block/ide.c | rq = HWGROUP(drive)->rq; |
rq | 1044 | drivers/block/ide.c | for (i = rq->nr_sectors; i > 0;){ |
rq | 1045 | drivers/block/ide.c | i -= rq->current_nr_sectors; |
rq | 1214 | drivers/block/ide.c | static inline void do_rw_disk (ide_drive_t *drive, struct request *rq, unsigned long block) |
rq | 1219 | drivers/block/ide.c | OUT_BYTE(rq->nr_sectors,io_base+IDE_NSECTOR_OFFSET); |
rq | 1223 | drivers/block/ide.c | drive->name, (rq->cmd==READ)?"read":"writ", |
rq | 1224 | drivers/block/ide.c | block, rq->nr_sectors, (unsigned long) rq->buffer); |
rq | 1242 | drivers/block/ide.c | drive->name, (rq->cmd==READ)?"read":"writ", cyl, |
rq | 1243 | drivers/block/ide.c | head, sect, rq->nr_sectors, (unsigned long) rq->buffer); |
rq | 1246 | drivers/block/ide.c | if (rq->cmd == READ) { |
rq | 1255 | drivers/block/ide.c | if (rq->cmd == WRITE) { |
rq | 1269 | drivers/block/ide.c | HWGROUP(drive)->wrq = *rq; /* scratchpad */ |
rq | 1274 | drivers/block/ide.c | ide_output_data(drive, rq->buffer, SECTOR_WORDS); |
rq | 1278 | drivers/block/ide.c | if (rq->cmd == IDE_DRIVE_CMD) { |
rq | 1279 | drivers/block/ide.c | byte *args = rq->buffer; |
rq | 1298 | drivers/block/ide.c | printk("%s: bad command: %d\n", drive->name, rq->cmd); |
rq | 1305 | drivers/block/ide.c | static inline void do_request (ide_hwif_t *hwif, struct request *rq) |
rq | 1313 | drivers/block/ide.c | printk("%s: ide_do_request: current=0x%08lx\n", hwif->name, (unsigned long) rq); |
rq | 1315 | drivers/block/ide.c | minor = MINOR(rq->dev); |
rq | 1317 | drivers/block/ide.c | if (MAJOR(rq->dev) != hwif->major || unit >= MAX_DRIVES) { |
rq | 1318 | drivers/block/ide.c | printk("%s: bad device number: 0x%04x\n", hwif->name, rq->dev); |
rq | 1323 | drivers/block/ide.c | if (rq->bh && !rq->bh->b_lock) { |
rq | 1328 | drivers/block/ide.c | block = rq->sector; |
rq | 1329 | drivers/block/ide.c | blockend = block + rq->nr_sectors; |
rq | 1332 | drivers/block/ide.c | (minor&PARTN_MASK)?'0'+(minor&PARTN_MASK):' ', block, rq->nr_sectors); |
rq | 1354 | drivers/block/ide.c | do_rw_disk (drive, rq, block); |
rq | 1365 | drivers/block/ide.c | do_rw_disk (drive, rq, block); /* simpler and faster */ |
rq | 1399 | drivers/block/ide.c | struct request *rq; |
rq | 1400 | drivers/block/ide.c | if ((rq = hwgroup->rq) == NULL) { |
rq | 1403 | drivers/block/ide.c | rq = blk_dev[hwif->major].current_request; |
rq | 1404 | drivers/block/ide.c | if (rq != NULL && rq->dev != -1) |
rq | 1409 | drivers/block/ide.c | blk_dev[hwif->major].current_request = rq->next; |
rq | 1411 | drivers/block/ide.c | do_request(hwgroup->hwif = hwif, hwgroup->rq = rq); |
rq | 1606 | drivers/block/ide.c | struct request rq, *cur_rq; |
rq | 1611 | drivers/block/ide.c | rq.buffer = args; |
rq | 1612 | drivers/block/ide.c | rq.cmd = IDE_DRIVE_CMD; |
rq | 1613 | drivers/block/ide.c | rq.errors = 0; |
rq | 1614 | drivers/block/ide.c | rq.sector = 0; |
rq | 1615 | drivers/block/ide.c | rq.nr_sectors = 0; |
rq | 1616 | drivers/block/ide.c | rq.current_nr_sectors = 0; |
rq | 1617 | drivers/block/ide.c | rq.sem = &sem; |
rq | 1618 | drivers/block/ide.c | rq.bh = NULL; |
rq | 1619 | drivers/block/ide.c | rq.bhtail = NULL; |
rq | 1620 | drivers/block/ide.c | rq.next = NULL; |
rq | 1621 | drivers/block/ide.c | rq.dev = rdev; |
rq | 1628 | drivers/block/ide.c | bdev->current_request = &rq; /* service ours immediately */ |
rq | 1633 | drivers/block/ide.c | cur_rq->next = &rq; /* add rq to the end */ |
rq | 1638 | drivers/block/ide.c | return rq.errors ? -EIO : 0; /* return -EIO if errors */ |
rq | 2740 | drivers/block/ide.c | hwgroup->rq = NULL; |
rq | 334 | drivers/block/ide.h | struct request *rq; /* current request */ |
rq | 114 | drivers/block/triton.c | struct request *rq = HWGROUP(drive)->rq; |
rq | 122 | drivers/block/triton.c | rq = HWGROUP(drive)->rq; |
rq | 123 | drivers/block/triton.c | for (i = rq->nr_sectors; i > 0;) { |
rq | 124 | drivers/block/triton.c | i -= rq->current_nr_sectors; |
rq | 143 | drivers/block/triton.c | struct request *rq = HWGROUP(drive)->rq; |
rq | 144 | drivers/block/triton.c | struct buffer_head *bh = rq->bh; |
rq | 157 | drivers/block/triton.c | addr = virt_to_bus (rq->buffer); |
rq | 158 | drivers/block/triton.c | size = rq->nr_sectors << 9; |
rq | 410 | drivers/net/de4x5.c | static int de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd); |
rq | 2494 | drivers/net/de4x5.c | static int de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
rq | 2497 | drivers/net/de4x5.c | struct de4x5_ioctl *ioc = (struct de4x5_ioctl *) &rq->ifr_data; |
rq | 371 | drivers/net/depca.c | static int depca_ioctl(struct device *dev, struct ifreq *rq, int cmd); |
rq | 1657 | drivers/net/depca.c | static int depca_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
rq | 1660 | drivers/net/depca.c | struct depca_ioctl *ioc = (struct depca_ioctl *) &rq->ifr_data; |
rq | 297 | drivers/net/ewrk3.c | static int ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd); |
rq | 1611 | drivers/net/ewrk3.c | static int ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
rq | 1614 | drivers/net/ewrk3.c | struct ewrk3_ioctl *ioc = (struct ewrk3_ioctl *) &rq->ifr_data; |
rq | 1603 | drivers/net/pi2.c | struct pi_req rq; |
rq | 1613 | drivers/net/pi2.c | memcpy_fromfs(&rq, ifr->ifr_data, sizeof(struct pi_req)); |
rq | 1615 | drivers/net/pi2.c | switch (rq.cmd) { |
rq | 1622 | drivers/net/pi2.c | lp->txdelay = rq.txdelay; |
rq | 1623 | drivers/net/pi2.c | lp->persist = rq.persist; |
rq | 1624 | drivers/net/pi2.c | lp->slotime = rq.slotime; |
rq | 1625 | drivers/net/pi2.c | lp->squeldelay = rq.squeldelay; |
rq | 1626 | drivers/net/pi2.c | lp->clockmode = rq.clockmode; |
rq | 1627 | drivers/net/pi2.c | lp->speed = rq.speed; |
rq | 1639 | drivers/net/pi2.c | if (rq.dmachan < 1 || rq.dmachan > 3) |
rq | 1645 | drivers/net/pi2.c | dev->dma = lp->dmachan = rq.dmachan; |
rq | 1661 | drivers/net/pi2.c | rq.speed = lp->speed; |
rq | 1662 | drivers/net/pi2.c | rq.txdelay = lp->txdelay; |
rq | 1663 | drivers/net/pi2.c | rq.persist = lp->persist; |
rq | 1664 | drivers/net/pi2.c | rq.slotime = lp->slotime; |
rq | 1665 | drivers/net/pi2.c | rq.squeldelay = lp->squeldelay; |
rq | 1666 | drivers/net/pi2.c | rq.clockmode = lp->clockmode; |
rq | 1667 | drivers/net/pi2.c | rq.dmachan = lp->dmachan; |
rq | 1668 | drivers/net/pi2.c | rq.irq = dev->irq; |
rq | 1669 | drivers/net/pi2.c | memcpy_tofs(ifr->ifr_data, &rq, sizeof(struct pi_req)); |
rq | 1017 | drivers/net/plip.c | plip_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
rq | 1020 | drivers/net/plip.c | struct plipconf *pc = (struct plipconf *) &rq->ifr_data; |