taglinefilesource code
req1359drivers/block/ide-cd.cstruct request req;
req1369drivers/block/ide-cd.cide_init_drive_cmd (&req);
req1370drivers/block/ide-cd.creq.cmd = PACKET_COMMAND;
req1371drivers/block/ide-cd.creq.buffer = (char *)pc;
req1372drivers/block/ide-cd.c(void) ide_do_drive_cmd (drive, &req, ide_wait);
req2419drivers/block/ide-cd.cstruct request req;
req2420drivers/block/ide-cd.cide_init_drive_cmd (&req);
req2421drivers/block/ide-cd.creq.cmd = RESET_DRIVE_COMMAND;
req2422drivers/block/ide-cd.creturn ide_do_drive_cmd (drive, &req, ide_wait);
req126drivers/block/ll_rw_blk.cstruct request * req;
req131drivers/block/ll_rw_blk.creq = dev->current_request;
req132drivers/block/ll_rw_blk.cif (req && req->rq_status == RQ_INACTIVE && req->cmd == -1) {
req133drivers/block/ll_rw_blk.cdev->current_request = req->next;
req147drivers/block/ll_rw_blk.cregister struct request *req, *limit;
req157drivers/block/ll_rw_blk.creq = prev_found;
req159drivers/block/ll_rw_blk.creq = ((req > all_requests) ? req : limit) - 1;
req160drivers/block/ll_rw_blk.cif (req->rq_status == RQ_INACTIVE)
req162drivers/block/ll_rw_blk.cif (req == prev_found)
req165drivers/block/ll_rw_blk.cprev_found = req;
req166drivers/block/ll_rw_blk.creq->rq_status = RQ_ACTIVE;
req167drivers/block/ll_rw_blk.creq->rq_dev = dev;
req168drivers/block/ll_rw_blk.creturn req;
req176drivers/block/ll_rw_blk.cregister struct request *req;
req184drivers/block/ll_rw_blk.creq = get_request(n, dev);
req186drivers/block/ll_rw_blk.cif (req)
req192drivers/block/ll_rw_blk.creturn req;
req197drivers/block/ll_rw_blk.cregister struct request *req;
req200drivers/block/ll_rw_blk.creq = get_request(n, dev);
req202drivers/block/ll_rw_blk.cif (req)
req203drivers/block/ll_rw_blk.creturn req;
req254drivers/block/ll_rw_blk.cstatic void add_request(struct blk_dev_struct * dev, struct request * req)
req259drivers/block/ll_rw_blk.cswitch (MAJOR(req->rq_dev)) {
req261drivers/block/ll_rw_blk.cdisk_index = (MINOR(req->rq_dev) & 0x0070) >> 4;
req263drivers/block/ll_rw_blk.cdrive_stat_acct(req->cmd, req->nr_sectors, disk_index);
req267drivers/block/ll_rw_blk.cdisk_index = (MINOR(req->rq_dev) & 0x0040) >> 6;
req268drivers/block/ll_rw_blk.cdrive_stat_acct(req->cmd, req->nr_sectors, disk_index);
req271drivers/block/ll_rw_blk.cdisk_index = ((MINOR(req->rq_dev) & 0x0040) >> 6) + 2;
req272drivers/block/ll_rw_blk.cdrive_stat_acct(req->cmd, req->nr_sectors, disk_index);
req277drivers/block/ll_rw_blk.creq->next = NULL;
req279drivers/block/ll_rw_blk.cif (req->bh)
req280drivers/block/ll_rw_blk.cmark_buffer_clean(req->bh);
req282drivers/block/ll_rw_blk.cdev->current_request = req;
req288drivers/block/ll_rw_blk.cif ((IN_ORDER(tmp,req) ||
req290drivers/block/ll_rw_blk.cIN_ORDER(req,tmp->next))
req293drivers/block/ll_rw_blk.creq->next = tmp->next;
req294drivers/block/ll_rw_blk.ctmp->next = req;
req297drivers/block/ll_rw_blk.cif (scsi_major(MAJOR(req->rq_dev)))
req306drivers/block/ll_rw_blk.cstruct request * req;
req372drivers/block/ll_rw_blk.c&& (req = blk_dev[major].current_request))
req375drivers/block/ll_rw_blk.creq = req->next;
req376drivers/block/ll_rw_blk.cwhile (req) {
req377drivers/block/ll_rw_blk.cif (req->rq_dev == bh->b_dev &&
req378drivers/block/ll_rw_blk.c!req->sem &&
req379drivers/block/ll_rw_blk.creq->cmd == rw &&
req380drivers/block/ll_rw_blk.creq->sector + req->nr_sectors == sector &&
req381drivers/block/ll_rw_blk.creq->nr_sectors < 244)
req383drivers/block/ll_rw_blk.creq->bhtail->b_reqnext = bh;
req384drivers/block/ll_rw_blk.creq->bhtail = bh;
req385drivers/block/ll_rw_blk.creq->nr_sectors += count;
req391drivers/block/ll_rw_blk.cif (req->rq_dev == bh->b_dev &&
req392drivers/block/ll_rw_blk.c!req->sem &&
req393drivers/block/ll_rw_blk.creq->cmd == rw &&
req394drivers/block/ll_rw_blk.creq->sector - count == sector &&
req395drivers/block/ll_rw_blk.creq->nr_sectors < 244)
req397drivers/block/ll_rw_blk.creq->nr_sectors += count;
req398drivers/block/ll_rw_blk.cbh->b_reqnext = req->bh;
req399drivers/block/ll_rw_blk.creq->buffer = bh->b_data;
req400drivers/block/ll_rw_blk.creq->current_nr_sectors = count;
req401drivers/block/ll_rw_blk.creq->sector = sector;
req403drivers/block/ll_rw_blk.creq->bh = bh;
req408drivers/block/ll_rw_blk.creq = req->next;
req413drivers/block/ll_rw_blk.creq = get_request(max_req, bh->b_dev);
req417drivers/block/ll_rw_blk.cif (!req) {
req422drivers/block/ll_rw_blk.creq = __get_request_wait(max_req, bh->b_dev);
req426drivers/block/ll_rw_blk.creq->cmd = rw;
req427drivers/block/ll_rw_blk.creq->errors = 0;
req428drivers/block/ll_rw_blk.creq->sector = sector;
req429drivers/block/ll_rw_blk.creq->nr_sectors = count;
req430drivers/block/ll_rw_blk.creq->current_nr_sectors = count;
req431drivers/block/ll_rw_blk.creq->buffer = bh->b_data;
req432drivers/block/ll_rw_blk.creq->sem = NULL;
req433drivers/block/ll_rw_blk.creq->bh = bh;
req434drivers/block/ll_rw_blk.creq->bhtail = bh;
req435drivers/block/ll_rw_blk.creq->next = NULL;
req436drivers/block/ll_rw_blk.cadd_request(major+blk_dev,req);
req441drivers/block/ll_rw_blk.cstruct request * req;
req464drivers/block/ll_rw_blk.creq = get_request_wait(NR_REQUEST, dev);
req466drivers/block/ll_rw_blk.creq->cmd = rw;
req467drivers/block/ll_rw_blk.creq->errors = 0;
req468drivers/block/ll_rw_blk.creq->sector = sector;
req469drivers/block/ll_rw_blk.creq->nr_sectors = PAGE_SIZE / 512;
req470drivers/block/ll_rw_blk.creq->current_nr_sectors = PAGE_SIZE / 512;
req471drivers/block/ll_rw_blk.creq->buffer = buffer;
req472drivers/block/ll_rw_blk.creq->sem = &sem;
req473drivers/block/ll_rw_blk.creq->bh = NULL;
req474drivers/block/ll_rw_blk.creq->next = NULL;
req475drivers/block/ll_rw_blk.cadd_request(major+blk_dev,req);
req562drivers/block/ll_rw_blk.cstruct request * req[8];
req590drivers/block/ll_rw_blk.creq[j] = get_request_wait(NR_REQUEST, dev);
req593drivers/block/ll_rw_blk.creq[j] = get_request(NR_REQUEST, dev);
req595drivers/block/ll_rw_blk.cif (req[j] == NULL)
req598drivers/block/ll_rw_blk.creq[j]->cmd = rw;
req599drivers/block/ll_rw_blk.creq[j]->errors = 0;
req600drivers/block/ll_rw_blk.creq[j]->sector = (b[i] * buffersize) >> 9;
req601drivers/block/ll_rw_blk.creq[j]->nr_sectors = buffersize >> 9;
req602drivers/block/ll_rw_blk.creq[j]->current_nr_sectors = buffersize >> 9;
req603drivers/block/ll_rw_blk.creq[j]->buffer = buf;
req604drivers/block/ll_rw_blk.creq[j]->sem = &sem;
req605drivers/block/ll_rw_blk.creq[j]->bh = NULL;
req606drivers/block/ll_rw_blk.creq[j]->next = NULL;
req607drivers/block/ll_rw_blk.cadd_request(major+blk_dev,req[j]);
req618drivers/block/ll_rw_blk.cstruct request * req;
req620drivers/block/ll_rw_blk.creq = all_requests + NR_REQUEST;
req621drivers/block/ll_rw_blk.cwhile (--req >= all_requests) {
req622drivers/block/ll_rw_blk.creq->rq_status = RQ_INACTIVE;
req623drivers/block/ll_rw_blk.creq->next = NULL;
req2777drivers/char/serial.cint register_serial(struct serial_struct *req)
req2786drivers/char/serial.cif (rs_table[i].port == req->port)
req2803drivers/char/serial.c"device already open\n", i, req->port, req->irq);
req2806drivers/char/serial.cinfo->irq = req->irq;
req2807drivers/char/serial.cinfo->port = req->port;
req835drivers/scsi/scsi.cScsi_Cmnd * request_queueable (struct request * req, Scsi_Device * device)
req845drivers/scsi/scsi.cif (req && req->rq_status == RQ_INACTIVE)
req893drivers/scsi/scsi.cif (req) {
req894drivers/scsi/scsi.cmemcpy(&SCpnt->request, req, sizeof(struct request));
req896drivers/scsi/scsi.cbhp = bh = req->bh;
req902drivers/scsi/scsi.cwhile(req->nr_sectors && bh){
req905drivers/scsi/scsi.creq->nr_sectors -= bh->b_size >> 9;
req906drivers/scsi/scsi.creq->sector += bh->b_size >> 9;
req910drivers/scsi/scsi.cif(req->nr_sectors && bh && bh->b_reqnext){  /* Any leftovers? */
req912drivers/scsi/scsi.creq->bh = bh->b_reqnext; /* Divide request */
req914drivers/scsi/scsi.cbh = req->bh;
req917drivers/scsi/scsi.cSCpnt->request.nr_sectors -= req->nr_sectors;
req918drivers/scsi/scsi.creq->current_nr_sectors = bh->b_size >> 9;
req919drivers/scsi/scsi.creq->buffer = bh->b_data;
req922drivers/scsi/scsi.creq->rq_status = RQ_INACTIVE;
req961drivers/scsi/scsi.cstruct request * req = NULL;
req973drivers/scsi/scsi.cif (reqp) req = *reqp;
req976drivers/scsi/scsi.cif (req) {
req977drivers/scsi/scsi.cif(req->rq_status == RQ_INACTIVE) return NULL;
req978drivers/scsi/scsi.cdev = req->rq_dev;
req1027drivers/scsi/scsi.cif (req && (req->rq_status == RQ_INACTIVE || req->rq_dev != dev)) {
req1043drivers/scsi/scsi.cif (req) {
req1044drivers/scsi/scsi.cmemcpy(&SCpnt->request, req, sizeof(struct request));
req1046drivers/scsi/scsi.cbhp = bh = req->bh;
req1052drivers/scsi/scsi.cwhile(req->nr_sectors && bh){
req1055drivers/scsi/scsi.creq->nr_sectors -= bh->b_size >> 9;
req1056drivers/scsi/scsi.creq->sector += bh->b_size >> 9;
req1060drivers/scsi/scsi.cif(req->nr_sectors && bh && bh->b_reqnext){/* Any leftovers? */
req1062drivers/scsi/scsi.creq->bh = bh->b_reqnext; /* Divide request */
req1064drivers/scsi/scsi.cbh = req->bh;
req1066drivers/scsi/scsi.cSCpnt->request.nr_sectors -= req->nr_sectors;
req1067drivers/scsi/scsi.creq->current_nr_sectors = bh->b_size >> 9;
req1068drivers/scsi/scsi.creq->buffer = bh->b_data;
req1073drivers/scsi/scsi.creq->rq_status = RQ_INACTIVE;
req1074drivers/scsi/scsi.c*reqp = req->next;
req3101drivers/scsi/scsi.cstruct request * req;
req3103drivers/scsi/scsi.creq = blk_dev[i].current_request;
req3104drivers/scsi/scsi.cwhile(req) {
req3106drivers/scsi/scsi.ckdevname(req->rq_dev),
req3107drivers/scsi/scsi.creq->cmd,
req3108drivers/scsi/scsi.creq->sector,
req3109drivers/scsi/scsi.creq->nr_sectors,
req3110drivers/scsi/scsi.creq->current_nr_sectors);
req3111drivers/scsi/scsi.creq = req->next;
req460drivers/scsi/scsi.hstruct request * req;
req463drivers/scsi/scsi.hreq = &SCpnt->request;
req464drivers/scsi/scsi.hreq->errors = 0;
req467drivers/scsi/scsi.hkdevname(req->rq_dev), req->sector);
req471drivers/scsi/scsi.hif ((bh = req->bh) != NULL) {
req472drivers/scsi/scsi.hreq->bh = bh->b_reqnext;
req473drivers/scsi/scsi.hreq->nr_sectors -= bh->b_size >> 9;
req474drivers/scsi/scsi.hreq->sector += bh->b_size >> 9;
req479drivers/scsi/scsi.hif ((bh = req->bh) != NULL) {
req480drivers/scsi/scsi.hreq->current_nr_sectors = bh->b_size >> 9;
req481drivers/scsi/scsi.hif (req->nr_sectors < req->current_nr_sectors) {
req482drivers/scsi/scsi.hreq->nr_sectors = req->current_nr_sectors;
req488drivers/scsi/scsi.hif (req->bh){
req489drivers/scsi/scsi.hreq->buffer = bh->b_data;
req492drivers/scsi/scsi.hDEVICE_OFF(req->rq_dev);
req493drivers/scsi/scsi.hif (req->sem != NULL) {
req494drivers/scsi/scsi.hup(req->sem);
req505drivers/scsi/scsi.hreq->rq_status = RQ_INACTIVE;
req94drivers/scsi/scsi_ioctl.cstruct request * req;
req96drivers/scsi/scsi_ioctl.creq = &SCpnt->request;
req97drivers/scsi/scsi_ioctl.creq->rq_status = RQ_SCSI_DONE; /* Busy, but indicate request done */
req99drivers/scsi/scsi_ioctl.cif (req->sem != NULL) {
req100drivers/scsi/scsi_ioctl.cup(req->sem);
req410drivers/scsi/sd.cstruct request * req = NULL;
req483drivers/scsi/sd.creq = CURRENT;
req484drivers/scsi/sd.cwhile(req){
req485drivers/scsi/sd.cSCpnt = request_queueable(req, rscsi_disks[DEVICE_NR(req->rq_dev)].device);
req487drivers/scsi/sd.creq1 = req;
req488drivers/scsi/sd.creq = req->next;
req490drivers/scsi/sd.cif (SCpnt && req->rq_status == RQ_INACTIVE) {
req491drivers/scsi/sd.cif (req == CURRENT) 
req494drivers/scsi/sd.creq1->next = req->next;
req942drivers/scsi/sd.cstruct request * req;
req944drivers/scsi/sd.creq = &SCpnt->request;
req945drivers/scsi/sd.creq->rq_status = RQ_SCSI_DONE; /* Busy, but indicate request done */
req947drivers/scsi/sd.cif (req->sem != NULL) {
req948drivers/scsi/sd.cup(req->sem);
req558drivers/scsi/sr.cstruct request * req = NULL;
req613drivers/scsi/sr.creq = CURRENT;
req614drivers/scsi/sr.cwhile(req){
req615drivers/scsi/sr.cSCpnt = request_queueable(req,
req616drivers/scsi/sr.cscsi_CDs[DEVICE_NR(req->rq_dev)].device);
req618drivers/scsi/sr.creq1 = req;
req619drivers/scsi/sr.creq = req->next;
req621drivers/scsi/sr.cif (SCpnt && req->rq_status == RQ_INACTIVE) {
req622drivers/scsi/sr.cif (req == CURRENT) 
req625drivers/scsi/sr.creq1->next = req->next;
req965drivers/scsi/sr.cstruct request * req;
req967drivers/scsi/sr.creq = &SCpnt->request;
req968drivers/scsi/sr.creq->rq_status = RQ_SCSI_DONE; /* Busy, but indicate request done */
req970drivers/scsi/sr.cif (req->sem != NULL) {
req971drivers/scsi/sr.cup(req->sem);
req23drivers/scsi/sr_ioctl.cstruct request * req;
req25drivers/scsi/sr_ioctl.creq = &SCpnt->request;
req26drivers/scsi/sr_ioctl.creq->rq_status = RQ_SCSI_DONE; /* Busy, but indicate request done */
req28drivers/scsi/sr_ioctl.cif (req->sem != NULL) {
req29drivers/scsi/sr_ioctl.cup(req->sem);
req349include/linux/blk.hstruct request *req = hwgroup->rq;
req352include/linux/blk.hstruct request *req = CURRENT;
req356include/linux/blk.hreq->errors = 0;
req359include/linux/blk.hkdevname(req->rq_dev), req->sector);
req360include/linux/blk.hreq->nr_sectors--;
req361include/linux/blk.hreq->nr_sectors &= ~SECTOR_MASK;
req362include/linux/blk.hreq->sector += (BLOCK_SIZE / 512);
req363include/linux/blk.hreq->sector &= ~SECTOR_MASK;    
req366include/linux/blk.hif ((bh = req->bh) != NULL) {
req367include/linux/blk.hreq->bh = bh->b_reqnext;
req371include/linux/blk.hif ((bh = req->bh) != NULL) {
req372include/linux/blk.hreq->current_nr_sectors = bh->b_size >> 9;
req373include/linux/blk.hif (req->nr_sectors < req->current_nr_sectors) {
req374include/linux/blk.hreq->nr_sectors = req->current_nr_sectors;
req377include/linux/blk.hreq->buffer = bh->b_data;
req382include/linux/blk.hadd_blkdev_randomness(MAJOR(req->rq_dev));
req385include/linux/blk.hblk_dev[MAJOR(req->rq_dev)].current_request = req->next;
req388include/linux/blk.hDEVICE_OFF(req->rq_dev);
req389include/linux/blk.hCURRENT = req->next;
req391include/linux/blk.hif (req->sem != NULL)
req392include/linux/blk.hup(req->sem);
req393include/linux/blk.hreq->rq_status = RQ_INACTIVE;
req203include/linux/serial.hextern int register_serial(struct serial_struct *req);
req283net/ipv4/rarp.cstatic int rarp_req_set(struct arpreq *req)
req293net/ipv4/rarp.cmemcpy_fromfs(&r, req, sizeof(r));
req384net/ipv4/rarp.cstatic int rarp_req_get(struct arpreq *req)
req395net/ipv4/rarp.cmemcpy_fromfs(&r, req, sizeof(r));
req430net/ipv4/rarp.cmemcpy_tofs(req, &r, sizeof(r));