tag | line | file | source code |
CURRENT | 198 | drivers/block/aztcd.c | (CURRENT && MAJOR(CURRENT -> dev) == MAJOR_NR && CURRENT -> cmd == READ \ |
CURRENT | 199 | drivers/block/aztcd.c | && CURRENT -> sector != -1) |
CURRENT | 970 | drivers/block/aztcd.c | while (CURRENT -> nr_sectors) { |
CURRENT | 971 | drivers/block/aztcd.c | int bn = CURRENT -> sector / 4; |
CURRENT | 976 | drivers/block/aztcd.c | int offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
CURRENT | 977 | drivers/block/aztcd.c | int nr_sectors = 4 - (CURRENT -> sector & 3); |
CURRENT | 985 | drivers/block/aztcd.c | if (nr_sectors > CURRENT -> nr_sectors) |
CURRENT | 986 | drivers/block/aztcd.c | nr_sectors = CURRENT -> nr_sectors; |
CURRENT | 987 | drivers/block/aztcd.c | memcpy(CURRENT -> buffer, azt_buf + offs, nr_sectors * 512); |
CURRENT | 988 | drivers/block/aztcd.c | CURRENT -> nr_sectors -= nr_sectors; |
CURRENT | 989 | drivers/block/aztcd.c | CURRENT -> sector += nr_sectors; |
CURRENT | 990 | drivers/block/aztcd.c | CURRENT -> buffer += nr_sectors * 512; |
CURRENT | 1003 | drivers/block/aztcd.c | printk(" do_aztcd_request(%ld+%ld) Time:%li\n", CURRENT -> sector, CURRENT -> nr_sectors,jiffies); |
CURRENT | 1012 | drivers/block/aztcd.c | if (CURRENT->bh) { |
CURRENT | 1013 | drivers/block/aztcd.c | if (!CURRENT->bh->b_lock) |
CURRENT | 1017 | drivers/block/aztcd.c | if (CURRENT -> nr_sectors == 0) { |
CURRENT | 1188 | drivers/block/aztcd.c | azt_next_bn = CURRENT -> sector / 4; |
CURRENT | 1288 | drivers/block/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 | 1317 | drivers/block/aztcd.c | if (CURRENT -> nr_sectors == 0) |
CURRENT | 1325 | drivers/block/aztcd.c | && (CURRENT -> sector / 4 < azt_next_bn || |
CURRENT | 1326 | drivers/block/aztcd.c | CURRENT -> sector / 4 > azt_next_bn + AZT_BUF_SIZ)) { |
CURRENT | 33 | drivers/block/blk.h | blksize_size[MAJOR_NR][MINOR(CURRENT->dev)] ? \ |
CURRENT | 34 | drivers/block/blk.h | ((blksize_size[MAJOR_NR][MINOR(CURRENT->dev)] >> 9) - 1) : \ |
CURRENT | 38 | drivers/block/blk.h | #define SUBSECTOR(block) (CURRENT->current_nr_sectors > 0) |
CURRENT | 282 | drivers/block/blk.h | #ifndef CURRENT |
CURRENT | 286 | drivers/block/blk.h | #define CURRENT_DEV DEVICE_NR(CURRENT->dev) |
CURRENT | 321 | drivers/block/blk.h | if (!CURRENT) {\ |
CURRENT | 325 | drivers/block/blk.h | if (MAJOR(CURRENT->dev) != MAJOR_NR) \ |
CURRENT | 327 | drivers/block/blk.h | if (CURRENT->bh) { \ |
CURRENT | 328 | drivers/block/blk.h | if (!CURRENT->bh->b_lock) \ |
CURRENT | 348 | drivers/block/blk.h | struct request *req = CURRENT; |
CURRENT | 382 | drivers/block/blk.h | CURRENT = req->next; |
CURRENT | 1486 | drivers/block/cdu31a.c | if (CURRENT && (CURRENT->dev > 0)) |
CURRENT | 1516 | drivers/block/cdu31a.c | if (!(CURRENT) || CURRENT->dev < 0) |
CURRENT | 1528 | drivers/block/cdu31a.c | in.i_rdev = CURRENT->dev; |
CURRENT | 1535 | drivers/block/cdu31a.c | if (MAJOR(CURRENT->dev) != MAJOR_NR) |
CURRENT | 1539 | drivers/block/cdu31a.c | if (CURRENT->bh) |
CURRENT | 1541 | drivers/block/cdu31a.c | if (!CURRENT->bh->b_lock) |
CURRENT | 1547 | drivers/block/cdu31a.c | block = CURRENT->sector; |
CURRENT | 1548 | drivers/block/cdu31a.c | nblock = CURRENT->nr_sectors; |
CURRENT | 1567 | drivers/block/cdu31a.c | switch(CURRENT->cmd) |
CURRENT | 1643 | drivers/block/cdu31a.c | read_data_block(CURRENT->buffer, block, nblock, res_reg, &res_size); |
CURRENT | 651 | drivers/block/cm206.c | if (CURRENT == NULL || CURRENT->dev == -1) return; |
CURRENT | 652 | drivers/block/cm206.c | if (CURRENT->cmd != READ) { |
CURRENT | 653 | drivers/block/cm206.c | debug(("Non-read command %d on cdrom\n", CURRENT->cmd)); |
CURRENT | 658 | drivers/block/cm206.c | for (i=0; i<CURRENT->nr_sectors; i++) { |
CURRENT | 659 | drivers/block/cm206.c | cd_sec_no = (CURRENT->sector+i)/4; /* 4 times 512 bytes */ |
CURRENT | 660 | drivers/block/cm206.c | quarter = (CURRENT->sector+i) % 4; |
CURRENT | 661 | drivers/block/cm206.c | dest = CURRENT->buffer + i*512; |
CURRENT | 986 | drivers/block/floppy.c | if ((!CURRENT || |
CURRENT | 987 | drivers/block/floppy.c | CURRENT->buffer != current_addr || |
CURRENT | 988 | drivers/block/floppy.c | raw_cmd.length > 512 * CURRENT->nr_sectors) && |
CURRENT | 994 | drivers/block/floppy.c | if ( CURRENT ){ |
CURRENT | 996 | drivers/block/floppy.c | CURRENT->buffer, CURRENT->nr_sectors, |
CURRENT | 997 | drivers/block/floppy.c | CURRENT->current_nr_sectors); |
CURRENT | 1737 | drivers/block/floppy.c | printk("CURRENT=%p\n", CURRENT); |
CURRENT | 2114 | drivers/block/floppy.c | if (!CURRENT){ |
CURRENT | 2121 | drivers/block/floppy.c | block = current_count_sectors + CURRENT->sector; |
CURRENT | 2128 | drivers/block/floppy.c | while (current_count_sectors && CURRENT && |
CURRENT | 2129 | drivers/block/floppy.c | current_count_sectors >= CURRENT->current_nr_sectors ){ |
CURRENT | 2130 | drivers/block/floppy.c | current_count_sectors -= CURRENT->current_nr_sectors; |
CURRENT | 2131 | drivers/block/floppy.c | CURRENT->nr_sectors -= CURRENT->current_nr_sectors; |
CURRENT | 2132 | drivers/block/floppy.c | CURRENT->sector += CURRENT->current_nr_sectors; |
CURRENT | 2135 | drivers/block/floppy.c | if ( current_count_sectors && CURRENT){ |
CURRENT | 2137 | drivers/block/floppy.c | CURRENT->buffer += current_count_sectors <<9; |
CURRENT | 2138 | drivers/block/floppy.c | CURRENT->current_nr_sectors -= current_count_sectors; |
CURRENT | 2139 | drivers/block/floppy.c | CURRENT->nr_sectors -= current_count_sectors; |
CURRENT | 2140 | drivers/block/floppy.c | CURRENT->sector += current_count_sectors; |
CURRENT | 2144 | drivers/block/floppy.c | if ( current_count_sectors && ! CURRENT ) |
CURRENT | 2148 | drivers/block/floppy.c | if(CURRENT->cmd == WRITE) { |
CURRENT | 2152 | drivers/block/floppy.c | DRWE->first_error_sector = CURRENT->sector; |
CURRENT | 2155 | drivers/block/floppy.c | DRWE->last_error_sector = CURRENT->sector; |
CURRENT | 2226 | drivers/block/floppy.c | if ( CT(COMMAND) != FD_READ || current_addr == CURRENT->buffer ){ |
CURRENT | 2245 | drivers/block/floppy.c | base = CURRENT->buffer; |
CURRENT | 2246 | drivers/block/floppy.c | size = CURRENT->current_nr_sectors << 9; |
CURRENT | 2247 | drivers/block/floppy.c | bh = CURRENT->bh; |
CURRENT | 2287 | drivers/block/floppy.c | max_sector = transfer_size(ssize, max_sector, CURRENT->nr_sectors); |
CURRENT | 2290 | drivers/block/floppy.c | buffer_max > sector_t + CURRENT->nr_sectors){ |
CURRENT | 2292 | drivers/block/floppy.c | if ( current_count_sectors > CURRENT->nr_sectors ) |
CURRENT | 2293 | drivers/block/floppy.c | current_count_sectors = CURRENT->nr_sectors; |
CURRENT | 2297 | drivers/block/floppy.c | if ((remaining >> 9) > CURRENT->nr_sectors && |
CURRENT | 2302 | drivers/block/floppy.c | printk("CURRENT->nr_sectors=%ld\n",CURRENT->nr_sectors); |
CURRENT | 2304 | drivers/block/floppy.c | CURRENT->current_nr_sectors); |
CURRENT | 2315 | drivers/block/floppy.c | bh = CURRENT->bh; |
CURRENT | 2316 | drivers/block/floppy.c | size = CURRENT->current_nr_sectors << 9; |
CURRENT | 2317 | drivers/block/floppy.c | buffer = CURRENT->buffer; |
CURRENT | 2384 | drivers/block/floppy.c | set_fdc(DRIVE(CURRENT->dev)); |
CURRENT | 2389 | drivers/block/floppy.c | if (CURRENT->cmd == READ){ |
CURRENT | 2392 | drivers/block/floppy.c | } else if (CURRENT->cmd == WRITE){ |
CURRENT | 2402 | drivers/block/floppy.c | TRACK = CURRENT->sector / max_sector; |
CURRENT | 2403 | drivers/block/floppy.c | sector_t = CURRENT->sector % max_sector; |
CURRENT | 2417 | drivers/block/floppy.c | if ( current_count_sectors > CURRENT->nr_sectors ) |
CURRENT | 2418 | drivers/block/floppy.c | current_count_sectors = CURRENT->nr_sectors; |
CURRENT | 2458 | drivers/block/floppy.c | max_size = CURRENT->nr_sectors; |
CURRENT | 2466 | drivers/block/floppy.c | } else if (aligned_sector_t != sector_t || CURRENT->nr_sectors < ssize){ |
CURRENT | 2468 | drivers/block/floppy.c | if(sector_t + CURRENT->nr_sectors > ssize && |
CURRENT | 2469 | drivers/block/floppy.c | sector_t + CURRENT->nr_sectors < ssize + ssize) |
CURRENT | 2477 | drivers/block/floppy.c | } else if ((unsigned long)CURRENT->buffer < MAX_DMA_ADDRESS ) { |
CURRENT | 2484 | drivers/block/floppy.c | if ( max_size > ( MAX_DMA_ADDRESS - ((unsigned long) CURRENT->buffer))>>9) |
CURRENT | 2485 | drivers/block/floppy.c | max_size=(MAX_DMA_ADDRESS - ((unsigned long) CURRENT->buffer))>>9; |
CURRENT | 2487 | drivers/block/floppy.c | if (CROSS_64KB(CURRENT->buffer, max_size << 9)) |
CURRENT | 2488 | drivers/block/floppy.c | max_size = ( K_64 - ((long) CURRENT->buffer) % K_64)>>9; |
CURRENT | 2502 | drivers/block/floppy.c | max_size = CURRENT->nr_sectors; |
CURRENT | 2504 | drivers/block/floppy.c | current_addr = CURRENT->buffer; |
CURRENT | 2525 | drivers/block/floppy.c | (aligned_sector_t == sector_t && CURRENT->nr_sectors >= ssize ))&& |
CURRENT | 2557 | drivers/block/floppy.c | (current_addr != CURRENT->buffer && |
CURRENT | 2565 | drivers/block/floppy.c | if ( current_addr != CURRENT->buffer ) |
CURRENT | 2581 | drivers/block/floppy.c | if (current_addr != CURRENT->buffer ){ |
CURRENT | 2599 | drivers/block/floppy.c | } else if (raw_cmd.length > CURRENT->nr_sectors << 9 || |
CURRENT | 2600 | drivers/block/floppy.c | current_count_sectors > CURRENT->nr_sectors){ |
CURRENT | 2629 | drivers/block/floppy.c | if (CURRENT && CURRENT->dev < 0){ |
CURRENT | 2635 | drivers/block/floppy.c | if (!CURRENT) { |
CURRENT | 2640 | drivers/block/floppy.c | if (MAJOR(CURRENT->dev) != MAJOR_NR) |
CURRENT | 2642 | drivers/block/floppy.c | if (CURRENT->bh && !CURRENT->bh->b_lock) |
CURRENT | 2645 | drivers/block/floppy.c | if (!CURRENT->bh->b_count && |
CURRENT | 2646 | drivers/block/floppy.c | (CURRENT->errors || error == CURRENT->dev)){ |
CURRENT | 2647 | drivers/block/floppy.c | error=CURRENT->dev; |
CURRENT | 2653 | drivers/block/floppy.c | device = CURRENT->dev; |
CURRENT | 2677 | drivers/block/floppy.c | errors = & (CURRENT->errors); |
CURRENT | 252 | drivers/block/gscd.c | while (CURRENT -> nr_sectors > 0 && gscd_bn == CURRENT -> sector / 4) |
CURRENT | 254 | drivers/block/gscd.c | offs = (CURRENT -> sector & 3) * 512; |
CURRENT | 255 | drivers/block/gscd.c | memcpy(CURRENT -> buffer, gscd_buf + offs, 512); |
CURRENT | 256 | drivers/block/gscd.c | CURRENT -> nr_sectors--; |
CURRENT | 257 | drivers/block/gscd.c | CURRENT -> sector++; |
CURRENT | 258 | drivers/block/gscd.c | CURRENT -> buffer += 512; |
CURRENT | 273 | drivers/block/gscd.c | if (!(CURRENT) || CURRENT->dev < 0) return; |
CURRENT | 275 | drivers/block/gscd.c | dev = MINOR(CURRENT->dev); |
CURRENT | 276 | drivers/block/gscd.c | block = CURRENT->sector; |
CURRENT | 277 | drivers/block/gscd.c | nsect = CURRENT->nr_sectors; |
CURRENT | 279 | drivers/block/gscd.c | if (CURRENT == NULL || CURRENT -> sector == -1) |
CURRENT | 282 | drivers/block/gscd.c | if (CURRENT -> cmd != READ) |
CURRENT | 284 | drivers/block/gscd.c | printk("GSCD: bad cmd %d\n", CURRENT -> cmd); |
CURRENT | 289 | drivers/block/gscd.c | if (MINOR(CURRENT -> dev) != 0) |
CURRENT | 300 | drivers/block/gscd.c | if (CURRENT -> nr_sectors == 0) |
CURRENT | 345 | drivers/block/gscd.c | block = CURRENT -> sector / 4; |
CURRENT | 357 | drivers/block/gscd.c | gscd_bn = CURRENT -> sector / 4; |
CURRENT | 134 | drivers/block/hd.c | devc = CURRENT ? 'a' + DEVICE_NR(CURRENT->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->dev); |
CURRENT | 336 | drivers/block/hd.c | unsigned int dev = DEVICE_NR(CURRENT->dev), stat = inb_p(HD_STATUS); |
CURRENT | 448 | drivers/block/hd.c | if (!CURRENT) |
CURRENT | 450 | drivers/block/hd.c | dev = DEVICE_NR(CURRENT->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->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->dev); |
CURRENT | 645 | drivers/block/hd.c | if (++CURRENT->errors >= MAX_ERRORS) { |
CURRENT | 698 | drivers/block/hd.c | if (CURRENT && CURRENT->dev < 0) return; |
CURRENT | 710 | drivers/block/hd.c | dev = MINOR(CURRENT->dev); |
CURRENT | 711 | drivers/block/hd.c | block = CURRENT->sector; |
CURRENT | 712 | drivers/block/hd.c | nsect = CURRENT->nr_sectors; |
CURRENT | 716 | drivers/block/hd.c | printk("hd: bad minor number: device=0x%04x\n", CURRENT->dev); |
CURRENT | 719 | drivers/block/hd.c | (CURRENT->dev>>6)+'a', block, nsect); |
CURRENT | 737 | drivers/block/hd.c | dev+'a', (CURRENT->cmd == READ)?"read":"writ", |
CURRENT | 738 | drivers/block/hd.c | cyl, head, sec, nsect, (unsigned long) CURRENT->buffer); |
CURRENT | 742 | drivers/block/hd.c | if (CURRENT->cmd == READ) { |
CURRENT | 749 | drivers/block/hd.c | if (CURRENT->cmd == WRITE) { |
CURRENT | 761 | drivers/block/hd.c | WCURRENT = *CURRENT; |
CURRENT | 764 | drivers/block/hd.c | outsw(HD_DATA,CURRENT->buffer,256); |
CURRENT | 142 | drivers/block/mcd.c | (CURRENT && MAJOR(CURRENT -> dev) == MAJOR_NR && CURRENT -> cmd == READ \ |
CURRENT | 143 | drivers/block/mcd.c | && CURRENT -> sector != -1) |
CURRENT | 604 | drivers/block/mcd.c | while (CURRENT -> nr_sectors) { |
CURRENT | 605 | drivers/block/mcd.c | int bn = CURRENT -> sector / 4; |
CURRENT | 610 | drivers/block/mcd.c | int offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
CURRENT | 611 | drivers/block/mcd.c | int nr_sectors = 4 - (CURRENT -> sector & 3); |
CURRENT | 619 | drivers/block/mcd.c | if (nr_sectors > CURRENT -> nr_sectors) |
CURRENT | 620 | drivers/block/mcd.c | nr_sectors = CURRENT -> nr_sectors; |
CURRENT | 621 | drivers/block/mcd.c | memcpy(CURRENT -> buffer, mcd_buf + offs, nr_sectors * 512); |
CURRENT | 622 | drivers/block/mcd.c | CURRENT -> nr_sectors -= nr_sectors; |
CURRENT | 623 | drivers/block/mcd.c | CURRENT -> sector += nr_sectors; |
CURRENT | 624 | drivers/block/mcd.c | CURRENT -> buffer += nr_sectors * 512; |
CURRENT | 664 | drivers/block/mcd.c | printk(" do_mcd_request(%ld+%ld)\n", CURRENT -> sector, CURRENT -> nr_sectors); |
CURRENT | 668 | drivers/block/mcd.c | if (CURRENT->bh) { |
CURRENT | 669 | drivers/block/mcd.c | if (!CURRENT->bh->b_lock) |
CURRENT | 673 | drivers/block/mcd.c | if (CURRENT -> nr_sectors == 0) { |
CURRENT | 870 | drivers/block/mcd.c | mcd_next_bn = CURRENT -> sector / 4; |
CURRENT | 936 | drivers/block/mcd.c | if (CURRENT -> nr_sectors == 0) |
CURRENT | 944 | drivers/block/mcd.c | && (CURRENT -> sector / 4 < mcd_next_bn || |
CURRENT | 945 | drivers/block/mcd.c | CURRENT -> sector / 4 > mcd_next_bn + 16)) { |
CURRENT | 549 | drivers/block/mcdx.c | if ((CURRENT == NULL) || (CURRENT->dev < 0)) { |
CURRENT | 554 | drivers/block/mcdx.c | stuffp = mcdx_stuffp[MINOR(CURRENT->dev)]; |
CURRENT | 558 | drivers/block/mcdx.c | dev = MINOR(CURRENT->dev); |
CURRENT | 561 | drivers/block/mcdx.c | WARN(("do_request(): bad device: 0x%04x\n", CURRENT->dev)); |
CURRENT | 572 | drivers/block/mcdx.c | switch (CURRENT->cmd) { |
CURRENT | 580 | drivers/block/mcdx.c | while (CURRENT->nr_sectors) { |
CURRENT | 585 | drivers/block/mcdx.c | CURRENT->buffer, |
CURRENT | 586 | drivers/block/mcdx.c | CURRENT->sector, |
CURRENT | 587 | drivers/block/mcdx.c | CURRENT->nr_sectors))) { |
CURRENT | 590 | drivers/block/mcdx.c | CURRENT->sector += CURRENT->nr_sectors; |
CURRENT | 591 | drivers/block/mcdx.c | CURRENT->nr_sectors = 0; |
CURRENT | 596 | drivers/block/mcdx.c | CURRENT->sector += i; |
CURRENT | 597 | drivers/block/mcdx.c | CURRENT->nr_sectors -= i; |
CURRENT | 598 | drivers/block/mcdx.c | CURRENT->buffer += (i * 512); |
CURRENT | 685 | drivers/block/optcd.c | while (CURRENT -> nr_sectors) { |
CURRENT | 686 | drivers/block/optcd.c | int bn = CURRENT -> sector / 4; |
CURRENT | 696 | drivers/block/optcd.c | offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
CURRENT | 697 | drivers/block/optcd.c | nr_sectors = 4 - (CURRENT -> sector & 3); |
CURRENT | 705 | drivers/block/optcd.c | if (nr_sectors > CURRENT -> nr_sectors) |
CURRENT | 706 | drivers/block/optcd.c | nr_sectors = CURRENT -> nr_sectors; |
CURRENT | 707 | drivers/block/optcd.c | memcpy(CURRENT -> buffer, opt_buf + offs, nr_sectors * 512); |
CURRENT | 708 | drivers/block/optcd.c | CURRENT -> nr_sectors -= nr_sectors; |
CURRENT | 709 | drivers/block/optcd.c | CURRENT -> sector += nr_sectors; |
CURRENT | 710 | drivers/block/optcd.c | CURRENT -> buffer += nr_sectors * 512; |
CURRENT | 825 | drivers/block/optcd.c | opt_next_bn = CURRENT -> sector / 4; |
CURRENT | 897 | drivers/block/optcd.c | CURRENT->nr_sectors, |
CURRENT | 927 | drivers/block/optcd.c | if (CURRENT -> nr_sectors == 0) |
CURRENT | 935 | drivers/block/optcd.c | && (CURRENT -> sector / 4 < opt_next_bn || |
CURRENT | 936 | drivers/block/optcd.c | CURRENT -> sector / 4 > |
CURRENT | 1006 | drivers/block/optcd.c | CURRENT -> sector, CURRENT -> nr_sectors); |
CURRENT | 1010 | drivers/block/optcd.c | if (CURRENT->bh) { |
CURRENT | 1011 | drivers/block/optcd.c | if (!CURRENT->bh->b_lock) |
CURRENT | 1015 | drivers/block/optcd.c | if (CURRENT -> nr_sectors == 0) { |
CURRENT | 40 | drivers/block/ramdisk.c | addr = rd_start + (CURRENT->sector << 9); |
CURRENT | 41 | drivers/block/ramdisk.c | len = CURRENT->current_nr_sectors << 9; |
CURRENT | 43 | drivers/block/ramdisk.c | if ((MINOR(CURRENT->dev) != RAMDISK_MINOR) || |
CURRENT | 48 | drivers/block/ramdisk.c | if (CURRENT-> cmd == WRITE) { |
CURRENT | 50 | drivers/block/ramdisk.c | CURRENT->buffer, |
CURRENT | 52 | drivers/block/ramdisk.c | } else if (CURRENT->cmd == READ) { |
CURRENT | 53 | drivers/block/ramdisk.c | (void) memcpy(CURRENT->buffer, |
CURRENT | 4361 | drivers/block/sbpcd.c | while ( (CURRENT->nr_sectors > 0) && |
CURRENT | 4362 | drivers/block/sbpcd.c | (CURRENT->sector/4 >= D_S[d].sbp_first_frame) && |
CURRENT | 4363 | drivers/block/sbpcd.c | (CURRENT->sector/4 <= D_S[d].sbp_last_frame) ) |
CURRENT | 4365 | drivers/block/sbpcd.c | offs = (CURRENT->sector - D_S[d].sbp_first_frame * 4) * 512; |
CURRENT | 4366 | drivers/block/sbpcd.c | memcpy(CURRENT->buffer, D_S[d].sbp_buf + offs, 512); |
CURRENT | 4367 | drivers/block/sbpcd.c | CURRENT->nr_sectors--; |
CURRENT | 4368 | drivers/block/sbpcd.c | CURRENT->sector++; |
CURRENT | 4369 | drivers/block/sbpcd.c | CURRENT->buffer += 512; |
CURRENT | 4386 | drivers/block/sbpcd.c | if ((CURRENT==NULL)||(CURRENT->dev<0)) goto err_done; |
CURRENT | 4387 | drivers/block/sbpcd.c | if (CURRENT -> sector == -1) goto err_done; |
CURRENT | 4388 | drivers/block/sbpcd.c | if (CURRENT->cmd != READ) |
CURRENT | 4390 | drivers/block/sbpcd.c | msg(DBG_INF, "bad cmd %d\n", CURRENT->cmd); |
CURRENT | 4393 | drivers/block/sbpcd.c | i = MINOR(CURRENT->dev); |
CURRENT | 4396 | drivers/block/sbpcd.c | msg(DBG_INF, "do_request: bad device: %04X\n", CURRENT->dev); |
CURRENT | 4405 | drivers/block/sbpcd.c | block = CURRENT->sector; /* always numbered as 512-byte-pieces */ |
CURRENT | 4406 | drivers/block/sbpcd.c | nsect = CURRENT->nr_sectors; /* always counted as 512-byte-pieces */ |
CURRENT | 4415 | drivers/block/sbpcd.c | if (CURRENT->nr_sectors == 0) |
CURRENT | 4473 | drivers/block/sbpcd.c | block=CURRENT->sector/4; |
CURRENT | 4822 | drivers/block/sbpcd.c | D_S[d].sbp_first_frame = CURRENT -> sector / 4; |
CURRENT | 911 | drivers/block/sjcd.c | ( CURRENT != NULL && MAJOR( CURRENT->dev ) == MAJOR_NR && \ |
CURRENT | 912 | drivers/block/sjcd.c | CURRENT->cmd == READ && CURRENT->sector != -1 ) |
CURRENT | 919 | drivers/block/sjcd.c | while( CURRENT->nr_sectors ){ |
CURRENT | 920 | drivers/block/sjcd.c | int i, bn = CURRENT->sector / 4; |
CURRENT | 923 | drivers/block/sjcd.c | int offs = ( i * 4 + ( CURRENT->sector & 3 ) ) * 512; |
CURRENT | 924 | drivers/block/sjcd.c | int nr_sectors = 4 - ( CURRENT->sector & 3 ); |
CURRENT | 932 | drivers/block/sjcd.c | if( nr_sectors > CURRENT->nr_sectors ) |
CURRENT | 933 | drivers/block/sjcd.c | nr_sectors = CURRENT->nr_sectors; |
CURRENT | 937 | drivers/block/sjcd.c | memcpy( CURRENT->buffer, sjcd_buf + offs, nr_sectors * 512 ); |
CURRENT | 938 | drivers/block/sjcd.c | CURRENT->nr_sectors -= nr_sectors; |
CURRENT | 939 | drivers/block/sjcd.c | CURRENT->sector += nr_sectors; |
CURRENT | 940 | drivers/block/sjcd.c | CURRENT->buffer += nr_sectors * 512; |
CURRENT | 1047 | drivers/block/sjcd.c | sjcd_next_bn = CURRENT->sector / 4; |
CURRENT | 1149 | drivers/block/sjcd.c | if( CURRENT->nr_sectors == 0 ) end_request( 1 ); |
CURRENT | 1154 | drivers/block/sjcd.c | ( CURRENT->sector / 4 < sjcd_next_bn || |
CURRENT | 1155 | drivers/block/sjcd.c | CURRENT->sector / 4 > sjcd_next_bn + SJCD_BUF_SIZ ) ){ |
CURRENT | 1232 | drivers/block/sjcd.c | CURRENT->sector, CURRENT->nr_sectors ); |
CURRENT | 1239 | drivers/block/sjcd.c | if( CURRENT->bh && !( CURRENT->bh->b_lock ) ) |
CURRENT | 1243 | drivers/block/sjcd.c | if( CURRENT->nr_sectors == 0 ) end_request( 1 ); |
CURRENT | 835 | drivers/block/sonycd535.c | if (!(CURRENT) || CURRENT->dev < 0) { |
CURRENT | 839 | drivers/block/sonycd535.c | dev = MINOR(CURRENT->dev); |
CURRENT | 840 | drivers/block/sonycd535.c | block = CURRENT->sector; |
CURRENT | 841 | drivers/block/sonycd535.c | nsect = CURRENT->nr_sectors; |
CURRENT | 846 | drivers/block/sonycd535.c | switch (CURRENT->cmd) { |
CURRENT | 943 | drivers/block/sonycd535.c | memcpy(CURRENT->buffer, sony_buffer + copyoff, 512); |
CURRENT | 946 | drivers/block/sonycd535.c | memcpy(CURRENT->buffer, |
CURRENT | 952 | drivers/block/sonycd535.c | CURRENT->buffer += 512; |
CURRENT | 216 | drivers/block/xd.c | while (code = 0, CURRENT) { |
CURRENT | 219 | drivers/block/xd.c | if (CURRENT_DEV < xd_drives && CURRENT->sector + CURRENT->nr_sectors <= xd[MINOR(CURRENT->dev)].nr_sects) { |
CURRENT | 220 | drivers/block/xd.c | block = CURRENT->sector + xd[MINOR(CURRENT->dev)].start_sect; |
CURRENT | 221 | drivers/block/xd.c | count = CURRENT->nr_sectors; |
CURRENT | 223 | drivers/block/xd.c | switch (CURRENT->cmd) { |
CURRENT | 227 | drivers/block/xd.c | code = xd_readwrite(CURRENT->cmd,CURRENT_DEV,CURRENT->buffer,block,count); |
CURRENT | 513 | drivers/scsi/scsi.h | if (!CURRENT) {\ |
CURRENT | 518 | drivers/scsi/scsi.h | if (MAJOR(CURRENT->dev) != MAJOR_NR) \ |
CURRENT | 520 | drivers/scsi/scsi.h | if (CURRENT->bh) { \ |
CURRENT | 521 | drivers/scsi/scsi.h | if (!CURRENT->bh->b_lock) \ |
CURRENT | 404 | drivers/scsi/sd.c | if (CURRENT != NULL && CURRENT->dev == -1) { |
CURRENT | 410 | drivers/scsi/sd.c | SDev = rscsi_disks[DEVICE_NR(MINOR(CURRENT->dev))].device; |
CURRENT | 446 | drivers/scsi/sd.c | SCpnt = allocate_device(&CURRENT, |
CURRENT | 447 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(MINOR(CURRENT->dev))].device, 0); |
CURRENT | 470 | drivers/scsi/sd.c | req = CURRENT; |
CURRENT | 478 | drivers/scsi/sd.c | if (req == CURRENT) |
CURRENT | 479 | drivers/scsi/sd.c | CURRENT = CURRENT->next; |
CURRENT | 562 | drivers/scsi/sr.c | if (CURRENT != NULL && CURRENT->dev == -1) { |
CURRENT | 569 | drivers/scsi/sr.c | SDev = scsi_CDs[DEVICE_NR(MINOR(CURRENT->dev))].device; |
CURRENT | 592 | drivers/scsi/sr.c | SCpnt = allocate_device(&CURRENT, |
CURRENT | 593 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(MINOR(CURRENT->dev))].device, 0); |
CURRENT | 609 | drivers/scsi/sr.c | req = CURRENT; |
CURRENT | 618 | drivers/scsi/sr.c | if (req == CURRENT) |
CURRENT | 619 | drivers/scsi/sr.c | CURRENT = CURRENT->next; |
CURRENT | 173 | include/linux/optcd.h | (CURRENT && MAJOR(CURRENT -> dev) == MAJOR_NR \ |
CURRENT | 174 | include/linux/optcd.h | && CURRENT -> cmd == READ && CURRENT -> sector != -1) |