Home
last modified time | relevance | path

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

/linux/drivers/ata/
A Dlibata-scsi.c1398 u32 n_block; in ata_scsi_verify_xlat() local
1421 if (!n_block) in ata_scsi_verify_xlat()
1547 u32 n_block; in ata_scsi_rw_xlat() local
1579 if (!n_block) in ata_scsi_rw_xlat()
1580 n_block = 256; in ata_scsi_rw_xlat()
1603 if (!n_block) in ata_scsi_rw_xlat()
3170 u32 n_block; in ata_scsi_write_same_xlat() local
3414 u32 n_block; in ata_scsi_zbc_in_xlat() local
3438 if ((n_block / 512) > 0xffff || n_block < 512 || (n_block % 512)) { in ata_scsi_zbc_in_xlat()
3497 u32 n_block; in ata_scsi_zbc_out_xlat() local
[all …]
A Dlibata-core.c681 u64 block, u32 n_block, unsigned int tf_flags, in ata_build_rw_tf() argument
689 if (!lba_48_ok(block, n_block)) in ata_build_rw_tf()
701 tf->hob_feature = (n_block >> 8) & 0xff; in ata_build_rw_tf()
702 tf->feature = n_block & 0xff; in ata_build_rw_tf()
721 if (lba_28_ok(block, n_block)) { in ata_build_rw_tf()
724 } else if (lba_48_ok(block, n_block)) { in ata_build_rw_tf()
731 tf->hob_nsect = (n_block >> 8) & 0xff; in ata_build_rw_tf()
743 tf->nsect = n_block & 0xff; in ata_build_rw_tf()
755 if (!lba_28_ok(block, n_block)) in ata_build_rw_tf()
777 tf->nsect = n_block & 0xff; /* Sector count 0 means 256 sectors */ in ata_build_rw_tf()
A Dlibata.h49 u64 block, u32 n_block, unsigned int tf_flags,
/linux/include/linux/
A Data.h1124 static inline bool lba_28_ok(u64 block, u32 n_block) in lba_28_ok() argument
1127 return ((block + n_block) < ((1 << 28) - 1)) && (n_block <= ATA_MAX_SECTORS); in lba_28_ok()
1130 static inline bool lba_48_ok(u64 block, u32 n_block) in lba_48_ok() argument
1133 return ((block + n_block - 1) < ((u64)1 << 48)) && (n_block <= ATA_MAX_SECTORS_LBA48); in lba_48_ok()

Completed in 23 milliseconds