Lines Matching refs:chs
88 * Calculates a CHS address of a sector from its LBA
91 static void lba2chs(unsigned long lba_addr, CHS *chs, PARTITION *part)
95 chs->offset = lba_addr & 0x000001FF;
97 chs->cyl = abss / (part->sects * part->heads);
98 chs->head = (abss / part->sects) % part->heads;
99 chs->sector = (abss % part->sects) + 1;
379 CHS chs;
387 lba2chs(loc, &chs, part);
395 chs.head,
396 chs.cyl,
397 chs.sector,
416 CHS chs;
432 lba2chs(loc, &chs, part);
435 chs.head,
436 chs.cyl,
437 chs.sector,