tag | line | file | source code |
CURRENT | 1713 | drivers/block/floppy.c | printk("CURRENT=%p\n", CURRENT); |
CURRENT | 2084 | drivers/block/floppy.c | if (!CURRENT){ |
CURRENT | 2092 | drivers/block/floppy.c | block = current_count_sectors + CURRENT->sector; |
CURRENT | 2098 | drivers/block/floppy.c | while (current_count_sectors && CURRENT && |
CURRENT | 2099 | drivers/block/floppy.c | current_count_sectors >= CURRENT->current_nr_sectors){ |
CURRENT | 2100 | drivers/block/floppy.c | current_count_sectors -= CURRENT->current_nr_sectors; |
CURRENT | 2101 | drivers/block/floppy.c | CURRENT->nr_sectors -= CURRENT->current_nr_sectors; |
CURRENT | 2102 | drivers/block/floppy.c | CURRENT->sector += CURRENT->current_nr_sectors; |
CURRENT | 2105 | drivers/block/floppy.c | if (current_count_sectors && CURRENT){ |
CURRENT | 2107 | drivers/block/floppy.c | CURRENT->buffer += current_count_sectors <<9; |
CURRENT | 2108 | drivers/block/floppy.c | CURRENT->current_nr_sectors -= current_count_sectors; |
CURRENT | 2109 | drivers/block/floppy.c | CURRENT->nr_sectors -= current_count_sectors; |
CURRENT | 2110 | drivers/block/floppy.c | CURRENT->sector += current_count_sectors; |
CURRENT | 2114 | drivers/block/floppy.c | if (current_count_sectors && !CURRENT) |
CURRENT | 2118 | drivers/block/floppy.c | if (CURRENT->cmd == WRITE) { |
CURRENT | 2122 | drivers/block/floppy.c | DRWE->first_error_sector = CURRENT->sector; |
CURRENT | 2125 | drivers/block/floppy.c | DRWE->last_error_sector = CURRENT->sector; |
CURRENT | 2193 | drivers/block/floppy.c | raw_cmd->kernel_data == CURRENT->buffer){ |
CURRENT | 2211 | drivers/block/floppy.c | base = CURRENT->buffer; |
CURRENT | 2212 | drivers/block/floppy.c | size = CURRENT->current_nr_sectors << 9; |
CURRENT | 2213 | drivers/block/floppy.c | bh = CURRENT->bh; |
CURRENT | 2251 | drivers/block/floppy.c | CURRENT->nr_sectors); |
CURRENT | 2254 | drivers/block/floppy.c | buffer_max > sector_t + CURRENT->nr_sectors) |
CURRENT | 2256 | drivers/block/floppy.c | CURRENT->nr_sectors); |
CURRENT | 2260 | drivers/block/floppy.c | if ((remaining >> 9) > CURRENT->nr_sectors && |
CURRENT | 2265 | drivers/block/floppy.c | printk("CURRENT->nr_sectors=%ld\n",CURRENT->nr_sectors); |
CURRENT | 2267 | drivers/block/floppy.c | CURRENT->current_nr_sectors); |
CURRENT | 2277 | drivers/block/floppy.c | bh = CURRENT->bh; |
CURRENT | 2278 | drivers/block/floppy.c | size = CURRENT->current_nr_sectors << 9; |
CURRENT | 2279 | drivers/block/floppy.c | buffer = CURRENT->buffer; |
CURRENT | 2348 | drivers/block/floppy.c | set_fdc(DRIVE(CURRENT->rq_dev)); |
CURRENT | 2354 | drivers/block/floppy.c | if (CURRENT->cmd == READ){ |
CURRENT | 2357 | drivers/block/floppy.c | } else if (CURRENT->cmd == WRITE){ |
CURRENT | 2367 | drivers/block/floppy.c | TRACK = CURRENT->sector / max_sector; |
CURRENT | 2368 | drivers/block/floppy.c | sector_t = CURRENT->sector % max_sector; |
CURRENT | 2382 | drivers/block/floppy.c | CURRENT->nr_sectors); |
CURRENT | 2422 | drivers/block/floppy.c | max_size = CURRENT->nr_sectors; |
CURRENT | 2431 | drivers/block/floppy.c | } else if (aligned_sector_t != sector_t || CURRENT->nr_sectors < ssize){ |
CURRENT | 2433 | drivers/block/floppy.c | if (sector_t + CURRENT->nr_sectors > ssize && |
CURRENT | 2434 | drivers/block/floppy.c | sector_t + CURRENT->nr_sectors < ssize + ssize) |
CURRENT | 2442 | drivers/block/floppy.c | } else if ((unsigned long)CURRENT->buffer < MAX_DMA_ADDRESS) { |
CURRENT | 2454 | drivers/block/floppy.c | dma_limit = (MAX_DMA_ADDRESS - ((unsigned long) CURRENT->buffer)) >> 9; |
CURRENT | 2459 | drivers/block/floppy.c | if (CROSS_64KB(CURRENT->buffer, max_size << 9)) |
CURRENT | 2460 | drivers/block/floppy.c | max_size = (K_64 - ((long) CURRENT->buffer) % K_64)>>9; |
CURRENT | 2474 | drivers/block/floppy.c | max_size = CURRENT->nr_sectors; |
CURRENT | 2476 | drivers/block/floppy.c | raw_cmd->kernel_data = CURRENT->buffer; |
CURRENT | 2497 | drivers/block/floppy.c | (aligned_sector_t == sector_t && CURRENT->nr_sectors >= ssize))&& |
CURRENT | 2530 | drivers/block/floppy.c | (raw_cmd->kernel_data != CURRENT->buffer && |
CURRENT | 2538 | drivers/block/floppy.c | if (raw_cmd->kernel_data != CURRENT->buffer) |
CURRENT | 2555 | drivers/block/floppy.c | if (raw_cmd->kernel_data != CURRENT->buffer){ |
CURRENT | 2573 | drivers/block/floppy.c | } else if (raw_cmd->length > CURRENT->nr_sectors << 9 || |
CURRENT | 2574 | drivers/block/floppy.c | current_count_sectors > CURRENT->nr_sectors){ |
CURRENT | 2600 | drivers/block/floppy.c | if (CURRENT && CURRENT->rq_status == RQ_INACTIVE){ |
CURRENT | 2606 | drivers/block/floppy.c | if (!CURRENT) { |
CURRENT | 2611 | drivers/block/floppy.c | if (MAJOR(CURRENT->rq_dev) != MAJOR_NR) |
CURRENT | 2613 | drivers/block/floppy.c | if (CURRENT->bh && !buffer_locked(CURRENT->bh)) |
CURRENT | 2616 | drivers/block/floppy.c | device = CURRENT->rq_dev; |
CURRENT | 2642 | drivers/block/floppy.c | errors = & (CURRENT->errors); |
CURRENT | 134 | drivers/block/hd.c | devc = CURRENT ? 'a' + DEVICE_NR(CURRENT->rq_dev) : '?'; |
CURRENT | 162 | drivers/block/hd.c | if (CURRENT) |
CURRENT | 163 | drivers/block/hd.c | printk(", sector=%ld", CURRENT->sector); |
CURRENT | 283 | drivers/block/hd.c | unsigned int dev = DEVICE_NR(CURRENT->rq_dev); |
CURRENT | 336 | drivers/block/hd.c | unsigned int dev = DEVICE_NR(CURRENT->rq_dev), stat = inb_p(HD_STATUS); |
CURRENT | 448 | drivers/block/hd.c | if (!CURRENT) |
CURRENT | 450 | drivers/block/hd.c | dev = DEVICE_NR(CURRENT->rq_dev); |
CURRENT | 451 | drivers/block/hd.c | if (++CURRENT->errors >= MAX_ERRORS || (hd_error & BBD_ERR)) { |
CURRENT | 454 | drivers/block/hd.c | } else if (CURRENT->errors % RESET_FREQ == 0) |
CURRENT | 456 | drivers/block/hd.c | else if ((hd_error & TRK0_ERR) || CURRENT->errors % RECAL_FREQ == 0) |
CURRENT | 474 | drivers/block/hd.c | unsigned int dev = DEVICE_NR(CURRENT->rq_dev); |
CURRENT | 494 | drivers/block/hd.c | if ((nsect = CURRENT->current_nr_sectors) > msect) |
CURRENT | 499 | drivers/block/hd.c | insw(HD_DATA,CURRENT->buffer,nsect<<8); |
CURRENT | 500 | drivers/block/hd.c | CURRENT->sector += nsect; |
CURRENT | 501 | drivers/block/hd.c | CURRENT->buffer += nsect<<9; |
CURRENT | 502 | drivers/block/hd.c | CURRENT->errors = 0; |
CURRENT | 503 | drivers/block/hd.c | i = (CURRENT->nr_sectors -= nsect); |
CURRENT | 507 | drivers/block/hd.c | dev+'a', CURRENT->sector, CURRENT->sector+nsect, |
CURRENT | 508 | drivers/block/hd.c | CURRENT->nr_sectors, (unsigned long) CURRENT->buffer+(nsect<<9)); |
CURRENT | 510 | drivers/block/hd.c | if ((CURRENT->current_nr_sectors -= nsect) <= 0) |
CURRENT | 522 | drivers/block/hd.c | if (CURRENT) |
CURRENT | 562 | drivers/block/hd.c | for (i = CURRENT->nr_sectors; i > 0;){ |
CURRENT | 563 | drivers/block/hd.c | i -= CURRENT->current_nr_sectors; |
CURRENT | 569 | drivers/block/hd.c | if (CURRENT) |
CURRENT | 593 | drivers/block/hd.c | if ((CURRENT->nr_sectors <= 1) || (i & DRQ_STAT)) |
CURRENT | 601 | drivers/block/hd.c | CURRENT->sector++; |
CURRENT | 602 | drivers/block/hd.c | i = --CURRENT->nr_sectors; |
CURRENT | 603 | drivers/block/hd.c | --CURRENT->current_nr_sectors; |
CURRENT | 604 | drivers/block/hd.c | CURRENT->buffer += 512; |
CURRENT | 605 | drivers/block/hd.c | if (!i || (CURRENT->bh && !SUBSECTOR(i))) |
CURRENT | 609 | drivers/block/hd.c | outsw(HD_DATA,CURRENT->buffer,256); |
CURRENT | 638 | drivers/block/hd.c | if (!CURRENT) |
CURRENT | 643 | drivers/block/hd.c | dev = DEVICE_NR(CURRENT->rq_dev); |
CURRENT | 645 | drivers/block/hd.c | if (++CURRENT->errors >= MAX_ERRORS) { |
CURRENT | 698 | drivers/block/hd.c | if (CURRENT && CURRENT->rq_status == RQ_INACTIVE) return; |
CURRENT | 710 | drivers/block/hd.c | dev = MINOR(CURRENT->rq_dev); |
CURRENT | 711 | drivers/block/hd.c | block = CURRENT->sector; |
CURRENT | 712 | drivers/block/hd.c | nsect = CURRENT->nr_sectors; |
CURRENT | 717 | drivers/block/hd.c | kdevname(CURRENT->rq_dev)); |
CURRENT | 720 | drivers/block/hd.c | (MINOR(CURRENT->rq_dev)>>6)+'a', block, nsect); |
CURRENT | 738 | drivers/block/hd.c | dev+'a', (CURRENT->cmd == READ)?"read":"writ", |
CURRENT | 739 | drivers/block/hd.c | cyl, head, sec, nsect, (unsigned long) CURRENT->buffer); |
CURRENT | 743 | drivers/block/hd.c | if (CURRENT->cmd == READ) { |
CURRENT | 750 | drivers/block/hd.c | if (CURRENT->cmd == WRITE) { |
CURRENT | 762 | drivers/block/hd.c | WCURRENT = *CURRENT; |
CURRENT | 765 | drivers/block/hd.c | outsw(HD_DATA,CURRENT->buffer,256); |
CURRENT | 155 | drivers/block/loop.c | if (MINOR(CURRENT->rq_dev) >= MAX_LOOP) |
CURRENT | 157 | drivers/block/loop.c | lo = &loop_dev[MINOR(CURRENT->rq_dev)]; |
CURRENT | 168 | drivers/block/loop.c | dest_addr = CURRENT->buffer; |
CURRENT | 171 | drivers/block/loop.c | block = CURRENT->sector * (512/blksize); |
CURRENT | 174 | drivers/block/loop.c | block = CURRENT->sector / (blksize >> 9); |
CURRENT | 175 | drivers/block/loop.c | offset = CURRENT->sector % (blksize >> 9); |
CURRENT | 183 | drivers/block/loop.c | len = CURRENT->current_nr_sectors << 9; |
CURRENT | 184 | drivers/block/loop.c | if ((CURRENT->cmd != WRITE) && (CURRENT->cmd != READ)) { |
CURRENT | 185 | drivers/block/loop.c | printk("unknown loop device command (%d)?!?", CURRENT->cmd); |
CURRENT | 204 | drivers/block/loop.c | if (!buffer_uptodate(bh) && ((CURRENT->cmd == READ) || |
CURRENT | 217 | drivers/block/loop.c | if ((lo->transfer)(lo, CURRENT->cmd, bh->b_data + offset, |
CURRENT | 223 | drivers/block/loop.c | if (CURRENT->cmd == WRITE) |
CURRENT | 104 | drivers/block/rd.c | minor = MINOR(CURRENT->rq_dev); |
CURRENT | 111 | drivers/block/rd.c | offset = CURRENT->sector << 9; |
CURRENT | 112 | drivers/block/rd.c | len = CURRENT->current_nr_sectors << 9; |
CURRENT | 126 | drivers/block/rd.c | if (CURRENT->cmd == READ) |
CURRENT | 127 | drivers/block/rd.c | memset(CURRENT->buffer, 0, len); |
CURRENT | 129 | drivers/block/rd.c | set_bit(BH_Protected, &CURRENT->bh->b_state); |
CURRENT | 216 | drivers/block/xd.c | while (code = 0, CURRENT) { |
CURRENT | 220 | drivers/block/xd.c | && CURRENT->sector + CURRENT->nr_sectors |
CURRENT | 221 | drivers/block/xd.c | <= xd[MINOR(CURRENT->rq_dev)].nr_sects) { |
CURRENT | 222 | drivers/block/xd.c | block = CURRENT->sector + xd[MINOR(CURRENT->rq_dev)].start_sect; |
CURRENT | 223 | drivers/block/xd.c | count = CURRENT->nr_sectors; |
CURRENT | 225 | drivers/block/xd.c | switch (CURRENT->cmd) { |
CURRENT | 229 | drivers/block/xd.c | code = xd_readwrite(CURRENT->cmd,CURRENT_DEV,CURRENT->buffer,block,count); |
CURRENT | 195 | drivers/cdrom/aztcd.c | (CURRENT && MAJOR(CURRENT -> rq_dev) == MAJOR_NR && CURRENT -> cmd == READ \ |
CURRENT | 196 | drivers/cdrom/aztcd.c | && CURRENT -> sector != -1) |
CURRENT | 964 | drivers/cdrom/aztcd.c | while (CURRENT -> nr_sectors) { |
CURRENT | 965 | drivers/cdrom/aztcd.c | int bn = CURRENT -> sector / 4; |
CURRENT | 970 | drivers/cdrom/aztcd.c | int offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
CURRENT | 971 | drivers/cdrom/aztcd.c | int nr_sectors = 4 - (CURRENT -> sector & 3); |
CURRENT | 979 | drivers/cdrom/aztcd.c | if (nr_sectors > CURRENT -> nr_sectors) |
CURRENT | 980 | drivers/cdrom/aztcd.c | nr_sectors = CURRENT -> nr_sectors; |
CURRENT | 981 | drivers/cdrom/aztcd.c | memcpy(CURRENT -> buffer, azt_buf + offs, nr_sectors * 512); |
CURRENT | 982 | drivers/cdrom/aztcd.c | CURRENT -> nr_sectors -= nr_sectors; |
CURRENT | 983 | drivers/cdrom/aztcd.c | CURRENT -> sector += nr_sectors; |
CURRENT | 984 | drivers/cdrom/aztcd.c | CURRENT -> buffer += nr_sectors * 512; |
CURRENT | 997 | drivers/cdrom/aztcd.c | printk(" do_aztcd_request(%ld+%ld) Time:%li\n", CURRENT -> sector, CURRENT -> nr_sectors,jiffies); |
CURRENT | 1006 | drivers/cdrom/aztcd.c | if (CURRENT->bh) { |
CURRENT | 1007 | drivers/cdrom/aztcd.c | if (!buffer_locked(CURRENT->bh)) |
CURRENT | 1011 | drivers/cdrom/aztcd.c | if (CURRENT -> nr_sectors == 0) { |
CURRENT | 1183 | drivers/cdrom/aztcd.c | azt_next_bn = CURRENT -> sector / 4; |
CURRENT | 1299 | drivers/cdrom/aztcd.c | { printk("read_count:%d CURRENT->nr_sectors:%ld azt_buf_in:%d\n", azt_read_count,CURRENT->nr_sectors,azt_buf_in); |
CURRENT | 1328 | drivers/cdrom/aztcd.c | if (CURRENT -> nr_sectors == 0) |
CURRENT | 1336 | drivers/cdrom/aztcd.c | && (CURRENT -> sector / 4 < azt_next_bn || |
CURRENT | 1337 | drivers/cdrom/aztcd.c | CURRENT -> sector / 4 > azt_next_bn + AZT_BUF_SIZ)) { |
CURRENT | 1495 | drivers/cdrom/cdu31a.c | if (CURRENT && CURRENT->rq_status != RQ_INACTIVE) |
CURRENT | 1528 | drivers/cdrom/cdu31a.c | if (!(CURRENT) || CURRENT->rq_status == RQ_INACTIVE) |
CURRENT | 1540 | drivers/cdrom/cdu31a.c | in.i_rdev = CURRENT->rq_dev; |
CURRENT | 1547 | drivers/cdrom/cdu31a.c | if (MAJOR(CURRENT->rq_dev) != MAJOR_NR) |
CURRENT | 1551 | drivers/cdrom/cdu31a.c | if (CURRENT->bh) |
CURRENT | 1553 | drivers/cdrom/cdu31a.c | if (!buffer_locked(CURRENT->bh)) |
CURRENT | 1559 | drivers/cdrom/cdu31a.c | block = CURRENT->sector; |
CURRENT | 1560 | drivers/cdrom/cdu31a.c | nblock = CURRENT->nr_sectors; |
CURRENT | 1579 | drivers/cdrom/cdu31a.c | switch(CURRENT->cmd) |
CURRENT | 1655 | drivers/cdrom/cdu31a.c | read_data_block(CURRENT->buffer, block, nblock, res_reg, &res_size); |
CURRENT | 642 | drivers/cdrom/cm206.c | if (CURRENT == NULL || CURRENT->rq_status == RQ_INACTIVE) |
CURRENT | 644 | drivers/cdrom/cm206.c | if (CURRENT->cmd != READ) { |
CURRENT | 645 | drivers/cdrom/cm206.c | debug(("Non-read command %d on cdrom\n", CURRENT->cmd)); |
CURRENT | 650 | drivers/cdrom/cm206.c | for (i=0; i<CURRENT->nr_sectors; i++) { |
CURRENT | 651 | drivers/cdrom/cm206.c | cd_sec_no = (CURRENT->sector+i)/4; /* 4 times 512 bytes */ |
CURRENT | 652 | drivers/cdrom/cm206.c | quarter = (CURRENT->sector+i) % 4; |
CURRENT | 653 | drivers/cdrom/cm206.c | dest = CURRENT->buffer + i*512; |
CURRENT | 244 | drivers/cdrom/gscd.c | while (CURRENT -> nr_sectors > 0 && gscd_bn == CURRENT -> sector / 4) |
CURRENT | 246 | drivers/cdrom/gscd.c | offs = (CURRENT -> sector & 3) * 512; |
CURRENT | 247 | drivers/cdrom/gscd.c | memcpy(CURRENT -> buffer, gscd_buf + offs, 512); |
CURRENT | 248 | drivers/cdrom/gscd.c | CURRENT -> nr_sectors--; |
CURRENT | 249 | drivers/cdrom/gscd.c | CURRENT -> sector++; |
CURRENT | 250 | drivers/cdrom/gscd.c | CURRENT -> buffer += 512; |
CURRENT | 265 | drivers/cdrom/gscd.c | if (!(CURRENT) || CURRENT->rq_status == RQ_INACTIVE) return; |
CURRENT | 267 | drivers/cdrom/gscd.c | dev = MINOR(CURRENT->rq_dev); |
CURRENT | 268 | drivers/cdrom/gscd.c | block = CURRENT->sector; |
CURRENT | 269 | drivers/cdrom/gscd.c | nsect = CURRENT->nr_sectors; |
CURRENT | 271 | drivers/cdrom/gscd.c | if (CURRENT == NULL || CURRENT -> sector == -1) |
CURRENT | 274 | drivers/cdrom/gscd.c | if (CURRENT -> cmd != READ) |
CURRENT | 276 | drivers/cdrom/gscd.c | printk("GSCD: bad cmd %d\n", CURRENT -> cmd); |
CURRENT | 281 | drivers/cdrom/gscd.c | if (MINOR(CURRENT -> rq_dev) != 0) |
CURRENT | 292 | drivers/cdrom/gscd.c | if (CURRENT -> nr_sectors == 0) |
CURRENT | 337 | drivers/cdrom/gscd.c | block = CURRENT -> sector / 4; |
CURRENT | 349 | drivers/cdrom/gscd.c | gscd_bn = CURRENT -> sector / 4; |
CURRENT | 133 | drivers/cdrom/mcd.c | (CURRENT && MAJOR(CURRENT -> rq_dev) == MAJOR_NR && CURRENT -> cmd == READ \ |
CURRENT | 134 | drivers/cdrom/mcd.c | && CURRENT -> sector != -1) |
CURRENT | 596 | drivers/cdrom/mcd.c | while (CURRENT -> nr_sectors) { |
CURRENT | 597 | drivers/cdrom/mcd.c | int bn = CURRENT -> sector / 4; |
CURRENT | 602 | drivers/cdrom/mcd.c | int offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
CURRENT | 603 | drivers/cdrom/mcd.c | int nr_sectors = 4 - (CURRENT -> sector & 3); |
CURRENT | 611 | drivers/cdrom/mcd.c | if (nr_sectors > CURRENT -> nr_sectors) |
CURRENT | 612 | drivers/cdrom/mcd.c | nr_sectors = CURRENT -> nr_sectors; |
CURRENT | 613 | drivers/cdrom/mcd.c | memcpy(CURRENT -> buffer, mcd_buf + offs, nr_sectors * 512); |
CURRENT | 614 | drivers/cdrom/mcd.c | CURRENT -> nr_sectors -= nr_sectors; |
CURRENT | 615 | drivers/cdrom/mcd.c | CURRENT -> sector += nr_sectors; |
CURRENT | 616 | drivers/cdrom/mcd.c | CURRENT -> buffer += nr_sectors * 512; |
CURRENT | 656 | drivers/cdrom/mcd.c | printk(" do_mcd_request(%ld+%ld)\n", CURRENT -> sector, CURRENT -> nr_sectors); |
CURRENT | 660 | drivers/cdrom/mcd.c | if (CURRENT->bh) { |
CURRENT | 661 | drivers/cdrom/mcd.c | if (!buffer_locked(CURRENT->bh)) |
CURRENT | 665 | drivers/cdrom/mcd.c | if (CURRENT -> nr_sectors == 0) { |
CURRENT | 862 | drivers/cdrom/mcd.c | mcd_next_bn = CURRENT -> sector / 4; |
CURRENT | 928 | drivers/cdrom/mcd.c | if (CURRENT -> nr_sectors == 0) |
CURRENT | 936 | drivers/cdrom/mcd.c | && (CURRENT -> sector / 4 < mcd_next_bn || |
CURRENT | 937 | drivers/cdrom/mcd.c | CURRENT -> sector / 4 > mcd_next_bn + 16)) { |
CURRENT | 545 | drivers/cdrom/mcdx.c | if ((CURRENT == NULL) || (CURRENT->rq_status == RQ_INACTIVE)) { |
CURRENT | 550 | drivers/cdrom/mcdx.c | stuffp = mcdx_stuffp[MINOR(CURRENT->rq_dev)]; |
CURRENT | 554 | drivers/cdrom/mcdx.c | dev = MINOR(CURRENT->rq_dev); |
CURRENT | 558 | drivers/cdrom/mcdx.c | kdevname(CURRENT->rq_dev))); |
CURRENT | 569 | drivers/cdrom/mcdx.c | switch (CURRENT->cmd) { |
CURRENT | 577 | drivers/cdrom/mcdx.c | while (CURRENT->nr_sectors) { |
CURRENT | 582 | drivers/cdrom/mcdx.c | CURRENT->buffer, |
CURRENT | 583 | drivers/cdrom/mcdx.c | CURRENT->sector, |
CURRENT | 584 | drivers/cdrom/mcdx.c | CURRENT->nr_sectors))) { |
CURRENT | 587 | drivers/cdrom/mcdx.c | CURRENT->sector += CURRENT->nr_sectors; |
CURRENT | 588 | drivers/cdrom/mcdx.c | CURRENT->nr_sectors = 0; |
CURRENT | 594 | drivers/cdrom/mcdx.c | CURRENT->sector += i; |
CURRENT | 595 | drivers/cdrom/mcdx.c | CURRENT->nr_sectors -= i; |
CURRENT | 596 | drivers/cdrom/mcdx.c | CURRENT->buffer += (i * 512); |
CURRENT | 967 | drivers/cdrom/optcd.c | (CURRENT && MAJOR(CURRENT -> rq_dev) == MAJOR_NR \ |
CURRENT | 968 | drivers/cdrom/optcd.c | && CURRENT -> cmd == READ && CURRENT -> sector != -1) |
CURRENT | 1000 | drivers/cdrom/optcd.c | while (CURRENT -> nr_sectors) { |
CURRENT | 1001 | drivers/cdrom/optcd.c | int bn = CURRENT -> sector / 4; |
CURRENT | 1012 | drivers/cdrom/optcd.c | offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
CURRENT | 1013 | drivers/cdrom/optcd.c | nr_sectors = 4 - (CURRENT -> sector & 3); |
CURRENT | 1023 | drivers/cdrom/optcd.c | if (nr_sectors > CURRENT -> nr_sectors) |
CURRENT | 1024 | drivers/cdrom/optcd.c | nr_sectors = CURRENT -> nr_sectors; |
CURRENT | 1025 | drivers/cdrom/optcd.c | memcpy(CURRENT -> buffer, buf + offs, nr_sectors * 512); |
CURRENT | 1026 | drivers/cdrom/optcd.c | CURRENT -> nr_sectors -= nr_sectors; |
CURRENT | 1027 | drivers/cdrom/optcd.c | CURRENT -> sector += nr_sectors; |
CURRENT | 1028 | drivers/cdrom/optcd.c | CURRENT -> buffer += nr_sectors * 512; |
CURRENT | 1157 | drivers/cdrom/optcd.c | next_bn = CURRENT -> sector / 4; |
CURRENT | 1229 | drivers/cdrom/optcd.c | CURRENT->nr_sectors, |
CURRENT | 1265 | drivers/cdrom/optcd.c | if (CURRENT -> nr_sectors == 0) |
CURRENT | 1273 | drivers/cdrom/optcd.c | && (CURRENT -> sector / 4 < next_bn || |
CURRENT | 1274 | drivers/cdrom/optcd.c | CURRENT -> sector / 4 > |
CURRENT | 1349 | drivers/cdrom/optcd.c | CURRENT -> sector, CURRENT -> nr_sectors)); |
CURRENT | 1359 | drivers/cdrom/optcd.c | if (CURRENT->bh) { |
CURRENT | 1360 | drivers/cdrom/optcd.c | if (!buffer_locked(CURRENT->bh)) |
CURRENT | 1364 | drivers/cdrom/optcd.c | if (CURRENT -> nr_sectors == 0) { |
CURRENT | 4395 | drivers/cdrom/sbpcd.c | while ( (CURRENT->nr_sectors > 0) && |
CURRENT | 4396 | drivers/cdrom/sbpcd.c | (CURRENT->sector/4 >= D_S[d].sbp_first_frame) && |
CURRENT | 4397 | drivers/cdrom/sbpcd.c | (CURRENT->sector/4 <= D_S[d].sbp_last_frame) ) |
CURRENT | 4399 | drivers/cdrom/sbpcd.c | offs = (CURRENT->sector - D_S[d].sbp_first_frame * 4) * 512; |
CURRENT | 4400 | drivers/cdrom/sbpcd.c | memcpy(CURRENT->buffer, D_S[d].sbp_buf + offs, 512); |
CURRENT | 4401 | drivers/cdrom/sbpcd.c | CURRENT->nr_sectors--; |
CURRENT | 4402 | drivers/cdrom/sbpcd.c | CURRENT->sector++; |
CURRENT | 4403 | drivers/cdrom/sbpcd.c | CURRENT->buffer += 512; |
CURRENT | 4420 | drivers/cdrom/sbpcd.c | if ((CURRENT == NULL) || CURRENT->rq_status == RQ_INACTIVE) |
CURRENT | 4422 | drivers/cdrom/sbpcd.c | if (CURRENT -> sector == -1) |
CURRENT | 4424 | drivers/cdrom/sbpcd.c | if (CURRENT->cmd != READ) |
CURRENT | 4426 | drivers/cdrom/sbpcd.c | msg(DBG_INF, "bad cmd %d\n", CURRENT->cmd); |
CURRENT | 4429 | drivers/cdrom/sbpcd.c | i = MINOR(CURRENT->rq_dev); |
CURRENT | 4433 | drivers/cdrom/sbpcd.c | kdevname(CURRENT->rq_dev)); |
CURRENT | 4442 | drivers/cdrom/sbpcd.c | block = CURRENT->sector; /* always numbered as 512-byte-pieces */ |
CURRENT | 4443 | drivers/cdrom/sbpcd.c | nsect = CURRENT->nr_sectors; /* always counted as 512-byte-pieces */ |
CURRENT | 4452 | drivers/cdrom/sbpcd.c | if (CURRENT->nr_sectors == 0) |
CURRENT | 4510 | drivers/cdrom/sbpcd.c | block=CURRENT->sector/4; |
CURRENT | 4871 | drivers/cdrom/sbpcd.c | D_S[d].sbp_first_frame = CURRENT -> sector / 4; |
CURRENT | 920 | drivers/cdrom/sjcd.c | ( CURRENT != NULL && MAJOR( CURRENT->rq_dev ) == MAJOR_NR && \ |
CURRENT | 921 | drivers/cdrom/sjcd.c | CURRENT->cmd == READ && CURRENT->sector != -1 ) |
CURRENT | 928 | drivers/cdrom/sjcd.c | while( CURRENT->nr_sectors ){ |
CURRENT | 929 | drivers/cdrom/sjcd.c | int i, bn = CURRENT->sector / 4; |
CURRENT | 932 | drivers/cdrom/sjcd.c | int offs = ( i * 4 + ( CURRENT->sector & 3 ) ) * 512; |
CURRENT | 933 | drivers/cdrom/sjcd.c | int nr_sectors = 4 - ( CURRENT->sector & 3 ); |
CURRENT | 941 | drivers/cdrom/sjcd.c | if( nr_sectors > CURRENT->nr_sectors ) |
CURRENT | 942 | drivers/cdrom/sjcd.c | nr_sectors = CURRENT->nr_sectors; |
CURRENT | 946 | drivers/cdrom/sjcd.c | memcpy( CURRENT->buffer, sjcd_buf + offs, nr_sectors * 512 ); |
CURRENT | 947 | drivers/cdrom/sjcd.c | CURRENT->nr_sectors -= nr_sectors; |
CURRENT | 948 | drivers/cdrom/sjcd.c | CURRENT->sector += nr_sectors; |
CURRENT | 949 | drivers/cdrom/sjcd.c | CURRENT->buffer += nr_sectors * 512; |
CURRENT | 1065 | drivers/cdrom/sjcd.c | sjcd_next_bn = CURRENT->sector / 4; |
CURRENT | 1176 | drivers/cdrom/sjcd.c | if( CURRENT->nr_sectors == 0 ) end_request( 1 ); |
CURRENT | 1181 | drivers/cdrom/sjcd.c | ( CURRENT->sector / 4 < sjcd_next_bn || |
CURRENT | 1182 | drivers/cdrom/sjcd.c | CURRENT->sector / 4 > sjcd_next_bn + SJCD_BUF_SIZ ) ){ |
CURRENT | 1270 | drivers/cdrom/sjcd.c | CURRENT->sector, CURRENT->nr_sectors ); |
CURRENT | 1277 | drivers/cdrom/sjcd.c | if( CURRENT->bh && !buffer_locked(CURRENT->bh) ) |
CURRENT | 1281 | drivers/cdrom/sjcd.c | if( CURRENT->nr_sectors == 0 ) end_request( 1 ); |
CURRENT | 803 | drivers/cdrom/sonycd535.c | if (!(CURRENT) || CURRENT->rq_status == RQ_INACTIVE) { |
CURRENT | 807 | drivers/cdrom/sonycd535.c | dev = MINOR(CURRENT->rq_dev); |
CURRENT | 808 | drivers/cdrom/sonycd535.c | block = CURRENT->sector; |
CURRENT | 809 | drivers/cdrom/sonycd535.c | nsect = CURRENT->nr_sectors; |
CURRENT | 814 | drivers/cdrom/sonycd535.c | switch (CURRENT->cmd) { |
CURRENT | 910 | drivers/cdrom/sonycd535.c | memcpy(CURRENT->buffer, |
CURRENT | 915 | drivers/cdrom/sonycd535.c | CURRENT->buffer += 512; |
CURRENT | 517 | drivers/scsi/scsi.h | if (!CURRENT) { \ |
CURRENT | 522 | drivers/scsi/scsi.h | if (MAJOR(CURRENT->rq_dev) != MAJOR_NR) \ |
CURRENT | 524 | drivers/scsi/scsi.h | if (CURRENT->bh) { \ |
CURRENT | 525 | drivers/scsi/scsi.h | if (!buffer_locked(CURRENT->bh)) \ |
CURRENT | 417 | drivers/scsi/sd.c | if (CURRENT != NULL && CURRENT->rq_status == RQ_INACTIVE) { |
CURRENT | 423 | drivers/scsi/sd.c | SDev = rscsi_disks[DEVICE_NR(CURRENT->rq_dev)].device; |
CURRENT | 459 | drivers/scsi/sd.c | SCpnt = allocate_device(&CURRENT, |
CURRENT | 460 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(CURRENT->rq_dev)].device, 0); |
CURRENT | 483 | drivers/scsi/sd.c | req = CURRENT; |
CURRENT | 491 | drivers/scsi/sd.c | if (req == CURRENT) |
CURRENT | 492 | drivers/scsi/sd.c | CURRENT = CURRENT->next; |
CURRENT | 566 | drivers/scsi/sr.c | if (CURRENT != NULL && CURRENT->rq_status == RQ_INACTIVE) { |
CURRENT | 573 | drivers/scsi/sr.c | SDev = scsi_CDs[DEVICE_NR(CURRENT->rq_dev)].device; |
CURRENT | 596 | drivers/scsi/sr.c | SCpnt = allocate_device(&CURRENT, |
CURRENT | 597 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(CURRENT->rq_dev)].device, 0); |
CURRENT | 613 | drivers/scsi/sr.c | req = CURRENT; |
CURRENT | 622 | drivers/scsi/sr.c | if (req == CURRENT) |
CURRENT | 623 | drivers/scsi/sr.c | CURRENT = CURRENT->next; |
CURRENT | 33 | include/linux/blk.h | blksize_size[MAJOR_NR][MINOR(CURRENT->rq_dev)] ? \ |
CURRENT | 34 | include/linux/blk.h | ((blksize_size[MAJOR_NR][MINOR(CURRENT->rq_dev)] >> 9) - 1) : \ |
CURRENT | 38 | include/linux/blk.h | #define SUBSECTOR(block) (CURRENT->current_nr_sectors > 0) |
CURRENT | 308 | include/linux/blk.h | #ifndef CURRENT |
CURRENT | 312 | include/linux/blk.h | #define CURRENT_DEV DEVICE_NR(CURRENT->rq_dev) |
CURRENT | 349 | include/linux/blk.h | if (!CURRENT) {\ |
CURRENT | 353 | include/linux/blk.h | if (MAJOR(CURRENT->rq_dev) != MAJOR_NR) \ |
CURRENT | 355 | include/linux/blk.h | if (CURRENT->bh) { \ |
CURRENT | 356 | include/linux/blk.h | if (!buffer_locked(CURRENT->bh)) \ |
CURRENT | 378 | include/linux/blk.h | struct request *req = CURRENT; |
CURRENT | 415 | include/linux/blk.h | CURRENT = req->next; |