Lines Matching refs:aligned_len
721 int err, written, n, aligned_len = ALIGN(len, 8); in ubifs_wbuf_write_nolock() local
739 if (c->leb_size - wbuf->offs - wbuf->used < aligned_len) { in ubifs_wbuf_write_nolock()
749 if (aligned_len <= wbuf->avail) { in ubifs_wbuf_write_nolock()
756 if (aligned_len == wbuf->avail) { in ubifs_wbuf_write_nolock()
776 wbuf->avail -= aligned_len; in ubifs_wbuf_write_nolock()
777 wbuf->used += aligned_len; in ubifs_wbuf_write_nolock()
802 aligned_len -= wbuf->avail; in ubifs_wbuf_write_nolock()
821 aligned_len -= wbuf->size; in ubifs_wbuf_write_nolock()
831 n = aligned_len >> c->max_write_shift; in ubifs_wbuf_write_nolock()
841 aligned_len -= n; in ubifs_wbuf_write_nolock()
847 if (aligned_len) in ubifs_wbuf_write_nolock()
859 wbuf->avail = wbuf->size - aligned_len; in ubifs_wbuf_write_nolock()
860 wbuf->used = aligned_len; in ubifs_wbuf_write_nolock()