Lines Matching refs:zbr
132 const struct ubifs_zbranch *zbr = &znode->zbranch[0]; in ubifs_search_zbranch() local
138 cmp = keys_cmp(c, key, &zbr[mid].key); in ubifs_search_zbranch()
154 ubifs_assert(keys_cmp(c, key, &zbr[0].key) < 0); in ubifs_search_zbranch()
156 ubifs_assert(keys_cmp(c, key, &zbr[*n].key) > 0); in ubifs_search_zbranch()
158 ubifs_assert(keys_cmp(c, key, &zbr[*n + 1].key) < 0); in ubifs_search_zbranch()
297 struct ubifs_zbranch *zbr = &znode->zbranch[i]; in read_znode() local
299 key_read(c, &br->key, &zbr->key); in read_znode()
300 zbr->lnum = le32_to_cpu(br->lnum); in read_znode()
301 zbr->offs = le32_to_cpu(br->offs); in read_znode()
302 zbr->len = le32_to_cpu(br->len); in read_znode()
303 zbr->znode = NULL; in read_znode()
307 if (zbr->lnum < c->main_first || in read_znode()
308 zbr->lnum >= c->leb_cnt || zbr->offs < 0 || in read_znode()
309 zbr->offs + zbr->len > c->leb_size || zbr->offs & 7) { in read_znode()
315 switch (key_type(c, &zbr->key)) { in read_znode()
323 i, key_type(c, &zbr->key)); in read_znode()
331 type = key_type(c, &zbr->key); in read_znode()
333 if (zbr->len != c->ranges[type].len) { in read_znode()
335 type, zbr->len); in read_znode()
340 } else if (zbr->len < c->ranges[type].min_len || in read_znode()
341 zbr->len > c->ranges[type].max_len) { in read_znode()
343 type, zbr->len); in read_znode()
398 struct ubifs_zbranch *zbr, in ubifs_load_znode() argument
404 ubifs_assert(!zbr->znode); in ubifs_load_znode()
413 err = read_znode(c, zbr->lnum, zbr->offs, zbr->len, znode); in ubifs_load_znode()
427 zbr->znode = znode; in ubifs_load_znode()
449 int ubifs_tnc_read_node(struct ubifs_info *c, struct ubifs_zbranch *zbr, in ubifs_tnc_read_node() argument
452 union ubifs_key key1, *key = &zbr->key; in ubifs_tnc_read_node()
460 wbuf = ubifs_get_wbuf(c, zbr->lnum); in ubifs_tnc_read_node()
462 err = ubifs_read_node_wbuf(wbuf, node, type, zbr->len, in ubifs_tnc_read_node()
463 zbr->lnum, zbr->offs); in ubifs_tnc_read_node()
465 err = ubifs_read_node(c, node, type, zbr->len, zbr->lnum, in ubifs_tnc_read_node()
466 zbr->offs); in ubifs_tnc_read_node()
477 zbr->lnum, zbr->offs); in ubifs_tnc_read_node()