• Home
  • Raw
  • Download

Lines Matching refs:parent

486 	struct ubifs_nnode *np = nnode->parent;  in ubifs_add_nnode_dirt()
507 ubifs_add_lpt_dirt(c, pnode->parent->nbranch[pnode->iip].lnum, in add_pnode_dirt()
549 struct ubifs_nnode *parent, int iip) in calc_nnode_num_from_parent() argument
553 if (!parent) in calc_nnode_num_from_parent()
555 shft = (c->lpt_hght - parent->level) * UBIFS_LPT_FANOUT_SHIFT; in calc_nnode_num_from_parent()
556 num = parent->num ^ (1 << shft); in calc_nnode_num_from_parent()
574 struct ubifs_nnode *parent, int iip) in calc_pnode_num_from_parent() argument
576 int i, n = c->lpt_hght - 1, pnum = parent->num, num = 0; in calc_pnode_num_from_parent()
1105 struct ubifs_nnode *parent, int iip) in validate_nnode() argument
1110 int num = calc_nnode_num_from_parent(c, parent, iip); in validate_nnode()
1115 lvl = parent ? parent->level - 1 : c->lpt_hght; in validate_nnode()
1149 struct ubifs_nnode *parent, int iip) in validate_pnode() argument
1154 int num = calc_pnode_num_from_parent(c, parent, iip); in validate_pnode()
1203 int ubifs_read_nnode(struct ubifs_info *c, struct ubifs_nnode *parent, int iip) in ubifs_read_nnode() argument
1210 if (parent) { in ubifs_read_nnode()
1211 branch = &parent->nbranch[iip]; in ubifs_read_nnode()
1231 nnode->num = calc_nnode_num_from_parent(c, parent, iip); in ubifs_read_nnode()
1240 err = validate_nnode(c, nnode, parent, iip); in ubifs_read_nnode()
1244 nnode->num = calc_nnode_num_from_parent(c, parent, iip); in ubifs_read_nnode()
1245 if (parent) { in ubifs_read_nnode()
1247 nnode->level = parent->level - 1; in ubifs_read_nnode()
1252 nnode->parent = parent; in ubifs_read_nnode()
1271 static int read_pnode(struct ubifs_info *c, struct ubifs_nnode *parent, int iip) in read_pnode() argument
1278 branch = &parent->nbranch[iip]; in read_pnode()
1294 pnode->num = calc_pnode_num_from_parent(c, parent, iip); in read_pnode()
1309 err = validate_pnode(c, pnode, parent, iip); in read_pnode()
1313 pnode->num = calc_pnode_num_from_parent(c, parent, iip); in read_pnode()
1315 pnode->parent = parent; in read_pnode()
1323 ubifs_dump_pnode(c, pnode, parent, iip); in read_pnode()
1325 ubifs_err(c, "calc num: %d", calc_pnode_num_from_parent(c, parent, iip)); in read_pnode()
1405 struct ubifs_nnode *parent, int iip) in ubifs_get_nnode() argument
1411 branch = &parent->nbranch[iip]; in ubifs_get_nnode()
1415 err = ubifs_read_nnode(c, parent, iip); in ubifs_get_nnode()
1431 struct ubifs_nnode *parent, int iip) in ubifs_get_pnode() argument
1437 branch = &parent->nbranch[iip]; in ubifs_get_pnode()
1441 err = read_pnode(c, parent, iip); in ubifs_get_pnode()
1540 branch->cnode->parent = n; in dirty_cow_nnode()
1548 if (nnode->parent) in dirty_cow_nnode()
1549 nnode->parent->nbranch[n->iip].nnode = n; in dirty_cow_nnode()
1591 pnode->parent->nbranch[p->iip].pnode = p; in dirty_cow_pnode()
1685 nnode = cnode->parent; in ubifs_lpt_calc_hash()
1952 struct ubifs_nnode *parent, int iip) in scan_get_nnode() argument
1959 branch = &parent->nbranch[iip]; in scan_get_nnode()
1978 nnode->num = calc_nnode_num_from_parent(c, parent, iip); in scan_get_nnode()
1988 err = validate_nnode(c, nnode, parent, iip); in scan_get_nnode()
1992 nnode->num = calc_nnode_num_from_parent(c, parent, iip); in scan_get_nnode()
1993 nnode->level = parent->level - 1; in scan_get_nnode()
1994 nnode->parent = parent; in scan_get_nnode()
2011 struct ubifs_nnode *parent, int iip) in scan_get_pnode() argument
2018 branch = &parent->nbranch[iip]; in scan_get_pnode()
2038 pnode->num = calc_pnode_num_from_parent(c, parent, iip); in scan_get_pnode()
2057 err = validate_pnode(c, pnode, parent, iip); in scan_get_pnode()
2061 pnode->num = calc_pnode_num_from_parent(c, parent, iip); in scan_get_pnode()
2062 pnode->parent = parent; in scan_get_pnode()
2144 struct ubifs_nnode *parent; in ubifs_lpt_scan_nolock() local
2153 parent = nnode->parent; in ubifs_lpt_scan_nolock()
2154 parent->nbranch[nnode->iip].nnode = nnode; in ubifs_lpt_scan_nolock()
2157 path[h + 1].cnode.parent = nnode; in ubifs_lpt_scan_nolock()
2163 struct ubifs_nnode *parent; in ubifs_lpt_scan_nolock() local
2170 parent = pnode->parent; in ubifs_lpt_scan_nolock()
2171 parent->nbranch[pnode->iip].pnode = pnode; in ubifs_lpt_scan_nolock()
2257 pnode->num, col, pnode->parent->num, pnode->iip); in dbg_chk_pnode()
2392 nnode = cnode->parent; in dbg_check_lpt_nodes()