Searched refs:n_block (Results 1 – 4 of 4) sorted by relevance
/Linux-v4.19/drivers/ata/ |
D | libata-scsi.c | 1698 u32 n_block; in ata_scsi_verify_xlat() local 1709 scsi_10_lba_len(cdb, &block, &n_block); in ata_scsi_verify_xlat() 1715 scsi_16_lba_len(cdb, &block, &n_block); in ata_scsi_verify_xlat() 1721 if (!n_block) in ata_scsi_verify_xlat() 1725 if ((block + n_block) > dev_sectors) in ata_scsi_verify_xlat() 1731 if (lba_28_ok(block, n_block)) { in ata_scsi_verify_xlat() 1735 } else if (lba_48_ok(block, n_block)) { in ata_scsi_verify_xlat() 1743 tf->hob_nsect = (n_block >> 8) & 0xff; in ata_scsi_verify_xlat() 1752 tf->nsect = n_block & 0xff; in ata_scsi_verify_xlat() 1763 if (!lba_28_ok(block, n_block)) in ata_scsi_verify_xlat() [all …]
|
D | libata.h | 61 u64 block, u32 n_block, unsigned int tf_flags,
|
D | libata-core.c | 756 u64 block, u32 n_block, unsigned int tf_flags, in ata_build_rw_tf() argument 764 if (!lba_48_ok(block, n_block)) in ata_build_rw_tf() 776 tf->hob_feature = (n_block >> 8) & 0xff; in ata_build_rw_tf() 777 tf->feature = n_block & 0xff; in ata_build_rw_tf() 798 if (lba_28_ok(block, n_block)) { in ata_build_rw_tf() 801 } else if (lba_48_ok(block, n_block)) { in ata_build_rw_tf() 808 tf->hob_nsect = (n_block >> 8) & 0xff; in ata_build_rw_tf() 820 tf->nsect = n_block & 0xff; in ata_build_rw_tf() 832 if (!lba_28_ok(block, n_block)) in ata_build_rw_tf() 854 tf->nsect = n_block & 0xff; /* Sector count 0 means 256 sectors */ in ata_build_rw_tf()
|
/Linux-v4.19/include/linux/ |
D | ata.h | 1139 static inline bool lba_28_ok(u64 block, u32 n_block) in lba_28_ok() argument 1142 return ((block + n_block) < ((1 << 28) - 1)) && (n_block <= ATA_MAX_SECTORS); in lba_28_ok() 1145 static inline bool lba_48_ok(u64 block, u32 n_block) in lba_48_ok() argument 1148 return ((block + n_block - 1) < ((u64)1 << 48)) && (n_block <= ATA_MAX_SECTORS_LBA48); in lba_48_ok()
|