Lines Matching refs:SZ_GPTE
224 #define SZ_GPTE 128 /* GPT: Size of partition table entry */ macro
3201 …if (ld_dword(gpth + GPTH_PteSize) != SZ_GPTE) return 0; /* Table entry size (must be SZ_GPTE bytes…
3302 if (move_window(fs, pt_lba + i * SZ_GPTE / SS(fs)) != FR_OK) return 4; /* PT sector */
3303 ofs = i * SZ_GPTE % SS(fs); /* Offset in the sector */
5691 sz_ptbl = GPT_ITEMS * SZ_GPTE / ss; /* Size of partition table [sector] */
5698 if (pi * SZ_GPTE % ss == 0) memset(buf, 0, ss); /* Clean the buffer if needed */
5711 ofs = pi * SZ_GPTE % ss;
5718 if ((pi + 1) * SZ_GPTE % ss == 0) { /* Write the buffer if it is filled up */
5720 …if (disk_write(drv, buf, 2 + pi * SZ_GPTE / ss, 1) != RES_OK) return FR_DISK_ERR; /* Write to pri…
5721 …if (disk_write(drv, buf, top_bpt + pi * SZ_GPTE / ss, 1) != RES_OK) return FR_DISK_ERR; /* Write t…
5733 st_dword(buf + GPTH_PteSize, SZ_GPTE); /* Size of a table entry */
5885 n_ent--; ofs = (ofs + SZ_GPTE) % ss; /* Next entry */
5904 …b_vol = GPT_ALIGN / ss; sz_vol -= b_vol + GPT_ITEMS * SZ_GPTE / ss + 1; /* Estimated partition off…