Lines Matching refs:leafidx

90 static int dbFindLeaf(dmtree_t * tp, int l2nb, int *leafidx);
1060 if (dp->tree.leafidx != cpu_to_le32(LEAFIND)) { in dbAllocNext()
1067 leaf = dp->tree.stree + le32_to_cpu(dp->tree.leafidx); in dbAllocNext()
1190 if (dp->tree.leafidx != cpu_to_le32(LEAFIND)) { in dbAllocNear()
1195 leaf = dp->tree.stree + le32_to_cpu(dp->tree.leafidx); in dbAllocNear()
1356 if (dcp->leafidx != cpu_to_le32(CTLLEAFIND)) { in dbAllocAG()
1415 ((s64) (ti - le32_to_cpu(dcp->leafidx))) << budmin; in dbAllocAG()
1656 int rc, leafidx, lev; in dbFindCtl() local
1678 if (dcp->leafidx != cpu_to_le32(CTLLEAFIND)) { in dbFindCtl()
1690 rc = dbFindLeaf((dmtree_t *) dcp, l2nb, &leafidx); in dbFindCtl()
1711 b += (((s64) leafidx) << budmin); in dbFindCtl()
1928 int leafidx, rc; in dbAllocDmapLev() local
1937 if (dbFindLeaf((dmtree_t *) & dp->tree, l2nb, &leafidx)) in dbAllocDmapLev()
1943 blkno = le64_to_cpu(dp->start) + (leafidx << L2DBWORD); in dbAllocDmapLev()
1949 if (dp->tree.stree[leafidx + LEAFIND] < BUDMIN) in dbAllocDmapLev()
1950 blkno += dbFindBits(le32_to_cpu(dp->wmap[leafidx]), l2nb); in dbAllocDmapLev()
2453 if (dcp->leafidx != cpu_to_le32(CTLLEAFIND)) { in dbAdjCtl()
2463 ti = leafno + le32_to_cpu(dcp->leafidx); in dbAdjCtl()
2903 static int dbFindLeaf(dmtree_t * tp, int l2nb, int *leafidx) in dbFindLeaf() argument
2939 *leafidx = x + n - le32_to_cpu(tp->dmt_leafidx); in dbFindLeaf()
3790 tp->leafidx = cpu_to_le32(LEAFIND); in dbInitDmapTree()
3798 cp = tp->stree + le32_to_cpu(tp->leafidx); in dbInitDmapTree()
3857 for (i = 0, cp = tp + le32_to_cpu(dtp->leafidx); in dbInitTree()
3878 for (child = le32_to_cpu(dtp->leafidx), in dbInitTree()
3907 dcp->leafidx = cpu_to_le32(CTLLEAFIND); in dbInitDmapCtl()