Lines Matching refs:iip
499 ubifs_add_lpt_dirt(c, np->nbranch[nnode->iip].lnum, in ubifs_add_nnode_dirt()
517 ubifs_add_lpt_dirt(c, pnode->parent->nbranch[pnode->iip].lnum, in add_pnode_dirt()
559 struct ubifs_nnode *parent, int iip) in calc_nnode_num_from_parent() argument
567 num |= (UBIFS_LPT_FANOUT + iip) << shft; in calc_nnode_num_from_parent()
584 struct ubifs_nnode *parent, int iip) in calc_pnode_num_from_parent() argument
594 num |= iip; in calc_pnode_num_from_parent()
1097 struct ubifs_nnode *parent, int iip) in validate_nnode() argument
1102 int num = calc_nnode_num_from_parent(c, parent, iip); in validate_nnode()
1141 struct ubifs_nnode *parent, int iip) in validate_pnode() argument
1146 int num = calc_pnode_num_from_parent(c, parent, iip); in validate_pnode()
1195 int ubifs_read_nnode(struct ubifs_info *c, struct ubifs_nnode *parent, int iip) in ubifs_read_nnode() argument
1203 branch = &parent->nbranch[iip]; in ubifs_read_nnode()
1223 nnode->num = calc_nnode_num_from_parent(c, parent, iip); in ubifs_read_nnode()
1232 err = validate_nnode(c, nnode, parent, iip); in ubifs_read_nnode()
1236 nnode->num = calc_nnode_num_from_parent(c, parent, iip); in ubifs_read_nnode()
1245 nnode->iip = iip; in ubifs_read_nnode()
1262 static int read_pnode(struct ubifs_info *c, struct ubifs_nnode *parent, int iip) in read_pnode() argument
1269 branch = &parent->nbranch[iip]; in read_pnode()
1285 pnode->num = calc_pnode_num_from_parent(c, parent, iip); in read_pnode()
1300 err = validate_pnode(c, pnode, parent, iip); in read_pnode()
1304 pnode->num = calc_pnode_num_from_parent(c, parent, iip); in read_pnode()
1307 pnode->iip = iip; in read_pnode()
1314 dbg_dump_pnode(c, pnode, parent, iip); in read_pnode()
1315 dbg_msg("calc num: %d", calc_pnode_num_from_parent(c, parent, iip)); in read_pnode()
1394 struct ubifs_nnode *parent, int iip) in ubifs_get_nnode() argument
1400 branch = &parent->nbranch[iip]; in ubifs_get_nnode()
1404 err = ubifs_read_nnode(c, parent, iip); in ubifs_get_nnode()
1420 struct ubifs_nnode *parent, int iip) in ubifs_get_pnode() argument
1426 branch = &parent->nbranch[iip]; in ubifs_get_pnode()
1430 err = read_pnode(c, parent, iip); in ubifs_get_pnode()
1447 int err, i, h, iip, shft; in ubifs_lpt_lookup() local
1460 iip = ((i >> shft) & (UBIFS_LPT_FANOUT - 1)); in ubifs_lpt_lookup()
1462 nnode = ubifs_get_nnode(c, nnode, iip); in ubifs_lpt_lookup()
1466 iip = ((i >> shft) & (UBIFS_LPT_FANOUT - 1)); in ubifs_lpt_lookup()
1468 pnode = ubifs_get_pnode(c, nnode, iip); in ubifs_lpt_lookup()
1471 iip = (i & (UBIFS_LPT_FANOUT - 1)); in ubifs_lpt_lookup()
1473 pnode->lprops[iip].free, pnode->lprops[iip].dirty, in ubifs_lpt_lookup()
1474 pnode->lprops[iip].flags); in ubifs_lpt_lookup()
1475 return &pnode->lprops[iip]; in ubifs_lpt_lookup()
1524 nnode->parent->nbranch[n->iip].nnode = n; in dirty_cow_nnode()
1567 pnode->parent->nbranch[p->iip].pnode = p; in dirty_cow_pnode()
1581 int err, i, h, iip, shft; in ubifs_lpt_lookup_dirty() local
1597 iip = ((i >> shft) & (UBIFS_LPT_FANOUT - 1)); in ubifs_lpt_lookup_dirty()
1599 nnode = ubifs_get_nnode(c, nnode, iip); in ubifs_lpt_lookup_dirty()
1606 iip = ((i >> shft) & (UBIFS_LPT_FANOUT - 1)); in ubifs_lpt_lookup_dirty()
1608 pnode = ubifs_get_pnode(c, nnode, iip); in ubifs_lpt_lookup_dirty()
1614 iip = (i & (UBIFS_LPT_FANOUT - 1)); in ubifs_lpt_lookup_dirty()
1616 pnode->lprops[iip].free, pnode->lprops[iip].dirty, in ubifs_lpt_lookup_dirty()
1617 pnode->lprops[iip].flags); in ubifs_lpt_lookup_dirty()
1619 return &pnode->lprops[iip]; in ubifs_lpt_lookup_dirty()
1789 struct ubifs_nnode *parent, int iip) in scan_get_nnode() argument
1796 branch = &parent->nbranch[iip]; in scan_get_nnode()
1815 nnode->num = calc_nnode_num_from_parent(c, parent, iip); in scan_get_nnode()
1825 err = validate_nnode(c, nnode, parent, iip); in scan_get_nnode()
1829 nnode->num = calc_nnode_num_from_parent(c, parent, iip); in scan_get_nnode()
1832 nnode->iip = iip; in scan_get_nnode()
1848 struct ubifs_nnode *parent, int iip) in scan_get_pnode() argument
1855 branch = &parent->nbranch[iip]; in scan_get_pnode()
1875 pnode->num = calc_pnode_num_from_parent(c, parent, iip); in scan_get_pnode()
1894 err = validate_pnode(c, pnode, parent, iip); in scan_get_pnode()
1898 pnode->num = calc_pnode_num_from_parent(c, parent, iip); in scan_get_pnode()
1900 pnode->iip = iip; in scan_get_pnode()
1918 int err = 0, i, h, iip, shft; in ubifs_lpt_scan_nolock() local
1951 iip = ((i >> shft) & (UBIFS_LPT_FANOUT - 1)); in ubifs_lpt_scan_nolock()
1953 nnode = scan_get_nnode(c, path + h, nnode, iip); in ubifs_lpt_scan_nolock()
1959 iip = ((i >> shft) & (UBIFS_LPT_FANOUT - 1)); in ubifs_lpt_scan_nolock()
1961 pnode = scan_get_pnode(c, path + h, nnode, iip); in ubifs_lpt_scan_nolock()
1966 iip = (i & (UBIFS_LPT_FANOUT - 1)); in ubifs_lpt_scan_nolock()
1970 struct ubifs_lprops *lprops = &pnode->lprops[iip]; in ubifs_lpt_scan_nolock()
1993 parent->nbranch[nnode->iip].nnode = nnode; in ubifs_lpt_scan_nolock()
2011 parent->nbranch[pnode->iip].pnode = pnode; in ubifs_lpt_scan_nolock()
2043 if (iip + 1 < UBIFS_LPT_FANOUT) { in ubifs_lpt_scan_nolock()
2045 iip += 1; in ubifs_lpt_scan_nolock()
2049 iip = pnode->iip; in ubifs_lpt_scan_nolock()
2054 if (iip + 1 < UBIFS_LPT_FANOUT) in ubifs_lpt_scan_nolock()
2056 iip = nnode->iip; in ubifs_lpt_scan_nolock()
2059 iip += 1; in ubifs_lpt_scan_nolock()
2063 nnode = scan_get_nnode(c, path + h, nnode, iip); in ubifs_lpt_scan_nolock()
2068 iip = 0; in ubifs_lpt_scan_nolock()
2070 pnode = scan_get_pnode(c, path + h, nnode, iip); in ubifs_lpt_scan_nolock()
2075 iip = 0; in ubifs_lpt_scan_nolock()
2099 pnode->num, col, pnode->parent->num, pnode->iip); in dbg_chk_pnode()
2225 int num, iip = 0, err; in dbg_check_lpt_nodes() local
2239 (nnode ? nnode->num : 0), cnode->iip); in dbg_check_lpt_nodes()
2243 while (iip < UBIFS_LPT_FANOUT) { in dbg_check_lpt_nodes()
2244 cn = nn->nbranch[iip].cnode; in dbg_check_lpt_nodes()
2249 col += iip; in dbg_check_lpt_nodes()
2250 iip = 0; in dbg_check_lpt_nodes()
2255 iip += 1; in dbg_check_lpt_nodes()
2257 if (iip < UBIFS_LPT_FANOUT) in dbg_check_lpt_nodes()
2271 iip = cnode->iip + 1; in dbg_check_lpt_nodes()