Lines Matching refs:aligned_len
733 int err, written, n, aligned_len = ALIGN(len, 8); in ubifs_wbuf_write_nolock() local
751 if (c->leb_size - wbuf->offs - wbuf->used < aligned_len) { in ubifs_wbuf_write_nolock()
761 if (aligned_len <= wbuf->avail) { in ubifs_wbuf_write_nolock()
767 if (aligned_len > len) { in ubifs_wbuf_write_nolock()
768 ubifs_assert(c, aligned_len - len < 8); in ubifs_wbuf_write_nolock()
769 ubifs_pad(c, wbuf->buf + wbuf->used + len, aligned_len - len); in ubifs_wbuf_write_nolock()
772 if (aligned_len == wbuf->avail) { in ubifs_wbuf_write_nolock()
792 wbuf->avail -= aligned_len; in ubifs_wbuf_write_nolock()
793 wbuf->used += aligned_len; in ubifs_wbuf_write_nolock()
818 aligned_len -= wbuf->avail; in ubifs_wbuf_write_nolock()
837 aligned_len -= wbuf->size; in ubifs_wbuf_write_nolock()
847 n = aligned_len >> c->max_write_shift; in ubifs_wbuf_write_nolock()
862 aligned_len -= m; in ubifs_wbuf_write_nolock()
883 aligned_len -= n; in ubifs_wbuf_write_nolock()
889 if (aligned_len) { in ubifs_wbuf_write_nolock()
896 if (aligned_len > len) { in ubifs_wbuf_write_nolock()
897 ubifs_assert(c, aligned_len - len < 8); in ubifs_wbuf_write_nolock()
898 ubifs_pad(c, wbuf->buf + len, aligned_len - len); in ubifs_wbuf_write_nolock()
906 wbuf->avail = wbuf->size - aligned_len; in ubifs_wbuf_write_nolock()
907 wbuf->used = aligned_len; in ubifs_wbuf_write_nolock()