Searched refs:n_block (Results 1 – 4 of 4) sorted by relevance
/linux/drivers/ata/ |
H A D | libata-scsi.c | 1414 u32 n_block; in ata_scsi_verify_xlat() local 1426 scsi_10_lba_len(cdb, &block, &n_block); in ata_scsi_verify_xlat() 1433 scsi_16_lba_len(cdb, &block, &n_block); in ata_scsi_verify_xlat() 1440 if (!n_block) in ata_scsi_verify_xlat() 1444 if ((block + n_block) > dev_sectors) in ata_scsi_verify_xlat() 1450 if (lba_28_ok(block, n_block)) { in ata_scsi_verify_xlat() 1454 } else if (lba_48_ok(block, n_block)) { in ata_scsi_verify_xlat() 1462 tf->hob_nsect = (n_block >> 8) & 0xff; in ata_scsi_verify_xlat() 1471 tf->nsect = n_block & 0xff; in ata_scsi_verify_xlat() 1482 if (!lba_28_ok(block, n_block)) in ata_scsi_verify_xlat() [all …]
|
H A D | libata.h | 54 extern int ata_build_rw_tf(struct ata_queued_cmd *qc, u64 block, u32 n_block,
|
H A D | libata-core.c | 695 int ata_build_rw_tf(struct ata_queued_cmd *qc, u64 block, u32 n_block, in ata_build_rw_tf() argument 706 if (!lba_48_ok(block, n_block)) in ata_build_rw_tf() 718 tf->hob_feature = (n_block >> 8) & 0xff; in ata_build_rw_tf() 719 tf->feature = n_block & 0xff; in ata_build_rw_tf() 748 lba_28_ok(block, n_block)) { in ata_build_rw_tf() 751 } else if (lba_48_ok(block, n_block)) { in ata_build_rw_tf() 758 tf->hob_nsect = (n_block >> 8) & 0xff; in ata_build_rw_tf() 771 tf->nsect = n_block & 0xff; in ata_build_rw_tf() 783 if (!lba_28_ok(block, n_block)) in ata_build_rw_tf() 802 tf->nsect = n_block & 0xff; /* Sector count 0 means 256 sectors */ in ata_build_rw_tf()
|
/linux/include/linux/ |
H A D | ata.h | 1034 static inline bool lba_28_ok(u64 block, u32 n_block) in lba_28_ok() argument 1037 return ((block + n_block) < ((1 << 28) - 1)) && (n_block <= ATA_MAX_SECTORS); in lba_28_ok() 1040 static inline bool lba_48_ok(u64 block, u32 n_block) in lba_48_ok() argument 1043 return ((block + n_block - 1) < ((u64)1 << 48)) && (n_block <= ATA_MAX_SECTORS_LBA48); in lba_48_ok()
|