tag | line | file | source code |
req | 285 | drivers/block/blk.h | struct request *req = ide_cur_rq[HWIF]; |
req | 288 | drivers/block/blk.h | struct request *req = CURRENT; |
req | 292 | drivers/block/blk.h | req->errors = 0; |
req | 295 | drivers/block/blk.h | (unsigned long)req->dev, req->sector); |
req | 296 | drivers/block/blk.h | req->nr_sectors--; |
req | 297 | drivers/block/blk.h | req->nr_sectors &= ~SECTOR_MASK; |
req | 298 | drivers/block/blk.h | req->sector += (BLOCK_SIZE / 512); |
req | 299 | drivers/block/blk.h | req->sector &= ~SECTOR_MASK; |
req | 302 | drivers/block/blk.h | if ((bh = req->bh) != NULL) { |
req | 303 | drivers/block/blk.h | req->bh = bh->b_reqnext; |
req | 308 | drivers/block/blk.h | if ((bh = req->bh) != NULL) { |
req | 309 | drivers/block/blk.h | req->current_nr_sectors = bh->b_size >> 9; |
req | 310 | drivers/block/blk.h | if (req->nr_sectors < req->current_nr_sectors) { |
req | 311 | drivers/block/blk.h | req->nr_sectors = req->current_nr_sectors; |
req | 314 | drivers/block/blk.h | req->buffer = bh->b_data; |
req | 321 | drivers/block/blk.h | DEVICE_OFF(req->dev); |
req | 322 | drivers/block/blk.h | CURRENT = req->next; |
req | 324 | drivers/block/blk.h | if (req->sem != NULL) |
req | 325 | drivers/block/blk.h | up(req->sem); |
req | 326 | drivers/block/blk.h | req->dev = -1; |
req | 878 | drivers/block/ide-cd.c | struct request req, **p, **pfirst; |
req | 882 | drivers/block/ide-cd.c | req.dev = MKDEV (major, (dev->select.b.drive) << PARTN_BITS); |
req | 883 | drivers/block/ide-cd.c | req.cmd = PACKET_COMMAND; |
req | 884 | drivers/block/ide-cd.c | req.errors = 0; |
req | 885 | drivers/block/ide-cd.c | req.sector = 0; |
req | 886 | drivers/block/ide-cd.c | req.nr_sectors = 0; |
req | 887 | drivers/block/ide-cd.c | req.current_nr_sectors = 0; |
req | 888 | drivers/block/ide-cd.c | req.buffer = (char *)pc; |
req | 889 | drivers/block/ide-cd.c | req.sem = &sem; |
req | 890 | drivers/block/ide-cd.c | req.bh = NULL; |
req | 891 | drivers/block/ide-cd.c | req.bhtail = NULL; |
req | 892 | drivers/block/ide-cd.c | req.next = NULL; |
req | 903 | 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 | 425 | drivers/block/ll_rw_blk.c | req = get_request_wait(NR_REQUEST, dev); |
req | 427 | drivers/block/ll_rw_blk.c | req->cmd = rw; |
req | 428 | drivers/block/ll_rw_blk.c | req->errors = 0; |
req | 429 | drivers/block/ll_rw_blk.c | req->sector = page<<3; |
req | 430 | drivers/block/ll_rw_blk.c | req->nr_sectors = 8; |
req | 431 | drivers/block/ll_rw_blk.c | req->current_nr_sectors = 8; |
req | 432 | drivers/block/ll_rw_blk.c | req->buffer = buffer; |
req | 433 | drivers/block/ll_rw_blk.c | req->sem = &sem; |
req | 434 | drivers/block/ll_rw_blk.c | req->bh = NULL; |
req | 435 | drivers/block/ll_rw_blk.c | req->next = NULL; |
req | 436 | drivers/block/ll_rw_blk.c | add_request(major+blk_dev,req); |
req | 524 | drivers/block/ll_rw_blk.c | struct request * req; |
req | 546 | drivers/block/ll_rw_blk.c | req = get_request_wait(NR_REQUEST, dev); |
req | 547 | drivers/block/ll_rw_blk.c | req->cmd = rw; |
req | 548 | drivers/block/ll_rw_blk.c | req->errors = 0; |
req | 549 | drivers/block/ll_rw_blk.c | req->sector = (b[i] * buffersize) >> 9; |
req | 550 | drivers/block/ll_rw_blk.c | req->nr_sectors = buffersize >> 9; |
req | 551 | drivers/block/ll_rw_blk.c | req->current_nr_sectors = buffersize >> 9; |
req | 552 | drivers/block/ll_rw_blk.c | req->buffer = buf; |
req | 553 | drivers/block/ll_rw_blk.c | req->sem = &sem; |
req | 554 | drivers/block/ll_rw_blk.c | req->bh = NULL; |
req | 555 | drivers/block/ll_rw_blk.c | req->next = NULL; |
req | 556 | drivers/block/ll_rw_blk.c | add_request(major+blk_dev,req); |
req | 563 | drivers/block/ll_rw_blk.c | struct request * req; |
req | 565 | drivers/block/ll_rw_blk.c | req = all_requests + NR_REQUEST; |
req | 566 | drivers/block/ll_rw_blk.c | while (--req >= all_requests) { |
req | 567 | drivers/block/ll_rw_blk.c | req->dev = -1; |
req | 568 | drivers/block/ll_rw_blk.c | req->next = NULL; |
req | 2682 | drivers/char/serial.c | int register_serial(struct serial_struct *req) |
req | 2691 | drivers/char/serial.c | if (rs_table[i].port == req->port) |
req | 2708 | drivers/char/serial.c | "device already open\n", i, req->port, req->irq); |
req | 2711 | drivers/char/serial.c | info->irq = req->irq; |
req | 2712 | drivers/char/serial.c | info->port = req->port; |
req | 688 | drivers/scsi/scsi.c | Scsi_Cmnd * request_queueable (struct request * req, Scsi_Device * device) |
req | 697 | drivers/scsi/scsi.c | if (req && req->dev <= 0) |
req | 712 | drivers/scsi/scsi.c | if (req) { |
req | 713 | drivers/scsi/scsi.c | memcpy(&SCpnt->request, req, sizeof(struct request)); |
req | 715 | drivers/scsi/scsi.c | bhp = bh = req->bh; |
req | 719 | drivers/scsi/scsi.c | while(req->nr_sectors && bh){ |
req | 722 | drivers/scsi/scsi.c | req->nr_sectors -= bh->b_size >> 9; |
req | 723 | drivers/scsi/scsi.c | req->sector += bh->b_size >> 9; |
req | 727 | drivers/scsi/scsi.c | if(req->nr_sectors && bh && bh->b_reqnext){ /* Any leftovers? */ |
req | 729 | drivers/scsi/scsi.c | req->bh = bh->b_reqnext; /* Divide request */ |
req | 731 | drivers/scsi/scsi.c | bh = req->bh; |
req | 734 | drivers/scsi/scsi.c | SCpnt->request.nr_sectors -= req->nr_sectors; |
req | 735 | drivers/scsi/scsi.c | req->current_nr_sectors = bh->b_size >> 9; |
req | 736 | drivers/scsi/scsi.c | req->buffer = bh->b_data; |
req | 739 | drivers/scsi/scsi.c | req->dev = -1; |
req | 768 | drivers/scsi/scsi.c | struct request * req = NULL; |
req | 779 | drivers/scsi/scsi.c | if (reqp) req = *reqp; |
req | 782 | drivers/scsi/scsi.c | if (req && (dev = req->dev) <= 0) return NULL; |
req | 801 | drivers/scsi/scsi.c | if (req && ((req->dev < 0) || (req->dev != dev))) { |
req | 817 | drivers/scsi/scsi.c | if (req) { |
req | 818 | drivers/scsi/scsi.c | memcpy(&SCpnt->request, req, sizeof(struct request)); |
req | 820 | drivers/scsi/scsi.c | bhp = bh = req->bh; |
req | 824 | drivers/scsi/scsi.c | while(req->nr_sectors && bh){ |
req | 827 | drivers/scsi/scsi.c | req->nr_sectors -= bh->b_size >> 9; |
req | 828 | drivers/scsi/scsi.c | req->sector += bh->b_size >> 9; |
req | 832 | drivers/scsi/scsi.c | if(req->nr_sectors && bh && bh->b_reqnext){ /* Any leftovers? */ |
req | 834 | drivers/scsi/scsi.c | req->bh = bh->b_reqnext; /* Divide request */ |
req | 836 | drivers/scsi/scsi.c | bh = req->bh; |
req | 838 | drivers/scsi/scsi.c | SCpnt->request.nr_sectors -= req->nr_sectors; |
req | 839 | drivers/scsi/scsi.c | req->current_nr_sectors = bh->b_size >> 9; |
req | 840 | drivers/scsi/scsi.c | req->buffer = bh->b_data; |
req | 845 | drivers/scsi/scsi.c | req->dev = -1; |
req | 846 | drivers/scsi/scsi.c | *reqp = req->next; |
req | 2530 | drivers/scsi/scsi.c | struct request * req; |
req | 2532 | drivers/scsi/scsi.c | req = blk_dev[i].current_request; |
req | 2533 | drivers/scsi/scsi.c | while(req) { |
req | 2535 | drivers/scsi/scsi.c | req->dev, |
req | 2536 | drivers/scsi/scsi.c | req->cmd, |
req | 2537 | drivers/scsi/scsi.c | req->sector, |
req | 2538 | drivers/scsi/scsi.c | req->nr_sectors, |
req | 2539 | drivers/scsi/scsi.c | req->current_nr_sectors); |
req | 2540 | drivers/scsi/scsi.c | req = req->next; |
req | 547 | drivers/scsi/scsi.h | struct request * req; |
req | 550 | drivers/scsi/scsi.h | req = &SCpnt->request; |
req | 551 | drivers/scsi/scsi.h | req->errors = 0; |
req | 554 | drivers/scsi/scsi.h | req->dev,req->sector); |
req | 558 | drivers/scsi/scsi.h | if ((bh = req->bh) != NULL) { |
req | 559 | drivers/scsi/scsi.h | req->bh = bh->b_reqnext; |
req | 560 | drivers/scsi/scsi.h | req->nr_sectors -= bh->b_size >> 9; |
req | 561 | drivers/scsi/scsi.h | req->sector += bh->b_size >> 9; |
req | 566 | drivers/scsi/scsi.h | if ((bh = req->bh) != NULL) { |
req | 567 | drivers/scsi/scsi.h | req->current_nr_sectors = bh->b_size >> 9; |
req | 568 | drivers/scsi/scsi.h | if (req->nr_sectors < req->current_nr_sectors) { |
req | 569 | drivers/scsi/scsi.h | req->nr_sectors = req->current_nr_sectors; |
req | 575 | drivers/scsi/scsi.h | if (req->bh){ |
req | 576 | drivers/scsi/scsi.h | req->buffer = bh->b_data; |
req | 579 | drivers/scsi/scsi.h | DEVICE_OFF(req->dev); |
req | 580 | drivers/scsi/scsi.h | if (req->sem != NULL) { |
req | 581 | drivers/scsi/scsi.h | up(req->sem); |
req | 592 | drivers/scsi/scsi.h | req->dev = -1; |
req | 81 | drivers/scsi/scsi_ioctl.c | struct request * req; |
req | 83 | drivers/scsi/scsi_ioctl.c | req = &SCpnt->request; |
req | 84 | drivers/scsi/scsi_ioctl.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
req | 86 | drivers/scsi/scsi_ioctl.c | if (req->sem != NULL) { |
req | 87 | drivers/scsi/scsi_ioctl.c | up(req->sem); |
req | 357 | drivers/scsi/sd.c | struct request * req = NULL; |
req | 406 | drivers/scsi/sd.c | req = CURRENT; |
req | 407 | drivers/scsi/sd.c | while(req){ |
req | 408 | drivers/scsi/sd.c | SCpnt = request_queueable(req, |
req | 409 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(MINOR(req->dev))].device); |
req | 411 | drivers/scsi/sd.c | req1 = req; |
req | 412 | drivers/scsi/sd.c | req = req->next; |
req | 414 | drivers/scsi/sd.c | if (SCpnt && req->dev == -1) { |
req | 415 | drivers/scsi/sd.c | if (req == CURRENT) |
req | 418 | drivers/scsi/sd.c | req1->next = req->next; |
req | 839 | drivers/scsi/sd.c | struct request * req; |
req | 841 | drivers/scsi/sd.c | req = &SCpnt->request; |
req | 842 | drivers/scsi/sd.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
req | 844 | drivers/scsi/sd.c | if (req->sem != NULL) { |
req | 845 | drivers/scsi/sd.c | up(req->sem); |
req | 509 | drivers/scsi/sr.c | struct request * req = NULL; |
req | 541 | drivers/scsi/sr.c | req = CURRENT; |
req | 542 | drivers/scsi/sr.c | while(req){ |
req | 543 | drivers/scsi/sr.c | SCpnt = request_queueable(req, |
req | 544 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(MINOR(req->dev))].device); |
req | 546 | drivers/scsi/sr.c | req1 = req; |
req | 547 | drivers/scsi/sr.c | req = req->next; |
req | 549 | drivers/scsi/sr.c | if (SCpnt && req->dev == -1) { |
req | 550 | drivers/scsi/sr.c | if (req == CURRENT) |
req | 553 | drivers/scsi/sr.c | req1->next = req->next; |
req | 894 | drivers/scsi/sr.c | struct request * req; |
req | 896 | drivers/scsi/sr.c | req = &SCpnt->request; |
req | 897 | drivers/scsi/sr.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
req | 899 | drivers/scsi/sr.c | if (req->sem != NULL) { |
req | 900 | drivers/scsi/sr.c | up(req->sem); |
req | 25 | drivers/scsi/sr_ioctl.c | struct request * req; |
req | 27 | drivers/scsi/sr_ioctl.c | req = &SCpnt->request; |
req | 28 | drivers/scsi/sr_ioctl.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
req | 30 | drivers/scsi/sr_ioctl.c | if (req->sem != NULL) { |
req | 31 | drivers/scsi/sr_ioctl.c | up(req->sem); |
req | 181 | include/linux/serial.h | extern int register_serial(struct serial_struct *req); |
req | 1048 | net/inet/arp.c | static int arp_req_set(struct arpreq *req) |
req | 1057 | net/inet/arp.c | memcpy_fromfs(&r, req, sizeof(r)); |
req | 1174 | net/inet/arp.c | static int arp_req_get(struct arpreq *req) |
req | 1184 | net/inet/arp.c | memcpy_fromfs(&r, req, sizeof(r)); |
req | 1216 | net/inet/arp.c | memcpy_tofs(req, &r, sizeof(r)); |
req | 233 | net/inet/rarp.c | static int rarp_req_set(struct arpreq *req) |
req | 242 | net/inet/rarp.c | memcpy_fromfs(&r, req, sizeof(r)); |
req | 331 | net/inet/rarp.c | static int rarp_req_get(struct arpreq *req) |
req | 342 | net/inet/rarp.c | memcpy_fromfs(&r, req, sizeof(r)); |
req | 377 | net/inet/rarp.c | memcpy_tofs(req, &r, sizeof(r)); |