/linux-2.4.37.9/include/linux/ |
D | blkdev.h | 38 unsigned long nr_sectors; member 94 atomic_t nr_sectors; member 278 unsigned long nr_sectors, int new_io); 296 return atomic_read(&q->nr_sectors) > q->max_queue_sectors; in blk_oversized_queue() 303 return atomic_read(&q->nr_sectors) > q->max_queue_sectors + q->batch_sectors; in blk_oversized_queue_reads() 309 return atomic_read(&q->nr_sectors) > q->max_queue_sectors - q->batch_sectors; in blk_oversized_queue_batch() 319 atomic_add(count, &q->nr_sectors); in blk_started_sectors() 320 if (atomic_read(&q->nr_sectors) < 0) { in blk_started_sectors() 321 printk("nr_sectors is %d\n", atomic_read(&q->nr_sectors)); in blk_started_sectors() 331 atomic_sub(count, &q->nr_sectors); in blk_finished_sectors() [all …]
|
/linux-2.4.37.9/drivers/ide/legacy/ |
D | pdc4030.c | 419 sectors_avail = rq->nr_sectors - sectors_left; in promise_read_intr() 445 rq->nr_sectors-nsect); in promise_read_intr() 455 rq->nr_sectors -= nsect; in promise_read_intr() 456 total_remaining = rq->nr_sectors; in promise_read_intr() 533 for (i = rq->nr_sectors; i > 0; ) { in promise_complete_pollfunc() 575 rq->nr_sectors -= nsect; in promise_multwrite() 659 rq->sector + rq->nr_sectors - 1, rq->buffer); in promise_write() 666 if (rq->nr_sectors > 4) { in promise_write() 667 if (promise_multwrite(drive, rq->nr_sectors - 4)) in promise_write() 679 if (promise_multwrite(drive, rq->nr_sectors)) in promise_write() [all …]
|
D | hd.c | 430 i = --CURRENT->nr_sectors; in read_intr() 434 dev+'a', CURRENT->sector, CURRENT->nr_sectors, in read_intr() 463 if ((CURRENT->nr_sectors <= 1) || (i & DRQ_STAT)) in write_intr() 472 i = --CURRENT->nr_sectors; in write_intr() 569 nsect = CURRENT->nr_sectors; in hd_request()
|
/linux-2.4.37.9/drivers/md/ |
D | lvm-snap.c | 220 int nr_sectors, in lvm_snapshot_prepare_blocks() argument 230 nr_blocks = nr_sectors / sectors_per_block; in lvm_snapshot_prepare_blocks() 362 int max_sectors, nr_sectors; in lvm_snapshot_COW() local 402 nr_sectors = min(chunk_size, max_sectors); in lvm_snapshot_COW() 403 chunk_size -= nr_sectors; in lvm_snapshot_COW() 405 iobuf->length = nr_sectors << 9; in lvm_snapshot_COW() 408 nr_sectors, blksize_org)) in lvm_snapshot_COW() 413 lv_snap) != (nr_sectors << 9)) in lvm_snapshot_COW() 417 nr_sectors, blksize_snap)) in lvm_snapshot_COW() 422 lv_snap) != (nr_sectors << 9)) in lvm_snapshot_COW() [all …]
|
/linux-2.4.37.9/drivers/block/ |
D | ll_rw_blk.c | 192 if (atomic_read(&q->nr_sectors)) in blk_cleanup_queue() 193 printk("blk_cleanup_queue: leaked sectors (%d)\n", atomic_read(&q->nr_sectors)); in blk_cleanup_queue() 446 atomic_set(&q->nr_sectors, 0); in blk_grow_request_list() 691 unsigned long nr_sectors, int new_io) in drive_stat_acct() argument 703 kstat.dk_drive_rblk[major][index] += nr_sectors; in drive_stat_acct() 706 kstat.dk_drive_wblk[major][index] += nr_sectors; in drive_stat_acct() 863 drive_stat_acct(req->rq_dev, req->cmd, req->nr_sectors, 1); in add_request() 929 if (req->sector + req->nr_sectors != next->sector) in attempt_merge() 933 || req->nr_sectors + next->nr_sectors > max_sectors in attempt_merge() 957 req->nr_sectors = req->hard_nr_sectors += next->hard_nr_sectors; in attempt_merge() [all …]
|
D | elevator.c | 105 if (__rq->nr_sectors + count > max_sectors) in elevator_linus_merge() 107 if (__rq->sector + __rq->nr_sectors == bh->b_rsector) { in elevator_linus_merge() 164 if (__rq->nr_sectors + count > max_sectors) in elevator_noop_merge() 168 if (__rq->sector + __rq->nr_sectors == bh->b_rsector) { in elevator_noop_merge()
|
D | floppy.c | 2331 CURRENT->nr_sectors -= CURRENT->current_nr_sectors; in request_done() 2341 CURRENT->nr_sectors -= current_count_sectors; in request_done() 2369 int nr_sectors, ssize, eoc, heads; in rw_interrupt() local 2381 nr_sectors = 0; in rw_interrupt() 2394 nr_sectors = (((R_TRACK-TRACK) * heads + in rw_interrupt() 2399 if (nr_sectors / ssize > in rw_interrupt() 2402 nr_sectors, current_count_sectors); in rw_interrupt() 2413 nr_sectors -= in_sector_offset; in rw_interrupt() 2414 INFBOUND(nr_sectors,0); in rw_interrupt() 2415 SUPBOUND(current_count_sectors, nr_sectors); in rw_interrupt() [all …]
|
D | acsi.c | 915 CURRENT->nr_sectors -= CurrentNSect; in do_end_requests() 918 if (CURRENT->nr_sectors == 0) in do_end_requests() 924 CURRENT->nr_sectors -= n; in do_end_requests() 999 block+CURRENT->nr_sectors >= acsi_part[dev].nr_sects) { in redo_acsi_request() 1003 block, block + CURRENT->nr_sectors - 1, in redo_acsi_request()
|
/linux-2.4.37.9/drivers/cdrom/ |
D | sjcd.c | 1086 while (CURRENT->nr_sectors) { in sjcd_transfer() 1094 int nr_sectors = 4 - (CURRENT->sector & 3); in sjcd_transfer() local 1102 if (nr_sectors > CURRENT->nr_sectors) in sjcd_transfer() 1103 nr_sectors = CURRENT->nr_sectors; in sjcd_transfer() 1108 nr_sectors * 512); in sjcd_transfer() 1109 CURRENT->nr_sectors -= nr_sectors; in sjcd_transfer() 1110 CURRENT->sector += nr_sectors; in sjcd_transfer() 1111 CURRENT->buffer += nr_sectors * 512; in sjcd_transfer() 1381 nr_sectors == in sjcd_poll() 1496 CURRENT->sector, CURRENT->nr_sectors); in do_sjcd_request() [all …]
|
D | mcd.c | 562 while (CURRENT->nr_sectors) { in mcd_transfer() 569 int nr_sectors = 4 - (CURRENT->sector & 3); in mcd_transfer() local 577 if (nr_sectors > CURRENT->nr_sectors) in mcd_transfer() 578 nr_sectors = CURRENT->nr_sectors; in mcd_transfer() 580 nr_sectors * 512); in mcd_transfer() 581 CURRENT->nr_sectors -= nr_sectors; in mcd_transfer() 582 CURRENT->sector += nr_sectors; in mcd_transfer() 583 CURRENT->buffer += nr_sectors * 512; in mcd_transfer() 616 CURRENT->nr_sectors)); in do_mcd_request() 625 if (CURRENT->nr_sectors == 0) { in do_mcd_request() [all …]
|
D | optcd.c | 1013 while (CURRENT -> nr_sectors) { in transfer() 1015 int i, offs, nr_sectors; in transfer() local 1026 nr_sectors = 4 - (CURRENT -> sector & 3); in transfer() 1036 if (nr_sectors > CURRENT -> nr_sectors) in transfer() 1037 nr_sectors = CURRENT -> nr_sectors; in transfer() 1038 memcpy(CURRENT -> buffer, buf + offs, nr_sectors * 512); in transfer() 1039 CURRENT -> nr_sectors -= nr_sectors; in transfer() 1040 CURRENT -> sector += nr_sectors; in transfer() 1041 CURRENT -> buffer += nr_sectors * 512; in transfer() 1242 CURRENT->nr_sectors, in poll() [all …]
|
D | aztcd.c | 1558 while (CURRENT->nr_sectors) { in azt_transfer() 1566 int nr_sectors = 4 - (CURRENT->sector & 3); in azt_transfer() local 1574 if (nr_sectors > CURRENT->nr_sectors) in azt_transfer() 1575 nr_sectors = CURRENT->nr_sectors; in azt_transfer() 1577 nr_sectors * 512); in azt_transfer() 1578 CURRENT->nr_sectors -= nr_sectors; in azt_transfer() 1579 CURRENT->sector += nr_sectors; in azt_transfer() 1580 CURRENT->buffer += nr_sectors * 512; in azt_transfer() 1593 CURRENT->nr_sectors, jiffies); in do_aztcd_request() 1607 if (CURRENT->nr_sectors == 0) { in do_aztcd_request() [all …]
|
D | gscd.c | 258 while (CURRENT->nr_sectors > 0 && gscd_bn == CURRENT->sector / 4) { in gscd_transfer() 261 CURRENT->nr_sectors--; in gscd_transfer() 288 nsect = CURRENT->nr_sectors; in __do_gscd_request() 309 if (CURRENT->nr_sectors == 0) { in __do_gscd_request()
|
D | mcdx.c | 257 int nr_sectors); 259 int nr_sectors); 599 CURRENT->sector, CURRENT->nr_sectors); in do_mcdx_request() 610 while (CURRENT->nr_sectors) { in do_mcdx_request() 616 CURRENT->nr_sectors); in do_mcdx_request() 623 CURRENT->nr_sectors -= i; in do_mcdx_request() 1276 char *p, int sector, int nr_sectors) in mcdx_transfer() argument 1285 ans = mcdx_xfer(stuffp, p, sector, nr_sectors); in mcdx_transfer() 1301 return mcdx_transfer(stuffp, p, sector, nr_sectors); in mcdx_transfer() 1308 char *p, int sector, int nr_sectors) in mcdx_xfer() argument [all …]
|
/linux-2.4.37.9/drivers/ide/ |
D | ide-disk.c | 183 (unsigned long) rq->buffer+(nsect<<9), rq->nr_sectors-nsect); in read_intr() 189 i = (rq->nr_sectors -= nsect); in read_intr() 220 drive->name, rq->nr_sectors, stat); in write_intr() 225 rq->nr_sectors-1); in write_intr() 227 if ((rq->nr_sectors == 1) ^ ((stat & DRQ_STAT) != 0)) { in write_intr() 230 i = --rq->nr_sectors; in write_intr() 282 rq->nr_sectors -= nsect; in ide_multwrite() 329 if (rq->nr_sectors) { in multwrite_intr() 340 if (!rq->nr_sectors) { /* all done? */ in multwrite_intr() 342 for (i = rq->nr_sectors; i > 0;) { in multwrite_intr() [all …]
|
D | ide-cd.c | 1060 for (i = rq->nr_sectors; i > 0;) { in cdrom_read_intr() 1133 if (rq->current_nr_sectors == 0 && rq->nr_sectors) in cdrom_read_intr() 1153 --rq->nr_sectors; in cdrom_read_intr() 1181 while (rq->nr_sectors > 0 && in cdrom_read_from_buffer() 1193 --rq->nr_sectors; in cdrom_read_from_buffer() 1199 if (rq->nr_sectors == 0) { in cdrom_read_from_buffer() 1236 nsect = rq->nr_sectors; in cdrom_start_read_continuation() 1354 rq->nr_sectors += nxt->nr_sectors; in cdrom_merge_requests() 1355 rq->hard_nr_sectors += nxt->nr_sectors; in cdrom_merge_requests() 1383 if (rq->sector + rq->nr_sectors != nxt->sector) in cdrom_attempt_remerge() [all …]
|
D | ide-taskfile.c | 66 (((rq)->nr_sectors - (rq)->current_nr_sectors) * SECTOR_SIZE) 1328 …rq.current_nr_sectors = rq.nr_sectors = (args->hobRegister[IDE_NSECTOR_OFFSET_HOB] << 8) | args->t… in ide_diag_taskfile() 1331 rq.current_nr_sectors = rq.nr_sectors = data_size / SECTOR_SIZE; in ide_diag_taskfile() 1378 rq.nr_sectors = nsector.all; in ide_diag_taskfile() 1380 rq.nr_sectors = data_size / SECTOR_SIZE; in ide_diag_taskfile() 1382 rq.current_nr_sectors = rq.nr_sectors; in ide_diag_taskfile() 1989 pBuf = rq->buffer + ((rq->nr_sectors - rq->current_nr_sectors) * SECTOR_SIZE); in flagged_task_in_intr() 2043 pBuf = rq->buffer + ((rq->nr_sectors - rq->current_nr_sectors) * SECTOR_SIZE); in flagged_task_mulin_intr() 2121 pBuf = rq->buffer + ((rq->nr_sectors - rq->current_nr_sectors) * SECTOR_SIZE); in flagged_task_out_intr() 2159 pBuf = rq->buffer + ((rq->nr_sectors - rq->current_nr_sectors) * SECTOR_SIZE); in flagged_pre_task_mulout_intr() [all …]
|
D | ide-floppy.c | 606 rq->nr_sectors -= rq->current_nr_sectors; in idefloppy_input_buffers() 634 rq->nr_sectors -= rq->current_nr_sectors; in idefloppy_output_buffers() 1234 int blocks = rq->nr_sectors / floppy->bs_factor; in idefloppy_create_rw_cmd() 1275 rq->nr_sectors, rq->current_nr_sectors); in idefloppy_do_request() 1294 rq->nr_sectors % floppy->bs_factor) { in idefloppy_do_request()
|
/linux-2.4.37.9/drivers/scsi/ |
D | scsi_lib.c | 390 req->nr_sectors -= nsect; in __scsi_end_request() 394 if (req->nr_sectors < req->current_nr_sectors) { in __scsi_end_request() 395 req->nr_sectors = req->current_nr_sectors; in __scsi_end_request() 623 SCpnt->request.nr_sectors, in scsi_io_completion() 1074 SCpnt->request.nr_sectors, 0, 0); in scsi_request_fn()
|
D | scsi_merge.c | 417 if ((req->nr_sectors + (bh->b_size >> 9)) > SHpnt->max_sectors) in __scsi_back_merge_fn() 476 if ((req->nr_sectors + (bh->b_size >> 9)) > SHpnt->max_sectors) in __scsi_front_merge_fn() 639 if ((req->nr_sectors + next->nr_sectors) > SHpnt->max_sectors) in __scsi_merge_requests_fn() 838 this_count = req->nr_sectors; in __init_io()
|
D | sd.c | 317 block + SCpnt->request.nr_sectors > ppnt->nr_sects) { in sd_init_command() 318 SCSI_LOG_HLQUEUE(2, printk("Finishing %ld sectors\n", SCpnt->request.nr_sectors)); in sd_init_command() 347 if ((block & 1) || (SCpnt->request.nr_sectors & 1)) { in sd_init_command() 356 if ((block & 3) || (SCpnt->request.nr_sectors & 3)) { in sd_init_command() 365 if ((block & 7) || (SCpnt->request.nr_sectors & 7)) { in sd_init_command() 392 this_count, SCpnt->request.nr_sectors)); in sd_init_command()
|
/linux-2.4.37.9/include/linux/raid/ |
D | md.h | 79 extern void md_sync_acct(kdev_t dev, unsigned long nr_sectors);
|
/linux-2.4.37.9/drivers/message/i2o/ |
D | i2o_block.c | 277 int count = req->nr_sectors<<9; in i2ob_send() 290 __raw_writel(req->nr_sectors << 9, msg+20); in i2ob_send() 340 if(req->nr_sectors > 16) in i2ob_send() 389 if(req->nr_sectors > 16) in i2ob_send() 395 if(req->nr_sectors > 16) in i2ob_send()
|
/linux-2.4.37.9/arch/cris/drivers/ |
D | ide.c | 704 size = rq->nr_sectors << 9; in e100_ide_build_dmatable() 817 for (i = rq->nr_sectors; i > 0;) { in etrax_dma_intr()
|
/linux-2.4.37.9/drivers/acorn/block/ |
D | mfmhd.c | 509 CURRENT, CURRENT->sector, CURRENT->current_nr_sectors, CURRENT->nr_sectors); in mfm_rw_intr() 511 CURRENT->nr_sectors -= CURRENT->current_nr_sectors; in mfm_rw_intr() 934 nsect = CURRENT->nr_sectors; in mfm_request()
|