Lines Matching refs:aligned_len
743 int err, n, written = 0, aligned_len = ALIGN(len, 8); in ubifs_wbuf_write_nolock() local
761 if (c->leb_size - wbuf->offs - wbuf->used < aligned_len) { in ubifs_wbuf_write_nolock()
771 if (aligned_len <= wbuf->avail) { in ubifs_wbuf_write_nolock()
777 if (aligned_len > len) { in ubifs_wbuf_write_nolock()
778 ubifs_assert(c, aligned_len - len < 8); in ubifs_wbuf_write_nolock()
779 ubifs_pad(c, wbuf->buf + wbuf->used + len, aligned_len - len); in ubifs_wbuf_write_nolock()
782 if (aligned_len == wbuf->avail) { in ubifs_wbuf_write_nolock()
802 wbuf->avail -= aligned_len; in ubifs_wbuf_write_nolock()
803 wbuf->used += aligned_len; in ubifs_wbuf_write_nolock()
826 aligned_len -= wbuf->avail; in ubifs_wbuf_write_nolock()
845 aligned_len -= wbuf->size; in ubifs_wbuf_write_nolock()
855 n = aligned_len >> c->max_write_shift; in ubifs_wbuf_write_nolock()
870 aligned_len -= m; in ubifs_wbuf_write_nolock()
891 aligned_len -= n; in ubifs_wbuf_write_nolock()
897 if (aligned_len) { in ubifs_wbuf_write_nolock()
904 if (aligned_len > len) { in ubifs_wbuf_write_nolock()
905 ubifs_assert(c, aligned_len - len < 8); in ubifs_wbuf_write_nolock()
906 ubifs_pad(c, wbuf->buf + len, aligned_len - len); in ubifs_wbuf_write_nolock()
914 wbuf->avail = wbuf->size - aligned_len; in ubifs_wbuf_write_nolock()
915 wbuf->used = aligned_len; in ubifs_wbuf_write_nolock()