tag | line | file | source code |
req | 225 | drivers/block/blk.h | struct request * req; |
req | 228 | drivers/block/blk.h | req = CURRENT; |
req | 229 | drivers/block/blk.h | req->errors = 0; |
req | 233 | drivers/block/blk.h | (unsigned long)req->dev, req->sector); |
req | 234 | drivers/block/blk.h | req->nr_sectors--; |
req | 235 | drivers/block/blk.h | req->nr_sectors &= ~SECTOR_MASK; |
req | 236 | drivers/block/blk.h | req->sector += (BLOCK_SIZE / 512); |
req | 237 | drivers/block/blk.h | req->sector &= ~SECTOR_MASK; |
req | 240 | drivers/block/blk.h | if ((bh = req->bh) != NULL) { |
req | 241 | drivers/block/blk.h | req->bh = bh->b_reqnext; |
req | 246 | drivers/block/blk.h | if ((bh = req->bh) != NULL) { |
req | 247 | drivers/block/blk.h | req->current_nr_sectors = bh->b_size >> 9; |
req | 248 | drivers/block/blk.h | if (req->nr_sectors < req->current_nr_sectors) { |
req | 249 | drivers/block/blk.h | req->nr_sectors = req->current_nr_sectors; |
req | 252 | drivers/block/blk.h | req->buffer = bh->b_data; |
req | 256 | drivers/block/blk.h | DEVICE_OFF(req->dev); |
req | 257 | drivers/block/blk.h | CURRENT = req->next; |
req | 258 | drivers/block/blk.h | if (req->sem != NULL) |
req | 259 | drivers/block/blk.h | up(req->sem); |
req | 260 | drivers/block/blk.h | req->dev = -1; |
req | 81 | drivers/block/ll_rw_blk.c | register struct request *req, *limit; |
req | 91 | drivers/block/ll_rw_blk.c | req = prev_found; |
req | 93 | drivers/block/ll_rw_blk.c | req = ((req > all_requests) ? req : limit) - 1; |
req | 94 | drivers/block/ll_rw_blk.c | if (req->dev < 0) |
req | 96 | drivers/block/ll_rw_blk.c | if (req == prev_found) |
req | 99 | drivers/block/ll_rw_blk.c | prev_found = req; |
req | 100 | drivers/block/ll_rw_blk.c | req->dev = dev; |
req | 101 | drivers/block/ll_rw_blk.c | return req; |
req | 111 | drivers/block/ll_rw_blk.c | register struct request *req; |
req | 113 | drivers/block/ll_rw_blk.c | while ((req = get_request(n, dev)) == NULL) |
req | 115 | drivers/block/ll_rw_blk.c | return req; |
req | 149 | drivers/block/ll_rw_blk.c | static void add_request(struct blk_dev_struct * dev, struct request * req) |
req | 153 | drivers/block/ll_rw_blk.c | req->next = NULL; |
req | 155 | drivers/block/ll_rw_blk.c | if (req->bh) |
req | 156 | drivers/block/ll_rw_blk.c | mark_buffer_clean(req->bh); |
req | 158 | drivers/block/ll_rw_blk.c | dev->current_request = req; |
req | 164 | drivers/block/ll_rw_blk.c | if ((IN_ORDER(tmp,req) || |
req | 166 | drivers/block/ll_rw_blk.c | IN_ORDER(req,tmp->next)) |
req | 169 | drivers/block/ll_rw_blk.c | req->next = tmp->next; |
req | 170 | drivers/block/ll_rw_blk.c | tmp->next = req; |
req | 173 | drivers/block/ll_rw_blk.c | if (scsi_major(MAJOR(req->dev))) |
req | 182 | drivers/block/ll_rw_blk.c | struct request * req; |
req | 233 | drivers/block/ll_rw_blk.c | && (req = blk_dev[major].current_request)) |
req | 236 | drivers/block/ll_rw_blk.c | req = req->next; |
req | 237 | drivers/block/ll_rw_blk.c | while (req) { |
req | 238 | drivers/block/ll_rw_blk.c | if (req->dev == bh->b_dev && |
req | 239 | drivers/block/ll_rw_blk.c | !req->sem && |
req | 240 | drivers/block/ll_rw_blk.c | req->cmd == rw && |
req | 241 | drivers/block/ll_rw_blk.c | req->sector + req->nr_sectors == sector && |
req | 242 | drivers/block/ll_rw_blk.c | req->nr_sectors < 244) |
req | 244 | drivers/block/ll_rw_blk.c | req->bhtail->b_reqnext = bh; |
req | 245 | drivers/block/ll_rw_blk.c | req->bhtail = bh; |
req | 246 | drivers/block/ll_rw_blk.c | req->nr_sectors += count; |
req | 252 | drivers/block/ll_rw_blk.c | if (req->dev == bh->b_dev && |
req | 253 | drivers/block/ll_rw_blk.c | !req->sem && |
req | 254 | drivers/block/ll_rw_blk.c | req->cmd == rw && |
req | 255 | drivers/block/ll_rw_blk.c | req->sector - count == sector && |
req | 256 | drivers/block/ll_rw_blk.c | req->nr_sectors < 244) |
req | 258 | drivers/block/ll_rw_blk.c | req->nr_sectors += count; |
req | 259 | drivers/block/ll_rw_blk.c | bh->b_reqnext = req->bh; |
req | 260 | drivers/block/ll_rw_blk.c | req->buffer = bh->b_data; |
req | 261 | drivers/block/ll_rw_blk.c | req->current_nr_sectors = count; |
req | 262 | drivers/block/ll_rw_blk.c | req->sector = sector; |
req | 264 | drivers/block/ll_rw_blk.c | req->bh = bh; |
req | 269 | drivers/block/ll_rw_blk.c | req = req->next; |
req | 274 | drivers/block/ll_rw_blk.c | req = get_request(max_req, bh->b_dev); |
req | 277 | drivers/block/ll_rw_blk.c | if (! req) { |
req | 292 | drivers/block/ll_rw_blk.c | req->cmd = rw; |
req | 293 | drivers/block/ll_rw_blk.c | req->errors = 0; |
req | 294 | drivers/block/ll_rw_blk.c | req->sector = sector; |
req | 295 | drivers/block/ll_rw_blk.c | req->nr_sectors = count; |
req | 296 | drivers/block/ll_rw_blk.c | req->current_nr_sectors = count; |
req | 297 | drivers/block/ll_rw_blk.c | req->buffer = bh->b_data; |
req | 298 | drivers/block/ll_rw_blk.c | req->sem = NULL; |
req | 299 | drivers/block/ll_rw_blk.c | req->bh = bh; |
req | 300 | drivers/block/ll_rw_blk.c | req->bhtail = bh; |
req | 301 | drivers/block/ll_rw_blk.c | req->next = NULL; |
req | 302 | drivers/block/ll_rw_blk.c | add_request(major+blk_dev,req); |
req | 307 | drivers/block/ll_rw_blk.c | struct request * req; |
req | 322 | drivers/block/ll_rw_blk.c | req = get_request_wait(NR_REQUEST, dev); |
req | 325 | drivers/block/ll_rw_blk.c | req->cmd = rw; |
req | 326 | drivers/block/ll_rw_blk.c | req->errors = 0; |
req | 327 | drivers/block/ll_rw_blk.c | req->sector = page<<3; |
req | 328 | drivers/block/ll_rw_blk.c | req->nr_sectors = 8; |
req | 329 | drivers/block/ll_rw_blk.c | req->current_nr_sectors = 8; |
req | 330 | drivers/block/ll_rw_blk.c | req->buffer = buffer; |
req | 331 | drivers/block/ll_rw_blk.c | req->sem = &sem; |
req | 332 | drivers/block/ll_rw_blk.c | req->bh = NULL; |
req | 333 | drivers/block/ll_rw_blk.c | req->next = NULL; |
req | 334 | drivers/block/ll_rw_blk.c | add_request(major+blk_dev,req); |
req | 435 | drivers/block/ll_rw_blk.c | struct request * req; |
req | 458 | drivers/block/ll_rw_blk.c | req = get_request_wait(NR_REQUEST, dev); |
req | 460 | drivers/block/ll_rw_blk.c | req->cmd = rw; |
req | 461 | drivers/block/ll_rw_blk.c | req->errors = 0; |
req | 462 | drivers/block/ll_rw_blk.c | req->sector = (b[i] * buffersize) >> 9; |
req | 463 | drivers/block/ll_rw_blk.c | req->nr_sectors = buffersize >> 9; |
req | 464 | drivers/block/ll_rw_blk.c | req->current_nr_sectors = buffersize >> 9; |
req | 465 | drivers/block/ll_rw_blk.c | req->buffer = buf; |
req | 466 | drivers/block/ll_rw_blk.c | req->sem = &sem; |
req | 467 | drivers/block/ll_rw_blk.c | req->bh = NULL; |
req | 468 | drivers/block/ll_rw_blk.c | req->next = NULL; |
req | 469 | drivers/block/ll_rw_blk.c | add_request(major+blk_dev,req); |
req | 476 | drivers/block/ll_rw_blk.c | struct request * req; |
req | 478 | drivers/block/ll_rw_blk.c | req = all_requests + NR_REQUEST; |
req | 479 | drivers/block/ll_rw_blk.c | while (--req >= all_requests) { |
req | 480 | drivers/block/ll_rw_blk.c | req->dev = -1; |
req | 481 | drivers/block/ll_rw_blk.c | req->next = NULL; |
req | 2379 | drivers/char/serial.c | int register_serial(struct serial_struct *req) |
req | 2388 | drivers/char/serial.c | if (rs_table[i].port == req->port) |
req | 2405 | drivers/char/serial.c | "device already open\n", i, req->port, req->irq); |
req | 2408 | drivers/char/serial.c | info->irq = req->irq; |
req | 2409 | drivers/char/serial.c | info->port = req->port; |
req | 560 | drivers/scsi/scsi.c | Scsi_Cmnd * request_queueable (struct request * req, Scsi_Device * device) |
req | 569 | drivers/scsi/scsi.c | if (req && req->dev <= 0) |
req | 585 | drivers/scsi/scsi.c | if (req) { |
req | 586 | drivers/scsi/scsi.c | memcpy(&SCpnt->request, req, sizeof(struct request)); |
req | 588 | drivers/scsi/scsi.c | bhp = bh = req->bh; |
req | 592 | drivers/scsi/scsi.c | while(req->nr_sectors && bh){ |
req | 595 | drivers/scsi/scsi.c | req->nr_sectors -= bh->b_size >> 9; |
req | 596 | drivers/scsi/scsi.c | req->sector += bh->b_size >> 9; |
req | 600 | drivers/scsi/scsi.c | if(req->nr_sectors && bh && bh->b_reqnext){ /* Any leftovers? */ |
req | 602 | drivers/scsi/scsi.c | req->bh = bh->b_reqnext; /* Divide request */ |
req | 604 | drivers/scsi/scsi.c | bh = req->bh; |
req | 607 | drivers/scsi/scsi.c | SCpnt->request.nr_sectors -= req->nr_sectors; |
req | 608 | drivers/scsi/scsi.c | req->current_nr_sectors = bh->b_size >> 9; |
req | 609 | drivers/scsi/scsi.c | req->buffer = bh->b_data; |
req | 612 | drivers/scsi/scsi.c | req->dev = -1; |
req | 640 | drivers/scsi/scsi.c | struct request * req = NULL; |
req | 650 | drivers/scsi/scsi.c | if (reqp) req = *reqp; |
req | 653 | drivers/scsi/scsi.c | if (req && (dev = req->dev) <= 0) return NULL; |
req | 669 | drivers/scsi/scsi.c | if (req && ((req->dev < 0) || (req->dev != dev))) { |
req | 685 | drivers/scsi/scsi.c | if (req) { |
req | 686 | drivers/scsi/scsi.c | memcpy(&SCpnt->request, req, sizeof(struct request)); |
req | 688 | drivers/scsi/scsi.c | bhp = bh = req->bh; |
req | 692 | drivers/scsi/scsi.c | while(req->nr_sectors && bh){ |
req | 695 | drivers/scsi/scsi.c | req->nr_sectors -= bh->b_size >> 9; |
req | 696 | drivers/scsi/scsi.c | req->sector += bh->b_size >> 9; |
req | 700 | drivers/scsi/scsi.c | if(req->nr_sectors && bh && bh->b_reqnext){ /* Any leftovers? */ |
req | 702 | drivers/scsi/scsi.c | req->bh = bh->b_reqnext; /* Divide request */ |
req | 704 | drivers/scsi/scsi.c | bh = req->bh; |
req | 706 | drivers/scsi/scsi.c | SCpnt->request.nr_sectors -= req->nr_sectors; |
req | 707 | drivers/scsi/scsi.c | req->current_nr_sectors = bh->b_size >> 9; |
req | 708 | drivers/scsi/scsi.c | req->buffer = bh->b_data; |
req | 713 | drivers/scsi/scsi.c | req->dev = -1; |
req | 714 | drivers/scsi/scsi.c | *reqp = req->next; |
req | 1920 | drivers/scsi/scsi.c | struct request * req; |
req | 1922 | drivers/scsi/scsi.c | req = blk_dev[i].current_request; |
req | 1923 | drivers/scsi/scsi.c | while(req) { |
req | 1925 | drivers/scsi/scsi.c | req->dev, |
req | 1926 | drivers/scsi/scsi.c | req->cmd, |
req | 1927 | drivers/scsi/scsi.c | req->sector, |
req | 1928 | drivers/scsi/scsi.c | req->nr_sectors, |
req | 1929 | drivers/scsi/scsi.c | req->current_nr_sectors); |
req | 1930 | drivers/scsi/scsi.c | req = req->next; |
req | 520 | drivers/scsi/scsi.h | struct request * req; |
req | 523 | drivers/scsi/scsi.h | req = &SCpnt->request; |
req | 524 | drivers/scsi/scsi.h | req->errors = 0; |
req | 527 | drivers/scsi/scsi.h | req->dev,req->sector); |
req | 531 | drivers/scsi/scsi.h | if ((bh = req->bh) != NULL) { |
req | 532 | drivers/scsi/scsi.h | req->bh = bh->b_reqnext; |
req | 533 | drivers/scsi/scsi.h | req->nr_sectors -= bh->b_size >> 9; |
req | 534 | drivers/scsi/scsi.h | req->sector += bh->b_size >> 9; |
req | 539 | drivers/scsi/scsi.h | if ((bh = req->bh) != NULL) { |
req | 540 | drivers/scsi/scsi.h | req->current_nr_sectors = bh->b_size >> 9; |
req | 541 | drivers/scsi/scsi.h | if (req->nr_sectors < req->current_nr_sectors) { |
req | 542 | drivers/scsi/scsi.h | req->nr_sectors = req->current_nr_sectors; |
req | 548 | drivers/scsi/scsi.h | if (req->bh){ |
req | 549 | drivers/scsi/scsi.h | req->buffer = bh->b_data; |
req | 552 | drivers/scsi/scsi.h | DEVICE_OFF(req->dev); |
req | 553 | drivers/scsi/scsi.h | if (req->sem != NULL) { |
req | 554 | drivers/scsi/scsi.h | up(req->sem); |
req | 556 | drivers/scsi/scsi.h | req->dev = -1; |
req | 75 | drivers/scsi/scsi_ioctl.c | struct request * req; |
req | 77 | drivers/scsi/scsi_ioctl.c | req = &SCpnt->request; |
req | 78 | drivers/scsi/scsi_ioctl.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
req | 80 | drivers/scsi/scsi_ioctl.c | if (req->sem != NULL) { |
req | 81 | drivers/scsi/scsi_ioctl.c | up(req->sem); |
req | 334 | drivers/scsi/sd.c | struct request * req = NULL; |
req | 374 | drivers/scsi/sd.c | req = CURRENT; |
req | 375 | drivers/scsi/sd.c | while(req){ |
req | 376 | drivers/scsi/sd.c | SCpnt = request_queueable(req, |
req | 377 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(MINOR(req->dev))].device); |
req | 379 | drivers/scsi/sd.c | req1 = req; |
req | 380 | drivers/scsi/sd.c | req = req->next; |
req | 382 | drivers/scsi/sd.c | if (SCpnt && req->dev == -1) { |
req | 383 | drivers/scsi/sd.c | if (req == CURRENT) |
req | 386 | drivers/scsi/sd.c | req1->next = req->next; |
req | 789 | drivers/scsi/sd.c | struct request * req; |
req | 791 | drivers/scsi/sd.c | req = &SCpnt->request; |
req | 792 | drivers/scsi/sd.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
req | 794 | drivers/scsi/sd.c | if (req->sem != NULL) { |
req | 795 | drivers/scsi/sd.c | up(req->sem); |
req | 307 | drivers/scsi/sr.c | struct request * req = NULL; |
req | 336 | drivers/scsi/sr.c | req = CURRENT; |
req | 337 | drivers/scsi/sr.c | while(req){ |
req | 338 | drivers/scsi/sr.c | SCpnt = request_queueable(req, |
req | 339 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(MINOR(req->dev))].device); |
req | 341 | drivers/scsi/sr.c | req1 = req; |
req | 342 | drivers/scsi/sr.c | req = req->next; |
req | 344 | drivers/scsi/sr.c | if (SCpnt && req->dev == -1) { |
req | 345 | drivers/scsi/sr.c | if (req == CURRENT) |
req | 348 | drivers/scsi/sr.c | req1->next = req->next; |
req | 690 | drivers/scsi/sr.c | struct request * req; |
req | 692 | drivers/scsi/sr.c | req = &SCpnt->request; |
req | 693 | drivers/scsi/sr.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
req | 695 | drivers/scsi/sr.c | if (req->sem != NULL) { |
req | 696 | 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 | 136 | include/linux/serial.h | extern int register_serial(struct serial_struct *req); |
req | 957 | net/inet/arp.c | static int arp_req_set(struct arpreq *req) |
req | 966 | net/inet/arp.c | memcpy_fromfs(&r, req, sizeof(r)); |
req | 1067 | net/inet/arp.c | static int arp_req_get(struct arpreq *req) |
req | 1077 | net/inet/arp.c | memcpy_fromfs(&r, req, sizeof(r)); |
req | 1108 | 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)); |