Home | History | Annotate | Download | only in block

Lines Matching refs:spos

355 /* take the sector position spos and convert it to Cylinder/Head/Sector position
359 static int sector2CHS(BlockDriverState* bs, mbr_chs_t * chs, int spos){
361 sector = spos % (bs->secs); spos/= bs->secs;
362 head = spos % (bs->heads); spos/= bs->heads;
363 if(spos >= bs->cyls){
373 chs->sector = (uint8_t)( (sector+1) | ((spos>>8)<<6) );
374 chs->cylinder = (uint8_t)spos;