Lines Matching refs:offs
399 pack_bits(&addr, &pos, nnode->nbranch[i].offs, in ubifs_pack_nnode()
753 nnode->nbranch[j].offs = boffs; in ubifs_create_dflt_lpt()
758 nnode->nbranch[j].offs = 0; in ubifs_create_dflt_lpt()
1020 nnode->nbranch[i].offs = ubifs_unpack_bits(&addr, &pos, in ubifs_unpack_nnode()
1114 int offs = nnode->nbranch[i].offs; in validate_nnode() local
1117 if (offs != 0) in validate_nnode()
1123 if (offs < 0 || offs > max_offs) in validate_nnode()
1198 int err, lnum, offs; in ubifs_read_nnode() local
1203 offs = branch->offs; in ubifs_read_nnode()
1206 offs = c->lpt_offs; in ubifs_read_nnode()
1223 err = ubifs_leb_read(c, lnum, buf, offs, c->nnode_sz, 1); in ubifs_read_nnode()
1247 ubifs_err(c, "error %d reading nnode at %d:%d", err, lnum, offs); in ubifs_read_nnode()
1266 int err, lnum, offs; in read_pnode() local
1270 offs = branch->offs; in read_pnode()
1292 err = ubifs_leb_read(c, lnum, buf, offs, c->pnode_sz, 1); in read_pnode()
1312 ubifs_err(c, "error %d reading pnode at %d:%d", err, lnum, offs); in read_pnode()
1821 err = ubifs_leb_read(c, branch->lnum, buf, branch->offs, in scan_get_nnode()
1889 ubifs_assert(branch->offs >= 0 && branch->offs < c->leb_size); in scan_get_pnode()
1890 err = ubifs_leb_read(c, branch->lnum, buf, branch->offs, in scan_get_pnode()