Searched refs:n_lba32 (Results 1 – 1 of 1) sorted by relevance
5562 DWORD sz_drv32, s_lba32, n_lba32; local5576 for (i = 0, s_lba32 = n_sc; i < 4 && s_lba32 != 0 && s_lba32 < sz_drv32; i++, s_lba32 += n_lba32) {5577 n_lba32 = (DWORD)plst[i]; /* Get partition size */5578 …if (n_lba32 <= 100) n_lba32 = (n_lba32 == 100) ? sz_drv32 : sz_drv32 / 100 * n_lba32; /* Size in p…5579 …if (s_lba32 + n_lba32 > sz_drv32 || s_lba32 + n_lba32 < s_lba32) n_lba32 = sz_drv32 - s_lba32; /* …5580 if (n_lba32 == 0) break; /* End of table or no sector to allocate? */5583 st_dword(pte + PTE_SizLba, n_lba32); /* Number of sectors */5593 cy = (UINT)((s_lba32 + n_lba32 - 1) / n_sc / n_hd); /* End cylinder */5594 hd = (BYTE)((s_lba32 + n_lba32 - 1) / n_sc % n_hd); /* End head */5595 sc = (BYTE)((s_lba32 + n_lba32 - 1) % n_sc + 1); /* End sector */