tag | line | file | source code |
nr_sectors | 2099 | drivers/block/floppy.c | CURRENT->nr_sectors -= CURRENT->current_nr_sectors; |
nr_sectors | 2107 | drivers/block/floppy.c | CURRENT->nr_sectors -= current_count_sectors; |
nr_sectors | 2133 | drivers/block/floppy.c | int nr_sectors, ssize; |
nr_sectors | 2138 | drivers/block/floppy.c | nr_sectors = 0; |
nr_sectors | 2140 | drivers/block/floppy.c | nr_sectors = ((R_TRACK-TRACK)*floppy->head+R_HEAD-HEAD) * |
nr_sectors | 2145 | drivers/block/floppy.c | if (nr_sectors > current_count_sectors + ssize - |
nr_sectors | 2149 | drivers/block/floppy.c | nr_sectors, current_count_sectors); |
nr_sectors | 2157 | drivers/block/floppy.c | INFBOUND(nr_sectors,0); |
nr_sectors | 2158 | drivers/block/floppy.c | SUPBOUND(current_count_sectors, nr_sectors); |
nr_sectors | 2197 | drivers/block/floppy.c | INFBOUND(buffer_max, nr_sectors + sector_t); |
nr_sectors | 2249 | drivers/block/floppy.c | CURRENT->nr_sectors); |
nr_sectors | 2252 | drivers/block/floppy.c | buffer_max > sector_t + CURRENT->nr_sectors) |
nr_sectors | 2254 | drivers/block/floppy.c | CURRENT->nr_sectors); |
nr_sectors | 2258 | drivers/block/floppy.c | if ((remaining >> 9) > CURRENT->nr_sectors && |
nr_sectors | 2263 | drivers/block/floppy.c | printk("CURRENT->nr_sectors=%ld\n",CURRENT->nr_sectors); |
nr_sectors | 2380 | drivers/block/floppy.c | CURRENT->nr_sectors); |
nr_sectors | 2420 | drivers/block/floppy.c | max_size = CURRENT->nr_sectors; |
nr_sectors | 2429 | drivers/block/floppy.c | } else if (aligned_sector_t != sector_t || CURRENT->nr_sectors < ssize){ |
nr_sectors | 2431 | drivers/block/floppy.c | if (sector_t + CURRENT->nr_sectors > ssize && |
nr_sectors | 2432 | drivers/block/floppy.c | sector_t + CURRENT->nr_sectors < ssize + ssize) |
nr_sectors | 2472 | drivers/block/floppy.c | max_size = CURRENT->nr_sectors; |
nr_sectors | 2495 | drivers/block/floppy.c | (aligned_sector_t == sector_t && CURRENT->nr_sectors >= ssize))&& |
nr_sectors | 2571 | drivers/block/floppy.c | } else if (raw_cmd->length > CURRENT->nr_sectors << 9 || |
nr_sectors | 2572 | drivers/block/floppy.c | current_count_sectors > CURRENT->nr_sectors){ |
nr_sectors | 503 | drivers/block/hd.c | i = (CURRENT->nr_sectors -= nsect); |
nr_sectors | 508 | drivers/block/hd.c | CURRENT->nr_sectors, (unsigned long) CURRENT->buffer+(nsect<<9)); |
nr_sectors | 533 | drivers/block/hd.c | if (!--WCURRENT.nr_sectors) |
nr_sectors | 555 | drivers/block/hd.c | if (WCURRENT.nr_sectors) { |
nr_sectors | 561 | drivers/block/hd.c | if (!WCURRENT.nr_sectors) { /* all done? */ |
nr_sectors | 562 | drivers/block/hd.c | for (i = CURRENT->nr_sectors; i > 0;){ |
nr_sectors | 593 | drivers/block/hd.c | if ((CURRENT->nr_sectors <= 1) || (i & DRQ_STAT)) |
nr_sectors | 602 | drivers/block/hd.c | i = --CURRENT->nr_sectors; |
nr_sectors | 712 | drivers/block/hd.c | nsect = CURRENT->nr_sectors; |
nr_sectors | 516 | drivers/block/ide-cd.c | rq->nr_sectors += n; |
nr_sectors | 998 | drivers/block/ide-cd.c | rq->nr_sectors > 0) |
nr_sectors | 1021 | drivers/block/ide-cd.c | --rq->nr_sectors; |
nr_sectors | 1050 | drivers/block/ide-cd.c | while (rq->nr_sectors > 0 && |
nr_sectors | 1063 | drivers/block/ide-cd.c | --rq->nr_sectors; |
nr_sectors | 1068 | drivers/block/ide-cd.c | if (rq->nr_sectors == 0) |
nr_sectors | 1110 | drivers/block/ide-cd.c | nsect = rq->nr_sectors; |
nr_sectors | 1834 | drivers/block/ide-tape.c | rq->nr_sectors-=rq->current_nr_sectors; |
nr_sectors | 1862 | drivers/block/ide-tape.c | rq->nr_sectors-=rq->current_nr_sectors; |
nr_sectors | 2552 | drivers/block/ide-tape.c | printk ("sector: %ld, nr_sectors: %ld, current_nr_sectors: %ld\n",rq->sector,rq->nr_sectors,rq->current_nr_sectors); |
nr_sectors | 2789 | drivers/block/ide-tape.c | rq.nr_sectors = blocks; |
nr_sectors | 2868 | drivers/block/ide-tape.c | rq->nr_sectors = blocks; |
nr_sectors | 952 | drivers/block/ide.c | (unsigned long) rq->buffer+(nsect<<9), rq->nr_sectors-nsect); |
nr_sectors | 957 | drivers/block/ide.c | i = (rq->nr_sectors -= nsect); |
nr_sectors | 981 | drivers/block/ide.c | rq->nr_sectors-1); |
nr_sectors | 983 | drivers/block/ide.c | if ((rq->nr_sectors == 1) ^ ((stat & DRQ_STAT) != 0)) { |
nr_sectors | 987 | drivers/block/ide.c | i = --rq->nr_sectors; |
nr_sectors | 1020 | drivers/block/ide.c | nsect, rq->nr_sectors - nsect); |
nr_sectors | 1022 | drivers/block/ide.c | if ((rq->nr_sectors -= nsect) <= 0) |
nr_sectors | 1050 | drivers/block/ide.c | if (rq->nr_sectors) { |
nr_sectors | 1056 | drivers/block/ide.c | if (!rq->nr_sectors) { /* all done? */ |
nr_sectors | 1058 | drivers/block/ide.c | for (i = rq->nr_sectors; i > 0;){ |
nr_sectors | 1225 | drivers/block/ide.c | OUT_BYTE(rq->nr_sectors,io_base+IDE_NSECTOR_OFFSET); |
nr_sectors | 1230 | drivers/block/ide.c | block, rq->nr_sectors, (unsigned long) rq->buffer); |
nr_sectors | 1249 | drivers/block/ide.c | head, sect, rq->nr_sectors, (unsigned long) rq->buffer); |
nr_sectors | 1338 | drivers/block/ide.c | blockend = block + rq->nr_sectors; |
nr_sectors | 1341 | drivers/block/ide.c | (minor&PARTN_MASK)?'0'+(minor&PARTN_MASK):' ', block, rq->nr_sectors); |
nr_sectors | 1629 | drivers/block/ide.c | rq->nr_sectors = 0; |
nr_sectors | 232 | drivers/block/ll_rw_blk.c | static inline void drive_stat_acct(int cmd, unsigned long nr_sectors, short disk_index) |
nr_sectors | 237 | drivers/block/ll_rw_blk.c | kstat.dk_drive_rblk[disk_index] += nr_sectors; |
nr_sectors | 241 | drivers/block/ll_rw_blk.c | kstat.dk_drive_wblk[disk_index] += nr_sectors; |
nr_sectors | 263 | drivers/block/ll_rw_blk.c | drive_stat_acct(req->cmd, req->nr_sectors, disk_index); |
nr_sectors | 268 | drivers/block/ll_rw_blk.c | drive_stat_acct(req->cmd, req->nr_sectors, disk_index); |
nr_sectors | 272 | drivers/block/ll_rw_blk.c | drive_stat_acct(req->cmd, req->nr_sectors, disk_index); |
nr_sectors | 380 | drivers/block/ll_rw_blk.c | req->sector + req->nr_sectors == sector && |
nr_sectors | 381 | drivers/block/ll_rw_blk.c | req->nr_sectors < 244) |
nr_sectors | 385 | drivers/block/ll_rw_blk.c | req->nr_sectors += count; |
nr_sectors | 395 | drivers/block/ll_rw_blk.c | req->nr_sectors < 244) |
nr_sectors | 397 | drivers/block/ll_rw_blk.c | req->nr_sectors += count; |
nr_sectors | 429 | drivers/block/ll_rw_blk.c | req->nr_sectors = count; |
nr_sectors | 469 | drivers/block/ll_rw_blk.c | req->nr_sectors = PAGE_SIZE / 512; |
nr_sectors | 601 | drivers/block/ll_rw_blk.c | req[j]->nr_sectors = buffersize >> 9; |
nr_sectors | 161 | drivers/block/triton.c | for (i = rq->nr_sectors; i > 0;) { |
nr_sectors | 194 | drivers/block/triton.c | size = rq->nr_sectors << 9; |
nr_sectors | 220 | drivers/block/xd.c | && CURRENT->sector + CURRENT->nr_sectors |
nr_sectors | 223 | drivers/block/xd.c | count = CURRENT->nr_sectors; |
nr_sectors | 964 | drivers/cdrom/aztcd.c | while (CURRENT -> nr_sectors) { |
nr_sectors | 971 | drivers/cdrom/aztcd.c | int nr_sectors = 4 - (CURRENT -> sector & 3); |
nr_sectors | 979 | drivers/cdrom/aztcd.c | if (nr_sectors > CURRENT -> nr_sectors) |
nr_sectors | 980 | drivers/cdrom/aztcd.c | nr_sectors = CURRENT -> nr_sectors; |
nr_sectors | 981 | drivers/cdrom/aztcd.c | memcpy(CURRENT -> buffer, azt_buf + offs, nr_sectors * 512); |
nr_sectors | 982 | drivers/cdrom/aztcd.c | CURRENT -> nr_sectors -= nr_sectors; |
nr_sectors | 983 | drivers/cdrom/aztcd.c | CURRENT -> sector += nr_sectors; |
nr_sectors | 984 | drivers/cdrom/aztcd.c | CURRENT -> buffer += nr_sectors * 512; |
nr_sectors | 997 | drivers/cdrom/aztcd.c | printk(" do_aztcd_request(%ld+%ld) Time:%li\n", CURRENT -> sector, CURRENT -> nr_sectors,jiffies); |
nr_sectors | 1011 | drivers/cdrom/aztcd.c | if (CURRENT -> nr_sectors == 0) { |
nr_sectors | 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); |
nr_sectors | 1328 | drivers/cdrom/aztcd.c | if (CURRENT -> nr_sectors == 0) |
nr_sectors | 1560 | drivers/cdrom/cdu31a.c | nblock = CURRENT->nr_sectors; |
nr_sectors | 650 | drivers/cdrom/cm206.c | for (i=0; i<CURRENT->nr_sectors; i++) { |
nr_sectors | 244 | drivers/cdrom/gscd.c | while (CURRENT -> nr_sectors > 0 && gscd_bn == CURRENT -> sector / 4) |
nr_sectors | 248 | drivers/cdrom/gscd.c | CURRENT -> nr_sectors--; |
nr_sectors | 269 | drivers/cdrom/gscd.c | nsect = CURRENT->nr_sectors; |
nr_sectors | 292 | drivers/cdrom/gscd.c | if (CURRENT -> nr_sectors == 0) |
nr_sectors | 595 | drivers/cdrom/mcd.c | while (CURRENT -> nr_sectors) { |
nr_sectors | 602 | drivers/cdrom/mcd.c | int nr_sectors = 4 - (CURRENT -> sector & 3); |
nr_sectors | 610 | drivers/cdrom/mcd.c | if (nr_sectors > CURRENT -> nr_sectors) |
nr_sectors | 611 | drivers/cdrom/mcd.c | nr_sectors = CURRENT -> nr_sectors; |
nr_sectors | 612 | drivers/cdrom/mcd.c | memcpy(CURRENT -> buffer, mcd_buf + offs, nr_sectors * 512); |
nr_sectors | 613 | drivers/cdrom/mcd.c | CURRENT -> nr_sectors -= nr_sectors; |
nr_sectors | 614 | drivers/cdrom/mcd.c | CURRENT -> sector += nr_sectors; |
nr_sectors | 615 | drivers/cdrom/mcd.c | CURRENT -> buffer += nr_sectors * 512; |
nr_sectors | 655 | drivers/cdrom/mcd.c | printk(" do_mcd_request(%ld+%ld)\n", CURRENT -> sector, CURRENT -> nr_sectors); |
nr_sectors | 664 | drivers/cdrom/mcd.c | if (CURRENT -> nr_sectors == 0) { |
nr_sectors | 927 | drivers/cdrom/mcd.c | if (CURRENT -> nr_sectors == 0) |
nr_sectors | 213 | drivers/cdrom/mcdx.c | static int mcdx_transfer(struct s_drive_stuff*, char* buf, int sector, int nr_sectors); |
nr_sectors | 575 | drivers/cdrom/mcdx.c | while (CURRENT->nr_sectors) { |
nr_sectors | 582 | drivers/cdrom/mcdx.c | CURRENT->nr_sectors))) { |
nr_sectors | 585 | drivers/cdrom/mcdx.c | CURRENT->sector += CURRENT->nr_sectors; |
nr_sectors | 586 | drivers/cdrom/mcdx.c | CURRENT->nr_sectors = 0; |
nr_sectors | 592 | drivers/cdrom/mcdx.c | CURRENT->nr_sectors -= i; |
nr_sectors | 1215 | drivers/cdrom/mcdx.c | char *p, int sector, int nr_sectors) |
nr_sectors | 1224 | drivers/cdrom/mcdx.c | nr_sectors, sector)); |
nr_sectors | 1242 | drivers/cdrom/mcdx.c | off = stuffp->off_requested < (off = sector + nr_sectors) |
nr_sectors | 675 | drivers/cdrom/optcd.c | while (CURRENT -> nr_sectors) { |
nr_sectors | 677 | drivers/cdrom/optcd.c | int i, offs, nr_sectors; |
nr_sectors | 687 | drivers/cdrom/optcd.c | nr_sectors = 4 - (CURRENT -> sector & 3); |
nr_sectors | 695 | drivers/cdrom/optcd.c | if (nr_sectors > CURRENT -> nr_sectors) |
nr_sectors | 696 | drivers/cdrom/optcd.c | nr_sectors = CURRENT -> nr_sectors; |
nr_sectors | 697 | drivers/cdrom/optcd.c | memcpy(CURRENT -> buffer, opt_buf + offs, nr_sectors * 512); |
nr_sectors | 698 | drivers/cdrom/optcd.c | CURRENT -> nr_sectors -= nr_sectors; |
nr_sectors | 699 | drivers/cdrom/optcd.c | CURRENT -> sector += nr_sectors; |
nr_sectors | 700 | drivers/cdrom/optcd.c | CURRENT -> buffer += nr_sectors * 512; |
nr_sectors | 887 | drivers/cdrom/optcd.c | CURRENT->nr_sectors, |
nr_sectors | 917 | drivers/cdrom/optcd.c | if (CURRENT -> nr_sectors == 0) |
nr_sectors | 996 | drivers/cdrom/optcd.c | CURRENT -> sector, CURRENT -> nr_sectors); |
nr_sectors | 1005 | drivers/cdrom/optcd.c | if (CURRENT -> nr_sectors == 0) { |
nr_sectors | 4283 | drivers/cdrom/sbpcd.c | while ( (CURRENT->nr_sectors > 0) && |
nr_sectors | 4289 | drivers/cdrom/sbpcd.c | CURRENT->nr_sectors--; |
nr_sectors | 4331 | drivers/cdrom/sbpcd.c | nsect = CURRENT->nr_sectors; /* always counted as 512-byte-pieces */ |
nr_sectors | 4340 | drivers/cdrom/sbpcd.c | if (CURRENT->nr_sectors == 0) |
nr_sectors | 988 | drivers/cdrom/sjcd.c | while( CURRENT->nr_sectors ){ |
nr_sectors | 993 | drivers/cdrom/sjcd.c | int nr_sectors = 4 - ( CURRENT->sector & 3 ); |
nr_sectors | 1001 | drivers/cdrom/sjcd.c | if( nr_sectors > CURRENT->nr_sectors ) |
nr_sectors | 1002 | drivers/cdrom/sjcd.c | nr_sectors = CURRENT->nr_sectors; |
nr_sectors | 1006 | drivers/cdrom/sjcd.c | memcpy( CURRENT->buffer, sjcd_buf + offs, nr_sectors * 512 ); |
nr_sectors | 1007 | drivers/cdrom/sjcd.c | CURRENT->nr_sectors -= nr_sectors; |
nr_sectors | 1008 | drivers/cdrom/sjcd.c | CURRENT->sector += nr_sectors; |
nr_sectors | 1009 | drivers/cdrom/sjcd.c | CURRENT->buffer += nr_sectors * 512; |
nr_sectors | 1236 | drivers/cdrom/sjcd.c | if( CURRENT->nr_sectors == 0 ) end_request( 1 ); |
nr_sectors | 1330 | drivers/cdrom/sjcd.c | CURRENT->sector, CURRENT->nr_sectors ); |
nr_sectors | 1341 | drivers/cdrom/sjcd.c | if( CURRENT->nr_sectors == 0 ) end_request( 1 ); |
nr_sectors | 807 | drivers/cdrom/sonycd535.c | nsect = CURRENT->nr_sectors; |
nr_sectors | 887 | drivers/scsi/scsi.c | while(req->nr_sectors && bh){ |
nr_sectors | 890 | drivers/scsi/scsi.c | req->nr_sectors -= bh->b_size >> 9; |
nr_sectors | 895 | drivers/scsi/scsi.c | if(req->nr_sectors && bh && bh->b_reqnext){ /* Any leftovers? */ |
nr_sectors | 902 | drivers/scsi/scsi.c | SCpnt->request.nr_sectors -= req->nr_sectors; |
nr_sectors | 1037 | drivers/scsi/scsi.c | while(req->nr_sectors && bh){ |
nr_sectors | 1040 | drivers/scsi/scsi.c | req->nr_sectors -= bh->b_size >> 9; |
nr_sectors | 1045 | drivers/scsi/scsi.c | if(req->nr_sectors && bh && bh->b_reqnext){/* Any leftovers? */ |
nr_sectors | 1051 | drivers/scsi/scsi.c | SCpnt->request.nr_sectors -= req->nr_sectors; |
nr_sectors | 3073 | drivers/scsi/scsi.c | SCpnt->request.nr_sectors, |
nr_sectors | 3100 | drivers/scsi/scsi.c | req->nr_sectors, |
nr_sectors | 473 | drivers/scsi/scsi.h | req->nr_sectors -= bh->b_size >> 9; |
nr_sectors | 481 | drivers/scsi/scsi.h | if (req->nr_sectors < req->current_nr_sectors) { |
nr_sectors | 482 | drivers/scsi/scsi.h | req->nr_sectors = req->current_nr_sectors; |
nr_sectors | 279 | drivers/scsi/scsi_debug.c | usec = (SCpnt->request.nr_sectors << 9) * 1.0e6 / SCSI_DATARATE; |
nr_sectors | 286 | drivers/scsi/scsi_debug.c | printk("(r%d)",SCpnt->request.nr_sectors); |
nr_sectors | 321 | drivers/scsi/scsi_debug.c | if (SCpnt->use_sg) printk("Block %x (%d %d)\n",block, SCpnt->request.nr_sectors, |
nr_sectors | 388 | drivers/scsi/scsi_debug.c | if ((bufflen >> 9) != SCpnt->request.nr_sectors) |
nr_sectors | 236 | drivers/scsi/sd.c | SCpnt->request.nr_sectors); |
nr_sectors | 275 | drivers/scsi/sd.c | if (SCpnt->request.nr_sectors > this_count) |
nr_sectors | 534 | drivers/scsi/sd.c | block + SCpnt->request.nr_sectors > sd[devm].nr_sects) |
nr_sectors | 536 | drivers/scsi/sd.c | SCpnt = end_scsi_request(SCpnt, 0, SCpnt->request.nr_sectors); |
nr_sectors | 549 | drivers/scsi/sd.c | SCpnt = end_scsi_request(SCpnt, 0, SCpnt->request.nr_sectors); |
nr_sectors | 570 | drivers/scsi/sd.c | if((block & 1) || (SCpnt->request.nr_sectors & 1)) { |
nr_sectors | 572 | drivers/scsi/sd.c | SCpnt = end_scsi_request(SCpnt, 0, SCpnt->request.nr_sectors); |
nr_sectors | 581 | drivers/scsi/sd.c | SCpnt = end_scsi_request(SCpnt, 0, SCpnt->request.nr_sectors); |
nr_sectors | 600 | drivers/scsi/sd.c | bounce_size = (SCpnt->request.nr_sectors << 9); |
nr_sectors | 608 | drivers/scsi/sd.c | + (SCpnt->request.nr_sectors << 9) - 1 > ISA_DMA_THRESHOLD |
nr_sectors | 627 | drivers/scsi/sd.c | this_count = SCpnt->request.nr_sectors; |
nr_sectors | 838 | drivers/scsi/sd.c | this_count, SCpnt->request.nr_sectors); |
nr_sectors | 172 | drivers/scsi/sr.c | SCpnt->request.nr_sectors > this_count && |
nr_sectors | 199 | drivers/scsi/sr.c | if(this_count > SCpnt->request.nr_sectors) |
nr_sectors | 204 | drivers/scsi/sr.c | printk("(%x %x %x) ",SCpnt->request.bh, SCpnt->request.nr_sectors, |
nr_sectors | 207 | drivers/scsi/sr.c | if (SCpnt->request.nr_sectors > this_count) |
nr_sectors | 661 | drivers/scsi/sr.c | SCpnt = end_scsi_request(SCpnt, 0, SCpnt->request.nr_sectors); |
nr_sectors | 668 | drivers/scsi/sr.c | SCpnt = end_scsi_request(SCpnt, 0, SCpnt->request.nr_sectors); |
nr_sectors | 679 | drivers/scsi/sr.c | SCpnt = end_scsi_request(SCpnt, 0, SCpnt->request.nr_sectors); |
nr_sectors | 687 | drivers/scsi/sr.c | SCpnt = end_scsi_request(SCpnt, 0, SCpnt->request.nr_sectors); |
nr_sectors | 817 | drivers/scsi/sr.c | SCpnt->request.nr_sectors); |
nr_sectors | 830 | drivers/scsi/sr.c | this_count = SCpnt->request.nr_sectors; |
nr_sectors | 360 | include/linux/blk.h | req->nr_sectors--; |
nr_sectors | 361 | include/linux/blk.h | req->nr_sectors &= ~SECTOR_MASK; |
nr_sectors | 373 | include/linux/blk.h | if (req->nr_sectors < req->current_nr_sectors) { |
nr_sectors | 374 | include/linux/blk.h | req->nr_sectors = req->current_nr_sectors; |
nr_sectors | 26 | include/linux/blkdev.h | unsigned long nr_sectors; |