Searched refs:nsect (Results 1 - 25 of 28) sorted by relevance

12

/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/linux/
H A Dnbd.h41 unsigned nsect; local
50 nsect = bh->b_size >> 9;
51 blk_finished_io(nsect);
H A Dide.h800 void ide_cmd (ide_drive_t *drive, byte cmd, byte nsect, ide_handler_t *handler);
917 int ide_wait_cmd (ide_drive_t *drive, int cmd, int nsect, int feature, int sectors, byte *buf);
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/linux/
H A Dnbd.h41 unsigned nsect; local
50 nsect = bh->b_size >> 9;
51 blk_finished_io(nsect);
H A Dide.h800 void ide_cmd (ide_drive_t *drive, byte cmd, byte nsect, ide_handler_t *handler);
917 int ide_wait_cmd (ide_drive_t *drive, int cmd, int nsect, int feature, int sectors, byte *buf);
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/ppc/boot/utils/
H A Dhack-coff.c36 int i, nsect; local
60 nsect = get_16be(fhdr.f_nscns);
61 for (i = 0; i < nsect; ++i) {
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/ide/
H A Dpdc4030.c314 unsigned int sectors_left, sectors_avail, nsect; local
333 nsect = rq->current_nr_sectors;
334 if (nsect > sectors_avail)
335 nsect = sectors_avail;
336 sectors_avail -= nsect;
337 ide_input_data(drive, rq->buffer, nsect * SECTOR_WORDS);
341 rq->sector+nsect-1, (unsigned long) rq->buffer,
342 rq->nr_sectors-nsect);
344 rq->sector += nsect;
345 rq->buffer += nsect<<
[all...]
H A Dide-taskfile.c422 DTF("multi%s: nsect=1, ASR = %x\n", msg, stat);
432 unsigned int msect, nsect; local
466 nsect = 1;
469 DTF("Multiread: %p, nsect: %d, rq->current_nr_sectors: %ld\n", pBuf, nsect, rq->current_nr_sectors);
471 taskfile_input_data(drive, pBuf, nsect * SECTOR_WORDS);
474 rq->current_nr_sectors -= nsect;
482 nsect = (rq->current_nr_sectors > msect) ? msect : rq->current_nr_sectors;
485 DTF("Multiread: %p, nsect: %d , rq->current_nr_sectors: %ld\n",
486 pBuf, nsect, r
579 unsigned int msect, nsect; local
[all...]
H A Dhd.c267 static void hd_out(unsigned int drive,unsigned int nsect,unsigned int sect, argument
287 outb_p(nsect,++port);
546 unsigned int dev, block, nsect, sec, track, head, cyl; local
562 nsect = CURRENT->nr_sectors;
563 if (dev >= (NR_HD<<6) || block >= hd[dev].nr_sects || ((block+nsect) > hd[dev].nr_sects)) {
570 (MINOR(CURRENT->rq_dev)>>6)+'a', block, nsect);
589 cyl, head, sec, nsect, (unsigned long) CURRENT->buffer);
592 hd_out(dev,nsect,sec,head,cyl,WIN_READ,&read_intr);
598 hd_out(dev,nsect,sec,head,cyl,WIN_WRITE,&write_intr);
H A Dide-disk.c161 unsigned int msect, nsect; local
180 if ((nsect = rq->current_nr_sectors) > msect)
181 nsect = msect;
182 msect -= nsect;
184 nsect = 1;
186 idedisk_input_data(drive, to, nsect * SECTOR_WORDS);
189 drive->name, rq->sector, rq->sector+nsect-1,
190 (unsigned long) rq->buffer+(nsect<<9), rq->nr_sectors-nsect);
193 rq->sector += nsect;
265 int nsect = rq->current_nr_sectors; local
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/partitions/
H A Dsun.c51 unsigned short nsect; /* Sectors per track */ member in struct:sun_disklabel
86 spc = be16_to_cpu(label->ntrks) * be16_to_cpu(label->nsect);
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/acorn/block/
H A Dmfmhd.c235 static void issue_request(int dev, unsigned int block, unsigned int nsect,
801 static void issue_request(int dev, unsigned int block, unsigned int nsect, argument
838 if (nsect <= sectors_to_next_cyl) {
839 raw_cmd.cmddata[6] = nsect >> 8;
840 raw_cmd.cmddata[7] = nsect;
848 PartFragRead_SectorsLeft = nsect - sectors_to_next_cyl;
854 hdc63463_dataleft = nsect * 256; /* Better way? */
860 raw_cmd.sector, nsect, (unsigned long) Copy_buffer, CURRENT);
905 unsigned int dev, block, nsect; local
925 nsect
[all...]
/asus-wl-520gu-7.0.1.45/src/router/fdisk/
H A Dfdisksunlabel.h21 unsigned short nsect; /* Sectors per track */ member in struct:__anon7580
H A Dfdisksgilabel.c116 return SSWAP16(sgilabel->devparam.nsect);
695 unsigned int nsect; member in struct:__anon7577
740 old[i].nsect = get_nr_sects(get_part_table(i));
744 old[i].sysid, old[i].start, old[i].nsect);
769 sgilabel->devparam.nsect = SSWAP16(geometry.sectors);
793 sgi_set_partition(i, old[i].start, old[i].nsect, old[i].sysid);
H A Dfdisksunlabel.c141 sectors = SSWAP16(sunlabel->nsect);
157 unsigned short nsect; member in struct:sun_predefined_drives
343 sunlabel->nsect = SSWAP16(p->nsect);
348 sectors = p->nsect;
360 sunlabel->nsect = SSWAP16(sectors);
H A Dfdisksgilabel.h19 unsigned short nsect; /* sectors/tracks in cyl 0 or vol 0 */ member in struct:device_parameter
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/scsi/
H A Dscsi_lib.c360 int nsect; local
372 nsect = bh->b_size >> 9;
373 blk_finished_io(nsect);
376 sectors -= nsect;
379 req->hard_sector += nsect;
380 req->hard_nr_sectors -= nsect;
381 req->sector += nsect;
382 req->nr_sectors -= nsect;
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/block/
H A Dacsi.c954 { unsigned block, dev, target, lun, nsect;
1028 nsect = CURRENT->current_nr_sectors;
1037 if (nsect + (bh->b_size>>9) > ACSI_BUFFER_SECTORS) break;
1038 nsect += bh->b_size >> 9;
1047 pendadr = pbuffer + nsect*512;
1051 nsect += bh->b_size >> 9;
1062 if (nsect > ACSI_BUFFER_SECTORS)
1063 nsect = ACSI_BUFFER_SECTORS;
1067 CurrentNSect = nsect;
1072 CMDSET_LEN( write_cmd, nsect );
951 { unsigned block, dev, target, lun, nsect; local
[all...]
H A Dll_rw_blk.c1342 int nsect; local
1350 nsect = bh->b_size >> 9;
1351 blk_finished_io(nsect);
1356 req->hard_sector += nsect;
1357 req->hard_nr_sectors -= nsect;
H A Dataflop.c658 int sect, nsect; local
689 nsect = UDT->spt;
697 FILL( 60 * (nsect / 9), 0x4e );
698 for( sect = 0; sect < nsect; ++sect ) {
704 *p++ = (nsect + sect - desc->sect_offset) % nsect + 1;
H A Dswim3.c77 REG(nsect); /* # sectors to read or write */
432 out_8(&sw->nsect, n);
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/mtd/
H A Dnftlcore.c870 unsigned int dev, block, nsect; local
891 nsect = req->current_nr_sectors;
908 if (block + nsect > part_table[dev].nr_sects) {
911 (MINOR(req->rq_dev)>>6)+'a', dev & 0xf, block, nsect);
921 "(req->nr_sectors == %lx)\n", nsect, block, req->nr_sectors);
923 for ( ; nsect > 0; nsect-- , block++, buffer += 512) {
938 "(req->nr_sectors == %lx)\n", nsect, block,
941 for ( ; nsect > 0; nsect
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/cdrom/
H A Dsonycd535.c795 int nsect; local
813 nsect = CURRENT->nr_sectors;
829 if (sony_toc->lead_out_start_lba <= ((block + nsect) / 4)) {
833 while (0 < nsect) {
917 nsect -= 1;
H A Dgscd.c280 unsigned int nsect; local
288 nsect = CURRENT->nr_sectors;
314 printk("GSCD: dev %d, block %d, nsect %d\n", dev, block, nsect);
H A Dcdu31a.c1156 start_request(unsigned int sector, unsigned int nsect, int read_nsect_only) argument
1169 read_size = nsect;
1175 else if ((sector + nsect) >= sony_toc.lead_out_start_lba) {
1344 /* read data from the drive. Note the nsect must be <= 4. */
/asus-wl-520gu-7.0.1.45/src/router/e2fsprogs-1.40.8/misc/
H A Dmke2fs.c583 static void zap_sector(ext2_filsys fs, int sect, int nsect) argument
589 buf = malloc(512*nsect);
592 sect, sect + nsect - 1);
611 memset(buf, 0, 512*nsect);
613 retval = io_channel_write_blk(fs->io, sect, -512*nsect, buf);

Completed in 484 milliseconds

12