Lines Matching refs:avail
524 ubifs_assert(c, !(wbuf->avail & 7)); in ubifs_wbuf_sync_nolock()
566 wbuf->avail = wbuf->size; in ubifs_wbuf_sync_nolock()
607 wbuf->avail = wbuf->size; in ubifs_wbuf_seek_nolock()
705 ubifs_assert(c, wbuf->avail > 0 && wbuf->avail <= wbuf->size); in ubifs_wbuf_write_nolock()
725 if (aligned_len <= wbuf->avail) { in ubifs_wbuf_write_nolock()
736 if (aligned_len == wbuf->avail) { in ubifs_wbuf_write_nolock()
750 wbuf->avail = wbuf->size; in ubifs_wbuf_write_nolock()
756 wbuf->avail -= aligned_len; in ubifs_wbuf_write_nolock()
774 memcpy(wbuf->buf + wbuf->used, buf, wbuf->avail); in ubifs_wbuf_write_nolock()
781 len -= wbuf->avail; in ubifs_wbuf_write_nolock()
782 aligned_len -= wbuf->avail; in ubifs_wbuf_write_nolock()
783 written += wbuf->avail; in ubifs_wbuf_write_nolock()
870 wbuf->avail = wbuf->size - aligned_len; in ubifs_wbuf_write_nolock()
1107 wbuf->avail = wbuf->size = size; in ubifs_wbuf_init()