Home
last modified time | relevance | path

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

/fatfs-latest/
Dff.c5914 DWORD sz_buf, sz_blk, n_clst, pau, nsect, n, vsn; local
5956 sz_buf = len / ss; /* Size of working buffer [sector] */
5957 if (sz_buf == 0) return FR_NOT_ENOUGH_CORE;
5960 if (!buf) buf = ff_memalloc(sz_buf * ss); /* Use heap memory for working buffer */
6099 if (si == 0 || i == sz_buf * ss) { /* Write buffered data when buffer full or end of process */
6112 memset(buf, 0, sz_buf * ss); /* Initialize bitmap buffer */
6113 …for (i = 0; nbit != 0 && i / 8 < sz_buf * ss; buf[i / 8] |= 1 << (i % 8), i++, nbit--) ; /* Mark u…
6114 n = (nsect > sz_buf) ? sz_buf : nsect; /* Write the buffered data */
6123 memset(buf, 0, sz_buf * ss); i = 0; /* Clear work area and reset write offset */
6130 while (nbit != 0 && i < sz_buf * ss) { /* Create a chain */
[all …]