Home
last modified time | relevance | path

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

/fatfs-2.7.6/
Dff.c5814 DWORD sz_buf, sz_blk, n_clst, pau, nsect, n, vsn; local
5853 sz_buf = len / ss; /* Size of working buffer [sector] */
5854 if (sz_buf == 0) return FR_NOT_ENOUGH_CORE;
5857 if (!buf) buf = ff_memalloc(sz_buf * ss); /* Use heap memory for working buffer */
5996 if (si == 0 || i == sz_buf * ss) { /* Write buffered data when buffer full or end of process */
6009 memset(buf, 0, sz_buf * ss); /* Initialize bitmap buffer */
6010 …for (i = 0; nbit != 0 && i / 8 < sz_buf * ss; buf[i / 8] |= 1 << (i % 8), i++, nbit--) ; /* Mark u…
6011 n = (nsect > sz_buf) ? sz_buf : nsect; /* Write the buffered data */
6020 memset(buf, 0, sz_buf * ss); i = 0; /* Clear work area and reset write offset */
6026 while (nbit != 0 && i < sz_buf * ss) { /* Create a chain */
[all …]