Home
last modified time | relevance | path

Searched refs:n_hd (Results 1 – 1 of 1) sorted by relevance

/fatfs-latest/
Dff.c5768 BYTE hd, n_hd, sc, n_sc; local
5859 for (n_hd = 8; n_hd != 0 && sz_drv32 / n_hd / n_sc > 1024; n_hd *= 2) ;
5860 if (n_hd == 0) n_hd = 255; /* Number of heads needs to be <256 */
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 */
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 */