Lines Matching refs:nextindex
69 if ((le16_to_cpu((P)->header.nextindex) < XTENTRYSTART) ||\
70 (le16_to_cpu((P)->header.nextindex) > le16_to_cpu((P)->header.maxentry)) ||\
300 if (index == le16_to_cpu(p->header.nextindex)) { in xtLookupList()
383 if (index == le16_to_cpu(p->header.nextindex) - 1) { in xtLookupList()
444 if (index == le16_to_cpu(p->header.nextindex) - 1) { in xtLookupList()
552 le16_to_cpu(p->header.nextindex)) { in xtSearch()
568 le16_to_cpu(p->header.nextindex)) { in xtSearch()
608 if (p->header.nextindex == /* little-endian */ in xtSearch()
631 lim = le16_to_cpu(p->header.nextindex) - XTENTRYSTART; in xtSearch()
652 if (p->header.nextindex == in xtSearch()
707 if (p->header.nextindex == in xtSearch()
745 if (p->header.nextindex == p->header.maxentry) in xtSearch()
790 int index, nextindex; in xtInsert() local
847 nextindex = le16_to_cpu(p->header.nextindex); in xtInsert()
848 if (nextindex == le16_to_cpu(p->header.maxentry)) { in xtInsert()
878 if (index < nextindex) in xtInsert()
880 (nextindex - index) * sizeof(xad_t)); in xtInsert()
887 p->header.nextindex = in xtInsert()
888 cpu_to_le16(le16_to_cpu(p->header.nextindex) + 1); in xtInsert()
898 le16_to_cpu(p->header.nextindex) - xtlck->lwm.offset; in xtInsert()
938 int nextindex; /* next available entry index of p */ in xtSplitUp() local
968 nextindex = le16_to_cpu(sp->header.nextindex); in xtSplitUp()
969 if (skip < nextindex) in xtSplitUp()
971 (nextindex - skip) * sizeof(xad_t)); in xtSplitUp()
979 sp->header.nextindex = in xtSplitUp()
980 cpu_to_le16(le16_to_cpu(sp->header.nextindex) + 1); in xtSplitUp()
989 le16_to_cpu(sp->header.nextindex) - in xtSplitUp()
1088 nextindex = le16_to_cpu(sp->header.nextindex); in xtSplitUp()
1092 if (nextindex == le16_to_cpu(sp->header.maxentry)) { in xtSplitUp()
1137 if (skip < nextindex) in xtSplitUp()
1139 (nextindex - in xtSplitUp()
1149 sp->header.nextindex = in xtSplitUp()
1150 cpu_to_le16(le16_to_cpu(sp->header.nextindex) + in xtSplitUp()
1161 le16_to_cpu(sp->header.nextindex) - in xtSplitUp()
1245 rp->header.nextindex = cpu_to_le16(XTENTRYSTART); in xtSplitPage()
1297 rp->header.nextindex = cpu_to_le16(XTENTRYSTART + 1); in xtSplitPage()
1371 sp->header.nextindex = cpu_to_le16(middle + 1); in xtSplitPage()
1377 rp->header.nextindex = in xtSplitPage()
1401 sp->header.nextindex = cpu_to_le16(middle); in xtSplitPage()
1407 rp->header.nextindex = cpu_to_le16(XTENTRYSTART + in xtSplitPage()
1412 sxtlck->lwm.length = le16_to_cpu(sp->header.nextindex) - in xtSplitPage()
1416 rxtlck->lwm.length = le16_to_cpu(rp->header.nextindex) - in xtSplitPage()
1459 int skip, nextindex; in xtSplitRoot() local
1494 rp->header.nextindex = cpu_to_le16(XTENTRYSTART); in xtSplitRoot()
1504 nextindex = le16_to_cpu(sp->header.maxentry); in xtSplitRoot()
1506 (nextindex - XTENTRYSTART) << L2XTSLOTSIZE); in xtSplitRoot()
1514 if (skip != nextindex) in xtSplitRoot()
1516 (nextindex - skip) * sizeof(xad_t)); in xtSplitRoot()
1522 rp->header.nextindex = cpu_to_le16(nextindex + 1); in xtSplitRoot()
1528 xtlck->lwm.length = le16_to_cpu(rp->header.nextindex) - in xtSplitRoot()
1553 sp->header.nextindex = cpu_to_le16(XTENTRYSTART + 1); in xtSplitRoot()
1591 int index, nextindex, len; in xtExtend() local
1644 nextindex = le16_to_cpu(p->header.nextindex); in xtExtend()
1652 if (nextindex == le16_to_cpu(p->header.maxentry)) { in xtExtend()
1674 ASSERT(p->header.nextindex == in xtExtend()
1701 p->header.nextindex = in xtExtend()
1702 cpu_to_le16(le16_to_cpu(p->header.nextindex) + 1); in xtExtend()
1722 le16_to_cpu(p->header.nextindex) - xtlck->lwm.offset; in xtExtend()
1755 int index, nextindex, llen, rlen; in xtTailgate() local
1783 nextindex = le16_to_cpu(p->header.nextindex); in xtTailgate()
1784 if (index != nextindex - 1) { in xtTailgate()
1819 if (nextindex == le16_to_cpu(p->header.maxentry)) { in xtTailgate()
1841 ASSERT(p->header.nextindex == in xtTailgate()
1868 p->header.nextindex = in xtTailgate()
1869 cpu_to_le16(le16_to_cpu(p->header.nextindex) + 1); in xtTailgate()
1905 xtlck->lwm.length = le16_to_cpu(p->header.nextindex) - in xtTailgate()
1936 int index0, index, newindex, nextindex; in xtUpdate() local
1991 nextindex = le16_to_cpu(p->header.nextindex); in xtUpdate()
2051 if (index < nextindex - 1) in xtUpdate()
2053 (nextindex - index - in xtUpdate()
2056 p->header.nextindex = in xtUpdate()
2057 cpu_to_le16(le16_to_cpu(p->header.nextindex) - in xtUpdate()
2062 nextindex = le16_to_cpu(p->header.nextindex); in xtUpdate()
2088 if (newindex == nextindex) { in xtUpdate()
2121 (nextindex - index - 1) << L2XTSLOTSIZE); in xtUpdate()
2123 p->header.nextindex = in xtUpdate()
2124 cpu_to_le16(le16_to_cpu(p->header.nextindex) - in xtUpdate()
2152 if (nextindex == le16_to_cpu(p->header.maxentry)) { in xtUpdate()
2175 ASSERT(p->header.nextindex == in xtUpdate()
2197 le16_to_cpu(p->header.nextindex) + in xtUpdate()
2204 if (newindex < nextindex) in xtUpdate()
2206 (nextindex - newindex) << L2XTSLOTSIZE); in xtUpdate()
2214 p->header.nextindex = in xtUpdate()
2215 cpu_to_le16(le16_to_cpu(p->header.nextindex) + 1); in xtUpdate()
2235 le16_to_cpu(p->header.nextindex) - in xtUpdate()
2258 nextindex = le16_to_cpu(p->header.nextindex); in xtUpdate()
2264 if (nextindex == le16_to_cpu(p->header.maxentry)) { in xtUpdate()
2304 if (nextindex == le16_to_cpu(p->header.maxentry)) { in xtUpdate()
2330 ASSERT(p->header.nextindex == in xtUpdate()
2349 if (newindex < nextindex) in xtUpdate()
2351 (nextindex - newindex) << L2XTSLOTSIZE); in xtUpdate()
2358 p->header.nextindex = in xtUpdate()
2359 cpu_to_le16(le16_to_cpu(p->header.nextindex) + 1); in xtUpdate()
2366 xtlck->lwm.length = le16_to_cpu(p->header.nextindex) - in xtUpdate()
2404 int index, nextindex; in xtAppend() local
2450 nextindex = le16_to_cpu(p->header.nextindex); in xtAppend()
2451 if (nextindex < le16_to_cpu(p->header.maxentry)) in xtAppend()
2526 p->header.nextindex = in xtAppend()
2527 cpu_to_le16(le16_to_cpu(p->header.nextindex) + 1); in xtAppend()
2531 xtlck->lwm.length = le16_to_cpu(p->header.nextindex) - in xtAppend()
2569 int index, nextindex; in xtDelete() local
2589 nextindex = le16_to_cpu(p->header.nextindex); in xtDelete()
2590 p->header.nextindex = in xtDelete()
2591 cpu_to_le16(le16_to_cpu(p->header.nextindex) - 1); in xtDelete()
2596 if (p->header.nextindex == cpu_to_le16(XTENTRYSTART)) in xtDelete()
2611 if (index < nextindex - 1) in xtDelete()
2613 (nextindex - index - 1) * sizeof(xad_t)); in xtDelete()
2639 int index, nextindex; in xtDeleteUp() local
2653 fp->header.nextindex = cpu_to_le16(XTENTRYSTART); in xtDeleteUp()
2694 nextindex = le16_to_cpu(p->header.nextindex); in xtDeleteUp()
2700 if (nextindex == 1) { in xtDeleteUp()
2705 p->header.nextindex = in xtDeleteUp()
2749 if (index < nextindex - 1) in xtDeleteUp()
2751 (nextindex - index - in xtDeleteUp()
2754 p->header.nextindex = in xtDeleteUp()
2755 cpu_to_le16(le16_to_cpu(p->header.nextindex) - in xtDeleteUp()
3030 le16_to_cpu(p->header.nextindex) - xtlck->lwm.offset; in xtRelocate()
3090 xtlck->lwm.length = le16_to_cpu(pp->header.nextindex) - in xtRelocate()
3164 lim = le16_to_cpu(p->header.nextindex) - XTENTRYSTART; in xtSearchNode()
3314 p->header.nextindex = cpu_to_le16(XTENTRYSTART); in xtInitRoot()
3396 int index, nextindex; in xtTruncate() local
3477 index = le16_to_cpu(p->header.nextindex) - 1; in xtTruncate()
3527 xtlck->hwm.offset = le16_to_cpu(p->header.nextindex) - 1; in xtTruncate()
3576 nextindex = index; in xtTruncate()
3617 nextindex = index + 1; in xtTruncate()
3629 nextindex = index + 1; in xtTruncate()
3632 if (nextindex < le16_to_cpu(p->header.nextindex)) { in xtTruncate()
3634 xadlock.xdlist = &p->xad[nextindex]; in xtTruncate()
3636 le16_to_cpu(p->header.nextindex) - in xtTruncate()
3637 nextindex; in xtTruncate()
3641 p->header.nextindex = cpu_to_le16(nextindex); in xtTruncate()
3667 le16_to_cpu(p->header.nextindex) - XTENTRYSTART; in xtTruncate()
3674 p->header.nextindex = cpu_to_le16(XTENTRYSTART); in xtTruncate()
3721 if (index < le16_to_cpu(p->header.nextindex) - 1) { in xtTruncate()
3732 nextindex) - 1; in xtTruncate()
3741 le16_to_cpu(p->header.nextindex) - in xtTruncate()
3748 p->header.nextindex = cpu_to_le16(index + 1); in xtTruncate()
3806 le16_to_cpu(p->header.nextindex) - 1; in xtTruncate()
3813 le16_to_cpu(p->header.nextindex) - in xtTruncate()
3823 p->header.nextindex = cpu_to_le16(XTENTRYSTART); in xtTruncate()
3996 index = le16_to_cpu(p->header.nextindex) - 1; in xtTruncate_pmap()
4053 le16_to_cpu(p->header.nextindex) - 1; in xtTruncate_pmap()
4137 lastindex = le16_to_cpu(p->header.nextindex) - 1; in xtDisplayTree()
4233 le16_to_cpu(p->header.nextindex)); in xtDisplayPage()
4237 for (i = XTENTRYSTART, j = 1; i < le16_to_cpu(p->header.nextindex); in xtDisplayPage()
4304 index = le16_to_cpu(p->header.nextindex) - 1; in xtGather()