tag | line | file | source code |
nsect | 445 | drivers/block/genhd.c | unsigned short nsect; /* Sectors per track */ |
nsect | 479 | drivers/block/genhd.c | spc = (label->ntrks * 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 | 1126 | drivers/block/ide-cd.c | int nsect, sector, nframes, frame, nskip; |
nsect | 1129 | drivers/block/ide-cd.c | nsect = rq->nr_sectors; |
nsect | 1153 | drivers/block/ide-cd.c | nsect += nskip; |
nsect | 1159 | drivers/block/ide-cd.c | nframes = (nsect + SECTORS_PER_FRAME-1) / SECTORS_PER_FRAME; |
nsect | 944 | drivers/block/ide.c | unsigned int msect, nsect; |
nsect | 955 | drivers/block/ide.c | if ((nsect = rq->current_nr_sectors) > msect) |
nsect | 956 | drivers/block/ide.c | nsect = msect; |
nsect | 957 | drivers/block/ide.c | msect -= nsect; |
nsect | 959 | drivers/block/ide.c | nsect = 1; |
nsect | 960 | drivers/block/ide.c | ide_input_data(drive, rq->buffer, nsect * SECTOR_WORDS); |
nsect | 963 | drivers/block/ide.c | drive->name, rq->sector, rq->sector+nsect-1, |
nsect | 964 | drivers/block/ide.c | (unsigned long) rq->buffer+(nsect<<9), rq->nr_sectors-nsect); |
nsect | 966 | drivers/block/ide.c | rq->sector += nsect; |
nsect | 967 | drivers/block/ide.c | rq->buffer += nsect<<9; |
nsect | 969 | drivers/block/ide.c | i = (rq->nr_sectors -= nsect); |
nsect | 970 | drivers/block/ide.c | if ((rq->current_nr_sectors -= nsect) <= 0) |
nsect | 1022 | drivers/block/ide.c | unsigned int nsect = rq->current_nr_sectors; |
nsect | 1023 | drivers/block/ide.c | if (nsect > mcount) |
nsect | 1024 | drivers/block/ide.c | nsect = mcount; |
nsect | 1025 | drivers/block/ide.c | mcount -= nsect; |
nsect | 1027 | drivers/block/ide.c | ide_output_data(drive, rq->buffer, nsect<<7); |
nsect | 1031 | drivers/block/ide.c | nsect, rq->nr_sectors - nsect); |
nsect | 1033 | drivers/block/ide.c | if ((rq->nr_sectors -= nsect) <= 0) |
nsect | 1035 | drivers/block/ide.c | if ((rq->current_nr_sectors -= nsect) == 0) { |
nsect | 1044 | drivers/block/ide.c | rq->buffer += nsect << 9; |
nsect | 1084 | drivers/block/ide.c | static void ide_cmd(ide_drive_t *drive, byte cmd, byte nsect, ide_handler_t *handler) |
nsect | 1088 | drivers/block/ide.c | OUT_BYTE(nsect,IDE_NSECTOR_REG); |
nsect | 195 | drivers/block/promise.c | unsigned int sectors_left, sectors_avail, nsect; |
nsect | 213 | drivers/block/promise.c | if ((nsect = rq->current_nr_sectors) > sectors_avail) |
nsect | 214 | drivers/block/promise.c | nsect = sectors_avail; |
nsect | 215 | drivers/block/promise.c | sectors_avail -= nsect; |
nsect | 216 | drivers/block/promise.c | ide_input_data(drive, rq->buffer, nsect * SECTOR_WORDS); |
nsect | 219 | drivers/block/promise.c | "remaining=%ld\n", drive->name, rq->sector, rq->sector+nsect-1, |
nsect | 220 | drivers/block/promise.c | (unsigned long) rq->buffer+(nsect<<9), rq->nr_sectors-nsect); |
nsect | 222 | drivers/block/promise.c | rq->sector += nsect; |
nsect | 223 | drivers/block/promise.c | rq->buffer += nsect<<9; |
nsect | 225 | drivers/block/promise.c | i = (rq->nr_sectors -= nsect); |
nsect | 226 | 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; |