tag | line | file | source code |
req | 1359 | drivers/block/ide-cd.c | struct request req; |
req | 1369 | drivers/block/ide-cd.c | ide_init_drive_cmd (&req); |
req | 1370 | drivers/block/ide-cd.c | req.cmd = PACKET_COMMAND; |
req | 1371 | drivers/block/ide-cd.c | req.buffer = (char *)pc; |
req | 1372 | drivers/block/ide-cd.c | (void) ide_do_drive_cmd (drive, &req, ide_wait); |
req | 2419 | drivers/block/ide-cd.c | struct request req; |
req | 2420 | drivers/block/ide-cd.c | ide_init_drive_cmd (&req); |
req | 2421 | drivers/block/ide-cd.c | req.cmd = RESET_DRIVE_COMMAND; |
req | 2422 | drivers/block/ide-cd.c | return ide_do_drive_cmd (drive, &req, ide_wait); |
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->rq_status == RQ_INACTIVE && 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->rq_status == RQ_INACTIVE) |
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->rq_status = RQ_ACTIVE; |
req | 167 | drivers/block/ll_rw_blk.c | req->rq_dev = dev; |
req | 168 | drivers/block/ll_rw_blk.c | return req; |
req | 176 | drivers/block/ll_rw_blk.c | register struct request *req; |
req | 184 | drivers/block/ll_rw_blk.c | req = get_request(n, dev); |
req | 186 | drivers/block/ll_rw_blk.c | if (req) |
req | 192 | drivers/block/ll_rw_blk.c | return req; |
req | 197 | drivers/block/ll_rw_blk.c | register struct request *req; |
req | 200 | drivers/block/ll_rw_blk.c | req = get_request(n, dev); |
req | 202 | drivers/block/ll_rw_blk.c | if (req) |
req | 203 | drivers/block/ll_rw_blk.c | return req; |
req | 254 | drivers/block/ll_rw_blk.c | static void add_request(struct blk_dev_struct * dev, struct request * req) |
req | 259 | drivers/block/ll_rw_blk.c | switch (MAJOR(req->rq_dev)) { |
req | 261 | drivers/block/ll_rw_blk.c | disk_index = (MINOR(req->rq_dev) & 0x0070) >> 4; |
req | 263 | drivers/block/ll_rw_blk.c | drive_stat_acct(req->cmd, req->nr_sectors, disk_index); |
req | 267 | drivers/block/ll_rw_blk.c | disk_index = (MINOR(req->rq_dev) & 0x0040) >> 6; |
req | 268 | drivers/block/ll_rw_blk.c | drive_stat_acct(req->cmd, req->nr_sectors, disk_index); |
req | 271 | drivers/block/ll_rw_blk.c | disk_index = ((MINOR(req->rq_dev) & 0x0040) >> 6) + 2; |
req | 272 | drivers/block/ll_rw_blk.c | drive_stat_acct(req->cmd, req->nr_sectors, disk_index); |
req | 277 | drivers/block/ll_rw_blk.c | req->next = NULL; |
req | 279 | drivers/block/ll_rw_blk.c | if (req->bh) |
req | 280 | drivers/block/ll_rw_blk.c | mark_buffer_clean(req->bh); |
req | 282 | drivers/block/ll_rw_blk.c | dev->current_request = req; |
req | 288 | drivers/block/ll_rw_blk.c | if ((IN_ORDER(tmp,req) || |
req | 290 | drivers/block/ll_rw_blk.c | IN_ORDER(req,tmp->next)) |
req | 293 | drivers/block/ll_rw_blk.c | req->next = tmp->next; |
req | 294 | drivers/block/ll_rw_blk.c | tmp->next = req; |
req | 297 | drivers/block/ll_rw_blk.c | if (scsi_major(MAJOR(req->rq_dev))) |
req | 306 | drivers/block/ll_rw_blk.c | struct request * req; |
req | 372 | drivers/block/ll_rw_blk.c | && (req = blk_dev[major].current_request)) |
req | 375 | drivers/block/ll_rw_blk.c | req = req->next; |
req | 376 | drivers/block/ll_rw_blk.c | while (req) { |
req | 377 | drivers/block/ll_rw_blk.c | if (req->rq_dev == bh->b_dev && |
req | 378 | drivers/block/ll_rw_blk.c | !req->sem && |
req | 379 | drivers/block/ll_rw_blk.c | req->cmd == rw && |
req | 380 | drivers/block/ll_rw_blk.c | req->sector + req->nr_sectors == sector && |
req | 381 | drivers/block/ll_rw_blk.c | req->nr_sectors < 244) |
req | 383 | drivers/block/ll_rw_blk.c | req->bhtail->b_reqnext = bh; |
req | 384 | drivers/block/ll_rw_blk.c | req->bhtail = bh; |
req | 385 | drivers/block/ll_rw_blk.c | req->nr_sectors += count; |
req | 391 | drivers/block/ll_rw_blk.c | if (req->rq_dev == bh->b_dev && |
req | 392 | drivers/block/ll_rw_blk.c | !req->sem && |
req | 393 | drivers/block/ll_rw_blk.c | req->cmd == rw && |
req | 394 | drivers/block/ll_rw_blk.c | req->sector - count == sector && |
req | 395 | drivers/block/ll_rw_blk.c | req->nr_sectors < 244) |
req | 397 | drivers/block/ll_rw_blk.c | req->nr_sectors += count; |
req | 398 | drivers/block/ll_rw_blk.c | bh->b_reqnext = req->bh; |
req | 399 | drivers/block/ll_rw_blk.c | req->buffer = bh->b_data; |
req | 400 | drivers/block/ll_rw_blk.c | req->current_nr_sectors = count; |
req | 401 | drivers/block/ll_rw_blk.c | req->sector = sector; |
req | 403 | drivers/block/ll_rw_blk.c | req->bh = bh; |
req | 408 | drivers/block/ll_rw_blk.c | req = req->next; |
req | 413 | drivers/block/ll_rw_blk.c | req = get_request(max_req, bh->b_dev); |
req | 417 | drivers/block/ll_rw_blk.c | if (!req) { |
req | 422 | drivers/block/ll_rw_blk.c | req = __get_request_wait(max_req, bh->b_dev); |
req | 426 | drivers/block/ll_rw_blk.c | req->cmd = rw; |
req | 427 | drivers/block/ll_rw_blk.c | req->errors = 0; |
req | 428 | drivers/block/ll_rw_blk.c | req->sector = sector; |
req | 429 | drivers/block/ll_rw_blk.c | req->nr_sectors = count; |
req | 430 | drivers/block/ll_rw_blk.c | req->current_nr_sectors = count; |
req | 431 | drivers/block/ll_rw_blk.c | req->buffer = bh->b_data; |
req | 432 | drivers/block/ll_rw_blk.c | req->sem = NULL; |
req | 433 | drivers/block/ll_rw_blk.c | req->bh = bh; |
req | 434 | drivers/block/ll_rw_blk.c | req->bhtail = bh; |
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 | 441 | drivers/block/ll_rw_blk.c | struct request * req; |
req | 464 | drivers/block/ll_rw_blk.c | req = get_request_wait(NR_REQUEST, dev); |
req | 466 | drivers/block/ll_rw_blk.c | req->cmd = rw; |
req | 467 | drivers/block/ll_rw_blk.c | req->errors = 0; |
req | 468 | drivers/block/ll_rw_blk.c | req->sector = sector; |
req | 469 | drivers/block/ll_rw_blk.c | req->nr_sectors = PAGE_SIZE / 512; |
req | 470 | drivers/block/ll_rw_blk.c | req->current_nr_sectors = PAGE_SIZE / 512; |
req | 471 | drivers/block/ll_rw_blk.c | req->buffer = buffer; |
req | 472 | drivers/block/ll_rw_blk.c | req->sem = &sem; |
req | 473 | drivers/block/ll_rw_blk.c | req->bh = NULL; |
req | 474 | drivers/block/ll_rw_blk.c | req->next = NULL; |
req | 475 | drivers/block/ll_rw_blk.c | add_request(major+blk_dev,req); |
req | 562 | drivers/block/ll_rw_blk.c | struct request * req[8]; |
req | 590 | drivers/block/ll_rw_blk.c | req[j] = get_request_wait(NR_REQUEST, dev); |
req | 593 | drivers/block/ll_rw_blk.c | req[j] = get_request(NR_REQUEST, dev); |
req | 595 | drivers/block/ll_rw_blk.c | if (req[j] == NULL) |
req | 598 | drivers/block/ll_rw_blk.c | req[j]->cmd = rw; |
req | 599 | drivers/block/ll_rw_blk.c | req[j]->errors = 0; |
req | 600 | drivers/block/ll_rw_blk.c | req[j]->sector = (b[i] * buffersize) >> 9; |
req | 601 | drivers/block/ll_rw_blk.c | req[j]->nr_sectors = buffersize >> 9; |
req | 602 | drivers/block/ll_rw_blk.c | req[j]->current_nr_sectors = buffersize >> 9; |
req | 603 | drivers/block/ll_rw_blk.c | req[j]->buffer = buf; |
req | 604 | drivers/block/ll_rw_blk.c | req[j]->sem = &sem; |
req | 605 | drivers/block/ll_rw_blk.c | req[j]->bh = NULL; |
req | 606 | drivers/block/ll_rw_blk.c | req[j]->next = NULL; |
req | 607 | drivers/block/ll_rw_blk.c | add_request(major+blk_dev,req[j]); |
req | 618 | drivers/block/ll_rw_blk.c | struct request * req; |
req | 620 | drivers/block/ll_rw_blk.c | req = all_requests + NR_REQUEST; |
req | 621 | drivers/block/ll_rw_blk.c | while (--req >= all_requests) { |
req | 622 | drivers/block/ll_rw_blk.c | req->rq_status = RQ_INACTIVE; |
req | 623 | drivers/block/ll_rw_blk.c | req->next = NULL; |
req | 2777 | drivers/char/serial.c | int register_serial(struct serial_struct *req) |
req | 2786 | drivers/char/serial.c | if (rs_table[i].port == req->port) |
req | 2803 | drivers/char/serial.c | "device already open\n", i, req->port, req->irq); |
req | 2806 | drivers/char/serial.c | info->irq = req->irq; |
req | 2807 | drivers/char/serial.c | info->port = req->port; |
req | 835 | drivers/scsi/scsi.c | Scsi_Cmnd * request_queueable (struct request * req, Scsi_Device * device) |
req | 845 | drivers/scsi/scsi.c | if (req && req->rq_status == RQ_INACTIVE) |
req | 893 | drivers/scsi/scsi.c | if (req) { |
req | 894 | drivers/scsi/scsi.c | memcpy(&SCpnt->request, req, sizeof(struct request)); |
req | 896 | drivers/scsi/scsi.c | bhp = bh = req->bh; |
req | 902 | drivers/scsi/scsi.c | while(req->nr_sectors && bh){ |
req | 905 | drivers/scsi/scsi.c | req->nr_sectors -= bh->b_size >> 9; |
req | 906 | drivers/scsi/scsi.c | req->sector += bh->b_size >> 9; |
req | 910 | drivers/scsi/scsi.c | if(req->nr_sectors && bh && bh->b_reqnext){ /* Any leftovers? */ |
req | 912 | drivers/scsi/scsi.c | req->bh = bh->b_reqnext; /* Divide request */ |
req | 914 | drivers/scsi/scsi.c | bh = req->bh; |
req | 917 | drivers/scsi/scsi.c | SCpnt->request.nr_sectors -= req->nr_sectors; |
req | 918 | drivers/scsi/scsi.c | req->current_nr_sectors = bh->b_size >> 9; |
req | 919 | drivers/scsi/scsi.c | req->buffer = bh->b_data; |
req | 922 | drivers/scsi/scsi.c | req->rq_status = RQ_INACTIVE; |
req | 961 | drivers/scsi/scsi.c | struct request * req = NULL; |
req | 973 | drivers/scsi/scsi.c | if (reqp) req = *reqp; |
req | 976 | drivers/scsi/scsi.c | if (req) { |
req | 977 | drivers/scsi/scsi.c | if(req->rq_status == RQ_INACTIVE) return NULL; |
req | 978 | drivers/scsi/scsi.c | dev = req->rq_dev; |
req | 1027 | drivers/scsi/scsi.c | if (req && (req->rq_status == RQ_INACTIVE || req->rq_dev != dev)) { |
req | 1043 | drivers/scsi/scsi.c | if (req) { |
req | 1044 | drivers/scsi/scsi.c | memcpy(&SCpnt->request, req, sizeof(struct request)); |
req | 1046 | drivers/scsi/scsi.c | bhp = bh = req->bh; |
req | 1052 | drivers/scsi/scsi.c | while(req->nr_sectors && bh){ |
req | 1055 | drivers/scsi/scsi.c | req->nr_sectors -= bh->b_size >> 9; |
req | 1056 | drivers/scsi/scsi.c | req->sector += bh->b_size >> 9; |
req | 1060 | drivers/scsi/scsi.c | if(req->nr_sectors && bh && bh->b_reqnext){/* Any leftovers? */ |
req | 1062 | drivers/scsi/scsi.c | req->bh = bh->b_reqnext; /* Divide request */ |
req | 1064 | drivers/scsi/scsi.c | bh = req->bh; |
req | 1066 | drivers/scsi/scsi.c | SCpnt->request.nr_sectors -= req->nr_sectors; |
req | 1067 | drivers/scsi/scsi.c | req->current_nr_sectors = bh->b_size >> 9; |
req | 1068 | drivers/scsi/scsi.c | req->buffer = bh->b_data; |
req | 1073 | drivers/scsi/scsi.c | req->rq_status = RQ_INACTIVE; |
req | 1074 | drivers/scsi/scsi.c | *reqp = req->next; |
req | 3101 | drivers/scsi/scsi.c | struct request * req; |
req | 3103 | drivers/scsi/scsi.c | req = blk_dev[i].current_request; |
req | 3104 | drivers/scsi/scsi.c | while(req) { |
req | 3106 | drivers/scsi/scsi.c | kdevname(req->rq_dev), |
req | 3107 | drivers/scsi/scsi.c | req->cmd, |
req | 3108 | drivers/scsi/scsi.c | req->sector, |
req | 3109 | drivers/scsi/scsi.c | req->nr_sectors, |
req | 3110 | drivers/scsi/scsi.c | req->current_nr_sectors); |
req | 3111 | drivers/scsi/scsi.c | req = req->next; |
req | 460 | drivers/scsi/scsi.h | struct request * req; |
req | 463 | drivers/scsi/scsi.h | req = &SCpnt->request; |
req | 464 | drivers/scsi/scsi.h | req->errors = 0; |
req | 467 | drivers/scsi/scsi.h | kdevname(req->rq_dev), req->sector); |
req | 471 | drivers/scsi/scsi.h | if ((bh = req->bh) != NULL) { |
req | 472 | drivers/scsi/scsi.h | req->bh = bh->b_reqnext; |
req | 473 | drivers/scsi/scsi.h | req->nr_sectors -= bh->b_size >> 9; |
req | 474 | drivers/scsi/scsi.h | req->sector += bh->b_size >> 9; |
req | 479 | drivers/scsi/scsi.h | if ((bh = req->bh) != NULL) { |
req | 480 | drivers/scsi/scsi.h | req->current_nr_sectors = bh->b_size >> 9; |
req | 481 | drivers/scsi/scsi.h | if (req->nr_sectors < req->current_nr_sectors) { |
req | 482 | drivers/scsi/scsi.h | req->nr_sectors = req->current_nr_sectors; |
req | 488 | drivers/scsi/scsi.h | if (req->bh){ |
req | 489 | drivers/scsi/scsi.h | req->buffer = bh->b_data; |
req | 492 | drivers/scsi/scsi.h | DEVICE_OFF(req->rq_dev); |
req | 493 | drivers/scsi/scsi.h | if (req->sem != NULL) { |
req | 494 | drivers/scsi/scsi.h | up(req->sem); |
req | 505 | drivers/scsi/scsi.h | req->rq_status = RQ_INACTIVE; |
req | 94 | drivers/scsi/scsi_ioctl.c | struct request * req; |
req | 96 | drivers/scsi/scsi_ioctl.c | req = &SCpnt->request; |
req | 97 | drivers/scsi/scsi_ioctl.c | req->rq_status = RQ_SCSI_DONE; /* Busy, but indicate request done */ |
req | 99 | drivers/scsi/scsi_ioctl.c | if (req->sem != NULL) { |
req | 100 | drivers/scsi/scsi_ioctl.c | up(req->sem); |
req | 410 | drivers/scsi/sd.c | struct request * req = NULL; |
req | 483 | drivers/scsi/sd.c | req = CURRENT; |
req | 484 | drivers/scsi/sd.c | while(req){ |
req | 485 | drivers/scsi/sd.c | SCpnt = request_queueable(req, rscsi_disks[DEVICE_NR(req->rq_dev)].device); |
req | 487 | drivers/scsi/sd.c | req1 = req; |
req | 488 | drivers/scsi/sd.c | req = req->next; |
req | 490 | drivers/scsi/sd.c | if (SCpnt && req->rq_status == RQ_INACTIVE) { |
req | 491 | drivers/scsi/sd.c | if (req == CURRENT) |
req | 494 | drivers/scsi/sd.c | req1->next = req->next; |
req | 942 | drivers/scsi/sd.c | struct request * req; |
req | 944 | drivers/scsi/sd.c | req = &SCpnt->request; |
req | 945 | drivers/scsi/sd.c | req->rq_status = RQ_SCSI_DONE; /* Busy, but indicate request done */ |
req | 947 | drivers/scsi/sd.c | if (req->sem != NULL) { |
req | 948 | drivers/scsi/sd.c | up(req->sem); |
req | 558 | drivers/scsi/sr.c | struct request * req = NULL; |
req | 613 | drivers/scsi/sr.c | req = CURRENT; |
req | 614 | drivers/scsi/sr.c | while(req){ |
req | 615 | drivers/scsi/sr.c | SCpnt = request_queueable(req, |
req | 616 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(req->rq_dev)].device); |
req | 618 | drivers/scsi/sr.c | req1 = req; |
req | 619 | drivers/scsi/sr.c | req = req->next; |
req | 621 | drivers/scsi/sr.c | if (SCpnt && req->rq_status == RQ_INACTIVE) { |
req | 622 | drivers/scsi/sr.c | if (req == CURRENT) |
req | 625 | drivers/scsi/sr.c | req1->next = req->next; |
req | 965 | drivers/scsi/sr.c | struct request * req; |
req | 967 | drivers/scsi/sr.c | req = &SCpnt->request; |
req | 968 | drivers/scsi/sr.c | req->rq_status = RQ_SCSI_DONE; /* Busy, but indicate request done */ |
req | 970 | drivers/scsi/sr.c | if (req->sem != NULL) { |
req | 971 | 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->rq_status = RQ_SCSI_DONE; /* 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 | 349 | include/linux/blk.h | struct request *req = hwgroup->rq; |
req | 352 | include/linux/blk.h | struct request *req = CURRENT; |
req | 356 | include/linux/blk.h | req->errors = 0; |
req | 359 | include/linux/blk.h | kdevname(req->rq_dev), req->sector); |
req | 360 | include/linux/blk.h | req->nr_sectors--; |
req | 361 | include/linux/blk.h | req->nr_sectors &= ~SECTOR_MASK; |
req | 362 | include/linux/blk.h | req->sector += (BLOCK_SIZE / 512); |
req | 363 | include/linux/blk.h | req->sector &= ~SECTOR_MASK; |
req | 366 | include/linux/blk.h | if ((bh = req->bh) != NULL) { |
req | 367 | include/linux/blk.h | req->bh = bh->b_reqnext; |
req | 371 | include/linux/blk.h | if ((bh = req->bh) != NULL) { |
req | 372 | include/linux/blk.h | req->current_nr_sectors = bh->b_size >> 9; |
req | 373 | include/linux/blk.h | if (req->nr_sectors < req->current_nr_sectors) { |
req | 374 | include/linux/blk.h | req->nr_sectors = req->current_nr_sectors; |
req | 377 | include/linux/blk.h | req->buffer = bh->b_data; |
req | 382 | include/linux/blk.h | add_blkdev_randomness(MAJOR(req->rq_dev)); |
req | 385 | include/linux/blk.h | blk_dev[MAJOR(req->rq_dev)].current_request = req->next; |
req | 388 | include/linux/blk.h | DEVICE_OFF(req->rq_dev); |
req | 389 | include/linux/blk.h | CURRENT = req->next; |
req | 391 | include/linux/blk.h | if (req->sem != NULL) |
req | 392 | include/linux/blk.h | up(req->sem); |
req | 393 | include/linux/blk.h | req->rq_status = RQ_INACTIVE; |
req | 203 | include/linux/serial.h | extern int register_serial(struct serial_struct *req); |
req | 283 | net/ipv4/rarp.c | static int rarp_req_set(struct arpreq *req) |
req | 293 | net/ipv4/rarp.c | memcpy_fromfs(&r, req, sizeof(r)); |
req | 384 | net/ipv4/rarp.c | static int rarp_req_get(struct arpreq *req) |
req | 395 | net/ipv4/rarp.c | memcpy_fromfs(&r, req, sizeof(r)); |
req | 430 | net/ipv4/rarp.c | memcpy_tofs(req, &r, sizeof(r)); |