taglinefilesource code
req182kernel/blk_drv/blk.hstruct request * req;
req185kernel/blk_drv/blk.hreq = CURRENT;
req186kernel/blk_drv/blk.hreq->errors = 0;
req189kernel/blk_drv/blk.hprintk("dev %04x, sector %d\n\r",req->dev,req->sector);
req190kernel/blk_drv/blk.hreq->nr_sectors--;
req191kernel/blk_drv/blk.hreq->nr_sectors &= ~SECTOR_MASK;
req192kernel/blk_drv/blk.hreq->sector += (BLOCK_SIZE / 512);
req193kernel/blk_drv/blk.hreq->sector &= ~SECTOR_MASK;    
req196kernel/blk_drv/blk.hif (bh = req->bh) {
req197kernel/blk_drv/blk.hreq->bh = bh->b_reqnext;
req201kernel/blk_drv/blk.hif (bh = req->bh) {
req202kernel/blk_drv/blk.hreq->current_nr_sectors = bh->b_size >> 9;
req203kernel/blk_drv/blk.hif (req->nr_sectors < req->current_nr_sectors) {
req204kernel/blk_drv/blk.hreq->nr_sectors = req->current_nr_sectors;
req207kernel/blk_drv/blk.hreq->buffer = bh->b_data;
req211kernel/blk_drv/blk.hDEVICE_OFF(req->dev);
req212kernel/blk_drv/blk.hCURRENT = req->next;
req213kernel/blk_drv/blk.hwake_up(&req->waiting);
req214kernel/blk_drv/blk.hreq->dev = -1;
req108kernel/blk_drv/ll_rw_blk.cstatic void add_request(struct blk_dev_struct * dev, struct request * req)
req112kernel/blk_drv/ll_rw_blk.creq->next = NULL;
req114kernel/blk_drv/ll_rw_blk.cif (req->bh)
req115kernel/blk_drv/ll_rw_blk.creq->bh->b_dirt = 0;
req117kernel/blk_drv/ll_rw_blk.cdev->current_request = req;
req123kernel/blk_drv/ll_rw_blk.cif (!req->bh)
req128kernel/blk_drv/ll_rw_blk.cif ((IN_ORDER(tmp,req) ||
req130kernel/blk_drv/ll_rw_blk.cIN_ORDER(req,tmp->next))
req133kernel/blk_drv/ll_rw_blk.creq->next = tmp->next;
req134kernel/blk_drv/ll_rw_blk.ctmp->next = req;
req141kernel/blk_drv/ll_rw_blk.cstruct request * req;
req172kernel/blk_drv/ll_rw_blk.cif ((major == 3 ||  major == 8 )&& (req = blk_dev[major].current_request)) {
req173kernel/blk_drv/ll_rw_blk.cwhile (req = req->next) {
req174kernel/blk_drv/ll_rw_blk.cif (req->dev == bh->b_dev &&
req175kernel/blk_drv/ll_rw_blk.c!req->waiting &&
req176kernel/blk_drv/ll_rw_blk.creq->cmd == rw &&
req177kernel/blk_drv/ll_rw_blk.creq->sector + req->nr_sectors == sector &&
req178kernel/blk_drv/ll_rw_blk.creq->nr_sectors < 254) {
req179kernel/blk_drv/ll_rw_blk.creq->bhtail->b_reqnext = bh;
req180kernel/blk_drv/ll_rw_blk.creq->bhtail = bh;
req181kernel/blk_drv/ll_rw_blk.creq->nr_sectors += count;
req193kernel/blk_drv/ll_rw_blk.creq = request+NR_REQUEST;
req195kernel/blk_drv/ll_rw_blk.creq = request+(NR_REQUEST/2);
req197kernel/blk_drv/ll_rw_blk.cwhile (--req >= request)
req198kernel/blk_drv/ll_rw_blk.cif (req->dev < 0)
req212kernel/blk_drv/ll_rw_blk.creq->dev = bh->b_dev;
req213kernel/blk_drv/ll_rw_blk.creq->cmd = rw;
req214kernel/blk_drv/ll_rw_blk.creq->errors = 0;
req215kernel/blk_drv/ll_rw_blk.creq->sector = sector;
req216kernel/blk_drv/ll_rw_blk.creq->nr_sectors = count;
req217kernel/blk_drv/ll_rw_blk.creq->current_nr_sectors = count;
req218kernel/blk_drv/ll_rw_blk.creq->buffer = bh->b_data;
req219kernel/blk_drv/ll_rw_blk.creq->waiting = NULL;
req220kernel/blk_drv/ll_rw_blk.creq->bh = bh;
req221kernel/blk_drv/ll_rw_blk.creq->bhtail = bh;
req222kernel/blk_drv/ll_rw_blk.creq->next = NULL;
req223kernel/blk_drv/ll_rw_blk.cadd_request(major+blk_dev,req);
req228kernel/blk_drv/ll_rw_blk.cstruct request * req;
req243kernel/blk_drv/ll_rw_blk.creq = request+NR_REQUEST;
req244kernel/blk_drv/ll_rw_blk.cwhile (--req >= request)
req245kernel/blk_drv/ll_rw_blk.cif (req->dev<0)
req247kernel/blk_drv/ll_rw_blk.cif (req < request) {
req253kernel/blk_drv/ll_rw_blk.creq->dev = dev;
req254kernel/blk_drv/ll_rw_blk.creq->cmd = rw;
req255kernel/blk_drv/ll_rw_blk.creq->errors = 0;
req256kernel/blk_drv/ll_rw_blk.creq->sector = page<<3;
req257kernel/blk_drv/ll_rw_blk.creq->nr_sectors = 8;
req258kernel/blk_drv/ll_rw_blk.creq->current_nr_sectors = 8;
req259kernel/blk_drv/ll_rw_blk.creq->buffer = buffer;
req260kernel/blk_drv/ll_rw_blk.creq->waiting = &current->wait;
req261kernel/blk_drv/ll_rw_blk.creq->bh = NULL;
req262kernel/blk_drv/ll_rw_blk.creq->next = NULL;
req264kernel/blk_drv/ll_rw_blk.cadd_request(major+blk_dev,req);
req311kernel/blk_drv/ll_rw_blk.cstruct request * req;
req331kernel/blk_drv/ll_rw_blk.creq = request+NR_REQUEST;
req332kernel/blk_drv/ll_rw_blk.cwhile (--req >= request)
req333kernel/blk_drv/ll_rw_blk.cif (req->dev<0)
req335kernel/blk_drv/ll_rw_blk.cif (req < request) {
req340kernel/blk_drv/ll_rw_blk.creq->dev = dev;
req341kernel/blk_drv/ll_rw_blk.creq->cmd = rw;
req342kernel/blk_drv/ll_rw_blk.creq->errors = 0;
req343kernel/blk_drv/ll_rw_blk.creq->sector = b[i] << 1;
req344kernel/blk_drv/ll_rw_blk.creq->nr_sectors = 2;
req345kernel/blk_drv/ll_rw_blk.creq->current_nr_sectors = 2;
req346kernel/blk_drv/ll_rw_blk.creq->buffer = buf;
req347kernel/blk_drv/ll_rw_blk.creq->waiting = &current->wait;
req348kernel/blk_drv/ll_rw_blk.creq->bh = NULL;
req349kernel/blk_drv/ll_rw_blk.creq->next = NULL;
req351kernel/blk_drv/ll_rw_blk.cadd_request(major+blk_dev,req);