Searched refs:n_block (Results 1 – 3 of 3) sorted by relevance
/drivers/ata/ |
D | libata-scsi.c | 1555 u32 n_block; in ata_scsi_verify_xlat() local 1563 scsi_10_lba_len(cdb, &block, &n_block); in ata_scsi_verify_xlat() 1567 scsi_16_lba_len(cdb, &block, &n_block); in ata_scsi_verify_xlat() 1571 if (!n_block) in ata_scsi_verify_xlat() 1575 if ((block + n_block) > dev_sectors) in ata_scsi_verify_xlat() 1581 if (lba_28_ok(block, n_block)) { in ata_scsi_verify_xlat() 1585 } else if (lba_48_ok(block, n_block)) { in ata_scsi_verify_xlat() 1593 tf->hob_nsect = (n_block >> 8) & 0xff; in ata_scsi_verify_xlat() 1602 tf->nsect = n_block & 0xff; in ata_scsi_verify_xlat() 1613 if (!lba_28_ok(block, n_block)) in ata_scsi_verify_xlat() [all …]
|
D | libata.h | 68 u64 block, u32 n_block, unsigned int tf_flags,
|
D | libata-core.c | 751 u64 block, u32 n_block, unsigned int tf_flags, in ata_build_rw_tf() argument 759 if (!lba_48_ok(block, n_block)) in ata_build_rw_tf() 771 tf->hob_feature = (n_block >> 8) & 0xff; in ata_build_rw_tf() 772 tf->feature = n_block & 0xff; in ata_build_rw_tf() 787 if (lba_28_ok(block, n_block)) { in ata_build_rw_tf() 790 } else if (lba_48_ok(block, n_block)) { in ata_build_rw_tf() 797 tf->hob_nsect = (n_block >> 8) & 0xff; in ata_build_rw_tf() 809 tf->nsect = n_block & 0xff; in ata_build_rw_tf() 821 if (!lba_28_ok(block, n_block)) in ata_build_rw_tf() 843 tf->nsect = n_block & 0xff; /* Sector count 0 means 256 sectors */ in ata_build_rw_tf()
|