• Home
  • Raw
  • Download

Lines Matching refs:iip

494 		ubifs_add_lpt_dirt(c, np->nbranch[nnode->iip].lnum,  in ubifs_add_nnode_dirt()
512 ubifs_add_lpt_dirt(c, pnode->parent->nbranch[pnode->iip].lnum, in add_pnode_dirt()
554 struct ubifs_nnode *parent, int iip) in calc_nnode_num_from_parent() argument
562 num |= (UBIFS_LPT_FANOUT + iip) << shft; in calc_nnode_num_from_parent()
579 struct ubifs_nnode *parent, int iip) in calc_pnode_num_from_parent() argument
589 num |= iip; in calc_pnode_num_from_parent()
1092 struct ubifs_nnode *parent, int iip) in validate_nnode() argument
1097 int num = calc_nnode_num_from_parent(c, parent, iip); in validate_nnode()
1136 struct ubifs_nnode *parent, int iip) in validate_pnode() argument
1141 int num = calc_pnode_num_from_parent(c, parent, iip); in validate_pnode()
1190 int ubifs_read_nnode(struct ubifs_info *c, struct ubifs_nnode *parent, int iip) in ubifs_read_nnode() argument
1198 branch = &parent->nbranch[iip]; in ubifs_read_nnode()
1218 nnode->num = calc_nnode_num_from_parent(c, parent, iip); in ubifs_read_nnode()
1227 err = validate_nnode(c, nnode, parent, iip); in ubifs_read_nnode()
1231 nnode->num = calc_nnode_num_from_parent(c, parent, iip); in ubifs_read_nnode()
1240 nnode->iip = iip; in ubifs_read_nnode()
1258 static int read_pnode(struct ubifs_info *c, struct ubifs_nnode *parent, int iip) in read_pnode() argument
1265 branch = &parent->nbranch[iip]; in read_pnode()
1281 pnode->num = calc_pnode_num_from_parent(c, parent, iip); in read_pnode()
1296 err = validate_pnode(c, pnode, parent, iip); in read_pnode()
1300 pnode->num = calc_pnode_num_from_parent(c, parent, iip); in read_pnode()
1303 pnode->iip = iip; in read_pnode()
1310 ubifs_dump_pnode(c, pnode, parent, iip); in read_pnode()
1312 ubifs_err(c, "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()
1467 pnode = ubifs_get_pnode(c, nnode, iip); in ubifs_lpt_lookup()
1470 iip = (i & (UBIFS_LPT_FANOUT - 1)); in ubifs_lpt_lookup()
1472 pnode->lprops[iip].free, pnode->lprops[iip].dirty, in ubifs_lpt_lookup()
1473 pnode->lprops[iip].flags); in ubifs_lpt_lookup()
1474 return &pnode->lprops[iip]; in ubifs_lpt_lookup()
1523 nnode->parent->nbranch[n->iip].nnode = n; in dirty_cow_nnode()
1566 pnode->parent->nbranch[p->iip].pnode = p; in dirty_cow_pnode()
1580 int err, i, h, iip, shft; in ubifs_lpt_lookup_dirty() local
1596 iip = ((i >> shft) & (UBIFS_LPT_FANOUT - 1)); in ubifs_lpt_lookup_dirty()
1598 nnode = ubifs_get_nnode(c, nnode, iip); in ubifs_lpt_lookup_dirty()
1605 iip = ((i >> shft) & (UBIFS_LPT_FANOUT - 1)); in ubifs_lpt_lookup_dirty()
1606 pnode = ubifs_get_pnode(c, nnode, iip); in ubifs_lpt_lookup_dirty()
1612 iip = (i & (UBIFS_LPT_FANOUT - 1)); in ubifs_lpt_lookup_dirty()
1614 pnode->lprops[iip].free, pnode->lprops[iip].dirty, in ubifs_lpt_lookup_dirty()
1615 pnode->lprops[iip].flags); in ubifs_lpt_lookup_dirty()
1617 return &pnode->lprops[iip]; in ubifs_lpt_lookup_dirty()
1800 struct ubifs_nnode *parent, int iip) in scan_get_nnode() argument
1807 branch = &parent->nbranch[iip]; in scan_get_nnode()
1826 nnode->num = calc_nnode_num_from_parent(c, parent, iip); in scan_get_nnode()
1836 err = validate_nnode(c, nnode, parent, iip); in scan_get_nnode()
1840 nnode->num = calc_nnode_num_from_parent(c, parent, iip); in scan_get_nnode()
1843 nnode->iip = iip; in scan_get_nnode()
1859 struct ubifs_nnode *parent, int iip) in scan_get_pnode() argument
1866 branch = &parent->nbranch[iip]; in scan_get_pnode()
1886 pnode->num = calc_pnode_num_from_parent(c, parent, iip); in scan_get_pnode()
1905 err = validate_pnode(c, pnode, parent, iip); in scan_get_pnode()
1909 pnode->num = calc_pnode_num_from_parent(c, parent, iip); in scan_get_pnode()
1911 pnode->iip = iip; in scan_get_pnode()
1929 int err = 0, i, h, iip, shft; in ubifs_lpt_scan_nolock() local
1962 iip = ((i >> shft) & (UBIFS_LPT_FANOUT - 1)); in ubifs_lpt_scan_nolock()
1964 nnode = scan_get_nnode(c, path + h, nnode, iip); in ubifs_lpt_scan_nolock()
1970 iip = ((i >> shft) & (UBIFS_LPT_FANOUT - 1)); in ubifs_lpt_scan_nolock()
1971 pnode = scan_get_pnode(c, path + h, nnode, iip); in ubifs_lpt_scan_nolock()
1976 iip = (i & (UBIFS_LPT_FANOUT - 1)); in ubifs_lpt_scan_nolock()
1980 struct ubifs_lprops *lprops = &pnode->lprops[iip]; in ubifs_lpt_scan_nolock()
2002 parent->nbranch[nnode->iip].nnode = nnode; in ubifs_lpt_scan_nolock()
2019 parent->nbranch[pnode->iip].pnode = pnode; in ubifs_lpt_scan_nolock()
2051 if (iip + 1 < UBIFS_LPT_FANOUT) { in ubifs_lpt_scan_nolock()
2053 iip += 1; in ubifs_lpt_scan_nolock()
2057 iip = pnode->iip; in ubifs_lpt_scan_nolock()
2062 if (iip + 1 < UBIFS_LPT_FANOUT) in ubifs_lpt_scan_nolock()
2064 iip = nnode->iip; in ubifs_lpt_scan_nolock()
2067 iip += 1; in ubifs_lpt_scan_nolock()
2071 nnode = scan_get_nnode(c, path + h, nnode, iip); in ubifs_lpt_scan_nolock()
2076 iip = 0; in ubifs_lpt_scan_nolock()
2078 pnode = scan_get_pnode(c, path + h, nnode, iip); in ubifs_lpt_scan_nolock()
2083 iip = 0; in ubifs_lpt_scan_nolock()
2105 pnode->num, col, pnode->parent->num, pnode->iip); in dbg_chk_pnode()
2233 int num, iip = 0, err; in dbg_check_lpt_nodes() local
2247 (nnode ? nnode->num : 0), cnode->iip); in dbg_check_lpt_nodes()
2251 while (iip < UBIFS_LPT_FANOUT) { in dbg_check_lpt_nodes()
2252 cn = nn->nbranch[iip].cnode; in dbg_check_lpt_nodes()
2257 col += iip; in dbg_check_lpt_nodes()
2258 iip = 0; in dbg_check_lpt_nodes()
2263 iip += 1; in dbg_check_lpt_nodes()
2265 if (iip < UBIFS_LPT_FANOUT) in dbg_check_lpt_nodes()
2279 iip = cnode->iip + 1; in dbg_check_lpt_nodes()