Home
last modified time | relevance | path

Searched refs:nsect (Results 1 – 25 of 38) sorted by relevance

12

/linux-5.19.10/arch/powerpc/boot/
Dhack-coff.c31 int i, nsect; in main() local
55 nsect = get_16be(fhdr.f_nscns); in main()
56 for (i = 0; i < nsect; ++i) { in main()
/linux-5.19.10/drivers/ata/
Dsata_vsc.c160 writew(tf->nsect | (((u16)tf->hob_nsect) << 8), in vsc_sata_tf_load()
170 writew(tf->nsect, ioaddr->nsect_addr); in vsc_sata_tf_load()
186 u16 nsect, lbal, lbam, lbah, error; in vsc_sata_tf_read() local
191 nsect = readw(ioaddr->nsect_addr); in vsc_sata_tf_read()
197 tf->nsect = nsect; in vsc_sata_tf_read()
204 tf->hob_nsect = nsect >> 8; in vsc_sata_tf_read()
Dsata_svw.c171 writew(tf->nsect | (((u16)tf->hob_nsect) << 8), in k2_sata_tf_load()
181 writew(tf->nsect, ioaddr->nsect_addr); in k2_sata_tf_load()
197 u16 nsect, lbal, lbam, lbah, error; in k2_sata_tf_read() local
202 nsect = readw(ioaddr->nsect_addr); in k2_sata_tf_read()
208 tf->nsect = nsect; in k2_sata_tf_read()
215 tf->hob_nsect = nsect >> 8; in k2_sata_tf_read()
Dlibata-acpi.c550 tf->nsect = gtf->tf[1]; /* 0x1f2 */ in ata_acpi_gtf_to_tf()
597 tf->nsect == SATA_DIPM) in ata_acpi_filter_tf()
602 (tf->nsect == SATA_FPDMA_OFFSET || in ata_acpi_filter_tf()
603 tf->nsect == SATA_FPDMA_IN_ORDER)) in ata_acpi_filter_tf()
608 tf->nsect == SATA_FPDMA_AA) in ata_acpi_filter_tf()
671 tf.command, tf.feature, tf.nsect, tf.lbal, in ata_acpi_run_tf()
680 tf.command, tf.feature, tf.nsect, tf.lbal, in ata_acpi_run_tf()
690 tf.command, tf.feature, tf.nsect, tf.lbal, in ata_acpi_run_tf()
700 tf.command, tf.feature, tf.nsect, tf.lbal, in ata_acpi_run_tf()
Dsata_promise.h98 buf[i++] = tf->nsect; in pdc_prep_lba28()
123 buf[i++] = tf->nsect; in pdc_prep_lba48()
Dpata_ep93xx.c401 ep93xx_pata_write_reg(drv_data, tf->nsect, IDECTRL_ADDR_NSECT); in ep93xx_pata_tf_load()
421 tf->nsect = ep93xx_pata_read_reg(drv_data, IDECTRL_ADDR_NSECT); in ep93xx_pata_tf_read()
524 u8 nsect, lbal; in ep93xx_pata_device_is_present() local
537 nsect = ep93xx_pata_read_reg(drv_data, IDECTRL_ADDR_NSECT); in ep93xx_pata_device_is_present()
540 if ((nsect == 0x55) && (lbal == 0xaa)) in ep93xx_pata_device_is_present()
583 u8 nsect, lbal; in ep93xx_pata_wait_after_reset() local
585 nsect = ep93xx_pata_read_reg(drv_data, in ep93xx_pata_wait_after_reset()
589 if (nsect == 1 && lbal == 1) in ep93xx_pata_wait_after_reset()
Dpata_samsung_cf.c197 ata_outb(ap->host, tf->nsect, ioaddr->nsect_addr); in pata_s3c_tf_load()
217 tf->nsect = ata_inb(ap->host, ioaddr->nsect_addr); in pata_s3c_tf_read()
314 u8 nsect, lbal; in pata_s3c_devchk() local
327 nsect = ata_inb(ap->host, ioaddr->nsect_addr); in pata_s3c_devchk()
330 if ((nsect == 0x55) && (lbal == 0xaa)) in pata_s3c_devchk()
Dlibata-scsi.c929 desc[5] = tf->nsect; in ata_gen_passthru_sense()
952 desc[3] = tf->nsect; in ata_gen_passthru_sense()
1226 tf->nsect = 1; /* 1 sector, lba=0 */ in ata_scsi_start_stop_xlat()
1442 tf->nsect = n_block & 0xff; in ata_scsi_verify_xlat()
1470 tf->nsect = n_block & 0xff; /* Sector count 0 means 256 sectors */ in ata_scsi_verify_xlat()
2875 tf->nsect = cdb[6]; in ata_scsi_pass_thru()
2889 tf->nsect = cdb[4]; in ata_scsi_pass_thru()
2913 tf->nsect = cdb[23]; in ata_scsi_pass_thru()
2925 tf->nsect = qc->hw_tag << 3; in ata_scsi_pass_thru()
2937 if (tf->protocol != ATA_PROT_PIO || tf->nsect != 1) { in ata_scsi_pass_thru()
[all …]
Dlibata-sff.c422 iowrite8(tf->nsect, ioaddr->nsect_addr); in ata_sff_tf_load()
454 tf->nsect = ioread8(ioaddr->nsect_addr); in ata_sff_tf_read()
719 unsigned int nsect; in ata_pio_sectors() local
723 nsect = min((qc->nbytes - qc->curbytes) / qc->sect_size, in ata_pio_sectors()
725 while (nsect--) in ata_pio_sectors()
869 ireason = qc->result_tf.nsect; in atapi_pio_bytes()
1772 u8 nsect, lbal; in ata_devchk() local
1785 nsect = ioread8(ioaddr->nsect_addr); in ata_devchk()
1788 if ((nsect == 0x55) && (lbal == 0xaa)) in ata_devchk()
1917 u8 nsect, lbal; in ata_sff_wait_after_reset() local
[all …]
Dsata_inic162x.c204 u8 nsect; /* ATA Sector Count */ member
506 cpb->nsect = qc->tf.nsect; in inic_qc_prep()
561 tf->nsect = readb(port_base + PORT_TF_NSECT); in inic_tf_read()
Dsata_rcar.c285 u8 nsect, lbal; in sata_rcar_ata_devchk() local
298 nsect = ioread32(ioaddr->nsect_addr); in sata_rcar_ata_devchk()
301 if (nsect == 0x55 && lbal == 0xaa) in sata_rcar_ata_devchk()
381 iowrite32(tf->nsect, ioaddr->nsect_addr); in sata_rcar_tf_load()
399 tf->nsect = ioread32(ioaddr->nsect_addr); in sata_rcar_tf_read()
Dlibata-sata.c169 fis[12] = tf->nsect; in ata_tf_to_fis()
206 tf->nsect = fis[12]; in ata_tf_from_fis()
1393 tf->nsect = buf[12]; in ata_eh_read_log_10h()
Dpata_ns87415.c269 tf->nsect = ioread8(ioaddr->nsect_addr); in ns87560_tf_read()
Dlibata-pmp.c57 *r_val = tf.nsect | tf.lbal << 8 | tf.lbam << 16 | tf.lbah << 24; in sata_pmp_read()
87 tf.nsect = val & 0xff; in sata_pmp_write()
Dpata_octeon_cf.c388 tf->nsect = blob & 0xff; in octeon_cf_tf_read16()
479 __raw_writew(tf->nsect | tf->lbal << 8, base + 2); in octeon_cf_tf_load16()
Dlibata-core.c707 tf->nsect = tag << 3; in ata_build_rw_tf()
750 tf->nsect = n_block & 0xff; in ata_build_rw_tf()
781 tf->nsect = n_block & 0xff; /* Sector count 0 means 256 sectors */ in ata_build_rw_tf()
1993 tf.nsect = sectors; in ata_read_log_page()
4313 tf.nsect = dev->xfer_mode; in ata_dev_set_xfermode()
4316 tf.nsect = 0x01; in ata_dev_set_xfermode()
4355 tf.nsect = feature; in ata_dev_set_feature()
4395 tf.nsect = sectors; in ata_dev_init_params()
Dpata_via.c421 iowrite8(tf->nsect, ioaddr->nsect_addr); in via_tf_load()
/linux-5.19.10/include/trace/events/
Dlibata.h197 __field( unsigned char, nsect )
224 __entry->nsect = qc->tf.nsect;
234 __entry->cmd, __entry->feature, __entry->nsect,
264 __field( unsigned char, nsect )
289 __entry->nsect = qc->result_tf.nsect;
299 __entry->status, __entry->error, __entry->nsect,
331 __field( unsigned char, nsect )
354 __entry->nsect = tf->nsect;
364 __entry->cmd, __entry->feature, __entry->nsect,
/linux-5.19.10/drivers/mtd/
Dmtd_blkdevs.c51 unsigned long block, nsect; in do_blktrans_request() local
55 nsect = blk_rq_cur_bytes(req) >> tr->blkshift; in do_blktrans_request()
63 if (tr->discard(dev, block, nsect)) in do_blktrans_request()
68 for (; nsect > 0; nsect--, block++, buf += tr->blksize) { in do_blktrans_request()
87 for (; nsect > 0; nsect--, block++, buf += tr->blksize) { in do_blktrans_request()
/linux-5.19.10/block/partitions/
Dsun.c56 __be16 nsect; /* Sectors per track */ in sun_partition() member
107 spc = be16_to_cpu(label->ntrks) * be16_to_cpu(label->nsect); in sun_partition()
/linux-5.19.10/arch/xtensa/platforms/iss/
Dsimdisk.c71 unsigned long nsect, char *buffer, int write) in simdisk_transfer() argument
74 unsigned long nbytes = nsect << SECTOR_SHIFT; in simdisk_transfer()
/linux-5.19.10/drivers/block/
Dataflop.c747 int sect, nsect; in do_format() local
780 nsect = UDT->spt; in do_format()
788 FILL( 60 * (nsect / 9), 0x4e ); in do_format()
789 for( sect = 0; sect < nsect; ++sect ) { in do_format()
795 *p++ = (nsect + sect - desc->sect_offset) % nsect + 1; in do_format()
Dsunvdc.c125 sector_t nsect = get_capacity(disk); in vdc_getgeo() local
126 sector_t cylinders = nsect; in vdc_getgeo()
132 if ((sector_t)(geo->cylinders + 1) * geo->heads * geo->sectors < nsect) in vdc_getgeo()
/linux-5.19.10/drivers/block/mtip32xx/
Dmtip32xx.c1712 u8 nsect = 0; in exec_drive_taskfile() local
1759 nsect = taskout / ATA_SECT_SIZE; in exec_drive_taskfile()
1804 if (nsect) in exec_drive_taskfile()
1805 fis.sect_count = nsect; in exec_drive_taskfile()
2060 unsigned int nsect = blk_rq_sectors(rq); in mtip_hw_submit_io() local
2092 fis->features = nsect & 0xFF; in mtip_hw_submit_io()
2093 fis->features_ex = (nsect >> 8) & 0xFF; in mtip_hw_submit_io()
/linux-5.19.10/drivers/scsi/
Dstorvsc_drv.c1571 sector_t nsect = capacity; in storvsc_get_chs() local
1572 sector_t cylinders = nsect; in storvsc_get_chs()
1581 if ((sector_t)(cylinders + 1) * heads * sectors_pt < nsect) in storvsc_get_chs()

12