Lines Matching refs:leb_size
252 ubifs_assert(c, !(offs & 7) && offs < c->leb_size); in ubifs_check_node()
273 if (node_len + offs > c->leb_size) in ubifs_check_node()
571 ubifs_assert(c, wbuf->offs + wbuf->size <= c->leb_size); in ubifs_wbuf_sync_nolock()
576 if (c->leb_size - wbuf->offs >= c->max_write_size) in ubifs_wbuf_sync_nolock()
606 if (c->leb_size - wbuf->offs < c->max_write_size) in ubifs_wbuf_sync_nolock()
607 wbuf->size = c->leb_size - wbuf->offs; in ubifs_wbuf_sync_nolock()
619 c->leb_size - wbuf->offs, dirt); in ubifs_wbuf_sync_nolock()
639 ubifs_assert(c, offs >= 0 && offs <= c->leb_size); in ubifs_wbuf_seek_nolock()
647 if (c->leb_size - wbuf->offs < c->max_write_size) in ubifs_wbuf_seek_nolock()
648 wbuf->size = c->leb_size - wbuf->offs; in ubifs_wbuf_seek_nolock()
750 ubifs_assert(c, !(wbuf->offs & 7) && wbuf->offs <= c->leb_size); in ubifs_wbuf_write_nolock()
758 if (c->leb_size - wbuf->offs >= c->max_write_size) in ubifs_wbuf_write_nolock()
761 if (c->leb_size - wbuf->offs - wbuf->used < aligned_len) { in ubifs_wbuf_write_nolock()
792 if (c->leb_size - wbuf->offs >= c->max_write_size) in ubifs_wbuf_write_nolock()
795 wbuf->size = c->leb_size - wbuf->offs; in ubifs_wbuf_write_nolock()
910 if (c->leb_size - wbuf->offs >= c->max_write_size) in ubifs_wbuf_write_nolock()
913 wbuf->size = c->leb_size - wbuf->offs; in ubifs_wbuf_write_nolock()
921 int free = c->leb_size - wbuf->offs - wbuf->used; in ubifs_wbuf_write_nolock()
966 ubifs_assert(c, offs % c->min_io_size == 0 && offs < c->leb_size); in ubifs_write_node_hmac()
1029 ubifs_assert(c, !(offs & 7) && offs < c->leb_size); in ubifs_read_node_wbuf()
1104 ubifs_assert(c, len >= UBIFS_CH_SZ && offs + len <= c->leb_size); in ubifs_read_node()
1105 ubifs_assert(c, !(offs & 7) && offs < c->leb_size); in ubifs_read_node()