Lines Matching defs:chs
293 chs_get_cylinder (const RawCHS* chs)
295 return chs->cylinder + ((chs->sector >> 6) << 8);
299 chs_get_head (const RawCHS* chs)
301 return chs->head;
306 chs_get_sector (const RawCHS* chs)
308 return (chs->sector & 0x3f) - 1;
313 const RawCHS* chs)
320 PED_ASSERT (chs != NULL, return 0);
322 c = chs_get_cylinder (chs);
323 h = chs_get_head (chs);
324 s = chs_get_sector (chs);
336 PedSector sector, RawCHS* chs)
341 PED_ASSERT (chs != NULL, return);
358 chs->cylinder = real_c % 0x100;
359 chs->head = real_h;
360 chs->sector = real_s + 1 + (real_c >> 8 << 6);