tag | line | file | source code |
req | 267 | drivers/block/blk.h | struct request *req = ide_cur_rq[HWIF]; |
req | 270 | drivers/block/blk.h | struct request *req = CURRENT; |
req | 274 | drivers/block/blk.h | req->errors = 0; |
req | 277 | drivers/block/blk.h | (unsigned long)req->dev, req->sector); |
req | 278 | drivers/block/blk.h | req->nr_sectors--; |
req | 279 | drivers/block/blk.h | req->nr_sectors &= ~SECTOR_MASK; |
req | 280 | drivers/block/blk.h | req->sector += (BLOCK_SIZE / 512); |
req | 281 | drivers/block/blk.h | req->sector &= ~SECTOR_MASK; |
req | 284 | drivers/block/blk.h | if ((bh = req->bh) != NULL) { |
req | 285 | drivers/block/blk.h | req->bh = bh->b_reqnext; |
req | 290 | drivers/block/blk.h | if ((bh = req->bh) != NULL) { |
req | 291 | drivers/block/blk.h | req->current_nr_sectors = bh->b_size >> 9; |
req | 292 | drivers/block/blk.h | if (req->nr_sectors < req->current_nr_sectors) { |
req | 293 | drivers/block/blk.h | req->nr_sectors = req->current_nr_sectors; |
req | 296 | drivers/block/blk.h | req->buffer = bh->b_data; |
req | 303 | drivers/block/blk.h | DEVICE_OFF(req->dev); |
req | 304 | drivers/block/blk.h | CURRENT = req->next; |
req | 306 | drivers/block/blk.h | if (req->sem != NULL) |
req | 307 | drivers/block/blk.h | up(req->sem); |
req | 308 | drivers/block/blk.h | req->dev = -1; |
req | 564 | drivers/block/ide-cd.c | struct request req, **p, **pfirst; |
req | 568 | drivers/block/ide-cd.c | req.dev = MKDEV (major, (dev->select.b.drive) << PARTN_BITS); |
req | 569 | drivers/block/ide-cd.c | req.cmd = PACKET_COMMAND; |
req | 570 | drivers/block/ide-cd.c | req.errors = 0; |
req | 571 | drivers/block/ide-cd.c | req.sector = 0; |
req | 572 | drivers/block/ide-cd.c | req.nr_sectors = 0; |
req | 573 | drivers/block/ide-cd.c | req.current_nr_sectors = 0; |
req | 574 | drivers/block/ide-cd.c | req.buffer = (char *)pc; |
req | 575 | drivers/block/ide-cd.c | req.sem = &sem; |
req | 576 | drivers/block/ide-cd.c | req.bh = NULL; |
req | 577 | drivers/block/ide-cd.c | req.bhtail = NULL; |
req | 578 | drivers/block/ide-cd.c | req.next = NULL; |
req | 589 | drivers/block/ide-cd.c | *p = &req; |
req | 109 | drivers/block/ll_rw_blk.c | register struct request *req, *limit; |
req | 119 | drivers/block/ll_rw_blk.c | req = prev_found; |
req | 121 | drivers/block/ll_rw_blk.c | req = ((req > all_requests) ? req : limit) - 1; |
req | 122 | drivers/block/ll_rw_blk.c | if (req->dev < 0) |
req | 124 | drivers/block/ll_rw_blk.c | if (req == prev_found) |
req | 127 | drivers/block/ll_rw_blk.c | prev_found = req; |
req | 128 | drivers/block/ll_rw_blk.c | req->dev = dev; |
req | 129 | drivers/block/ll_rw_blk.c | return req; |
req | 139 | drivers/block/ll_rw_blk.c | register struct request *req; |
req | 141 | drivers/block/ll_rw_blk.c | while ((req = get_request(n, dev)) == NULL) |
req | 143 | drivers/block/ll_rw_blk.c | return req; |
req | 176 | drivers/block/ll_rw_blk.c | static void add_request(struct blk_dev_struct * dev, struct request * req) |
req | 181 | drivers/block/ll_rw_blk.c | switch (MAJOR(req->dev)) { |
req | 182 | drivers/block/ll_rw_blk.c | case SCSI_DISK_MAJOR: disk_index = (MINOR(req->dev) & 0x0070) >> 4; |
req | 187 | drivers/block/ll_rw_blk.c | case XT_DISK_MAJOR: disk_index = (MINOR(req->dev) & 0x0040) >> 6; |
req | 190 | drivers/block/ll_rw_blk.c | case IDE1_MAJOR: disk_index = ((MINOR(req->dev) & 0x0040) >> 6) + 2; |
req | 195 | drivers/block/ll_rw_blk.c | req->next = NULL; |
req | 197 | drivers/block/ll_rw_blk.c | if (req->bh) |
req | 198 | drivers/block/ll_rw_blk.c | mark_buffer_clean(req->bh); |
req | 200 | drivers/block/ll_rw_blk.c | dev->current_request = req; |
req | 206 | drivers/block/ll_rw_blk.c | if ((IN_ORDER(tmp,req) || |
req | 208 | drivers/block/ll_rw_blk.c | IN_ORDER(req,tmp->next)) |
req | 211 | drivers/block/ll_rw_blk.c | req->next = tmp->next; |
req | 212 | drivers/block/ll_rw_blk.c | tmp->next = req; |
req | 215 | drivers/block/ll_rw_blk.c | if (scsi_major(MAJOR(req->dev))) |
req | 224 | drivers/block/ll_rw_blk.c | struct request * req; |
req | 280 | drivers/block/ll_rw_blk.c | && (req = blk_dev[major].current_request)) |
req | 287 | drivers/block/ll_rw_blk.c | req = req->next; |
req | 288 | drivers/block/ll_rw_blk.c | while (req) { |
req | 289 | drivers/block/ll_rw_blk.c | if (req->dev == bh->b_dev && |
req | 290 | drivers/block/ll_rw_blk.c | !req->sem && |
req | 291 | drivers/block/ll_rw_blk.c | req->cmd == rw && |
req | 292 | drivers/block/ll_rw_blk.c | req->sector + req->nr_sectors == sector && |
req | 293 | drivers/block/ll_rw_blk.c | req->nr_sectors < 244) |
req | 295 | drivers/block/ll_rw_blk.c | req->bhtail->b_reqnext = bh; |
req | 296 | drivers/block/ll_rw_blk.c | req->bhtail = bh; |
req | 297 | drivers/block/ll_rw_blk.c | req->nr_sectors += count; |
req | 303 | drivers/block/ll_rw_blk.c | if (req->dev == bh->b_dev && |
req | 304 | drivers/block/ll_rw_blk.c | !req->sem && |
req | 305 | drivers/block/ll_rw_blk.c | req->cmd == rw && |
req | 306 | drivers/block/ll_rw_blk.c | req->sector - count == sector && |
req | 307 | drivers/block/ll_rw_blk.c | req->nr_sectors < 244) |
req | 309 | drivers/block/ll_rw_blk.c | req->nr_sectors += count; |
req | 310 | drivers/block/ll_rw_blk.c | bh->b_reqnext = req->bh; |
req | 311 | drivers/block/ll_rw_blk.c | req->buffer = bh->b_data; |
req | 312 | drivers/block/ll_rw_blk.c | req->current_nr_sectors = count; |
req | 313 | drivers/block/ll_rw_blk.c | req->sector = sector; |
req | 315 | drivers/block/ll_rw_blk.c | req->bh = bh; |
req | 320 | drivers/block/ll_rw_blk.c | req = req->next; |
req | 325 | drivers/block/ll_rw_blk.c | req = get_request(max_req, bh->b_dev); |
req | 328 | drivers/block/ll_rw_blk.c | if (! req) { |
req | 343 | drivers/block/ll_rw_blk.c | req->cmd = rw; |
req | 344 | drivers/block/ll_rw_blk.c | req->errors = 0; |
req | 345 | drivers/block/ll_rw_blk.c | req->sector = sector; |
req | 346 | drivers/block/ll_rw_blk.c | req->nr_sectors = count; |
req | 347 | drivers/block/ll_rw_blk.c | req->current_nr_sectors = count; |
req | 348 | drivers/block/ll_rw_blk.c | req->buffer = bh->b_data; |
req | 349 | drivers/block/ll_rw_blk.c | req->sem = NULL; |
req | 350 | drivers/block/ll_rw_blk.c | req->bh = bh; |
req | 351 | drivers/block/ll_rw_blk.c | req->bhtail = bh; |
req | 352 | drivers/block/ll_rw_blk.c | req->next = NULL; |
req | 353 | drivers/block/ll_rw_blk.c | add_request(major+blk_dev,req); |
req | 358 | drivers/block/ll_rw_blk.c | struct request * req; |
req | 373 | drivers/block/ll_rw_blk.c | req = get_request_wait(NR_REQUEST, dev); |
req | 376 | drivers/block/ll_rw_blk.c | req->cmd = rw; |
req | 377 | drivers/block/ll_rw_blk.c | req->errors = 0; |
req | 378 | drivers/block/ll_rw_blk.c | req->sector = page<<3; |
req | 379 | drivers/block/ll_rw_blk.c | req->nr_sectors = 8; |
req | 380 | drivers/block/ll_rw_blk.c | req->current_nr_sectors = 8; |
req | 381 | drivers/block/ll_rw_blk.c | req->buffer = buffer; |
req | 382 | drivers/block/ll_rw_blk.c | req->sem = &sem; |
req | 383 | drivers/block/ll_rw_blk.c | req->bh = NULL; |
req | 384 | drivers/block/ll_rw_blk.c | req->next = NULL; |
req | 385 | drivers/block/ll_rw_blk.c | add_request(major+blk_dev,req); |
req | 486 | drivers/block/ll_rw_blk.c | struct request * req; |
req | 509 | drivers/block/ll_rw_blk.c | req = get_request_wait(NR_REQUEST, dev); |
req | 511 | drivers/block/ll_rw_blk.c | req->cmd = rw; |
req | 512 | drivers/block/ll_rw_blk.c | req->errors = 0; |
req | 513 | drivers/block/ll_rw_blk.c | req->sector = (b[i] * buffersize) >> 9; |
req | 514 | drivers/block/ll_rw_blk.c | req->nr_sectors = buffersize >> 9; |
req | 515 | drivers/block/ll_rw_blk.c | req->current_nr_sectors = buffersize >> 9; |
req | 516 | drivers/block/ll_rw_blk.c | req->buffer = buf; |
req | 517 | drivers/block/ll_rw_blk.c | req->sem = &sem; |
req | 518 | drivers/block/ll_rw_blk.c | req->bh = NULL; |
req | 519 | drivers/block/ll_rw_blk.c | req->next = NULL; |
req | 520 | drivers/block/ll_rw_blk.c | add_request(major+blk_dev,req); |
req | 527 | drivers/block/ll_rw_blk.c | struct request * req; |
req | 529 | drivers/block/ll_rw_blk.c | req = all_requests + NR_REQUEST; |
req | 530 | drivers/block/ll_rw_blk.c | while (--req >= all_requests) { |
req | 531 | drivers/block/ll_rw_blk.c | req->dev = -1; |
req | 532 | drivers/block/ll_rw_blk.c | req->next = NULL; |
req | 2494 | drivers/char/serial.c | int register_serial(struct serial_struct *req) |
req | 2503 | drivers/char/serial.c | if (rs_table[i].port == req->port) |
req | 2520 | drivers/char/serial.c | "device already open\n", i, req->port, req->irq); |
req | 2523 | drivers/char/serial.c | info->irq = req->irq; |
req | 2524 | drivers/char/serial.c | info->port = req->port; |
req | 594 | drivers/scsi/scsi.c | Scsi_Cmnd * request_queueable (struct request * req, Scsi_Device * device) |
req | 603 | drivers/scsi/scsi.c | if (req && req->dev <= 0) |
req | 628 | drivers/scsi/scsi.c | if (req) { |
req | 629 | drivers/scsi/scsi.c | memcpy(&SCpnt->request, req, sizeof(struct request)); |
req | 631 | drivers/scsi/scsi.c | bhp = bh = req->bh; |
req | 635 | drivers/scsi/scsi.c | while(req->nr_sectors && bh){ |
req | 638 | drivers/scsi/scsi.c | req->nr_sectors -= bh->b_size >> 9; |
req | 639 | drivers/scsi/scsi.c | req->sector += bh->b_size >> 9; |
req | 643 | drivers/scsi/scsi.c | if(req->nr_sectors && bh && bh->b_reqnext){ /* Any leftovers? */ |
req | 645 | drivers/scsi/scsi.c | req->bh = bh->b_reqnext; /* Divide request */ |
req | 647 | drivers/scsi/scsi.c | bh = req->bh; |
req | 650 | drivers/scsi/scsi.c | SCpnt->request.nr_sectors -= req->nr_sectors; |
req | 651 | drivers/scsi/scsi.c | req->current_nr_sectors = bh->b_size >> 9; |
req | 652 | drivers/scsi/scsi.c | req->buffer = bh->b_data; |
req | 655 | drivers/scsi/scsi.c | req->dev = -1; |
req | 684 | drivers/scsi/scsi.c | struct request * req = NULL; |
req | 695 | drivers/scsi/scsi.c | if (reqp) req = *reqp; |
req | 698 | drivers/scsi/scsi.c | if (req && (dev = req->dev) <= 0) return NULL; |
req | 728 | drivers/scsi/scsi.c | if (req && ((req->dev < 0) || (req->dev != dev))) { |
req | 744 | drivers/scsi/scsi.c | if (req) { |
req | 745 | drivers/scsi/scsi.c | memcpy(&SCpnt->request, req, sizeof(struct request)); |
req | 747 | drivers/scsi/scsi.c | bhp = bh = req->bh; |
req | 751 | drivers/scsi/scsi.c | while(req->nr_sectors && bh){ |
req | 754 | drivers/scsi/scsi.c | req->nr_sectors -= bh->b_size >> 9; |
req | 755 | drivers/scsi/scsi.c | req->sector += bh->b_size >> 9; |
req | 759 | drivers/scsi/scsi.c | if(req->nr_sectors && bh && bh->b_reqnext){ /* Any leftovers? */ |
req | 761 | drivers/scsi/scsi.c | req->bh = bh->b_reqnext; /* Divide request */ |
req | 763 | drivers/scsi/scsi.c | bh = req->bh; |
req | 765 | drivers/scsi/scsi.c | SCpnt->request.nr_sectors -= req->nr_sectors; |
req | 766 | drivers/scsi/scsi.c | req->current_nr_sectors = bh->b_size >> 9; |
req | 767 | drivers/scsi/scsi.c | req->buffer = bh->b_data; |
req | 772 | drivers/scsi/scsi.c | req->dev = -1; |
req | 773 | drivers/scsi/scsi.c | *reqp = req->next; |
req | 2411 | drivers/scsi/scsi.c | struct request * req; |
req | 2413 | drivers/scsi/scsi.c | req = blk_dev[i].current_request; |
req | 2414 | drivers/scsi/scsi.c | while(req) { |
req | 2416 | drivers/scsi/scsi.c | req->dev, |
req | 2417 | drivers/scsi/scsi.c | req->cmd, |
req | 2418 | drivers/scsi/scsi.c | req->sector, |
req | 2419 | drivers/scsi/scsi.c | req->nr_sectors, |
req | 2420 | drivers/scsi/scsi.c | req->current_nr_sectors); |
req | 2421 | drivers/scsi/scsi.c | req = req->next; |
req | 532 | drivers/scsi/scsi.h | struct request * req; |
req | 535 | drivers/scsi/scsi.h | req = &SCpnt->request; |
req | 536 | drivers/scsi/scsi.h | req->errors = 0; |
req | 539 | drivers/scsi/scsi.h | req->dev,req->sector); |
req | 543 | drivers/scsi/scsi.h | if ((bh = req->bh) != NULL) { |
req | 544 | drivers/scsi/scsi.h | req->bh = bh->b_reqnext; |
req | 545 | drivers/scsi/scsi.h | req->nr_sectors -= bh->b_size >> 9; |
req | 546 | drivers/scsi/scsi.h | req->sector += bh->b_size >> 9; |
req | 551 | drivers/scsi/scsi.h | if ((bh = req->bh) != NULL) { |
req | 552 | drivers/scsi/scsi.h | req->current_nr_sectors = bh->b_size >> 9; |
req | 553 | drivers/scsi/scsi.h | if (req->nr_sectors < req->current_nr_sectors) { |
req | 554 | drivers/scsi/scsi.h | req->nr_sectors = req->current_nr_sectors; |
req | 560 | drivers/scsi/scsi.h | if (req->bh){ |
req | 561 | drivers/scsi/scsi.h | req->buffer = bh->b_data; |
req | 564 | drivers/scsi/scsi.h | DEVICE_OFF(req->dev); |
req | 565 | drivers/scsi/scsi.h | if (req->sem != NULL) { |
req | 566 | drivers/scsi/scsi.h | up(req->sem); |
req | 568 | drivers/scsi/scsi.h | req->dev = -1; |
req | 80 | drivers/scsi/scsi_ioctl.c | struct request * req; |
req | 82 | drivers/scsi/scsi_ioctl.c | req = &SCpnt->request; |
req | 83 | drivers/scsi/scsi_ioctl.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
req | 85 | drivers/scsi/scsi_ioctl.c | if (req->sem != NULL) { |
req | 86 | drivers/scsi/scsi_ioctl.c | up(req->sem); |
req | 335 | drivers/scsi/sd.c | struct request * req = NULL; |
req | 379 | drivers/scsi/sd.c | req = CURRENT; |
req | 380 | drivers/scsi/sd.c | while(req){ |
req | 381 | drivers/scsi/sd.c | SCpnt = request_queueable(req, |
req | 382 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(MINOR(req->dev))].device); |
req | 384 | drivers/scsi/sd.c | req1 = req; |
req | 385 | drivers/scsi/sd.c | req = req->next; |
req | 387 | drivers/scsi/sd.c | if (SCpnt && req->dev == -1) { |
req | 388 | drivers/scsi/sd.c | if (req == CURRENT) |
req | 391 | drivers/scsi/sd.c | req1->next = req->next; |
req | 812 | drivers/scsi/sd.c | struct request * req; |
req | 814 | drivers/scsi/sd.c | req = &SCpnt->request; |
req | 815 | drivers/scsi/sd.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
req | 817 | drivers/scsi/sd.c | if (req->sem != NULL) { |
req | 818 | drivers/scsi/sd.c | up(req->sem); |
req | 439 | drivers/scsi/sr.c | struct request * req = NULL; |
req | 471 | drivers/scsi/sr.c | req = CURRENT; |
req | 472 | drivers/scsi/sr.c | while(req){ |
req | 473 | drivers/scsi/sr.c | SCpnt = request_queueable(req, |
req | 474 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(MINOR(req->dev))].device); |
req | 476 | drivers/scsi/sr.c | req1 = req; |
req | 477 | drivers/scsi/sr.c | req = req->next; |
req | 479 | drivers/scsi/sr.c | if (SCpnt && req->dev == -1) { |
req | 480 | drivers/scsi/sr.c | if (req == CURRENT) |
req | 483 | drivers/scsi/sr.c | req1->next = req->next; |
req | 834 | drivers/scsi/sr.c | struct request * req; |
req | 836 | drivers/scsi/sr.c | req = &SCpnt->request; |
req | 837 | drivers/scsi/sr.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
req | 839 | drivers/scsi/sr.c | if (req->sem != NULL) { |
req | 840 | drivers/scsi/sr.c | up(req->sem); |
req | 23 | drivers/scsi/sr_ioctl.c | struct request * req; |
req | 25 | drivers/scsi/sr_ioctl.c | req = &SCpnt->request; |
req | 26 | drivers/scsi/sr_ioctl.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
req | 28 | drivers/scsi/sr_ioctl.c | if (req->sem != NULL) { |
req | 29 | drivers/scsi/sr_ioctl.c | up(req->sem); |
req | 137 | include/linux/serial.h | extern int register_serial(struct serial_struct *req); |
req | 1031 | net/inet/arp.c | static int arp_req_set(struct arpreq *req) |
req | 1040 | net/inet/arp.c | memcpy_fromfs(&r, req, sizeof(r)); |
req | 1148 | net/inet/arp.c | static int arp_req_get(struct arpreq *req) |
req | 1158 | net/inet/arp.c | memcpy_fromfs(&r, req, sizeof(r)); |
req | 1190 | net/inet/arp.c | memcpy_tofs(req, &r, sizeof(r)); |
req | 232 | net/inet/rarp.c | static int rarp_req_set(struct arpreq *req) |
req | 241 | net/inet/rarp.c | memcpy_fromfs(&r, req, sizeof(r)); |
req | 330 | net/inet/rarp.c | static int rarp_req_get(struct arpreq *req) |
req | 341 | net/inet/rarp.c | memcpy_fromfs(&r, req, sizeof(r)); |
req | 376 | net/inet/rarp.c | memcpy_tofs(req, &r, sizeof(r)); |