tag | line | file | source code |
req | 340 | drivers/block/blk.h | struct request *req = ide_cur_rq[HWIF]; |
req | 343 | drivers/block/blk.h | struct request *req = CURRENT; |
req | 347 | drivers/block/blk.h | req->errors = 0; |
req | 350 | drivers/block/blk.h | (unsigned long)req->dev, req->sector); |
req | 351 | drivers/block/blk.h | req->nr_sectors--; |
req | 352 | drivers/block/blk.h | req->nr_sectors &= ~SECTOR_MASK; |
req | 353 | drivers/block/blk.h | req->sector += (BLOCK_SIZE / 512); |
req | 354 | drivers/block/blk.h | req->sector &= ~SECTOR_MASK; |
req | 357 | drivers/block/blk.h | if ((bh = req->bh) != NULL) { |
req | 358 | drivers/block/blk.h | req->bh = bh->b_reqnext; |
req | 363 | drivers/block/blk.h | if ((bh = req->bh) != NULL) { |
req | 364 | drivers/block/blk.h | req->current_nr_sectors = bh->b_size >> 9; |
req | 365 | drivers/block/blk.h | if (req->nr_sectors < req->current_nr_sectors) { |
req | 366 | drivers/block/blk.h | req->nr_sectors = req->current_nr_sectors; |
req | 369 | drivers/block/blk.h | req->buffer = bh->b_data; |
req | 376 | drivers/block/blk.h | DEVICE_OFF(req->dev); |
req | 377 | drivers/block/blk.h | CURRENT = req->next; |
req | 379 | drivers/block/blk.h | if (req->sem != NULL) |
req | 380 | drivers/block/blk.h | up(req->sem); |
req | 381 | drivers/block/blk.h | req->dev = -1; |
req | 1292 | drivers/block/ide-cd.c | struct request req, **p, **pfirst; |
req | 1297 | drivers/block/ide-cd.c | req.dev = MKDEV (major, (dev->select.b.drive) << PARTN_BITS); |
req | 1298 | drivers/block/ide-cd.c | req.cmd = PACKET_COMMAND; |
req | 1299 | drivers/block/ide-cd.c | req.errors = 0; |
req | 1300 | drivers/block/ide-cd.c | req.sector = 0; |
req | 1301 | drivers/block/ide-cd.c | req.nr_sectors = 0; |
req | 1302 | drivers/block/ide-cd.c | req.current_nr_sectors = 0; |
req | 1303 | drivers/block/ide-cd.c | req.buffer = (char *)pc; |
req | 1304 | drivers/block/ide-cd.c | req.sem = &sem; |
req | 1305 | drivers/block/ide-cd.c | req.bh = NULL; |
req | 1306 | drivers/block/ide-cd.c | req.bhtail = NULL; |
req | 1307 | drivers/block/ide-cd.c | req.next = NULL; |
req | 1318 | drivers/block/ide-cd.c | *p = &req; |
req | 126 | drivers/block/ll_rw_blk.c | struct request * req; |
req | 131 | drivers/block/ll_rw_blk.c | req = dev->current_request; |
req | 132 | drivers/block/ll_rw_blk.c | if (req && req->dev == -1 && req->cmd == -1) { |
req | 133 | drivers/block/ll_rw_blk.c | dev->current_request = req->next; |
req | 147 | drivers/block/ll_rw_blk.c | register struct request *req, *limit; |
req | 157 | drivers/block/ll_rw_blk.c | req = prev_found; |
req | 159 | drivers/block/ll_rw_blk.c | req = ((req > all_requests) ? req : limit) - 1; |
req | 160 | drivers/block/ll_rw_blk.c | if (req->dev < 0) |
req | 162 | drivers/block/ll_rw_blk.c | if (req == prev_found) |
req | 165 | drivers/block/ll_rw_blk.c | prev_found = req; |
req | 166 | drivers/block/ll_rw_blk.c | req->dev = dev; |
req | 167 | drivers/block/ll_rw_blk.c | return req; |
req | 175 | drivers/block/ll_rw_blk.c | register struct request *req; |
req | 183 | drivers/block/ll_rw_blk.c | req = get_request(n, dev); |
req | 185 | drivers/block/ll_rw_blk.c | if (req) |
req | 191 | drivers/block/ll_rw_blk.c | return req; |
req | 196 | drivers/block/ll_rw_blk.c | register struct request *req; |
req | 199 | drivers/block/ll_rw_blk.c | req = get_request(n, dev); |
req | 201 | drivers/block/ll_rw_blk.c | if (req) |
req | 202 | drivers/block/ll_rw_blk.c | return req; |
req | 236 | drivers/block/ll_rw_blk.c | static void add_request(struct blk_dev_struct * dev, struct request * req) |
req | 241 | drivers/block/ll_rw_blk.c | switch (MAJOR(req->dev)) { |
req | 242 | drivers/block/ll_rw_blk.c | case SCSI_DISK_MAJOR: disk_index = (MINOR(req->dev) & 0x0070) >> 4; |
req | 247 | drivers/block/ll_rw_blk.c | case XT_DISK_MAJOR: disk_index = (MINOR(req->dev) & 0x0040) >> 6; |
req | 250 | drivers/block/ll_rw_blk.c | case IDE1_MAJOR: disk_index = ((MINOR(req->dev) & 0x0040) >> 6) + 2; |
req | 255 | drivers/block/ll_rw_blk.c | req->next = NULL; |
req | 257 | drivers/block/ll_rw_blk.c | if (req->bh) |
req | 258 | drivers/block/ll_rw_blk.c | mark_buffer_clean(req->bh); |
req | 260 | drivers/block/ll_rw_blk.c | dev->current_request = req; |
req | 266 | drivers/block/ll_rw_blk.c | if ((IN_ORDER(tmp,req) || |
req | 268 | drivers/block/ll_rw_blk.c | IN_ORDER(req,tmp->next)) |
req | 271 | drivers/block/ll_rw_blk.c | req->next = tmp->next; |
req | 272 | drivers/block/ll_rw_blk.c | tmp->next = req; |
req | 275 | drivers/block/ll_rw_blk.c | if (scsi_major(MAJOR(req->dev))) |
req | 284 | drivers/block/ll_rw_blk.c | struct request * req; |
req | 338 | drivers/block/ll_rw_blk.c | && (req = blk_dev[major].current_request)) |
req | 345 | drivers/block/ll_rw_blk.c | req = req->next; |
req | 346 | drivers/block/ll_rw_blk.c | while (req) { |
req | 347 | drivers/block/ll_rw_blk.c | if (req->dev == bh->b_dev && |
req | 348 | drivers/block/ll_rw_blk.c | !req->sem && |
req | 349 | drivers/block/ll_rw_blk.c | req->cmd == rw && |
req | 350 | drivers/block/ll_rw_blk.c | req->sector + req->nr_sectors == sector && |
req | 351 | drivers/block/ll_rw_blk.c | req->nr_sectors < 244) |
req | 353 | drivers/block/ll_rw_blk.c | req->bhtail->b_reqnext = bh; |
req | 354 | drivers/block/ll_rw_blk.c | req->bhtail = bh; |
req | 355 | drivers/block/ll_rw_blk.c | req->nr_sectors += count; |
req | 361 | drivers/block/ll_rw_blk.c | if (req->dev == bh->b_dev && |
req | 362 | drivers/block/ll_rw_blk.c | !req->sem && |
req | 363 | drivers/block/ll_rw_blk.c | req->cmd == rw && |
req | 364 | drivers/block/ll_rw_blk.c | req->sector - count == sector && |
req | 365 | drivers/block/ll_rw_blk.c | req->nr_sectors < 244) |
req | 367 | drivers/block/ll_rw_blk.c | req->nr_sectors += count; |
req | 368 | drivers/block/ll_rw_blk.c | bh->b_reqnext = req->bh; |
req | 369 | drivers/block/ll_rw_blk.c | req->buffer = bh->b_data; |
req | 370 | drivers/block/ll_rw_blk.c | req->current_nr_sectors = count; |
req | 371 | drivers/block/ll_rw_blk.c | req->sector = sector; |
req | 373 | drivers/block/ll_rw_blk.c | req->bh = bh; |
req | 378 | drivers/block/ll_rw_blk.c | req = req->next; |
req | 383 | drivers/block/ll_rw_blk.c | req = get_request(max_req, bh->b_dev); |
req | 387 | drivers/block/ll_rw_blk.c | if (!req) { |
req | 392 | drivers/block/ll_rw_blk.c | req = __get_request_wait(max_req, bh->b_dev); |
req | 396 | drivers/block/ll_rw_blk.c | req->cmd = rw; |
req | 397 | drivers/block/ll_rw_blk.c | req->errors = 0; |
req | 398 | drivers/block/ll_rw_blk.c | req->sector = sector; |
req | 399 | drivers/block/ll_rw_blk.c | req->nr_sectors = count; |
req | 400 | drivers/block/ll_rw_blk.c | req->current_nr_sectors = count; |
req | 401 | drivers/block/ll_rw_blk.c | req->buffer = bh->b_data; |
req | 402 | drivers/block/ll_rw_blk.c | req->sem = NULL; |
req | 403 | drivers/block/ll_rw_blk.c | req->bh = bh; |
req | 404 | drivers/block/ll_rw_blk.c | req->bhtail = bh; |
req | 405 | drivers/block/ll_rw_blk.c | req->next = NULL; |
req | 406 | drivers/block/ll_rw_blk.c | add_request(major+blk_dev,req); |
req | 411 | drivers/block/ll_rw_blk.c | struct request * req; |
req | 426 | drivers/block/ll_rw_blk.c | req = get_request_wait(NR_REQUEST, dev); |
req | 428 | drivers/block/ll_rw_blk.c | req->cmd = rw; |
req | 429 | drivers/block/ll_rw_blk.c | req->errors = 0; |
req | 430 | drivers/block/ll_rw_blk.c | req->sector = sector; |
req | 431 | drivers/block/ll_rw_blk.c | req->nr_sectors = PAGE_SIZE / 512; |
req | 432 | drivers/block/ll_rw_blk.c | req->current_nr_sectors = PAGE_SIZE / 512; |
req | 433 | drivers/block/ll_rw_blk.c | req->buffer = buffer; |
req | 434 | drivers/block/ll_rw_blk.c | req->sem = &sem; |
req | 435 | drivers/block/ll_rw_blk.c | req->bh = NULL; |
req | 436 | drivers/block/ll_rw_blk.c | req->next = NULL; |
req | 437 | drivers/block/ll_rw_blk.c | add_request(major+blk_dev,req); |
req | 525 | drivers/block/ll_rw_blk.c | struct request * req[8]; |
req | 550 | drivers/block/ll_rw_blk.c | req[j] = get_request_wait(NR_REQUEST, dev); |
req | 553 | drivers/block/ll_rw_blk.c | req[j] = get_request(NR_REQUEST, dev); |
req | 555 | drivers/block/ll_rw_blk.c | if (req[j] == NULL) |
req | 558 | drivers/block/ll_rw_blk.c | req[j]->cmd = rw; |
req | 559 | drivers/block/ll_rw_blk.c | req[j]->errors = 0; |
req | 560 | drivers/block/ll_rw_blk.c | req[j]->sector = (b[i] * buffersize) >> 9; |
req | 561 | drivers/block/ll_rw_blk.c | req[j]->nr_sectors = buffersize >> 9; |
req | 562 | drivers/block/ll_rw_blk.c | req[j]->current_nr_sectors = buffersize >> 9; |
req | 563 | drivers/block/ll_rw_blk.c | req[j]->buffer = buf; |
req | 564 | drivers/block/ll_rw_blk.c | req[j]->sem = &sem; |
req | 565 | drivers/block/ll_rw_blk.c | req[j]->bh = NULL; |
req | 566 | drivers/block/ll_rw_blk.c | req[j]->next = NULL; |
req | 567 | drivers/block/ll_rw_blk.c | add_request(major+blk_dev,req[j]); |
req | 578 | drivers/block/ll_rw_blk.c | struct request * req; |
req | 580 | drivers/block/ll_rw_blk.c | req = all_requests + NR_REQUEST; |
req | 581 | drivers/block/ll_rw_blk.c | while (--req >= all_requests) { |
req | 582 | drivers/block/ll_rw_blk.c | req->dev = -1; |
req | 583 | drivers/block/ll_rw_blk.c | req->next = NULL; |
req | 2706 | drivers/char/serial.c | int register_serial(struct serial_struct *req) |
req | 2715 | drivers/char/serial.c | if (rs_table[i].port == req->port) |
req | 2732 | drivers/char/serial.c | "device already open\n", i, req->port, req->irq); |
req | 2735 | drivers/char/serial.c | info->irq = req->irq; |
req | 2736 | drivers/char/serial.c | info->port = req->port; |
req | 830 | drivers/scsi/scsi.c | Scsi_Cmnd * request_queueable (struct request * req, Scsi_Device * device) |
req | 840 | drivers/scsi/scsi.c | if (req && req->dev <= 0) |
req | 888 | drivers/scsi/scsi.c | if (req) { |
req | 889 | drivers/scsi/scsi.c | memcpy(&SCpnt->request, req, sizeof(struct request)); |
req | 891 | drivers/scsi/scsi.c | bhp = bh = req->bh; |
req | 897 | drivers/scsi/scsi.c | while(req->nr_sectors && bh){ |
req | 900 | drivers/scsi/scsi.c | req->nr_sectors -= bh->b_size >> 9; |
req | 901 | drivers/scsi/scsi.c | req->sector += bh->b_size >> 9; |
req | 905 | drivers/scsi/scsi.c | if(req->nr_sectors && bh && bh->b_reqnext){ /* Any leftovers? */ |
req | 907 | drivers/scsi/scsi.c | req->bh = bh->b_reqnext; /* Divide request */ |
req | 909 | drivers/scsi/scsi.c | bh = req->bh; |
req | 912 | drivers/scsi/scsi.c | SCpnt->request.nr_sectors -= req->nr_sectors; |
req | 913 | drivers/scsi/scsi.c | req->current_nr_sectors = bh->b_size >> 9; |
req | 914 | drivers/scsi/scsi.c | req->buffer = bh->b_data; |
req | 917 | drivers/scsi/scsi.c | req->dev = -1; |
req | 956 | drivers/scsi/scsi.c | struct request * req = NULL; |
req | 968 | drivers/scsi/scsi.c | if (reqp) req = *reqp; |
req | 971 | drivers/scsi/scsi.c | if (req && (dev = req->dev) <= 0) return NULL; |
req | 1018 | drivers/scsi/scsi.c | if (req && ((req->dev < 0) || (req->dev != dev))) { |
req | 1034 | drivers/scsi/scsi.c | if (req) { |
req | 1035 | drivers/scsi/scsi.c | memcpy(&SCpnt->request, req, sizeof(struct request)); |
req | 1037 | drivers/scsi/scsi.c | bhp = bh = req->bh; |
req | 1043 | drivers/scsi/scsi.c | while(req->nr_sectors && bh){ |
req | 1046 | drivers/scsi/scsi.c | req->nr_sectors -= bh->b_size >> 9; |
req | 1047 | drivers/scsi/scsi.c | req->sector += bh->b_size >> 9; |
req | 1051 | drivers/scsi/scsi.c | if(req->nr_sectors && bh && bh->b_reqnext){/* Any leftovers? */ |
req | 1053 | drivers/scsi/scsi.c | req->bh = bh->b_reqnext; /* Divide request */ |
req | 1055 | drivers/scsi/scsi.c | bh = req->bh; |
req | 1057 | drivers/scsi/scsi.c | SCpnt->request.nr_sectors -= req->nr_sectors; |
req | 1058 | drivers/scsi/scsi.c | req->current_nr_sectors = bh->b_size >> 9; |
req | 1059 | drivers/scsi/scsi.c | req->buffer = bh->b_data; |
req | 1064 | drivers/scsi/scsi.c | req->dev = -1; |
req | 1065 | drivers/scsi/scsi.c | *reqp = req->next; |
req | 3014 | drivers/scsi/scsi.c | struct request * req; |
req | 3016 | drivers/scsi/scsi.c | req = blk_dev[i].current_request; |
req | 3017 | drivers/scsi/scsi.c | while(req) { |
req | 3019 | drivers/scsi/scsi.c | req->dev, |
req | 3020 | drivers/scsi/scsi.c | req->cmd, |
req | 3021 | drivers/scsi/scsi.c | req->sector, |
req | 3022 | drivers/scsi/scsi.c | req->nr_sectors, |
req | 3023 | drivers/scsi/scsi.c | req->current_nr_sectors); |
req | 3024 | drivers/scsi/scsi.c | req = req->next; |
req | 567 | drivers/scsi/scsi.h | struct request * req; |
req | 570 | drivers/scsi/scsi.h | req = &SCpnt->request; |
req | 571 | drivers/scsi/scsi.h | req->errors = 0; |
req | 574 | drivers/scsi/scsi.h | req->dev,req->sector); |
req | 578 | drivers/scsi/scsi.h | if ((bh = req->bh) != NULL) { |
req | 579 | drivers/scsi/scsi.h | req->bh = bh->b_reqnext; |
req | 580 | drivers/scsi/scsi.h | req->nr_sectors -= bh->b_size >> 9; |
req | 581 | drivers/scsi/scsi.h | req->sector += bh->b_size >> 9; |
req | 586 | drivers/scsi/scsi.h | if ((bh = req->bh) != NULL) { |
req | 587 | drivers/scsi/scsi.h | req->current_nr_sectors = bh->b_size >> 9; |
req | 588 | drivers/scsi/scsi.h | if (req->nr_sectors < req->current_nr_sectors) { |
req | 589 | drivers/scsi/scsi.h | req->nr_sectors = req->current_nr_sectors; |
req | 595 | drivers/scsi/scsi.h | if (req->bh){ |
req | 596 | drivers/scsi/scsi.h | req->buffer = bh->b_data; |
req | 599 | drivers/scsi/scsi.h | DEVICE_OFF(req->dev); |
req | 600 | drivers/scsi/scsi.h | if (req->sem != NULL) { |
req | 601 | drivers/scsi/scsi.h | up(req->sem); |
req | 612 | drivers/scsi/scsi.h | req->dev = -1; |
req | 100 | drivers/scsi/scsi_ioctl.c | struct request * req; |
req | 102 | drivers/scsi/scsi_ioctl.c | req = &SCpnt->request; |
req | 103 | drivers/scsi/scsi_ioctl.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
req | 105 | drivers/scsi/scsi_ioctl.c | if (req->sem != NULL) { |
req | 106 | drivers/scsi/scsi_ioctl.c | up(req->sem); |
req | 386 | drivers/scsi/sd.c | struct request * req = NULL; |
req | 438 | drivers/scsi/sd.c | req = CURRENT; |
req | 439 | drivers/scsi/sd.c | while(req){ |
req | 440 | drivers/scsi/sd.c | SCpnt = request_queueable(req, rscsi_disks[DEVICE_NR(MINOR(req->dev))].device); |
req | 442 | drivers/scsi/sd.c | req1 = req; |
req | 443 | drivers/scsi/sd.c | req = req->next; |
req | 445 | drivers/scsi/sd.c | if (SCpnt && req->dev == -1) { |
req | 446 | drivers/scsi/sd.c | if (req == CURRENT) |
req | 449 | drivers/scsi/sd.c | req1->next = req->next; |
req | 887 | drivers/scsi/sd.c | struct request * req; |
req | 889 | drivers/scsi/sd.c | req = &SCpnt->request; |
req | 890 | drivers/scsi/sd.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
req | 892 | drivers/scsi/sd.c | if (req->sem != NULL) { |
req | 893 | drivers/scsi/sd.c | up(req->sem); |
req | 553 | drivers/scsi/sr.c | struct request * req = NULL; |
req | 585 | drivers/scsi/sr.c | req = CURRENT; |
req | 586 | drivers/scsi/sr.c | while(req){ |
req | 587 | drivers/scsi/sr.c | SCpnt = request_queueable(req, |
req | 588 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(MINOR(req->dev))].device); |
req | 590 | drivers/scsi/sr.c | req1 = req; |
req | 591 | drivers/scsi/sr.c | req = req->next; |
req | 593 | drivers/scsi/sr.c | if (SCpnt && req->dev == -1) { |
req | 594 | drivers/scsi/sr.c | if (req == CURRENT) |
req | 597 | drivers/scsi/sr.c | req1->next = req->next; |
req | 939 | drivers/scsi/sr.c | struct request * req; |
req | 941 | drivers/scsi/sr.c | req = &SCpnt->request; |
req | 942 | drivers/scsi/sr.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
req | 944 | drivers/scsi/sr.c | if (req->sem != NULL) { |
req | 945 | drivers/scsi/sr.c | up(req->sem); |
req | 29 | drivers/scsi/sr_ioctl.c | struct request * req; |
req | 31 | drivers/scsi/sr_ioctl.c | req = &SCpnt->request; |
req | 32 | drivers/scsi/sr_ioctl.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
req | 34 | drivers/scsi/sr_ioctl.c | if (req->sem != NULL) { |
req | 35 | drivers/scsi/sr_ioctl.c | up(req->sem); |
req | 181 | include/linux/serial.h | extern int register_serial(struct serial_struct *req); |
req | 1206 | net/ipv4/arp.c | static int arp_req_set(struct arpreq *req) |
req | 1215 | net/ipv4/arp.c | memcpy_fromfs(&r, req, sizeof(r)); |
req | 1343 | net/ipv4/arp.c | static int arp_req_get(struct arpreq *req) |
req | 1353 | net/ipv4/arp.c | memcpy_fromfs(&r, req, sizeof(r)); |
req | 1385 | net/ipv4/arp.c | memcpy_tofs(req, &r, sizeof(r)); |
req | 287 | net/ipv4/rarp.c | static int rarp_req_set(struct arpreq *req) |
req | 296 | net/ipv4/rarp.c | memcpy_fromfs(&r, req, sizeof(r)); |
req | 385 | net/ipv4/rarp.c | static int rarp_req_get(struct arpreq *req) |
req | 396 | net/ipv4/rarp.c | memcpy_fromfs(&r, req, sizeof(r)); |
req | 431 | net/ipv4/rarp.c | memcpy_tofs(req, &r, sizeof(r)); |