Searched refs:n_block (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/drivers/ata/ |
H A D | libata-scsi.c | 1448 u32 n_block; in ata_scsi_verify_xlat() local 1460 scsi_10_lba_len(cdb, &block, &n_block); in ata_scsi_verify_xlat() 1467 scsi_16_lba_len(cdb, &block, &n_block); in ata_scsi_verify_xlat() 1474 if (!n_block) in ata_scsi_verify_xlat() 1478 if ((block + n_block) > dev_sectors) in ata_scsi_verify_xlat() 1484 if (lba_28_ok(block, n_block)) { in ata_scsi_verify_xlat() 1488 } else if (lba_48_ok(block, n_block)) { in ata_scsi_verify_xlat() 1496 tf->hob_nsect = (n_block >> 8) & 0xff; in ata_scsi_verify_xlat() 1505 tf->nsect = n_block & 0xff; in ata_scsi_verify_xlat() 1516 if (!lba_28_ok(block, n_block)) in ata_scsi_verify_xlat() [all …]
|
H A D | libata.h | 49 extern int ata_build_rw_tf(struct ata_queued_cmd *qc, u64 block, u32 n_block,
|
H A D | libata-core.c | 708 int ata_build_rw_tf(struct ata_queued_cmd *qc, u64 block, u32 n_block, in ata_build_rw_tf() argument 719 if (!lba_48_ok(block, n_block)) in ata_build_rw_tf() 731 tf->hob_feature = (n_block >> 8) & 0xff; in ata_build_rw_tf() 732 tf->feature = n_block & 0xff; in ata_build_rw_tf() 761 lba_28_ok(block, n_block)) { in ata_build_rw_tf() 764 } else if (lba_48_ok(block, n_block)) { in ata_build_rw_tf() 771 tf->hob_nsect = (n_block >> 8) & 0xff; in ata_build_rw_tf() 784 tf->nsect = n_block & 0xff; in ata_build_rw_tf() 796 if (!lba_28_ok(block, n_block)) in ata_build_rw_tf() 815 tf->nsect = n_block & 0xff; /* Sector count 0 means 256 sectors */ in ata_build_rw_tf()
|
/openbmc/u-boot/include/ |
H A D | libata.h | 630 static inline int lba_28_ok(u64 block, u32 n_block) in lba_28_ok() argument 633 return ((block + n_block - 1) < ((u64)1 << 28)) && (n_block <= 256); in lba_28_ok() 636 static inline int lba_48_ok(u64 block, u32 n_block) in lba_48_ok() argument 639 return ((block + n_block - 1) < ((u64)1 << 48)) && (n_block <= 65536); in lba_48_ok()
|
/openbmc/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()
|