Searched refs:n_sc (Results 1 – 1 of 1) sorted by relevance
5768 BYTE hd, n_hd, sc, n_sc; local5858 n_sc = N_SEC_TRACK; /* Determine drive CHS without any consideration of the drive geometry */5859 for (n_hd = 8; n_hd != 0 && sz_drv32 / n_hd / n_sc > 1024; n_hd *= 2) ;5864 …for (i = 0, nxt_alloc32 = n_sc; i < 4 && nxt_alloc32 != 0 && nxt_alloc32 < sz_drv32; i++, nxt_allo…5874 cy = (UINT)(nxt_alloc32 / n_sc / n_hd); /* Partitio start CHS cylinder */5875 hd = (BYTE)(nxt_alloc32 / n_sc % n_hd); /* Partition start CHS head */5876 sc = (BYTE)(nxt_alloc32 % n_sc + 1); /* Partition start CHS sector */5881 cy = (UINT)((nxt_alloc32 + sz_part32 - 1) / n_sc / n_hd); /* Partition end CHS cylinder */5882 hd = (BYTE)((nxt_alloc32 + sz_part32 - 1) / n_sc % n_hd); /* Partition end CHS head */5883 sc = (BYTE)((nxt_alloc32 + sz_part32 - 1) % n_sc + 1); /* Partition end CHS sector */