tag | line | file | source code |
nsect | 638 | drivers/block/ataflop.c | int sect, nsect; |
nsect | 669 | drivers/block/ataflop.c | nsect = UDT->spt; |
nsect | 677 | drivers/block/ataflop.c | FILL( 60 * (nsect / 9), 0x4e ); |
nsect | 678 | drivers/block/ataflop.c | for( sect = 0; sect < nsect; ++sect ) { |
nsect | 684 | drivers/block/ataflop.c | *p++ = (nsect + sect - desc->sect_offset) % nsect + 1; |
nsect | 489 | drivers/block/genhd.c | unsigned short nsect; /* Sectors per track */ |
nsect | 536 | drivers/block/genhd.c | spc = SWAP16(label->ntrks) * SWAP16(label->nsect); |
nsect | 220 | drivers/block/hd.c | static void hd_out(unsigned int drive,unsigned int nsect,unsigned int sect, |
nsect | 240 | drivers/block/hd.c | outb_p(nsect,++port); |
nsect | 475 | drivers/block/hd.c | int i, retries = 100000, msect = mult_count[dev], nsect; |
nsect | 494 | drivers/block/hd.c | if ((nsect = CURRENT->current_nr_sectors) > msect) |
nsect | 495 | drivers/block/hd.c | nsect = msect; |
nsect | 496 | drivers/block/hd.c | msect -= nsect; |
nsect | 498 | drivers/block/hd.c | nsect = 1; |
nsect | 499 | drivers/block/hd.c | insw(HD_DATA,CURRENT->buffer,nsect<<8); |
nsect | 500 | drivers/block/hd.c | CURRENT->sector += nsect; |
nsect | 501 | drivers/block/hd.c | CURRENT->buffer += nsect<<9; |
nsect | 503 | drivers/block/hd.c | i = (CURRENT->nr_sectors -= nsect); |
nsect | 507 | drivers/block/hd.c | dev+'a', CURRENT->sector, CURRENT->sector+nsect, |
nsect | 508 | drivers/block/hd.c | CURRENT->nr_sectors, (unsigned long) CURRENT->buffer+(nsect<<9)); |
nsect | 510 | drivers/block/hd.c | if ((CURRENT->current_nr_sectors -= nsect) <= 0) |
nsect | 696 | drivers/block/hd.c | unsigned int dev, block, nsect, sec, track, head, cyl; |
nsect | 712 | drivers/block/hd.c | nsect = CURRENT->nr_sectors; |
nsect | 713 | drivers/block/hd.c | if (dev >= (NR_HD<<6) || block >= hd[dev].nr_sects || ((block+nsect) > hd[dev].nr_sects)) { |
nsect | 720 | drivers/block/hd.c | (MINOR(CURRENT->rq_dev)>>6)+'a', block, nsect); |
nsect | 739 | drivers/block/hd.c | cyl, head, sec, nsect, (unsigned long) CURRENT->buffer); |
nsect | 745 | drivers/block/hd.c | hd_out(dev,nsect,sec,head,cyl,cmd,&read_intr); |
nsect | 752 | drivers/block/hd.c | hd_out(dev,nsect,sec,head,cyl,WIN_MULTWRITE,&multwrite_intr); |
nsect | 754 | drivers/block/hd.c | hd_out(dev,nsect,sec,head,cyl,WIN_WRITE,&write_intr); |
nsect | 1097 | drivers/block/ide-cd.c | int nsect, sector, nframes, frame, nskip; |
nsect | 1100 | drivers/block/ide-cd.c | nsect = rq->nr_sectors; |
nsect | 1124 | drivers/block/ide-cd.c | nsect += nskip; |
nsect | 1130 | drivers/block/ide-cd.c | nframes = (nsect + SECTORS_PER_FRAME-1) / SECTORS_PER_FRAME; |
nsect | 946 | drivers/block/ide.c | unsigned int msect, nsect; |
nsect | 957 | drivers/block/ide.c | if ((nsect = rq->current_nr_sectors) > msect) |
nsect | 958 | drivers/block/ide.c | nsect = msect; |
nsect | 959 | drivers/block/ide.c | msect -= nsect; |
nsect | 961 | drivers/block/ide.c | nsect = 1; |
nsect | 962 | drivers/block/ide.c | ide_input_data(drive, rq->buffer, nsect * SECTOR_WORDS); |
nsect | 965 | drivers/block/ide.c | drive->name, rq->sector, rq->sector+nsect-1, |
nsect | 966 | drivers/block/ide.c | (unsigned long) rq->buffer+(nsect<<9), rq->nr_sectors-nsect); |
nsect | 968 | drivers/block/ide.c | rq->sector += nsect; |
nsect | 969 | drivers/block/ide.c | rq->buffer += nsect<<9; |
nsect | 971 | drivers/block/ide.c | i = (rq->nr_sectors -= nsect); |
nsect | 972 | drivers/block/ide.c | if ((rq->current_nr_sectors -= nsect) <= 0) |
nsect | 1024 | drivers/block/ide.c | unsigned int nsect = rq->current_nr_sectors; |
nsect | 1025 | drivers/block/ide.c | if (nsect > mcount) |
nsect | 1026 | drivers/block/ide.c | nsect = mcount; |
nsect | 1027 | drivers/block/ide.c | mcount -= nsect; |
nsect | 1029 | drivers/block/ide.c | ide_output_data(drive, rq->buffer, nsect<<7); |
nsect | 1033 | drivers/block/ide.c | nsect, rq->nr_sectors - nsect); |
nsect | 1035 | drivers/block/ide.c | if ((rq->nr_sectors -= nsect) <= 0) |
nsect | 1037 | drivers/block/ide.c | if ((rq->current_nr_sectors -= nsect) == 0) { |
nsect | 1046 | drivers/block/ide.c | rq->buffer += nsect << 9; |
nsect | 1086 | drivers/block/ide.c | static void ide_cmd(ide_drive_t *drive, byte cmd, byte nsect, ide_handler_t *handler) |
nsect | 1090 | drivers/block/ide.c | OUT_BYTE(nsect,IDE_NSECTOR_REG); |
nsect | 199 | drivers/block/promise.c | unsigned int sectors_left, sectors_avail, nsect; |
nsect | 217 | drivers/block/promise.c | if ((nsect = rq->current_nr_sectors) > sectors_avail) |
nsect | 218 | drivers/block/promise.c | nsect = sectors_avail; |
nsect | 219 | drivers/block/promise.c | sectors_avail -= nsect; |
nsect | 220 | drivers/block/promise.c | ide_input_data(drive, rq->buffer, nsect * SECTOR_WORDS); |
nsect | 223 | drivers/block/promise.c | "remaining=%ld\n", drive->name, rq->sector, rq->sector+nsect-1, |
nsect | 224 | drivers/block/promise.c | (unsigned long) rq->buffer+(nsect<<9), rq->nr_sectors-nsect); |
nsect | 226 | drivers/block/promise.c | rq->sector += nsect; |
nsect | 227 | drivers/block/promise.c | rq->buffer += nsect<<9; |
nsect | 229 | drivers/block/promise.c | i = (rq->nr_sectors -= nsect); |
nsect | 230 | drivers/block/promise.c | if ((rq->current_nr_sectors -= nsect) <= 0) |
nsect | 1079 | drivers/cdrom/cdu31a.c | unsigned int nsect, |
nsect | 1091 | drivers/cdrom/cdu31a.c | read_size = nsect; |
nsect | 1097 | drivers/cdrom/cdu31a.c | else if ((sector + nsect) >= sony_toc.lead_out_start_lba) |
nsect | 262 | drivers/cdrom/gscd.c | unsigned int nsect; |
nsect | 269 | drivers/cdrom/gscd.c | nsect = CURRENT->nr_sectors; |
nsect | 299 | drivers/cdrom/gscd.c | printk ("GSCD: dev %d, block %d, nsect %d\n", dev, block, nsect ); |
nsect | 4413 | drivers/cdrom/sbpcd.c | u_int nsect; |
nsect | 4443 | drivers/cdrom/sbpcd.c | nsect = CURRENT->nr_sectors; /* always counted as 512-byte-pieces */ |
nsect | 4445 | drivers/cdrom/sbpcd.c | msg(DBG_BSZ,"read sector %d (%d sectors)\n", block, nsect); |
nsect | 788 | drivers/cdrom/sonycd535.c | int nsect; |
nsect | 809 | drivers/cdrom/sonycd535.c | nsect = CURRENT->nr_sectors; |
nsect | 825 | drivers/cdrom/sonycd535.c | if (sony_toc->lead_out_start_lba <= ((block + nsect) / 4)) { |
nsect | 829 | drivers/cdrom/sonycd535.c | while (0 < nsect) { |
nsect | 914 | drivers/cdrom/sonycd535.c | nsect -= 1; |