Searched refs:n_sc (Results 1 – 1 of 1) sorted by relevance
5670 BYTE hd, n_hd, sc, n_sc; local5760 n_sc = N_SEC_TRACK; /* Determine drive CHS without any consideration of the drive geometry */5761 for (n_hd = 8; n_hd != 0 && sz_drv32 / n_hd / n_sc > 1024; n_hd *= 2) ;5766 …for (i = 0, nxt_alloc32 = n_sc; i < 4 && nxt_alloc32 != 0 && nxt_alloc32 < sz_drv32; i++, nxt_allo…5776 cy = (UINT)(nxt_alloc32 / n_sc / n_hd); /* Start cylinder */5777 hd = (BYTE)(nxt_alloc32 / n_sc % n_hd); /* Start head */5778 sc = (BYTE)(nxt_alloc32 % n_sc + 1); /* Start sector */5783 cy = (UINT)((nxt_alloc32 + sz_part32 - 1) / n_sc / n_hd); /* End cylinder */5784 hd = (BYTE)((nxt_alloc32 + sz_part32 - 1) / n_sc % n_hd); /* End head */5785 sc = (BYTE)((nxt_alloc32 + sz_part32 - 1) % n_sc + 1); /* End sector */