tag | line | file | source code |
req | 182 | kernel/blk_drv/blk.h | struct request * req; |
req | 185 | kernel/blk_drv/blk.h | req = CURRENT; |
req | 186 | kernel/blk_drv/blk.h | req->errors = 0; |
req | 189 | kernel/blk_drv/blk.h | printk("dev %04x, sector %d\n\r",req->dev,req->sector); |
req | 190 | kernel/blk_drv/blk.h | req->nr_sectors--; |
req | 191 | kernel/blk_drv/blk.h | req->nr_sectors &= ~SECTOR_MASK; |
req | 192 | kernel/blk_drv/blk.h | req->sector += (BLOCK_SIZE / 512); |
req | 193 | kernel/blk_drv/blk.h | req->sector &= ~SECTOR_MASK; |
req | 196 | kernel/blk_drv/blk.h | if (bh = req->bh) { |
req | 197 | kernel/blk_drv/blk.h | req->bh = bh->b_reqnext; |
req | 201 | kernel/blk_drv/blk.h | if (bh = req->bh) { |
req | 202 | kernel/blk_drv/blk.h | req->current_nr_sectors = bh->b_size >> 9; |
req | 203 | kernel/blk_drv/blk.h | if (req->nr_sectors < req->current_nr_sectors) { |
req | 204 | kernel/blk_drv/blk.h | req->nr_sectors = req->current_nr_sectors; |
req | 207 | kernel/blk_drv/blk.h | req->buffer = bh->b_data; |
req | 211 | kernel/blk_drv/blk.h | DEVICE_OFF(req->dev); |
req | 212 | kernel/blk_drv/blk.h | CURRENT = req->next; |
req | 213 | kernel/blk_drv/blk.h | wake_up(&req->waiting); |
req | 214 | kernel/blk_drv/blk.h | req->dev = -1; |
req | 108 | kernel/blk_drv/ll_rw_blk.c | static void add_request(struct blk_dev_struct * dev, struct request * req) |
req | 112 | kernel/blk_drv/ll_rw_blk.c | req->next = NULL; |
req | 114 | kernel/blk_drv/ll_rw_blk.c | if (req->bh) |
req | 115 | kernel/blk_drv/ll_rw_blk.c | req->bh->b_dirt = 0; |
req | 117 | kernel/blk_drv/ll_rw_blk.c | dev->current_request = req; |
req | 123 | kernel/blk_drv/ll_rw_blk.c | if (!req->bh) |
req | 128 | kernel/blk_drv/ll_rw_blk.c | if ((IN_ORDER(tmp,req) || |
req | 130 | kernel/blk_drv/ll_rw_blk.c | IN_ORDER(req,tmp->next)) |
req | 133 | kernel/blk_drv/ll_rw_blk.c | req->next = tmp->next; |
req | 134 | kernel/blk_drv/ll_rw_blk.c | tmp->next = req; |
req | 141 | kernel/blk_drv/ll_rw_blk.c | struct request * req; |
req | 172 | kernel/blk_drv/ll_rw_blk.c | if ((major == 3 || major == 8 )&& (req = blk_dev[major].current_request)) { |
req | 173 | kernel/blk_drv/ll_rw_blk.c | while (req = req->next) { |
req | 174 | kernel/blk_drv/ll_rw_blk.c | if (req->dev == bh->b_dev && |
req | 175 | kernel/blk_drv/ll_rw_blk.c | !req->waiting && |
req | 176 | kernel/blk_drv/ll_rw_blk.c | req->cmd == rw && |
req | 177 | kernel/blk_drv/ll_rw_blk.c | req->sector + req->nr_sectors == sector && |
req | 178 | kernel/blk_drv/ll_rw_blk.c | req->nr_sectors < 254) { |
req | 179 | kernel/blk_drv/ll_rw_blk.c | req->bhtail->b_reqnext = bh; |
req | 180 | kernel/blk_drv/ll_rw_blk.c | req->bhtail = bh; |
req | 181 | kernel/blk_drv/ll_rw_blk.c | req->nr_sectors += count; |
req | 193 | kernel/blk_drv/ll_rw_blk.c | req = request+NR_REQUEST; |
req | 195 | kernel/blk_drv/ll_rw_blk.c | req = request+(NR_REQUEST/2); |
req | 197 | kernel/blk_drv/ll_rw_blk.c | while (--req >= request) |
req | 198 | kernel/blk_drv/ll_rw_blk.c | if (req->dev < 0) |
req | 212 | kernel/blk_drv/ll_rw_blk.c | req->dev = bh->b_dev; |
req | 213 | kernel/blk_drv/ll_rw_blk.c | req->cmd = rw; |
req | 214 | kernel/blk_drv/ll_rw_blk.c | req->errors = 0; |
req | 215 | kernel/blk_drv/ll_rw_blk.c | req->sector = sector; |
req | 216 | kernel/blk_drv/ll_rw_blk.c | req->nr_sectors = count; |
req | 217 | kernel/blk_drv/ll_rw_blk.c | req->current_nr_sectors = count; |
req | 218 | kernel/blk_drv/ll_rw_blk.c | req->buffer = bh->b_data; |
req | 219 | kernel/blk_drv/ll_rw_blk.c | req->waiting = NULL; |
req | 220 | kernel/blk_drv/ll_rw_blk.c | req->bh = bh; |
req | 221 | kernel/blk_drv/ll_rw_blk.c | req->bhtail = bh; |
req | 222 | kernel/blk_drv/ll_rw_blk.c | req->next = NULL; |
req | 223 | kernel/blk_drv/ll_rw_blk.c | add_request(major+blk_dev,req); |
req | 228 | kernel/blk_drv/ll_rw_blk.c | struct request * req; |
req | 243 | kernel/blk_drv/ll_rw_blk.c | req = request+NR_REQUEST; |
req | 244 | kernel/blk_drv/ll_rw_blk.c | while (--req >= request) |
req | 245 | kernel/blk_drv/ll_rw_blk.c | if (req->dev<0) |
req | 247 | kernel/blk_drv/ll_rw_blk.c | if (req < request) { |
req | 253 | kernel/blk_drv/ll_rw_blk.c | req->dev = dev; |
req | 254 | kernel/blk_drv/ll_rw_blk.c | req->cmd = rw; |
req | 255 | kernel/blk_drv/ll_rw_blk.c | req->errors = 0; |
req | 256 | kernel/blk_drv/ll_rw_blk.c | req->sector = page<<3; |
req | 257 | kernel/blk_drv/ll_rw_blk.c | req->nr_sectors = 8; |
req | 258 | kernel/blk_drv/ll_rw_blk.c | req->current_nr_sectors = 8; |
req | 259 | kernel/blk_drv/ll_rw_blk.c | req->buffer = buffer; |
req | 260 | kernel/blk_drv/ll_rw_blk.c | req->waiting = ¤t->wait; |
req | 261 | kernel/blk_drv/ll_rw_blk.c | req->bh = NULL; |
req | 262 | kernel/blk_drv/ll_rw_blk.c | req->next = NULL; |
req | 264 | kernel/blk_drv/ll_rw_blk.c | add_request(major+blk_dev,req); |
req | 311 | kernel/blk_drv/ll_rw_blk.c | struct request * req; |
req | 331 | kernel/blk_drv/ll_rw_blk.c | req = request+NR_REQUEST; |
req | 332 | kernel/blk_drv/ll_rw_blk.c | while (--req >= request) |
req | 333 | kernel/blk_drv/ll_rw_blk.c | if (req->dev<0) |
req | 335 | kernel/blk_drv/ll_rw_blk.c | if (req < request) { |
req | 340 | kernel/blk_drv/ll_rw_blk.c | req->dev = dev; |
req | 341 | kernel/blk_drv/ll_rw_blk.c | req->cmd = rw; |
req | 342 | kernel/blk_drv/ll_rw_blk.c | req->errors = 0; |
req | 343 | kernel/blk_drv/ll_rw_blk.c | req->sector = b[i] << 1; |
req | 344 | kernel/blk_drv/ll_rw_blk.c | req->nr_sectors = 2; |
req | 345 | kernel/blk_drv/ll_rw_blk.c | req->current_nr_sectors = 2; |
req | 346 | kernel/blk_drv/ll_rw_blk.c | req->buffer = buf; |
req | 347 | kernel/blk_drv/ll_rw_blk.c | req->waiting = ¤t->wait; |
req | 348 | kernel/blk_drv/ll_rw_blk.c | req->bh = NULL; |
req | 349 | kernel/blk_drv/ll_rw_blk.c | req->next = NULL; |
req | 351 | kernel/blk_drv/ll_rw_blk.c | add_request(major+blk_dev,req); |