taglinefilesource code
rq345drivers/block/blk.hstruct request *req = hwgroup->rq;
rq379drivers/block/blk.hhwgroup->rq = NULL;
rq458drivers/block/ide-cd.cstatic void restore_request (struct request *rq)
rq460drivers/block/ide-cd.cif (rq->buffer != rq->bh->b_data)
rq462drivers/block/ide-cd.cint n = (rq->buffer - rq->bh->b_data) / SECTOR_SIZE;
rq463drivers/block/ide-cd.crq->buffer = rq->bh->b_data;
rq464drivers/block/ide-cd.crq->nr_sectors += n;
rq465drivers/block/ide-cd.crq->sector -= n;
rq467drivers/block/ide-cd.crq->current_nr_sectors = rq->bh->b_size >> SECTOR_BITS;
rq475drivers/block/ide-cd.cstruct request *rq;
rq485drivers/block/ide-cd.crq = HWGROUP(drive)->rq;
rq488drivers/block/ide-cd.cif (rq != NULL)
rq490drivers/block/ide-cd.crestore_request (rq);
rq491drivers/block/ide-cd.crq->next = blk_dev[major].current_request;
rq492drivers/block/ide-cd.cblk_dev[major].current_request = rq;
rq493drivers/block/ide-cd.cHWGROUP(drive)->rq = NULL;
rq523drivers/block/ide-cd.crq = &HWIF(drive)->request_sense_request;
rq524drivers/block/ide-cd.crq->dev = MKDEV (major, (drive->select.b.unit) << PARTN_BITS);
rq525drivers/block/ide-cd.crq->cmd = REQUEST_SENSE_COMMAND;
rq526drivers/block/ide-cd.crq->errors = 0;
rq527drivers/block/ide-cd.crq->sector = 0;
rq528drivers/block/ide-cd.crq->nr_sectors = 0;
rq529drivers/block/ide-cd.crq->current_nr_sectors = 0;
rq530drivers/block/ide-cd.crq->buffer = (char *)pc;
rq531drivers/block/ide-cd.crq->sem = sem;
rq532drivers/block/ide-cd.crq->bh = NULL;
rq533drivers/block/ide-cd.crq->bhtail = NULL;
rq534drivers/block/ide-cd.crq->next = NULL;
rq540drivers/block/ide-cd.crq->next = blk_dev[major].current_request;
rq541drivers/block/ide-cd.cblk_dev[major].current_request = rq;
rq549drivers/block/ide-cd.cstruct request *rq = HWGROUP(drive)->rq;
rq553drivers/block/ide-cd.cif (!uptodate && rq->bh != 0)
rq555drivers/block/ide-cd.cint adj = rq->current_nr_sectors - 1;
rq556drivers/block/ide-cd.crq->current_nr_sectors -= adj;
rq557drivers/block/ide-cd.crq->sector += adj;
rq560drivers/block/ide-cd.cif (rq->cmd == REQUEST_SENSE_COMMAND && uptodate)
rq562drivers/block/ide-cd.cstruct packet_command *pc = (struct packet_command *)rq->buffer;
rq584drivers/block/ide-cd.cstruct request *rq = HWGROUP(drive)->rq;
rq598drivers/block/ide-cd.cif (rq == NULL)
rq602drivers/block/ide-cd.ccmd = rq->cmd;
rq610drivers/block/ide-cd.cstruct packet_command *pc = (struct packet_command *)rq->buffer;
rq621drivers/block/ide-cd.cstruct packet_command *pc = (struct packet_command *)rq->buffer;
rq661drivers/block/ide-cd.csem = rq->sem;
rq662drivers/block/ide-cd.crq->sem = NULL;
rq693drivers/block/ide-cd.cif (++rq->errors > ERROR_MAX)
rq714drivers/block/ide-cd.celse if ((++rq->errors > ERROR_MAX))
rq907drivers/block/ide-cd.cstruct request *rq = HWGROUP(drive)->rq;
rq921drivers/block/ide-cd.cif (rq->current_nr_sectors > 0)
rq924drivers/block/ide-cd.cdrive->name, rq->current_nr_sectors);
rq953drivers/block/ide-cd.cnskip = MIN ((int)(rq->current_nr_sectors - (rq->bh->b_size >> SECTOR_BITS)),
rq962drivers/block/ide-cd.c--rq->current_nr_sectors;
rq974drivers/block/ide-cd.cif (rq->current_nr_sectors == 0 &&
rq975drivers/block/ide-cd.crq->nr_sectors > 0)
rq980drivers/block/ide-cd.cif (rq->current_nr_sectors == 0)
rq982drivers/block/ide-cd.ccdrom_buffer_sectors (drive, rq->sector, sectors_to_transfer);
rq991drivers/block/ide-cd.crq->current_nr_sectors);
rq996drivers/block/ide-cd.ccdrom_in_bytes (drive, rq->buffer, SECTOR_SIZE);
rq997drivers/block/ide-cd.crq->buffer += SECTOR_SIZE;
rq998drivers/block/ide-cd.c--rq->nr_sectors;
rq999drivers/block/ide-cd.c--rq->current_nr_sectors;
rq1000drivers/block/ide-cd.c++rq->sector;
rq1020drivers/block/ide-cd.cstruct request *rq = HWGROUP(drive)->rq;
rq1027drivers/block/ide-cd.cwhile (rq->nr_sectors > 0 &&
rq1028drivers/block/ide-cd.crq->sector >= info->sector_buffered &&
rq1029drivers/block/ide-cd.crq->sector < info->sector_buffered + info->nsectors_buffered)
rq1031drivers/block/ide-cd.cif (rq->current_nr_sectors == 0)
rq1034drivers/block/ide-cd.cmemcpy (rq->buffer,
rq1036drivers/block/ide-cd.c(rq->sector - info->sector_buffered) * SECTOR_SIZE,
rq1038drivers/block/ide-cd.crq->buffer += SECTOR_SIZE;
rq1039drivers/block/ide-cd.c--rq->current_nr_sectors;
rq1040drivers/block/ide-cd.c--rq->nr_sectors;
rq1041drivers/block/ide-cd.c++rq->sector;
rq1045drivers/block/ide-cd.cif (rq->nr_sectors == 0)
rq1052drivers/block/ide-cd.cif (rq->current_nr_sectors == 0)
rq1059drivers/block/ide-cd.cif (rq->current_nr_sectors < (rq->bh->b_size >> SECTOR_BITS) &&
rq1060drivers/block/ide-cd.c(rq->sector % SECTORS_PER_FRAME) != 0)
rq1063drivers/block/ide-cd.cdrive->name, rq->sector);
rq1082drivers/block/ide-cd.cstruct request *rq = HWGROUP(drive)->rq;
rq1087drivers/block/ide-cd.cnsect = rq->nr_sectors;
rq1090drivers/block/ide-cd.csector = rq->sector;
rq1102drivers/block/ide-cd.cif (rq->current_nr_sectors != (rq->bh->b_size >> SECTOR_BITS))
rq1105drivers/block/ide-cd.cdrive->name, rq->current_nr_sectors);
rq1113drivers/block/ide-cd.crq->current_nr_sectors += nskip;
rq1156drivers/block/ide-cd.cstruct request *rq = HWGROUP(drive)->rq;
rq1160drivers/block/ide-cd.crestore_request (rq);
rq1191drivers/block/ide-cd.cstruct request *rq = HWGROUP(drive)->rq;
rq1192drivers/block/ide-cd.cstruct packet_command *pc = (struct packet_command *)rq->buffer;
rq1304drivers/block/ide-cd.cstruct request *rq = HWGROUP(drive)->rq;
rq1305drivers/block/ide-cd.cstruct packet_command *pc = (struct packet_command *)rq->buffer;
rq1318drivers/block/ide-cd.cstruct request *rq = HWGROUP(drive)->rq;
rq1319drivers/block/ide-cd.cstruct packet_command *pc = (struct packet_command *)rq->buffer;
rq1456drivers/block/ide-cd.cstruct request *rq = HWGROUP(drive)->rq;
rq1458drivers/block/ide-cd.cif (rq -> cmd == PACKET_COMMAND || rq -> cmd == REQUEST_SENSE_COMMAND)
rq1461drivers/block/ide-cd.celse if (rq -> cmd == RESET_DRIVE_COMMAND)
rq1468drivers/block/ide-cd.celse if (rq -> cmd != READ)
rq1470drivers/block/ide-cd.cprintk ("ide-cd: bad cmd %d\n", rq -> cmd);
rq746drivers/block/ide.cstruct request *rq = HWGROUP(drive)->rq;
rq747drivers/block/ide.cbyte *args = (byte *) rq->buffer;
rq749drivers/block/ide.crq->errors = !OK_STAT(stat,READY_STAT,BAD_STAT);
rq757drivers/block/ide.cup(rq->sem);
rq758drivers/block/ide.cHWGROUP(drive)->rq = NULL;
rq819drivers/block/ide.cif (HWGROUP(drive)->rq)
rq820drivers/block/ide.cprintk(", sector=%ld", HWGROUP(drive)->rq->sector);
rq858drivers/block/ide.cstruct request *rq;
rq862drivers/block/ide.cif ((rq = HWGROUP(drive)->rq) == NULL || drive == NULL)
rq864drivers/block/ide.cif (rq->cmd == IDE_DRIVE_CMD) {  /* never retry an explicit DRIVE_CMD */
rq869drivers/block/ide.crq->errors |= ERROR_RESET;
rq874drivers/block/ide.crq->errors = ERROR_MAX;
rq876drivers/block/ide.crq->errors |= ERROR_RECAL;
rq878drivers/block/ide.cif ((stat & DRQ_STAT) && rq->cmd != WRITE)
rq882drivers/block/ide.crq->errors |= ERROR_RESET;  /* Mmmm.. timing problem */
rq885drivers/block/ide.cif (rq->errors > 3 && drive->using_dma) {  /* DMA troubles? */
rq888drivers/block/ide.c--rq->errors;
rq892drivers/block/ide.cif (rq->errors >= ERROR_MAX)
rq895drivers/block/ide.cif ((rq->errors & ERROR_RESET) == ERROR_RESET) {
rq896drivers/block/ide.c++rq->errors;
rq898drivers/block/ide.c} else if ((rq->errors & ERROR_RECAL) == ERROR_RECAL)
rq900drivers/block/ide.c++rq->errors;
rq913drivers/block/ide.cstruct request *rq;
rq923drivers/block/ide.crq = HWGROUP(drive)->rq;
rq925drivers/block/ide.cif ((nsect = rq->current_nr_sectors) > msect)
rq930drivers/block/ide.cide_input_data(drive, rq->buffer, nsect * SECTOR_WORDS);
rq933drivers/block/ide.cdrive->name, rq->sector, rq->sector+nsect-1,
rq934drivers/block/ide.c(unsigned long) rq->buffer+(nsect<<9), rq->nr_sectors-nsect);
rq936drivers/block/ide.crq->sector += nsect;
rq937drivers/block/ide.crq->buffer += nsect<<9;
rq938drivers/block/ide.crq->errors = 0;
rq939drivers/block/ide.ci = (rq->nr_sectors -= nsect);
rq940drivers/block/ide.cif ((rq->current_nr_sectors -= nsect) <= 0)
rq958drivers/block/ide.cstruct request *rq = HWGROUP(drive)->rq;
rq963drivers/block/ide.cdrive->name, rq->sector, (unsigned long) rq->buffer,
rq964drivers/block/ide.crq->nr_sectors-1);
rq966drivers/block/ide.cif ((rq->nr_sectors == 1) ^ ((stat & DRQ_STAT) != 0)) {
rq967drivers/block/ide.crq->sector++;
rq968drivers/block/ide.crq->buffer += 512;
rq969drivers/block/ide.crq->errors = 0;
rq970drivers/block/ide.ci = --rq->nr_sectors;
rq971drivers/block/ide.c--rq->current_nr_sectors;
rq972drivers/block/ide.cif (rq->current_nr_sectors <= 0)
rq975drivers/block/ide.cide_output_data (drive, rq->buffer, SECTOR_WORDS);
rq994drivers/block/ide.cstruct request *rq = &HWGROUP(drive)->wrq;
rq998drivers/block/ide.cunsigned int nsect = rq->current_nr_sectors;
rq1003drivers/block/ide.cide_output_data(drive, rq->buffer, nsect<<7);
rq1006drivers/block/ide.cdrive->name, rq->sector, (unsigned long) rq->buffer,
rq1007drivers/block/ide.cnsect, rq->nr_sectors - nsect);
rq1009drivers/block/ide.cif ((rq->nr_sectors -= nsect) <= 0)
rq1011drivers/block/ide.cif ((rq->current_nr_sectors -= nsect) == 0) {
rq1012drivers/block/ide.cif ((rq->bh = rq->bh->b_reqnext) != NULL) {
rq1013drivers/block/ide.crq->current_nr_sectors = rq->bh->b_size>>9;
rq1014drivers/block/ide.crq->buffer             = rq->bh->b_data;
rq1020drivers/block/ide.crq->buffer += nsect << 9;
rq1032drivers/block/ide.cstruct request *rq = &HWGROUP(drive)->wrq;
rq1036drivers/block/ide.cif (rq->nr_sectors) {
rq1042drivers/block/ide.cif (!rq->nr_sectors) {  /* all done? */
rq1043drivers/block/ide.crq = HWGROUP(drive)->rq;
rq1044drivers/block/ide.cfor (i = rq->nr_sectors; i > 0;){
rq1045drivers/block/ide.ci -= rq->current_nr_sectors;
rq1214drivers/block/ide.cstatic inline void do_rw_disk (ide_drive_t *drive, struct request *rq, unsigned long block)
rq1219drivers/block/ide.cOUT_BYTE(rq->nr_sectors,io_base+IDE_NSECTOR_OFFSET);
rq1223drivers/block/ide.cdrive->name, (rq->cmd==READ)?"read":"writ", 
rq1224drivers/block/ide.cblock, rq->nr_sectors, (unsigned long) rq->buffer);
rq1242drivers/block/ide.cdrive->name, (rq->cmd==READ)?"read":"writ", cyl,
rq1243drivers/block/ide.chead, sect, rq->nr_sectors, (unsigned long) rq->buffer);
rq1246drivers/block/ide.cif (rq->cmd == READ) {
rq1255drivers/block/ide.cif (rq->cmd == WRITE) {
rq1269drivers/block/ide.cHWGROUP(drive)->wrq = *rq; /* scratchpad */
rq1274drivers/block/ide.cide_output_data(drive, rq->buffer, SECTOR_WORDS);
rq1278drivers/block/ide.cif (rq->cmd == IDE_DRIVE_CMD) {
rq1279drivers/block/ide.cbyte *args = rq->buffer;
rq1298drivers/block/ide.cprintk("%s: bad command: %d\n", drive->name, rq->cmd);
rq1305drivers/block/ide.cstatic inline void do_request (ide_hwif_t *hwif, struct request *rq)
rq1313drivers/block/ide.cprintk("%s: ide_do_request: current=0x%08lx\n", hwif->name, (unsigned long) rq);
rq1315drivers/block/ide.cminor = MINOR(rq->dev);
rq1317drivers/block/ide.cif (MAJOR(rq->dev) != hwif->major || unit >= MAX_DRIVES) {
rq1318drivers/block/ide.cprintk("%s: bad device number: 0x%04x\n", hwif->name, rq->dev);
rq1323drivers/block/ide.cif (rq->bh && !rq->bh->b_lock) {
rq1328drivers/block/ide.cblock    = rq->sector;
rq1329drivers/block/ide.cblockend = block + rq->nr_sectors;
rq1332drivers/block/ide.c(minor&PARTN_MASK)?'0'+(minor&PARTN_MASK):' ', block, rq->nr_sectors);
rq1354drivers/block/ide.cdo_rw_disk (drive, rq, block);
rq1365drivers/block/ide.cdo_rw_disk (drive, rq, block); /* simpler and faster */
rq1399drivers/block/ide.cstruct request *rq;
rq1400drivers/block/ide.cif ((rq = hwgroup->rq) == NULL) {
rq1403drivers/block/ide.crq = blk_dev[hwif->major].current_request;
rq1404drivers/block/ide.cif (rq != NULL && rq->dev != -1)
rq1409drivers/block/ide.cblk_dev[hwif->major].current_request = rq->next;
rq1411drivers/block/ide.cdo_request(hwgroup->hwif = hwif, hwgroup->rq = rq);
rq1606drivers/block/ide.cstruct request rq, *cur_rq;
rq1611drivers/block/ide.crq.buffer = args;
rq1612drivers/block/ide.crq.cmd = IDE_DRIVE_CMD;
rq1613drivers/block/ide.crq.errors = 0;
rq1614drivers/block/ide.crq.sector = 0;
rq1615drivers/block/ide.crq.nr_sectors = 0;
rq1616drivers/block/ide.crq.current_nr_sectors = 0;
rq1617drivers/block/ide.crq.sem = &sem;
rq1618drivers/block/ide.crq.bh = NULL;
rq1619drivers/block/ide.crq.bhtail = NULL;
rq1620drivers/block/ide.crq.next = NULL;
rq1621drivers/block/ide.crq.dev = rdev;
rq1628drivers/block/ide.cbdev->current_request = &rq;  /* service ours immediately */
rq1633drivers/block/ide.ccur_rq->next = &rq;    /* add rq to the end */
rq1638drivers/block/ide.creturn rq.errors ? -EIO : 0;    /* return -EIO if errors */
rq2740drivers/block/ide.chwgroup->rq      = NULL;
rq334drivers/block/ide.hstruct request    *rq;  /* current request */
rq114drivers/block/triton.cstruct request *rq = HWGROUP(drive)->rq;
rq122drivers/block/triton.crq = HWGROUP(drive)->rq;
rq123drivers/block/triton.cfor (i = rq->nr_sectors; i > 0;) {
rq124drivers/block/triton.ci -= rq->current_nr_sectors;
rq143drivers/block/triton.cstruct request *rq = HWGROUP(drive)->rq;
rq144drivers/block/triton.cstruct buffer_head *bh = rq->bh;
rq157drivers/block/triton.caddr = virt_to_bus (rq->buffer);
rq158drivers/block/triton.csize = rq->nr_sectors << 9;
rq410drivers/net/de4x5.cstatic int     de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd);
rq2494drivers/net/de4x5.cstatic int de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd)
rq2497drivers/net/de4x5.cstruct de4x5_ioctl *ioc = (struct de4x5_ioctl *) &rq->ifr_data;
rq371drivers/net/depca.cstatic int    depca_ioctl(struct device *dev, struct ifreq *rq, int cmd);
rq1657drivers/net/depca.cstatic int depca_ioctl(struct device *dev, struct ifreq *rq, int cmd)
rq1660drivers/net/depca.cstruct depca_ioctl *ioc = (struct depca_ioctl *) &rq->ifr_data;
rq297drivers/net/ewrk3.cstatic int ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd);
rq1611drivers/net/ewrk3.cstatic int ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd)
rq1614drivers/net/ewrk3.cstruct ewrk3_ioctl *ioc = (struct ewrk3_ioctl *) &rq->ifr_data;
rq1603drivers/net/pi2.cstruct pi_req rq;
rq1613drivers/net/pi2.cmemcpy_fromfs(&rq, ifr->ifr_data, sizeof(struct pi_req));
rq1615drivers/net/pi2.cswitch (rq.cmd) {
rq1622drivers/net/pi2.clp->txdelay = rq.txdelay;
rq1623drivers/net/pi2.clp->persist = rq.persist;
rq1624drivers/net/pi2.clp->slotime = rq.slotime;
rq1625drivers/net/pi2.clp->squeldelay = rq.squeldelay;
rq1626drivers/net/pi2.clp->clockmode = rq.clockmode;
rq1627drivers/net/pi2.clp->speed = rq.speed;
rq1639drivers/net/pi2.cif (rq.dmachan < 1 || rq.dmachan > 3)
rq1645drivers/net/pi2.cdev->dma = lp->dmachan = rq.dmachan;
rq1661drivers/net/pi2.crq.speed = lp->speed;
rq1662drivers/net/pi2.crq.txdelay = lp->txdelay;
rq1663drivers/net/pi2.crq.persist = lp->persist;
rq1664drivers/net/pi2.crq.slotime = lp->slotime;
rq1665drivers/net/pi2.crq.squeldelay = lp->squeldelay;
rq1666drivers/net/pi2.crq.clockmode = lp->clockmode;
rq1667drivers/net/pi2.crq.dmachan = lp->dmachan;
rq1668drivers/net/pi2.crq.irq = dev->irq;
rq1669drivers/net/pi2.cmemcpy_tofs(ifr->ifr_data, &rq, sizeof(struct pi_req));
rq1017drivers/net/plip.cplip_ioctl(struct device *dev, struct ifreq *rq, int cmd)
rq1020drivers/net/plip.cstruct plipconf *pc = (struct plipconf *) &rq->ifr_data;