Lines Matching refs:nextindex
58 if ((le16_to_cpu((P)->header.nextindex) < XTENTRYSTART) || \
59 (le16_to_cpu((P)->header.nextindex) > \
280 le16_to_cpu(p->header.nextindex)) {
296 le16_to_cpu(p->header.nextindex)) {
321 /* (index == p->header.nextindex);
337 if (p->header.nextindex == /* little-endian */
363 lim = le16_to_cpu(p->header.nextindex) - XTENTRYSTART;
384 if (p->header.nextindex ==
412 if (index < le16_to_cpu(p->header.nextindex)-1)
429 if (base < le16_to_cpu(p->header.nextindex))
442 if (p->header.nextindex ==
483 if (p->header.nextindex == p->header.maxentry)
533 int index, nextindex;
595 nextindex = le16_to_cpu(p->header.nextindex);
596 if (nextindex == le16_to_cpu(p->header.maxentry)) {
628 if (index < nextindex)
630 (nextindex - index) * sizeof(xad_t));
637 le16_add_cpu(&p->header.nextindex, 1);
647 le16_to_cpu(p->header.nextindex) - xtlck->lwm.offset;
687 int nextindex; /* next available entry index of p */
717 nextindex = le16_to_cpu(sp->header.nextindex);
718 if (skip < nextindex)
720 (nextindex - skip) * sizeof(xad_t));
728 le16_add_cpu(&sp->header.nextindex, 1);
737 le16_to_cpu(sp->header.nextindex) -
836 nextindex = le16_to_cpu(sp->header.nextindex);
840 if (nextindex == le16_to_cpu(sp->header.maxentry)) {
885 if (skip < nextindex)
887 (nextindex -
897 le16_add_cpu(&sp->header.nextindex, 1);
907 le16_to_cpu(sp->header.nextindex) -
1002 rp->header.nextindex = cpu_to_le16(XTENTRYSTART);
1054 rp->header.nextindex = cpu_to_le16(XTENTRYSTART + 1);
1126 sp->header.nextindex = cpu_to_le16(middle + 1);
1132 rp->header.nextindex =
1156 sp->header.nextindex = cpu_to_le16(middle);
1162 rp->header.nextindex = cpu_to_le16(XTENTRYSTART +
1167 sxtlck->lwm.length = le16_to_cpu(sp->header.nextindex) -
1171 rxtlck->lwm.length = le16_to_cpu(rp->header.nextindex) -
1219 int skip, nextindex;
1262 rp->header.nextindex = cpu_to_le16(XTENTRYSTART);
1272 nextindex = le16_to_cpu(sp->header.maxentry);
1274 (nextindex - XTENTRYSTART) << L2XTSLOTSIZE);
1282 if (skip != nextindex)
1284 (nextindex - skip) * sizeof(xad_t));
1290 rp->header.nextindex = cpu_to_le16(nextindex + 1);
1296 xtlck->lwm.length = le16_to_cpu(rp->header.nextindex) -
1321 sp->header.nextindex = cpu_to_le16(XTENTRYSTART + 1);
1357 int index, nextindex, len;
1410 nextindex = le16_to_cpu(p->header.nextindex);
1418 if (nextindex == le16_to_cpu(p->header.maxentry)) {
1440 ASSERT(p->header.nextindex ==
1467 le16_add_cpu(&p->header.nextindex, 1);
1487 le16_to_cpu(p->header.nextindex) - xtlck->lwm.offset;
1520 int index, nextindex, llen, rlen;
1548 nextindex = le16_to_cpu(p->header.nextindex);
1549 if (index != nextindex - 1) {
1583 if (nextindex == le16_to_cpu(p->header.maxentry)) {
1605 ASSERT(p->header.nextindex ==
1632 le16_add_cpu(&p->header.nextindex, 1);
1668 xtlck->lwm.length = le16_to_cpu(p->header.nextindex) -
1699 int index0, index, newindex, nextindex;
1754 nextindex = le16_to_cpu(p->header.nextindex);
1814 if (index < nextindex - 1)
1816 (nextindex - index -
1819 p->header.nextindex =
1820 cpu_to_le16(le16_to_cpu(p->header.nextindex) -
1825 nextindex = le16_to_cpu(p->header.nextindex);
1851 if (newindex == nextindex) {
1884 (nextindex - index - 1) << L2XTSLOTSIZE);
1886 p->header.nextindex =
1887 cpu_to_le16(le16_to_cpu(p->header.nextindex) -
1915 if (nextindex == le16_to_cpu(p->header.maxentry)) {
1938 ASSERT(p->header.nextindex ==
1960 le16_to_cpu(p->header.nextindex) +
1967 if (newindex < nextindex)
1969 (nextindex - newindex) << L2XTSLOTSIZE);
1977 p->header.nextindex =
1978 cpu_to_le16(le16_to_cpu(p->header.nextindex) + 1);
1998 le16_to_cpu(p->header.nextindex) -
2021 nextindex = le16_to_cpu(p->header.nextindex);
2027 if (nextindex == le16_to_cpu(p->header.maxentry)) {
2066 if (nextindex == le16_to_cpu(p->header.maxentry)) {
2092 ASSERT(p->header.nextindex ==
2111 if (newindex < nextindex)
2113 (nextindex - newindex) << L2XTSLOTSIZE);
2120 p->header.nextindex =
2121 cpu_to_le16(le16_to_cpu(p->header.nextindex) + 1);
2128 xtlck->lwm.length = le16_to_cpu(p->header.nextindex) -
2166 int index, nextindex;
2216 nextindex = le16_to_cpu(p->header.nextindex);
2217 if (nextindex < le16_to_cpu(p->header.maxentry))
2292 le16_add_cpu(&p->header.nextindex, 1);
2296 xtlck->lwm.length = le16_to_cpu(p->header.nextindex) -
2334 int index, nextindex;
2354 nextindex = le16_to_cpu(p->header.nextindex);
2355 le16_add_cpu(&p->header.nextindex, -1);
2360 if (p->header.nextindex == cpu_to_le16(XTENTRYSTART))
2375 if (index < nextindex - 1)
2377 (nextindex - index - 1) * sizeof(xad_t));
2403 int index, nextindex;
2417 fp->header.nextindex = cpu_to_le16(XTENTRYSTART);
2458 nextindex = le16_to_cpu(p->header.nextindex);
2464 if (nextindex == 1) {
2469 p->header.nextindex =
2513 if (index < nextindex - 1)
2515 (nextindex - index -
2518 le16_add_cpu(&p->header.nextindex, -1);
2790 le16_to_cpu(p->header.nextindex) - xtlck->lwm.offset;
2850 xtlck->lwm.length = le16_to_cpu(pp->header.nextindex) -
2924 lim = le16_to_cpu(p->header.nextindex) - XTENTRYSTART;
3074 p->header.nextindex = cpu_to_le16(XTENTRYSTART);
3144 * in the page (nextindex is updated) for other use
3156 int index, nextindex;
3237 index = le16_to_cpu(p->header.nextindex) - 1;
3287 xtlck->hwm.offset = le16_to_cpu(p->header.nextindex) - 1;
3336 nextindex = index;
3377 nextindex = index + 1;
3389 nextindex = index + 1;
3392 if (nextindex < le16_to_cpu(p->header.nextindex)) {
3394 xadlock.xdlist = &p->xad[nextindex];
3396 le16_to_cpu(p->header.nextindex) -
3397 nextindex;
3401 p->header.nextindex = cpu_to_le16(nextindex);
3427 le16_to_cpu(p->header.nextindex) - XTENTRYSTART;
3434 p->header.nextindex = cpu_to_le16(XTENTRYSTART);
3481 if (index < le16_to_cpu(p->header.nextindex) - 1) {
3492 nextindex) - 1;
3501 le16_to_cpu(p->header.nextindex) -
3508 p->header.nextindex = cpu_to_le16(index + 1);
3566 le16_to_cpu(p->header.nextindex) - 1;
3573 le16_to_cpu(p->header.nextindex) -
3583 p->header.nextindex = cpu_to_le16(XTENTRYSTART);
3760 index = le16_to_cpu(p->header.nextindex) - 1;
3816 xtlck->hwm.offset = le16_to_cpu(p->header.nextindex) - 1;