tag | line | file | source code |
req | 201 | kernel/blk_drv/blk.h | struct request * req; |
req | 205 | kernel/blk_drv/blk.h | req = CURRENT; |
req | 206 | kernel/blk_drv/blk.h | req->errors = 0; |
req | 209 | kernel/blk_drv/blk.h | printk("dev %04x, sector %d\n",req->dev,req->sector); |
req | 210 | kernel/blk_drv/blk.h | req->nr_sectors--; |
req | 211 | kernel/blk_drv/blk.h | req->nr_sectors &= ~SECTOR_MASK; |
req | 212 | kernel/blk_drv/blk.h | req->sector += (BLOCK_SIZE / 512); |
req | 213 | kernel/blk_drv/blk.h | req->sector &= ~SECTOR_MASK; |
req | 216 | kernel/blk_drv/blk.h | if ((bh = req->bh) != NULL) { |
req | 217 | kernel/blk_drv/blk.h | req->bh = bh->b_reqnext; |
req | 221 | kernel/blk_drv/blk.h | if ((bh = req->bh) != NULL) { |
req | 222 | kernel/blk_drv/blk.h | req->current_nr_sectors = bh->b_size >> 9; |
req | 223 | kernel/blk_drv/blk.h | if (req->nr_sectors < req->current_nr_sectors) { |
req | 224 | kernel/blk_drv/blk.h | req->nr_sectors = req->current_nr_sectors; |
req | 227 | kernel/blk_drv/blk.h | req->buffer = bh->b_data; |
req | 231 | kernel/blk_drv/blk.h | DEVICE_OFF(req->dev); |
req | 232 | kernel/blk_drv/blk.h | CURRENT = req->next; |
req | 233 | kernel/blk_drv/blk.h | if ((p = req->waiting) != NULL) { |
req | 234 | kernel/blk_drv/blk.h | req->waiting = NULL; |
req | 239 | 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 | 409 | kernel/blk_drv/scsi/scsi.c | Scsi_Cmnd * request_queueable (struct request * req, int index) |
req | 417 | kernel/blk_drv/scsi/scsi.c | if (req && req->dev <= 0) |
req | 434 | kernel/blk_drv/scsi/scsi.c | if (req) { |
req | 435 | kernel/blk_drv/scsi/scsi.c | memcpy(&SCpnt->request, req, sizeof(struct request)); |
req | 436 | kernel/blk_drv/scsi/scsi.c | req->dev = -1; |
req | 458 | kernel/blk_drv/scsi/scsi.c | struct request * req = NULL; |
req | 465 | kernel/blk_drv/scsi/scsi.c | if (reqp) req = *reqp; |
req | 467 | kernel/blk_drv/scsi/scsi.c | if (req && (dev = req->dev) <= 0) |
req | 484 | kernel/blk_drv/scsi/scsi.c | if (req && ((req->dev < 0) || (req->dev != dev))) return NULL; |
req | 497 | kernel/blk_drv/scsi/scsi.c | if (req) { |
req | 498 | kernel/blk_drv/scsi/scsi.c | memcpy(&SCpnt->request, req, sizeof(struct request)); |
req | 499 | kernel/blk_drv/scsi/scsi.c | req->dev = -1; |
req | 500 | kernel/blk_drv/scsi/scsi.c | *reqp = req->next; |
req | 418 | kernel/blk_drv/scsi/scsi.h | struct request * req; |
req | 422 | kernel/blk_drv/scsi/scsi.h | req = &SCpnt->request; |
req | 423 | kernel/blk_drv/scsi/scsi.h | req->errors = 0; |
req | 426 | kernel/blk_drv/scsi/scsi.h | printk("dev %04x, sector %d\n",req->dev,req->sector); |
req | 430 | kernel/blk_drv/scsi/scsi.h | if ((bh = req->bh) != NULL) { |
req | 431 | kernel/blk_drv/scsi/scsi.h | req->bh = bh->b_reqnext; |
req | 432 | kernel/blk_drv/scsi/scsi.h | req->nr_sectors -= bh->b_size >> 9; |
req | 433 | kernel/blk_drv/scsi/scsi.h | req->sector += bh->b_size >> 9; |
req | 438 | kernel/blk_drv/scsi/scsi.h | if ((bh = req->bh) != NULL) { |
req | 439 | kernel/blk_drv/scsi/scsi.h | req->current_nr_sectors = bh->b_size >> 9; |
req | 440 | kernel/blk_drv/scsi/scsi.h | if (req->nr_sectors < req->current_nr_sectors) { |
req | 441 | kernel/blk_drv/scsi/scsi.h | req->nr_sectors = req->current_nr_sectors; |
req | 447 | kernel/blk_drv/scsi/scsi.h | if (req->bh){ |
req | 448 | kernel/blk_drv/scsi/scsi.h | req->buffer = bh->b_data; |
req | 451 | kernel/blk_drv/scsi/scsi.h | DEVICE_OFF(req->dev); |
req | 452 | kernel/blk_drv/scsi/scsi.h | if ((p = req->waiting) != NULL) { |
req | 453 | kernel/blk_drv/scsi/scsi.h | req->waiting = NULL; |
req | 458 | kernel/blk_drv/scsi/scsi.h | req->dev = -1; |
req | 69 | kernel/blk_drv/scsi/scsi_ioctl.c | struct request * req; |
req | 72 | kernel/blk_drv/scsi/scsi_ioctl.c | req = &SCpnt->request; |
req | 73 | kernel/blk_drv/scsi/scsi_ioctl.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
req | 75 | kernel/blk_drv/scsi/scsi_ioctl.c | if ((p = req->waiting) != NULL) { |
req | 76 | kernel/blk_drv/scsi/scsi_ioctl.c | req->waiting = NULL; |
req | 322 | kernel/blk_drv/scsi/sd.c | struct request * req = NULL; |
req | 356 | kernel/blk_drv/scsi/sd.c | req = CURRENT; |
req | 357 | kernel/blk_drv/scsi/sd.c | while(req){ |
req | 358 | kernel/blk_drv/scsi/sd.c | SCpnt = request_queueable(req, |
req | 359 | kernel/blk_drv/scsi/sd.c | rscsi_disks[DEVICE_NR(MINOR(req->dev))].device->index); |
req | 361 | kernel/blk_drv/scsi/sd.c | req1 = req; |
req | 362 | kernel/blk_drv/scsi/sd.c | req = req->next; |
req | 365 | kernel/blk_drv/scsi/sd.c | if (req == CURRENT) |
req | 368 | kernel/blk_drv/scsi/sd.c | req1->next = req->next; |
req | 629 | kernel/blk_drv/scsi/sd.c | struct request * req; |
req | 632 | kernel/blk_drv/scsi/sd.c | req = &SCpnt->request; |
req | 633 | kernel/blk_drv/scsi/sd.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
req | 635 | kernel/blk_drv/scsi/sd.c | if ((p = req->waiting) != NULL) { |
req | 636 | kernel/blk_drv/scsi/sd.c | req->waiting = NULL; |
req | 278 | kernel/blk_drv/scsi/sr.c | struct request * req = NULL; |
req | 303 | kernel/blk_drv/scsi/sr.c | req = CURRENT; |
req | 304 | kernel/blk_drv/scsi/sr.c | while(req){ |
req | 305 | kernel/blk_drv/scsi/sr.c | SCpnt = request_queueable(req, |
req | 306 | kernel/blk_drv/scsi/sr.c | scsi_CDs[DEVICE_NR(MINOR(req->dev))].device->index); |
req | 308 | kernel/blk_drv/scsi/sr.c | req1 = req; |
req | 309 | kernel/blk_drv/scsi/sr.c | req = req->next; |
req | 312 | kernel/blk_drv/scsi/sr.c | if (req == CURRENT) |
req | 315 | kernel/blk_drv/scsi/sr.c | req1->next = req->next; |
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 | 579 | net/tcp/arp.c | static int arpreq_check(struct arpreq *req) |
req | 582 | net/tcp/arp.c | if (req->arp_pa.sa_family != AF_INET) return -1; |
req | 584 | net/tcp/arp.c | if (req->arp_ha.sa_family != AF_UNSPEC) return -1; |
req | 589 | net/tcp/arp.c | int arp_ioctl_set(struct arpreq *req) |
req | 594 | net/tcp/arp.c | memcpy_fromfs(&r, req, sizeof(r)); |
req | 611 | net/tcp/arp.c | int arp_ioctl_get(struct arpreq *req) |
req | 616 | net/tcp/arp.c | memcpy_fromfs(&r, req, sizeof(r)); |
req | 626 | net/tcp/arp.c | memcpy_tofs(req, &r, sizeof(r)); |
req | 630 | net/tcp/arp.c | int arp_ioctl_del(struct arpreq *req) |
req | 634 | 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); |