Lines Matching refs:used
19 * buffer is full or when it is not used for some time (by timer). This is
20 * similar to the mechanism is used by JFFS2.
325 * Padding nodes are also used to fill gaps when the "commit-in-gaps" method is
326 * used.
554 * if the write-buffer is only partially filled with data, only the used part
564 if (!wbuf->used || wbuf->lnum == -1)
569 wbuf->lnum, wbuf->offs, wbuf->used, dbg_jhead(wbuf->jhead));
586 sync_len = ALIGN(wbuf->used, c->min_io_size);
587 dirt = sync_len - wbuf->used;
589 ubifs_pad(c, wbuf->buf + wbuf->used, dirt);
613 wbuf->used = 0;
642 ubifs_assert(c, wbuf->used == 0);
654 wbuf->used = 0;
747 dbg_jhead(wbuf->jhead), wbuf->lnum, wbuf->offs + wbuf->used);
761 if (c->leb_size - wbuf->offs - wbuf->used < aligned_len) {
776 memcpy(wbuf->buf + wbuf->used, buf, len);
779 ubifs_pad(c, wbuf->buf + wbuf->used + len, aligned_len - len);
797 wbuf->used = 0;
803 wbuf->used += aligned_len;
810 if (wbuf->used) {
818 memcpy(wbuf->buf + wbuf->used, buf, wbuf->avail);
915 wbuf->used = aligned_len;
921 int free = c->leb_size - wbuf->offs - wbuf->used;
928 if (wbuf->used)
1166 wbuf->used = 0;
1201 if (wbuf->used)