Home
last modified time | relevance | path

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

/fatfs-latest/
Dff.c5775 WORD ss; local
5782 if (disk_ioctl(drv, GET_SECTOR_SIZE, &ss) != RES_OK) return FR_DISK_ERR; /* Get sector size */
5783 if (ss > FF_MAX_SS || ss < FF_MIN_SS || (ss & (ss - 1))) return FR_DISK_ERR;
5785 ss = FF_MAX_SS;
5788 align = GPT_ALIGN / ss; /* Partition alignment for GPT [sector] */
5789 sz_ptbl = GPT_ITEMS * SZ_GPTE / ss; /* Size of partition table [sector] */
5796 if (pi * SZ_GPTE % ss == 0) memset(buf, 0, ss); /* Clean the buffer if needed */
5809 ofs = pi * SZ_GPTE % ss;
5816 if ((pi + 1) * SZ_GPTE % ss == 0) { /* Write the sector buffer if it is filled up */
5817 for (i = 0; i < ss; bcc = crc32(bcc, buf[i++])) ; /* Calculate table check sum */
[all …]