tag | line | file | source code |
CURRENT | 1712 | drivers/block/floppy.c | printk("CURRENT=%p\n", CURRENT); |
CURRENT | 2083 | drivers/block/floppy.c | if (!CURRENT){ |
CURRENT | 2090 | drivers/block/floppy.c | block = current_count_sectors + CURRENT->sector; |
CURRENT | 2096 | drivers/block/floppy.c | while (current_count_sectors && CURRENT && |
CURRENT | 2097 | drivers/block/floppy.c | current_count_sectors >= CURRENT->current_nr_sectors){ |
CURRENT | 2098 | drivers/block/floppy.c | current_count_sectors -= CURRENT->current_nr_sectors; |
CURRENT | 2099 | drivers/block/floppy.c | CURRENT->nr_sectors -= CURRENT->current_nr_sectors; |
CURRENT | 2100 | drivers/block/floppy.c | CURRENT->sector += CURRENT->current_nr_sectors; |
CURRENT | 2103 | drivers/block/floppy.c | if (current_count_sectors && CURRENT){ |
CURRENT | 2105 | drivers/block/floppy.c | CURRENT->buffer += current_count_sectors <<9; |
CURRENT | 2106 | drivers/block/floppy.c | CURRENT->current_nr_sectors -= current_count_sectors; |
CURRENT | 2107 | drivers/block/floppy.c | CURRENT->nr_sectors -= current_count_sectors; |
CURRENT | 2108 | drivers/block/floppy.c | CURRENT->sector += current_count_sectors; |
CURRENT | 2112 | drivers/block/floppy.c | if (current_count_sectors && !CURRENT) |
CURRENT | 2116 | drivers/block/floppy.c | if (CURRENT->cmd == WRITE) { |
CURRENT | 2120 | drivers/block/floppy.c | DRWE->first_error_sector = CURRENT->sector; |
CURRENT | 2123 | drivers/block/floppy.c | DRWE->last_error_sector = CURRENT->sector; |
CURRENT | 2191 | drivers/block/floppy.c | raw_cmd->kernel_data == CURRENT->buffer){ |
CURRENT | 2209 | drivers/block/floppy.c | base = CURRENT->buffer; |
CURRENT | 2210 | drivers/block/floppy.c | size = CURRENT->current_nr_sectors << 9; |
CURRENT | 2211 | drivers/block/floppy.c | bh = CURRENT->bh; |
CURRENT | 2249 | drivers/block/floppy.c | CURRENT->nr_sectors); |
CURRENT | 2252 | drivers/block/floppy.c | buffer_max > sector_t + CURRENT->nr_sectors) |
CURRENT | 2254 | drivers/block/floppy.c | CURRENT->nr_sectors); |
CURRENT | 2258 | drivers/block/floppy.c | if ((remaining >> 9) > CURRENT->nr_sectors && |
CURRENT | 2263 | drivers/block/floppy.c | printk("CURRENT->nr_sectors=%ld\n",CURRENT->nr_sectors); |
CURRENT | 2265 | drivers/block/floppy.c | CURRENT->current_nr_sectors); |
CURRENT | 2275 | drivers/block/floppy.c | bh = CURRENT->bh; |
CURRENT | 2276 | drivers/block/floppy.c | size = CURRENT->current_nr_sectors << 9; |
CURRENT | 2277 | drivers/block/floppy.c | buffer = CURRENT->buffer; |
CURRENT | 2346 | drivers/block/floppy.c | set_fdc(DRIVE(CURRENT->rq_dev)); |
CURRENT | 2352 | drivers/block/floppy.c | if (CURRENT->cmd == READ){ |
CURRENT | 2355 | drivers/block/floppy.c | } else if (CURRENT->cmd == WRITE){ |
CURRENT | 2365 | drivers/block/floppy.c | TRACK = CURRENT->sector / max_sector; |
CURRENT | 2366 | drivers/block/floppy.c | sector_t = CURRENT->sector % max_sector; |
CURRENT | 2380 | drivers/block/floppy.c | CURRENT->nr_sectors); |
CURRENT | 2420 | drivers/block/floppy.c | max_size = CURRENT->nr_sectors; |
CURRENT | 2429 | drivers/block/floppy.c | } else if (aligned_sector_t != sector_t || CURRENT->nr_sectors < ssize){ |
CURRENT | 2431 | drivers/block/floppy.c | if (sector_t + CURRENT->nr_sectors > ssize && |
CURRENT | 2432 | drivers/block/floppy.c | sector_t + CURRENT->nr_sectors < ssize + ssize) |
CURRENT | 2440 | drivers/block/floppy.c | } else if ((unsigned long)CURRENT->buffer < MAX_DMA_ADDRESS) { |
CURRENT | 2452 | drivers/block/floppy.c | dma_limit = (MAX_DMA_ADDRESS - ((unsigned long) CURRENT->buffer)) >> 9; |
CURRENT | 2457 | drivers/block/floppy.c | if (CROSS_64KB(CURRENT->buffer, max_size << 9)) |
CURRENT | 2458 | drivers/block/floppy.c | max_size = (K_64 - ((long) CURRENT->buffer) % K_64)>>9; |
CURRENT | 2472 | drivers/block/floppy.c | max_size = CURRENT->nr_sectors; |
CURRENT | 2474 | drivers/block/floppy.c | raw_cmd->kernel_data = CURRENT->buffer; |
CURRENT | 2495 | drivers/block/floppy.c | (aligned_sector_t == sector_t && CURRENT->nr_sectors >= ssize))&& |
CURRENT | 2528 | drivers/block/floppy.c | (raw_cmd->kernel_data != CURRENT->buffer && |
CURRENT | 2536 | drivers/block/floppy.c | if (raw_cmd->kernel_data != CURRENT->buffer) |
CURRENT | 2553 | drivers/block/floppy.c | if (raw_cmd->kernel_data != CURRENT->buffer){ |
CURRENT | 2571 | drivers/block/floppy.c | } else if (raw_cmd->length > CURRENT->nr_sectors << 9 || |
CURRENT | 2572 | drivers/block/floppy.c | current_count_sectors > CURRENT->nr_sectors){ |
CURRENT | 2598 | drivers/block/floppy.c | if (CURRENT && CURRENT->rq_status == RQ_INACTIVE){ |
CURRENT | 2604 | drivers/block/floppy.c | if (!CURRENT) { |
CURRENT | 2609 | drivers/block/floppy.c | if (MAJOR(CURRENT->rq_dev) != MAJOR_NR) |
CURRENT | 2611 | drivers/block/floppy.c | if (CURRENT->bh && !buffer_locked(CURRENT->bh)) |
CURRENT | 2614 | drivers/block/floppy.c | device = CURRENT->rq_dev; |
CURRENT | 2640 | 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 | 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 | 132 | drivers/cdrom/mcd.c | (CURRENT && MAJOR(CURRENT -> rq_dev) == MAJOR_NR && CURRENT -> cmd == READ \ |
CURRENT | 133 | drivers/cdrom/mcd.c | && CURRENT -> sector != -1) |
CURRENT | 595 | drivers/cdrom/mcd.c | while (CURRENT -> nr_sectors) { |
CURRENT | 596 | drivers/cdrom/mcd.c | int bn = CURRENT -> sector / 4; |
CURRENT | 601 | drivers/cdrom/mcd.c | int offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
CURRENT | 602 | drivers/cdrom/mcd.c | int nr_sectors = 4 - (CURRENT -> sector & 3); |
CURRENT | 610 | drivers/cdrom/mcd.c | if (nr_sectors > CURRENT -> nr_sectors) |
CURRENT | 611 | drivers/cdrom/mcd.c | nr_sectors = CURRENT -> nr_sectors; |
CURRENT | 612 | drivers/cdrom/mcd.c | memcpy(CURRENT -> buffer, mcd_buf + offs, nr_sectors * 512); |
CURRENT | 613 | drivers/cdrom/mcd.c | CURRENT -> nr_sectors -= nr_sectors; |
CURRENT | 614 | drivers/cdrom/mcd.c | CURRENT -> sector += nr_sectors; |
CURRENT | 615 | drivers/cdrom/mcd.c | CURRENT -> buffer += nr_sectors * 512; |
CURRENT | 655 | drivers/cdrom/mcd.c | printk(" do_mcd_request(%ld+%ld)\n", CURRENT -> sector, CURRENT -> nr_sectors); |
CURRENT | 659 | drivers/cdrom/mcd.c | if (CURRENT->bh) { |
CURRENT | 660 | drivers/cdrom/mcd.c | if (!buffer_locked(CURRENT->bh)) |
CURRENT | 664 | drivers/cdrom/mcd.c | if (CURRENT -> nr_sectors == 0) { |
CURRENT | 861 | drivers/cdrom/mcd.c | mcd_next_bn = CURRENT -> sector / 4; |
CURRENT | 927 | drivers/cdrom/mcd.c | if (CURRENT -> nr_sectors == 0) |
CURRENT | 935 | drivers/cdrom/mcd.c | && (CURRENT -> sector / 4 < mcd_next_bn || |
CURRENT | 936 | drivers/cdrom/mcd.c | CURRENT -> sector / 4 > mcd_next_bn + 16)) { |
CURRENT | 543 | drivers/cdrom/mcdx.c | if ((CURRENT == NULL) || (CURRENT->rq_status == RQ_INACTIVE)) { |
CURRENT | 548 | drivers/cdrom/mcdx.c | stuffp = mcdx_stuffp[MINOR(CURRENT->rq_dev)]; |
CURRENT | 552 | drivers/cdrom/mcdx.c | dev = MINOR(CURRENT->rq_dev); |
CURRENT | 556 | drivers/cdrom/mcdx.c | kdevname(CURRENT->rq_dev))); |
CURRENT | 567 | drivers/cdrom/mcdx.c | switch (CURRENT->cmd) { |
CURRENT | 575 | drivers/cdrom/mcdx.c | while (CURRENT->nr_sectors) { |
CURRENT | 580 | drivers/cdrom/mcdx.c | CURRENT->buffer, |
CURRENT | 581 | drivers/cdrom/mcdx.c | CURRENT->sector, |
CURRENT | 582 | drivers/cdrom/mcdx.c | CURRENT->nr_sectors))) { |
CURRENT | 585 | drivers/cdrom/mcdx.c | CURRENT->sector += CURRENT->nr_sectors; |
CURRENT | 586 | drivers/cdrom/mcdx.c | CURRENT->nr_sectors = 0; |
CURRENT | 591 | drivers/cdrom/mcdx.c | CURRENT->sector += i; |
CURRENT | 592 | drivers/cdrom/mcdx.c | CURRENT->nr_sectors -= i; |
CURRENT | 593 | drivers/cdrom/mcdx.c | CURRENT->buffer += (i * 512); |
CURRENT | 675 | drivers/cdrom/optcd.c | while (CURRENT -> nr_sectors) { |
CURRENT | 676 | drivers/cdrom/optcd.c | int bn = CURRENT -> sector / 4; |
CURRENT | 686 | drivers/cdrom/optcd.c | offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
CURRENT | 687 | drivers/cdrom/optcd.c | nr_sectors = 4 - (CURRENT -> sector & 3); |
CURRENT | 695 | drivers/cdrom/optcd.c | if (nr_sectors > CURRENT -> nr_sectors) |
CURRENT | 696 | drivers/cdrom/optcd.c | nr_sectors = CURRENT -> nr_sectors; |
CURRENT | 697 | drivers/cdrom/optcd.c | memcpy(CURRENT -> buffer, opt_buf + offs, nr_sectors * 512); |
CURRENT | 698 | drivers/cdrom/optcd.c | CURRENT -> nr_sectors -= nr_sectors; |
CURRENT | 699 | drivers/cdrom/optcd.c | CURRENT -> sector += nr_sectors; |
CURRENT | 700 | drivers/cdrom/optcd.c | CURRENT -> buffer += nr_sectors * 512; |
CURRENT | 815 | drivers/cdrom/optcd.c | opt_next_bn = CURRENT -> sector / 4; |
CURRENT | 887 | drivers/cdrom/optcd.c | CURRENT->nr_sectors, |
CURRENT | 917 | drivers/cdrom/optcd.c | if (CURRENT -> nr_sectors == 0) |
CURRENT | 925 | drivers/cdrom/optcd.c | && (CURRENT -> sector / 4 < opt_next_bn || |
CURRENT | 926 | drivers/cdrom/optcd.c | CURRENT -> sector / 4 > |
CURRENT | 996 | drivers/cdrom/optcd.c | CURRENT -> sector, CURRENT -> nr_sectors); |
CURRENT | 1000 | drivers/cdrom/optcd.c | if (CURRENT->bh) { |
CURRENT | 1001 | drivers/cdrom/optcd.c | if (!buffer_locked(CURRENT->bh)) |
CURRENT | 1005 | drivers/cdrom/optcd.c | if (CURRENT -> nr_sectors == 0) { |
CURRENT | 4345 | drivers/cdrom/sbpcd.c | while ( (CURRENT->nr_sectors > 0) && |
CURRENT | 4346 | drivers/cdrom/sbpcd.c | (CURRENT->sector/4 >= D_S[d].sbp_first_frame) && |
CURRENT | 4347 | drivers/cdrom/sbpcd.c | (CURRENT->sector/4 <= D_S[d].sbp_last_frame) ) |
CURRENT | 4349 | drivers/cdrom/sbpcd.c | offs = (CURRENT->sector - D_S[d].sbp_first_frame * 4) * 512; |
CURRENT | 4350 | drivers/cdrom/sbpcd.c | memcpy(CURRENT->buffer, D_S[d].sbp_buf + offs, 512); |
CURRENT | 4351 | drivers/cdrom/sbpcd.c | CURRENT->nr_sectors--; |
CURRENT | 4352 | drivers/cdrom/sbpcd.c | CURRENT->sector++; |
CURRENT | 4353 | drivers/cdrom/sbpcd.c | CURRENT->buffer += 512; |
CURRENT | 4370 | drivers/cdrom/sbpcd.c | if ((CURRENT == NULL) || CURRENT->rq_status == RQ_INACTIVE) |
CURRENT | 4372 | drivers/cdrom/sbpcd.c | if (CURRENT -> sector == -1) |
CURRENT | 4374 | drivers/cdrom/sbpcd.c | if (CURRENT->cmd != READ) |
CURRENT | 4376 | drivers/cdrom/sbpcd.c | msg(DBG_INF, "bad cmd %d\n", CURRENT->cmd); |
CURRENT | 4379 | drivers/cdrom/sbpcd.c | i = MINOR(CURRENT->rq_dev); |
CURRENT | 4383 | drivers/cdrom/sbpcd.c | kdevname(CURRENT->rq_dev)); |
CURRENT | 4392 | drivers/cdrom/sbpcd.c | block = CURRENT->sector; /* always numbered as 512-byte-pieces */ |
CURRENT | 4393 | drivers/cdrom/sbpcd.c | nsect = CURRENT->nr_sectors; /* always counted as 512-byte-pieces */ |
CURRENT | 4402 | drivers/cdrom/sbpcd.c | if (CURRENT->nr_sectors == 0) |
CURRENT | 4460 | drivers/cdrom/sbpcd.c | block=CURRENT->sector/4; |
CURRENT | 4822 | drivers/cdrom/sbpcd.c | D_S[d].sbp_first_frame = CURRENT -> sector / 4; |
CURRENT | 980 | drivers/cdrom/sjcd.c | ( CURRENT != NULL && MAJOR( CURRENT->rq_dev ) == MAJOR_NR && \ |
CURRENT | 981 | drivers/cdrom/sjcd.c | CURRENT->cmd == READ && CURRENT->sector != -1 ) |
CURRENT | 988 | drivers/cdrom/sjcd.c | while( CURRENT->nr_sectors ){ |
CURRENT | 989 | drivers/cdrom/sjcd.c | int i, bn = CURRENT->sector / 4; |
CURRENT | 992 | drivers/cdrom/sjcd.c | int offs = ( i * 4 + ( CURRENT->sector & 3 ) ) * 512; |
CURRENT | 993 | drivers/cdrom/sjcd.c | int nr_sectors = 4 - ( CURRENT->sector & 3 ); |
CURRENT | 1001 | drivers/cdrom/sjcd.c | if( nr_sectors > CURRENT->nr_sectors ) |
CURRENT | 1002 | drivers/cdrom/sjcd.c | nr_sectors = CURRENT->nr_sectors; |
CURRENT | 1006 | drivers/cdrom/sjcd.c | memcpy( CURRENT->buffer, sjcd_buf + offs, nr_sectors * 512 ); |
CURRENT | 1007 | drivers/cdrom/sjcd.c | CURRENT->nr_sectors -= nr_sectors; |
CURRENT | 1008 | drivers/cdrom/sjcd.c | CURRENT->sector += nr_sectors; |
CURRENT | 1009 | drivers/cdrom/sjcd.c | CURRENT->buffer += nr_sectors * 512; |
CURRENT | 1125 | drivers/cdrom/sjcd.c | sjcd_next_bn = CURRENT->sector / 4; |
CURRENT | 1236 | drivers/cdrom/sjcd.c | if( CURRENT->nr_sectors == 0 ) end_request( 1 ); |
CURRENT | 1241 | drivers/cdrom/sjcd.c | ( CURRENT->sector / 4 < sjcd_next_bn || |
CURRENT | 1242 | drivers/cdrom/sjcd.c | CURRENT->sector / 4 > sjcd_next_bn + SJCD_BUF_SIZ ) ){ |
CURRENT | 1330 | drivers/cdrom/sjcd.c | CURRENT->sector, CURRENT->nr_sectors ); |
CURRENT | 1337 | drivers/cdrom/sjcd.c | if( CURRENT->bh && !buffer_locked(CURRENT->bh) ) |
CURRENT | 1341 | 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 | 286 | include/linux/blk.h | #ifndef CURRENT |
CURRENT | 290 | include/linux/blk.h | #define CURRENT_DEV DEVICE_NR(CURRENT->rq_dev) |
CURRENT | 325 | include/linux/blk.h | if (!CURRENT) {\ |
CURRENT | 329 | include/linux/blk.h | if (MAJOR(CURRENT->rq_dev) != MAJOR_NR) \ |
CURRENT | 331 | include/linux/blk.h | if (CURRENT->bh) { \ |
CURRENT | 332 | include/linux/blk.h | if (!buffer_locked(CURRENT->bh)) \ |
CURRENT | 352 | include/linux/blk.h | struct request *req = CURRENT; |
CURRENT | 389 | include/linux/blk.h | CURRENT = req->next; |
CURRENT | 173 | include/linux/optcd.h | (CURRENT && MAJOR(CURRENT -> rq_dev) == MAJOR_NR \ |
CURRENT | 174 | include/linux/optcd.h | && CURRENT -> cmd == READ && CURRENT -> sector != -1) |