tag | line | file | source code |
req | 211 | kernel/blk_drv/blk.h | struct request * req; |
req | 215 | kernel/blk_drv/blk.h | req = CURRENT; |
req | 216 | kernel/blk_drv/blk.h | req->errors = 0; |
req | 219 | kernel/blk_drv/blk.h | printk("dev %04x, sector %d\n",req->dev,req->sector); |
req | 220 | kernel/blk_drv/blk.h | req->nr_sectors--; |
req | 221 | kernel/blk_drv/blk.h | req->nr_sectors &= ~SECTOR_MASK; |
req | 222 | kernel/blk_drv/blk.h | req->sector += (BLOCK_SIZE / 512); |
req | 223 | kernel/blk_drv/blk.h | req->sector &= ~SECTOR_MASK; |
req | 226 | kernel/blk_drv/blk.h | if ((bh = req->bh) != NULL) { |
req | 227 | kernel/blk_drv/blk.h | req->bh = bh->b_reqnext; |
req | 231 | kernel/blk_drv/blk.h | if ((bh = req->bh) != NULL) { |
req | 232 | kernel/blk_drv/blk.h | req->current_nr_sectors = bh->b_size >> 9; |
req | 233 | kernel/blk_drv/blk.h | if (req->nr_sectors < req->current_nr_sectors) { |
req | 234 | kernel/blk_drv/blk.h | req->nr_sectors = req->current_nr_sectors; |
req | 237 | kernel/blk_drv/blk.h | req->buffer = bh->b_data; |
req | 241 | kernel/blk_drv/blk.h | DEVICE_OFF(req->dev); |
req | 242 | kernel/blk_drv/blk.h | CURRENT = req->next; |
req | 243 | kernel/blk_drv/blk.h | if ((p = req->waiting) != NULL) { |
req | 244 | kernel/blk_drv/blk.h | req->waiting = NULL; |
req | 249 | kernel/blk_drv/blk.h | req->dev = -1; |
req | 92 | kernel/blk_drv/ll_rw_blk.c | static void add_request(struct blk_dev_struct * dev, struct request * req) |
req | 96 | kernel/blk_drv/ll_rw_blk.c | req->next = NULL; |
req | 98 | kernel/blk_drv/ll_rw_blk.c | if (req->bh) |
req | 99 | kernel/blk_drv/ll_rw_blk.c | req->bh->b_dirt = 0; |
req | 101 | kernel/blk_drv/ll_rw_blk.c | dev->current_request = req; |
req | 107 | kernel/blk_drv/ll_rw_blk.c | if ((IN_ORDER(tmp,req) || |
req | 109 | kernel/blk_drv/ll_rw_blk.c | IN_ORDER(req,tmp->next)) |
req | 112 | kernel/blk_drv/ll_rw_blk.c | req->next = tmp->next; |
req | 113 | kernel/blk_drv/ll_rw_blk.c | tmp->next = req; |
req | 116 | kernel/blk_drv/ll_rw_blk.c | if(MAJOR(req->dev) == 8 || |
req | 117 | kernel/blk_drv/ll_rw_blk.c | MAJOR(req->dev) == 9 || |
req | 118 | kernel/blk_drv/ll_rw_blk.c | MAJOR(req->dev) == 11) |
req | 127 | kernel/blk_drv/ll_rw_blk.c | struct request * req; |
req | 163 | kernel/blk_drv/ll_rw_blk.c | if ((major == 3 || major == 8 || major == 11)&& (req = blk_dev[major].current_request)) { |
req | 164 | kernel/blk_drv/ll_rw_blk.c | if(major == 3) req = req->next; |
req | 165 | kernel/blk_drv/ll_rw_blk.c | while (req) { |
req | 166 | kernel/blk_drv/ll_rw_blk.c | if (req->dev == bh->b_dev && |
req | 167 | kernel/blk_drv/ll_rw_blk.c | !req->waiting && |
req | 168 | kernel/blk_drv/ll_rw_blk.c | req->cmd == rw && |
req | 169 | kernel/blk_drv/ll_rw_blk.c | req->sector + req->nr_sectors == sector && |
req | 170 | kernel/blk_drv/ll_rw_blk.c | req->nr_sectors < 254) { |
req | 171 | kernel/blk_drv/ll_rw_blk.c | req->bhtail->b_reqnext = bh; |
req | 172 | kernel/blk_drv/ll_rw_blk.c | req->bhtail = bh; |
req | 173 | kernel/blk_drv/ll_rw_blk.c | req->nr_sectors += count; |
req | 178 | kernel/blk_drv/ll_rw_blk.c | req = req->next; |
req | 186 | kernel/blk_drv/ll_rw_blk.c | req = request+NR_REQUEST; |
req | 188 | kernel/blk_drv/ll_rw_blk.c | req = request+(NR_REQUEST/2); |
req | 190 | kernel/blk_drv/ll_rw_blk.c | while (--req >= request) |
req | 191 | kernel/blk_drv/ll_rw_blk.c | if (req->dev < 0) |
req | 205 | kernel/blk_drv/ll_rw_blk.c | req->dev = bh->b_dev; |
req | 207 | kernel/blk_drv/ll_rw_blk.c | req->cmd = rw; |
req | 208 | kernel/blk_drv/ll_rw_blk.c | req->errors = 0; |
req | 209 | kernel/blk_drv/ll_rw_blk.c | req->sector = sector; |
req | 210 | kernel/blk_drv/ll_rw_blk.c | req->nr_sectors = count; |
req | 211 | kernel/blk_drv/ll_rw_blk.c | req->current_nr_sectors = count; |
req | 212 | kernel/blk_drv/ll_rw_blk.c | req->buffer = bh->b_data; |
req | 213 | kernel/blk_drv/ll_rw_blk.c | req->waiting = NULL; |
req | 214 | kernel/blk_drv/ll_rw_blk.c | req->bh = bh; |
req | 215 | kernel/blk_drv/ll_rw_blk.c | req->bhtail = bh; |
req | 216 | kernel/blk_drv/ll_rw_blk.c | req->next = NULL; |
req | 217 | kernel/blk_drv/ll_rw_blk.c | add_request(major+blk_dev,req); |
req | 222 | kernel/blk_drv/ll_rw_blk.c | struct request * req; |
req | 237 | kernel/blk_drv/ll_rw_blk.c | req = request+NR_REQUEST; |
req | 238 | kernel/blk_drv/ll_rw_blk.c | while (--req >= request) |
req | 239 | kernel/blk_drv/ll_rw_blk.c | if (req->dev<0) |
req | 241 | kernel/blk_drv/ll_rw_blk.c | if (req < request) { |
req | 247 | kernel/blk_drv/ll_rw_blk.c | req->dev = dev; |
req | 248 | kernel/blk_drv/ll_rw_blk.c | req->cmd = rw; |
req | 249 | kernel/blk_drv/ll_rw_blk.c | req->errors = 0; |
req | 250 | kernel/blk_drv/ll_rw_blk.c | req->sector = page<<3; |
req | 251 | kernel/blk_drv/ll_rw_blk.c | req->nr_sectors = 8; |
req | 252 | kernel/blk_drv/ll_rw_blk.c | req->current_nr_sectors = 8; |
req | 253 | kernel/blk_drv/ll_rw_blk.c | req->buffer = buffer; |
req | 254 | kernel/blk_drv/ll_rw_blk.c | req->waiting = current; |
req | 255 | kernel/blk_drv/ll_rw_blk.c | req->bh = NULL; |
req | 256 | kernel/blk_drv/ll_rw_blk.c | req->next = NULL; |
req | 258 | kernel/blk_drv/ll_rw_blk.c | add_request(major+blk_dev,req); |
req | 332 | kernel/blk_drv/ll_rw_blk.c | struct request * req; |
req | 352 | kernel/blk_drv/ll_rw_blk.c | req = request+NR_REQUEST; |
req | 353 | kernel/blk_drv/ll_rw_blk.c | while (--req >= request) |
req | 354 | kernel/blk_drv/ll_rw_blk.c | if (req->dev<0) |
req | 356 | kernel/blk_drv/ll_rw_blk.c | if (req < request) { |
req | 361 | kernel/blk_drv/ll_rw_blk.c | req->dev = dev; |
req | 362 | kernel/blk_drv/ll_rw_blk.c | req->cmd = rw; |
req | 363 | kernel/blk_drv/ll_rw_blk.c | req->errors = 0; |
req | 364 | kernel/blk_drv/ll_rw_blk.c | req->sector = b[i] << 1; |
req | 365 | kernel/blk_drv/ll_rw_blk.c | req->nr_sectors = 2; |
req | 366 | kernel/blk_drv/ll_rw_blk.c | req->current_nr_sectors = 2; |
req | 367 | kernel/blk_drv/ll_rw_blk.c | req->buffer = buf; |
req | 368 | kernel/blk_drv/ll_rw_blk.c | req->waiting = current; |
req | 369 | kernel/blk_drv/ll_rw_blk.c | req->bh = NULL; |
req | 370 | kernel/blk_drv/ll_rw_blk.c | req->next = NULL; |
req | 372 | kernel/blk_drv/ll_rw_blk.c | add_request(major+blk_dev,req); |
req | 416 | kernel/blk_drv/scsi/scsi.c | Scsi_Cmnd * request_queueable (struct request * req, int index) |
req | 424 | kernel/blk_drv/scsi/scsi.c | if (req && req->dev <= 0) |
req | 441 | kernel/blk_drv/scsi/scsi.c | if (req) { |
req | 442 | kernel/blk_drv/scsi/scsi.c | memcpy(&SCpnt->request, req, sizeof(struct request)); |
req | 443 | kernel/blk_drv/scsi/scsi.c | req->dev = -1; |
req | 467 | kernel/blk_drv/scsi/scsi.c | struct request * req = NULL; |
req | 474 | kernel/blk_drv/scsi/scsi.c | if (reqp) req = *reqp; |
req | 477 | kernel/blk_drv/scsi/scsi.c | if (req && (dev = req->dev) <= 0) return NULL; |
req | 493 | kernel/blk_drv/scsi/scsi.c | if (req && ((req->dev < 0) || (req->dev != dev))) { |
req | 509 | kernel/blk_drv/scsi/scsi.c | if (req) { |
req | 510 | kernel/blk_drv/scsi/scsi.c | memcpy(&SCpnt->request, req, sizeof(struct request)); |
req | 511 | kernel/blk_drv/scsi/scsi.c | req->dev = -1; |
req | 512 | kernel/blk_drv/scsi/scsi.c | *reqp = req->next; |
req | 449 | kernel/blk_drv/scsi/scsi.h | struct request * req; |
req | 453 | kernel/blk_drv/scsi/scsi.h | req = &SCpnt->request; |
req | 454 | kernel/blk_drv/scsi/scsi.h | req->errors = 0; |
req | 457 | kernel/blk_drv/scsi/scsi.h | printk("dev %04x, sector %d\n",req->dev,req->sector); |
req | 461 | kernel/blk_drv/scsi/scsi.h | if ((bh = req->bh) != NULL) { |
req | 462 | kernel/blk_drv/scsi/scsi.h | req->bh = bh->b_reqnext; |
req | 463 | kernel/blk_drv/scsi/scsi.h | req->nr_sectors -= bh->b_size >> 9; |
req | 464 | kernel/blk_drv/scsi/scsi.h | req->sector += bh->b_size >> 9; |
req | 469 | kernel/blk_drv/scsi/scsi.h | if ((bh = req->bh) != NULL) { |
req | 470 | kernel/blk_drv/scsi/scsi.h | req->current_nr_sectors = bh->b_size >> 9; |
req | 471 | kernel/blk_drv/scsi/scsi.h | if (req->nr_sectors < req->current_nr_sectors) { |
req | 472 | kernel/blk_drv/scsi/scsi.h | req->nr_sectors = req->current_nr_sectors; |
req | 478 | kernel/blk_drv/scsi/scsi.h | if (req->bh){ |
req | 479 | kernel/blk_drv/scsi/scsi.h | req->buffer = bh->b_data; |
req | 482 | kernel/blk_drv/scsi/scsi.h | DEVICE_OFF(req->dev); |
req | 483 | kernel/blk_drv/scsi/scsi.h | if ((p = req->waiting) != NULL) { |
req | 484 | kernel/blk_drv/scsi/scsi.h | req->waiting = NULL; |
req | 489 | kernel/blk_drv/scsi/scsi.h | req->dev = -1; |
req | 75 | kernel/blk_drv/scsi/scsi_ioctl.c | struct request * req; |
req | 78 | kernel/blk_drv/scsi/scsi_ioctl.c | req = &SCpnt->request; |
req | 79 | kernel/blk_drv/scsi/scsi_ioctl.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
req | 81 | kernel/blk_drv/scsi/scsi_ioctl.c | if ((p = req->waiting) != NULL) { |
req | 82 | kernel/blk_drv/scsi/scsi_ioctl.c | req->waiting = NULL; |
req | 322 | kernel/blk_drv/scsi/sd.c | struct request * req = NULL; |
req | 361 | kernel/blk_drv/scsi/sd.c | req = CURRENT; |
req | 362 | kernel/blk_drv/scsi/sd.c | while(req){ |
req | 363 | kernel/blk_drv/scsi/sd.c | SCpnt = request_queueable(req, |
req | 364 | kernel/blk_drv/scsi/sd.c | rscsi_disks[DEVICE_NR(MINOR(req->dev))].device->index); |
req | 366 | kernel/blk_drv/scsi/sd.c | req1 = req; |
req | 367 | kernel/blk_drv/scsi/sd.c | req = req->next; |
req | 370 | kernel/blk_drv/scsi/sd.c | if (req == CURRENT) |
req | 373 | kernel/blk_drv/scsi/sd.c | req1->next = req->next; |
req | 656 | kernel/blk_drv/scsi/sd.c | struct request * req; |
req | 659 | kernel/blk_drv/scsi/sd.c | req = &SCpnt->request; |
req | 660 | kernel/blk_drv/scsi/sd.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
req | 662 | kernel/blk_drv/scsi/sd.c | if ((p = req->waiting) != NULL) { |
req | 663 | kernel/blk_drv/scsi/sd.c | req->waiting = NULL; |
req | 278 | kernel/blk_drv/scsi/sr.c | struct request * req = NULL; |
req | 308 | kernel/blk_drv/scsi/sr.c | req = CURRENT; |
req | 309 | kernel/blk_drv/scsi/sr.c | while(req){ |
req | 310 | kernel/blk_drv/scsi/sr.c | SCpnt = request_queueable(req, |
req | 311 | kernel/blk_drv/scsi/sr.c | scsi_CDs[DEVICE_NR(MINOR(req->dev))].device->index); |
req | 313 | kernel/blk_drv/scsi/sr.c | req1 = req; |
req | 314 | kernel/blk_drv/scsi/sr.c | req = req->next; |
req | 317 | kernel/blk_drv/scsi/sr.c | if (req == CURRENT) |
req | 320 | kernel/blk_drv/scsi/sr.c | req1->next = req->next; |
req | 614 | kernel/blk_drv/scsi/sr.c | struct request * req; |
req | 617 | kernel/blk_drv/scsi/sr.c | req = &SCpnt->request; |
req | 618 | kernel/blk_drv/scsi/sr.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
req | 620 | kernel/blk_drv/scsi/sr.c | if ((p = req->waiting) != NULL) { |
req | 621 | kernel/blk_drv/scsi/sr.c | req->waiting = NULL; |
req | 22 | kernel/blk_drv/scsi/sr_ioctl.c | struct request * req; |
req | 25 | kernel/blk_drv/scsi/sr_ioctl.c | req = &SCpnt->request; |
req | 26 | kernel/blk_drv/scsi/sr_ioctl.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
req | 28 | kernel/blk_drv/scsi/sr_ioctl.c | if ((p = req->waiting) != NULL) { |
req | 29 | kernel/blk_drv/scsi/sr_ioctl.c | req->waiting = NULL; |
req | 563 | net/tcp/arp.c | static int arpreq_check(struct arpreq *req) |
req | 566 | net/tcp/arp.c | if (req->arp_pa.sa_family != AF_INET) return -1; |
req | 568 | net/tcp/arp.c | if (req->arp_ha.sa_family != AF_UNSPEC) return -1; |
req | 573 | net/tcp/arp.c | int arp_ioctl_set(struct arpreq *req) |
req | 578 | net/tcp/arp.c | memcpy_fromfs(&r, req, sizeof(r)); |
req | 595 | net/tcp/arp.c | int arp_ioctl_get(struct arpreq *req) |
req | 600 | net/tcp/arp.c | memcpy_fromfs(&r, req, sizeof(r)); |
req | 610 | net/tcp/arp.c | memcpy_tofs(req, &r, sizeof(r)); |
req | 614 | net/tcp/arp.c | int arp_ioctl_del(struct arpreq *req) |
req | 618 | net/tcp/arp.c | memcpy_fromfs(&r, req, sizeof(r)); |
req | 85 | net/tcp/arp.h | int arp_ioctl_set(struct arpreq *req); |
req | 86 | net/tcp/arp.h | int arp_ioctl_get(struct arpreq *req); |
req | 87 | net/tcp/arp.h | int arp_ioctl_del(struct arpreq *req); |