Searched refs:nsect (Results 1 - 25 of 36) sorted by path

12

/linux-master/arch/powerpc/boot/
H A Dhack-coff.c31 int i, nsect; local
55 nsect = get_16be(fhdr.f_nscns);
56 for (i = 0; i < nsect; ++i) {
/linux-master/drivers/ata/
H A Dsata_promise.h98 buf[i++] = tf->nsect;
123 buf[i++] = tf->nsect;
H A Dlibahci.c1341 tf.nsect = (tmp) & 0xff;
H A Dlibata-acpi.c550 tf->nsect = gtf->tf[1]; /* 0x1f2 */
597 tf->nsect == SATA_DIPM)
602 (tf->nsect == SATA_FPDMA_OFFSET ||
603 tf->nsect == SATA_FPDMA_IN_ORDER))
608 tf->nsect == SATA_FPDMA_AA)
622 * Writes the control, feature, nsect, lbal, lbam, and lbah registers.
671 tf.command, tf.feature, tf.nsect, tf.lbal,
680 tf.command, tf.feature, tf.nsect, tf.lbal,
690 tf.command, tf.feature, tf.nsect, tf.lbal,
700 tf.command, tf.feature, tf.nsect, t
[all...]
H A Dlibata-core.c730 tf->nsect = qc->hw_tag << 3;
784 tf->nsect = n_block & 0xff;
815 tf->nsect = n_block & 0xff; /* Sector count 0 means 256 sectors */
1945 tf->nsect = 1;
1981 ata_dev_dbg(dev, "Power mode: 0x%02x\n", tf.nsect);
1984 return tf.nsect == 0xff;
2118 tf.nsect = sectors;
4471 tf.nsect = dev->xfer_mode;
4474 tf.nsect = 0x01;
4512 tf.nsect
[all...]
H A Dlibata-eh.c2484 cmd->command, cmd->feature, cmd->nsect,
2489 res->status, res->error, res->nsect,
H A Dlibata-pmp.c57 *r_val = tf.nsect | tf.lbal << 8 | tf.lbam << 16 | tf.lbah << 24;
87 tf.nsect = val & 0xff;
H A Dlibata-sata.c171 fis[12] = tf->nsect;
208 tf->nsect = fis[12];
1422 tf->nsect = buf[12];
H A Dlibata-scsi.c899 desc[5] = tf->nsect;
922 desc[3] = tf->nsect;
1434 tf->nsect = n_block & 0xff;
1462 tf->nsect = n_block & 0xff; /* Sector count 0 means 256 sectors */
2911 tf->nsect = cdb[6];
2925 tf->nsect = cdb[4];
2949 tf->nsect = cdb[23];
2961 tf->nsect = qc->hw_tag << 3;
2973 if (tf->protocol != ATA_PROT_PIO || tf->nsect != 1) {
3228 * For DATA SET MANAGEMENT TRIM in ACS-2 nsect (ak
[all...]
H A Dlibata-sff.c366 iowrite8(tf->nsect, ioaddr->nsect_addr);
398 tf->nsect = ioread8(ioaddr->nsect_addr);
663 unsigned int nsect; local
667 nsect = min((qc->nbytes - qc->curbytes) / qc->sect_size,
669 while (nsect--)
813 ireason = qc->result_tf.nsect;
1702 u8 nsect, lbal; local
1715 nsect = ioread8(ioaddr->nsect_addr);
1718 if ((nsect == 0x55) && (lbal == 0xaa))
1843 * to set nsect/lba
1847 u8 nsect, lbal; local
[all...]
H A Dpata_ep93xx.c402 ep93xx_pata_write_reg(drv_data, tf->nsect, IDECTRL_ADDR_NSECT);
422 tf->nsect = ep93xx_pata_read_reg(drv_data, IDECTRL_ADDR_NSECT);
525 u8 nsect, lbal; local
538 nsect = ep93xx_pata_read_reg(drv_data, IDECTRL_ADDR_NSECT);
541 if ((nsect == 0x55) && (lbal == 0xaa))
580 * to set nsect/lbal after reset, so don't waste too
584 u8 nsect, lbal; local
586 nsect = ep93xx_pata_read_reg(drv_data,
590 if (nsect == 1 && lbal == 1)
H A Dpata_ns87415.c269 tf->nsect = ioread8(ioaddr->nsect_addr);
H A Dpata_octeon_cf.c389 tf->nsect = blob & 0xff;
480 __raw_writew(tf->nsect | tf->lbal << 8, base + 2);
H A Dpata_via.c421 iowrite8(tf->nsect, ioaddr->nsect_addr);
H A Dpdc_adma.c333 buf[i++] = qc->tf.nsect;
H A Dsata_fsl.c797 tf.nsect = temp & 0xff;
H A Dsata_inic162x.c204 u8 nsect; /* ATA Sector Count */ member in struct:inic_cpb
506 cpb->nsect = qc->tf.nsect;
561 tf->nsect = readb(port_base + PORT_TF_NSECT);
H A Dsata_mv.c2046 * (nsect is used only for the tag; feat/hob_feat hold true nsect).
2071 mv_crqb_pack_cmd(cw++, tf->nsect, ATA_REG_NSECT, 0);
2149 (tf->nsect << 0) |
H A Dsata_nv.c793 cpb[idx++] = cpu_to_le16((ATA_REG_NSECT << 8) | tf->nsect);
H A Dsata_promise.c522 buf[17] = qc->tf.nsect;
H A Dsata_rcar.c285 u8 nsect, lbal; local
298 nsect = ioread32(ioaddr->nsect_addr);
301 if (nsect == 0x55 && lbal == 0xaa)
381 iowrite32(tf->nsect, ioaddr->nsect_addr);
399 tf->nsect = ioread32(ioaddr->nsect_addr);
H A Dsata_svw.c172 writew(tf->nsect | (((u16)tf->hob_nsect) << 8),
182 writew(tf->nsect, ioaddr->nsect_addr);
198 u16 nsect, lbal, lbam, lbah, error; local
203 nsect = readw(ioaddr->nsect_addr);
209 tf->nsect = nsect;
216 tf->hob_nsect = nsect >> 8;
/linux-master/arch/xtensa/platforms/iss/
H A Dsimdisk.c71 unsigned long nsect, char *buffer, int write)
74 unsigned long nbytes = nsect << SECTOR_SHIFT;
70 simdisk_transfer(struct simdisk *dev, unsigned long sector, unsigned long nsect, char *buffer, int write) argument
/linux-master/block/partitions/
H A Dsun.c56 __be16 nsect; /* Sectors per track */ member in struct:sun_disklabel
107 spc = be16_to_cpu(label->ntrks) * be16_to_cpu(label->nsect);
/linux-master/drivers/ata/pata_parport/
H A Dpata_parport.c64 u8 nsect, lbal; local
77 nsect = pi->proto->read_regr(pi, 0, ATA_REG_NSECT);
80 return (nsect == 0x55) && (lbal == 0xaa);
118 * to set nsect/lbal after reset, so don't waste too
122 u8 nsect, lbal; local
124 nsect = pi->proto->read_regr(pi, 0, ATA_REG_NSECT);
126 if (nsect == 1 && lbal == 1)
239 pi->proto->write_regr(pi, 0, ATA_REG_NSECT, tf->nsect);
257 tf->nsect = pi->proto->read_regr(pi, 0, ATA_REG_NSECT);

Completed in 615 milliseconds

12