Home
last modified time | relevance | path

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

/include/linux/
Data.h912 unsigned long lba_sects, chs_sects, head, tail; in ata_id_is_lba_capacity_ok() local
918 lba_sects = ata_id_u32(id, ATA_ID_LBA_CAPACITY); in ata_id_is_lba_capacity_ok()
930 (lba_sects >= 16383 * 63 * id[ATA_ID_HEADS])) in ata_id_is_lba_capacity_ok()
936 if (lba_sects - chs_sects < chs_sects/10) in ata_id_is_lba_capacity_ok()
940 head = (lba_sects >> 16) & 0xffff; in ata_id_is_lba_capacity_ok()
941 tail = lba_sects & 0xffff; in ata_id_is_lba_capacity_ok()
942 lba_sects = head | (tail << 16); in ata_id_is_lba_capacity_ok()
944 if (lba_sects - chs_sects < chs_sects/10) { in ata_id_is_lba_capacity_ok()
945 *(__le32 *)&id[ATA_ID_LBA_CAPACITY] = __cpu_to_le32(lba_sects); in ata_id_is_lba_capacity_ok()