Searched defs:nsect (Results 1 - 17 of 17) sorted by relevance

/drivers/ide/
H A Dide-eh.c37 int nsect = drive->mult_count ? drive->mult_count : 1; local
39 ide_pad_transfer(drive, READ, nsect * SECTOR_SIZE);
H A Dide-taskfile.c47 printk("%s: tf: feat 0x%02x nsect 0x%02x lbal 0x%02x "
49 s, cmd->tf.feature, cmd->tf.nsect,
52 printk("%s: hob: nsect 0x%02x lbal 0x%02x lbam 0x%02x lbah 0x%02x\n",
53 s, cmd->hob.nsect, cmd->hob.lbal, cmd->hob.lbam, cmd->hob.lbah);
62 cmd.tf.nsect = 0x01;
328 u8 err = ide_read_error(drive), nsect = cmd->tf.nsect; local
335 ide_set_xfer_rate(drive, nsect);
428 u16 nsect)
443 if (nsect) {
427 ide_raw_taskfile(ide_drive_t *drive, struct ide_cmd *cmd, u8 *buf, u16 nsect) argument
481 u16 nsect = 0; local
[all...]
H A Dide-disk.c108 tf->nsect = nsectors & 0xff;
115 tf->nsect = (nsectors >> 8) & 0xff;
126 tf->nsect = nsectors & 0xff;
142 tf->nsect = nsectors & 0xff;
509 static int ide_do_setfeature(ide_drive_t *drive, u8 feature, u8 nsect) argument
515 cmd.tf.nsect = nsect;
/drivers/mtd/
H A Dmtd_blkdevs.c82 unsigned long block, nsect; local
86 nsect = blk_rq_cur_bytes(req) >> tr->blkshift;
98 return tr->discard(dev, block, nsect);
102 for (; nsect > 0; nsect--, block++, buf += tr->blksize)
112 for (; nsect > 0; nsect--, block++, buf += tr->blksize)
/drivers/ata/
H A Dsata_svw.c159 writew(tf->nsect | (((u16)tf->hob_nsect) << 8),
169 writew(tf->nsect, ioaddr->nsect_addr);
185 u16 nsect, lbal, lbam, lbah, feature; local
190 nsect = readw(ioaddr->nsect_addr);
196 tf->nsect = nsect;
203 tf->hob_nsect = nsect >> 8;
H A Dpata_samsung_cf.c177 ata_outb(ap->host, tf->nsect, ioaddr->nsect_addr);
197 tf->nsect = ata_inb(ap->host, ioaddr->nsect_addr);
295 u8 nsect, lbal; local
308 nsect = ata_inb(ap->host, ioaddr->nsect_addr);
311 if ((nsect == 0x55) && (lbal == 0xaa))
H A Dsata_vsc.c177 writew(tf->nsect | (((u16)tf->hob_nsect) << 8),
187 writew(tf->nsect, ioaddr->nsect_addr);
203 u16 nsect, lbal, lbam, lbah, feature; local
208 nsect = readw(ioaddr->nsect_addr);
214 tf->nsect = nsect;
221 tf->hob_nsect = nsect >> 8;
H A Dlibata-sff.c432 VPRINTK("hob: feat 0x%X nsect 0x%X, lba 0x%X 0x%X 0x%X\n",
442 iowrite8(tf->nsect, ioaddr->nsect_addr);
446 VPRINTK("feat 0x%X nsect 0x%X lba 0x%X 0x%X 0x%X\n",
448 tf->nsect,
482 tf->nsect = ioread8(ioaddr->nsect_addr);
763 unsigned int nsect; local
767 nsect = min((qc->nbytes - qc->curbytes) / qc->sect_size,
769 while (nsect--)
926 ireason = qc->result_tf.nsect;
1834 u8 nsect, lba local
1976 u8 nsect, lbal; local
[all...]
H A Dpata_bf54x.c689 dev_dbg(ap->dev, "hob: feat 0x%X nsect 0x%X, lba 0x%X "
699 write_atapi_register(base, ATA_REG_NSECT, tf->nsect);
703 dev_dbg(ap->dev, "feat 0x%X nsect 0x%X lba 0x%X 0x%X 0x%X\n",
705 tf->nsect,
746 tf->nsect = read_atapi_register(base, ATA_REG_NSECT);
969 u8 nsect, lbal; local
982 nsect = read_atapi_register(base, ATA_REG_NSECT);
985 if ((nsect == 0x55) && (lbal == 0xaa))
1015 u8 nsect, lbal; local
1018 nsect
[all...]
H A Dpata_scc.c295 VPRINTK("hob: feat 0x%X nsect 0x%X, lba 0x%X 0x%X 0x%X\n",
305 out_be32(ioaddr->nsect_addr, tf->nsect);
309 VPRINTK("feat 0x%X nsect 0x%X lba 0x%X 0x%X 0x%X\n",
311 tf->nsect,
351 tf->nsect = in_be32(ioaddr->nsect_addr);
486 u8 nsect, lbal; local
499 nsect = in_be32(ioaddr->nsect_addr);
502 if ((nsect == 0x55) && (lbal == 0xaa))
552 * to set nsect/lbal after reset, so don't waste too
556 u8 nsect, lba local
[all...]
H A Dsata_inic162x.c193 u8 nsect; /* ATA Sector Count */ member in struct:inic_cpb
492 cpb->nsect = qc->tf.nsect;
545 tf->nsect = readb(port_base + PORT_TF_NSECT);
/drivers/block/
H A Dhd.c305 unsigned int nsect,
328 outb_p(nsect, ++port);
581 unsigned int block, nsect, sec, track, head, cyl; local
605 nsect = blk_rq_sectors(req);
607 ((block+nsect) > get_capacity(req->rq_disk))) {
609 req->rq_disk->disk_name, block, nsect);
627 cyl, head, sec, nsect, req->buffer);
632 hd_out(disk, nsect, sec, head, cyl, ATA_CMD_PIO_READ,
638 hd_out(disk, nsect, sec, head, cyl, ATA_CMD_PIO_WRITE,
304 hd_out(struct hd_i_struct *disk, unsigned int nsect, unsigned int sect, unsigned int head, unsigned int cyl, unsigned int cmd, void (*intr_addr)(void)) argument
H A Dxen-blkfront.c209 sector_t nsect = get_capacity(bd->bd_disk); local
210 sector_t cylinders = nsect;
216 if ((sector_t)(hg->cylinders + 1) * hg->heads * hg->sectors < nsect)
H A Dataflop.c647 int sect, nsect; local
675 nsect = UDT->spt;
683 FILL( 60 * (nsect / 9), 0x4e );
684 for( sect = 0; sect < nsect; ++sect ) {
690 *p++ = (nsect + sect - desc->sect_offset) % nsect + 1;
/drivers/block/mtip32xx/
H A Dmtip32xx.c1842 dbg_printk(MTIP_DRV_NAME " %s: User Command: cmd %x, feat %x, nsect %x, sect %x, lcyl %x, hcyl %x, sel %x\n",
2025 u8 nsect = 0; local
2085 nsect = taskout / ATA_SECT_SIZE;
2130 if (nsect)
2131 fis.sect_count = nsect;
2144 " %s: cmd %x, feat %x, nsect %x,"
2386 * @nsect Number of sectors to read.
2399 int nsect, int nents, int tag, void *callback,
2427 fis->features = nsect & 0xFF;
2428 fis->features_ex = (nsect >>
2398 mtip_hw_submit_io(struct driver_data *dd, sector_t start, int nsect, int nents, int tag, void *callback, void *data, int dir) argument
[all...]
/drivers/scsi/
H A Dstorvsc_drv.c1154 sector_t nsect = capacity; local
1155 sector_t cylinders = nsect;
1164 if ((sector_t)(cylinders + 1) * heads * sectors_pt < nsect)
H A Dipr.h502 u8 nsect; member in struct:ipr_ioarcb_ata_regs
614 u8 nsect; /* Interrupt reason */ member in struct:ipr_ioasa_gata

Completed in 312 milliseconds