Home
last modified time | relevance | path

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

/fatfs-2.7.6/
Dff.c5670 BYTE hd, n_hd, sc, n_sc; local
5761 for (n_hd = 8; n_hd != 0 && sz_drv32 / n_hd / n_sc > 1024; n_hd *= 2) ;
5762 if (n_hd == 0) n_hd = 255; /* Number of heads needs to be <256 */
5776 cy = (UINT)(nxt_alloc32 / n_sc / n_hd); /* Start cylinder */
5777 hd = (BYTE)(nxt_alloc32 / n_sc % n_hd); /* Start head */
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 */