Home
last modified time | relevance | path

Searched refs:n_block (Results 1 – 3 of 3) sorted by relevance

/drivers/ata/
Dlibata-scsi.c1681 u32 n_block; in ata_scsi_verify_xlat() local
1692 scsi_10_lba_len(cdb, &block, &n_block); in ata_scsi_verify_xlat()
1698 scsi_16_lba_len(cdb, &block, &n_block); in ata_scsi_verify_xlat()
1704 if (!n_block) in ata_scsi_verify_xlat()
1708 if ((block + n_block) > dev_sectors) in ata_scsi_verify_xlat()
1714 if (lba_28_ok(block, n_block)) { in ata_scsi_verify_xlat()
1718 } else if (lba_48_ok(block, n_block)) { in ata_scsi_verify_xlat()
1726 tf->hob_nsect = (n_block >> 8) & 0xff; in ata_scsi_verify_xlat()
1735 tf->nsect = n_block & 0xff; in ata_scsi_verify_xlat()
1746 if (!lba_28_ok(block, n_block)) in ata_scsi_verify_xlat()
[all …]
Dlibata.h45 u64 block, u32 n_block, unsigned int tf_flags,
Dlibata-core.c740 u64 block, u32 n_block, unsigned int tf_flags, in ata_build_rw_tf() argument
748 if (!lba_48_ok(block, n_block)) in ata_build_rw_tf()
760 tf->hob_feature = (n_block >> 8) & 0xff; in ata_build_rw_tf()
761 tf->feature = n_block & 0xff; in ata_build_rw_tf()
782 if (lba_28_ok(block, n_block)) { in ata_build_rw_tf()
785 } else if (lba_48_ok(block, n_block)) { in ata_build_rw_tf()
792 tf->hob_nsect = (n_block >> 8) & 0xff; in ata_build_rw_tf()
804 tf->nsect = n_block & 0xff; in ata_build_rw_tf()
816 if (!lba_28_ok(block, n_block)) in ata_build_rw_tf()
838 tf->nsect = n_block & 0xff; /* Sector count 0 means 256 sectors */ in ata_build_rw_tf()