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