Lines Matching refs:CHS
86 * Calculates a CHS address of a sector from its LBA
89 static void lba2chs(unsigned long lba_addr, CHS *chs, PARTITION *part)
93 chs->offset = lba_addr & 0x000001FF;
95 chs->cyl = abss / (part->sects * part->heads);
96 chs->head = (abss / part->sects) % part->heads;
97 chs->sector = (abss % part->sects) + 1;
377 CHS chs;
385 lba2chs(loc, &chs, part);
393 chs.head,
394 chs.cyl,
395 chs.sector,
414 CHS chs;
430 lba2chs(loc, &chs, part);
433 chs.head,
434 chs.cyl,
435 chs.sector,