tag | line | file | source code |
nsect | 429 | drivers/block/genhd.c | unsigned short nsect; /* Sectors per track */ |
nsect | 463 | 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 | 1125 | drivers/block/ide-cd.c | int nsect, sector, nframes, frame, nskip; |
nsect | 1128 | drivers/block/ide-cd.c | nsect = rq->nr_sectors; |
nsect | 1152 | drivers/block/ide-cd.c | nsect += nskip; |
nsect | 1158 | drivers/block/ide-cd.c | nframes = (nsect + SECTORS_PER_FRAME-1) / SECTORS_PER_FRAME; |
nsect | 913 | drivers/block/ide.c | unsigned int msect, nsect; |
nsect | 924 | drivers/block/ide.c | if ((nsect = rq->current_nr_sectors) > msect) |
nsect | 925 | drivers/block/ide.c | nsect = msect; |
nsect | 926 | drivers/block/ide.c | msect -= nsect; |
nsect | 928 | drivers/block/ide.c | nsect = 1; |
nsect | 929 | drivers/block/ide.c | ide_input_data(drive, rq->buffer, nsect * SECTOR_WORDS); |
nsect | 932 | drivers/block/ide.c | drive->name, rq->sector, rq->sector+nsect-1, |
nsect | 933 | drivers/block/ide.c | (unsigned long) rq->buffer+(nsect<<9), rq->nr_sectors-nsect); |
nsect | 935 | drivers/block/ide.c | rq->sector += nsect; |
nsect | 936 | drivers/block/ide.c | rq->buffer += nsect<<9; |
nsect | 938 | drivers/block/ide.c | i = (rq->nr_sectors -= nsect); |
nsect | 939 | drivers/block/ide.c | if ((rq->current_nr_sectors -= nsect) <= 0) |
nsect | 992 | drivers/block/ide.c | unsigned int nsect = rq->current_nr_sectors; |
nsect | 993 | drivers/block/ide.c | if (nsect > mcount) |
nsect | 994 | drivers/block/ide.c | nsect = mcount; |
nsect | 995 | drivers/block/ide.c | mcount -= nsect; |
nsect | 997 | drivers/block/ide.c | ide_output_data(drive, rq->buffer, nsect<<7); |
nsect | 1001 | drivers/block/ide.c | nsect, rq->nr_sectors - nsect); |
nsect | 1003 | drivers/block/ide.c | if ((rq->nr_sectors -= nsect) <= 0) |
nsect | 1005 | drivers/block/ide.c | if ((rq->current_nr_sectors -= nsect) == 0) { |
nsect | 1014 | drivers/block/ide.c | rq->buffer += nsect << 9; |
nsect | 1054 | drivers/block/ide.c | static void ide_cmd(ide_drive_t *drive, byte cmd, byte nsect, ide_handler_t *handler) |
nsect | 1058 | drivers/block/ide.c | OUT_BYTE(nsect,IDE_NSECTOR_REG); |
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; |