Lines Matching refs:nextindex

58 		if ((le16_to_cpu((P)->header.nextindex) < XTENTRYSTART) || \
59 (le16_to_cpu((P)->header.nextindex) > \
269 le16_to_cpu(p->header.nextindex)) {
285 le16_to_cpu(p->header.nextindex)) {
310 /* (index == p->header.nextindex);
326 if (p->header.nextindex == /* little-endian */
352 lim = le16_to_cpu(p->header.nextindex) - XTENTRYSTART;
373 if (p->header.nextindex ==
401 if (index < le16_to_cpu(p->header.nextindex)-1)
418 if (base < le16_to_cpu(p->header.nextindex))
431 if (p->header.nextindex ==
472 if (p->header.nextindex == p->header.maxentry)
522 int index, nextindex;
584 nextindex = le16_to_cpu(p->header.nextindex);
585 if (nextindex == le16_to_cpu(p->header.maxentry)) {
617 if (index < nextindex)
619 (nextindex - index) * sizeof(xad_t));
626 le16_add_cpu(&p->header.nextindex, 1);
636 le16_to_cpu(p->header.nextindex) - xtlck->lwm.offset;
676 int nextindex; /* next available entry index of p */
706 nextindex = le16_to_cpu(sp->header.nextindex);
707 if (skip < nextindex)
709 (nextindex - skip) * sizeof(xad_t));
717 le16_add_cpu(&sp->header.nextindex, 1);
726 le16_to_cpu(sp->header.nextindex) -
825 nextindex = le16_to_cpu(sp->header.nextindex);
829 if (nextindex == le16_to_cpu(sp->header.maxentry)) {
874 if (skip < nextindex)
876 (nextindex -
886 le16_add_cpu(&sp->header.nextindex, 1);
896 le16_to_cpu(sp->header.nextindex) -
991 rp->header.nextindex = cpu_to_le16(XTENTRYSTART);
1043 rp->header.nextindex = cpu_to_le16(XTENTRYSTART + 1);
1115 sp->header.nextindex = cpu_to_le16(middle + 1);
1121 rp->header.nextindex =
1145 sp->header.nextindex = cpu_to_le16(middle);
1151 rp->header.nextindex = cpu_to_le16(XTENTRYSTART +
1156 sxtlck->lwm.length = le16_to_cpu(sp->header.nextindex) -
1160 rxtlck->lwm.length = le16_to_cpu(rp->header.nextindex) -
1208 int skip, nextindex;
1251 rp->header.nextindex = cpu_to_le16(XTENTRYSTART);
1261 nextindex = le16_to_cpu(sp->header.maxentry);
1263 (nextindex - XTENTRYSTART) << L2XTSLOTSIZE);
1271 if (skip != nextindex)
1273 (nextindex - skip) * sizeof(xad_t));
1279 rp->header.nextindex = cpu_to_le16(nextindex + 1);
1285 xtlck->lwm.length = le16_to_cpu(rp->header.nextindex) -
1310 sp->header.nextindex = cpu_to_le16(XTENTRYSTART + 1);
1346 int index, nextindex, len;
1399 nextindex = le16_to_cpu(p->header.nextindex);
1407 if (nextindex == le16_to_cpu(p->header.maxentry)) {
1429 ASSERT(p->header.nextindex ==
1456 le16_add_cpu(&p->header.nextindex, 1);
1476 le16_to_cpu(p->header.nextindex) - xtlck->lwm.offset;
1505 int index0, index, newindex, nextindex;
1560 nextindex = le16_to_cpu(p->header.nextindex);
1600 if (index < nextindex - 1)
1602 (nextindex - index -
1605 p->header.nextindex =
1606 cpu_to_le16(le16_to_cpu(p->header.nextindex) -
1611 nextindex = le16_to_cpu(p->header.nextindex);
1637 if (newindex == nextindex) {
1670 (nextindex - index - 1) << L2XTSLOTSIZE);
1672 p->header.nextindex =
1673 cpu_to_le16(le16_to_cpu(p->header.nextindex) -
1700 if (nextindex == le16_to_cpu(p->header.maxentry)) {
1723 ASSERT(p->header.nextindex ==
1745 le16_to_cpu(p->header.nextindex) +
1752 if (newindex < nextindex)
1754 (nextindex - newindex) << L2XTSLOTSIZE);
1762 p->header.nextindex =
1763 cpu_to_le16(le16_to_cpu(p->header.nextindex) + 1);
1783 le16_to_cpu(p->header.nextindex) -
1806 nextindex = le16_to_cpu(p->header.nextindex);
1812 if (nextindex == le16_to_cpu(p->header.maxentry)) {
1851 if (nextindex == le16_to_cpu(p->header.maxentry)) {
1877 ASSERT(p->header.nextindex ==
1896 if (newindex < nextindex)
1898 (nextindex - newindex) << L2XTSLOTSIZE);
1905 p->header.nextindex =
1906 cpu_to_le16(le16_to_cpu(p->header.nextindex) + 1);
1913 xtlck->lwm.length = le16_to_cpu(p->header.nextindex) -
1951 int index, nextindex;
2001 nextindex = le16_to_cpu(p->header.nextindex);
2002 if (nextindex < le16_to_cpu(p->header.maxentry))
2077 le16_add_cpu(&p->header.nextindex, 1);
2081 xtlck->lwm.length = le16_to_cpu(p->header.nextindex) -
2113 p->header.nextindex = cpu_to_le16(XTENTRYSTART);
2183 * in the page (nextindex is updated) for other use
2195 int index, nextindex;
2276 index = le16_to_cpu(p->header.nextindex) - 1;
2326 xtlck->hwm.offset = le16_to_cpu(p->header.nextindex) - 1;
2375 nextindex = index;
2416 nextindex = index + 1;
2428 nextindex = index + 1;
2431 if (nextindex < le16_to_cpu(p->header.nextindex)) {
2433 xadlock.xdlist = &p->xad[nextindex];
2435 le16_to_cpu(p->header.nextindex) -
2436 nextindex;
2440 p->header.nextindex = cpu_to_le16(nextindex);
2466 le16_to_cpu(p->header.nextindex) - XTENTRYSTART;
2473 p->header.nextindex = cpu_to_le16(XTENTRYSTART);
2520 if (index < le16_to_cpu(p->header.nextindex) - 1) {
2531 nextindex) - 1;
2540 le16_to_cpu(p->header.nextindex) -
2547 p->header.nextindex = cpu_to_le16(index + 1);
2605 le16_to_cpu(p->header.nextindex) - 1;
2612 le16_to_cpu(p->header.nextindex) -
2622 p->header.nextindex = cpu_to_le16(XTENTRYSTART);
2799 index = le16_to_cpu(p->header.nextindex) - 1;
2855 xtlck->hwm.offset = le16_to_cpu(p->header.nextindex) - 1;