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

12

/drivers/ide/
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-ioctls.c142 tf->nsect = args[3];
149 tf->nsect = args[1];
166 tf->nsect >= XFER_SW_DMA_0) {
167 xfer_rate = ide_find_dma_mode(drive, tf->nsect);
168 if (xfer_rate != tf->nsect) {
180 args[2] = tf->nsect;
H A Dide-io-std.c104 tf_outb(tf->nsect, io_ports->nsect_addr);
131 tf->nsect = tf_inb(io_ports->nsect_addr);
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;
H A Dide-io.c157 tf->nsect = drive->sect;
167 tf->nsect = drive->sect;
173 tf->nsect = drive->mult_req;
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-disk_proc.c32 tf->nsect = 0x01;
H A Dide-atapi.c331 *ireason = tf.nsect & 3;
548 return tf.nsect & 3;
H A Dns87415.c72 tf->nsect = inb(io_ports->nsect_addr);
/drivers/ata/
H A Dsata_promise.h114 buf[i++] = tf->nsect;
139 buf[i++] = tf->nsect;
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 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-acpi.c585 tf->nsect = gtf->tf[1]; /* 0x1f2 */
632 tf->nsect == SATA_DIPM)
637 (tf->nsect == SATA_FPDMA_OFFSET ||
638 tf->nsect == SATA_FPDMA_IN_ORDER))
643 tf->nsect == SATA_FPDMA_AA)
656 * Writes the control, feature, nsect, lbal, lbam, and lbah registers.
732 tf.command, tf.feature, tf.nsect, tf.lbal,
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 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 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 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_ns87415.c270 tf->nsect = ioread8(ioaddr->nsect_addr);
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);
H A Dlibata-scsi.c978 desc[5] = tf->nsect;
1325 tf->nsect = 1; /* 1 sector, lba=0 */
1566 tf->nsect = n_block & 0xff;
1597 tf->nsect = n_block & 0xff; /* Sector count 0 means 256 sectors */
2121 tf.nsect = 0x1;
2880 tf->nsect = cdb[6];
2893 tf->nsect = cdb[4];
2911 if (tf->protocol != ATA_PROT_PIO || tf->nsect != 1)
3067 tf->nsect = size / 512;
H A Dpata_via.c417 VPRINTK("hob: feat 0x%X nsect 0x%X, lba 0x%X 0x%X 0x%X\n",
427 iowrite8(tf->nsect, ioaddr->nsect_addr);
431 VPRINTK("feat 0x%X nsect 0x%X lba 0x%X 0x%X 0x%X\n",
433 tf->nsect,
H A Dpata_octeon_cf.c348 tf->nsect = blob & 0xff;
438 VPRINTK("hob: feat 0x%X nsect 0x%X, lba 0x%X 0x%X 0x%X\n",
447 __raw_writew(tf->nsect | tf->lbal << 8, base + 2);
449 VPRINTK("feat 0x%X nsect 0x%X, lba 0x%X 0x%X 0x%X\n",
451 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 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/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)

Completed in 194 milliseconds

12