Home
last modified time | relevance | path

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

/linux-6.1.9/include/linux/
Data.h1061 unsigned long lba_sects, chs_sects, head, tail; in ata_id_is_lba_capacity_ok() local
1067 lba_sects = ata_id_u32(id, ATA_ID_LBA_CAPACITY); in ata_id_is_lba_capacity_ok()
1079 (lba_sects >= 16383 * 63 * id[ATA_ID_HEADS])) in ata_id_is_lba_capacity_ok()
1085 if (lba_sects - chs_sects < chs_sects/10) in ata_id_is_lba_capacity_ok()
1089 head = (lba_sects >> 16) & 0xffff; in ata_id_is_lba_capacity_ok()
1090 tail = lba_sects & 0xffff; in ata_id_is_lba_capacity_ok()
1091 lba_sects = head | (tail << 16); in ata_id_is_lba_capacity_ok()
1093 if (lba_sects - chs_sects < chs_sects/10) { in ata_id_is_lba_capacity_ok()
1094 *(__le32 *)&id[ATA_ID_LBA_CAPACITY] = __cpu_to_le32(lba_sects); in ata_id_is_lba_capacity_ok()