• Home
  • Raw
  • Download

Lines Matching refs:header

71 		if ((le16_to_cpu((P)->header.nextindex) < XTENTRYSTART) || \
72 (le16_to_cpu((P)->header.nextindex) > \
73 le16_to_cpu((P)->header.maxentry)) || \
74 (le16_to_cpu((P)->header.maxentry) > \
291 (p->header.flag & BT_LEAF) && in xtSearch()
293 le16_to_cpu(p->header.nextindex)) { in xtSearch()
309 le16_to_cpu(p->header.nextindex)) { in xtSearch()
350 if (p->header.nextindex == /* little-endian */ in xtSearch()
351 p->header.maxentry) in xtSearch()
376 lim = le16_to_cpu(p->header.nextindex) - XTENTRYSTART; in xtSearch()
392 if (p->header.flag & BT_LEAF) { in xtSearch()
397 if (p->header.nextindex == in xtSearch()
398 p->header.maxentry) in xtSearch()
425 if (index < le16_to_cpu(p->header.nextindex)-1) in xtSearch()
442 if (base < le16_to_cpu(p->header.nextindex)) in xtSearch()
450 if (p->header.flag & BT_LEAF) { in xtSearch()
455 if (p->header.nextindex == in xtSearch()
456 p->header.maxentry) in xtSearch()
496 if (p->header.nextindex == p->header.maxentry) in xtSearch()
608 nextindex = le16_to_cpu(p->header.nextindex); in xtInsert()
609 if (nextindex == le16_to_cpu(p->header.maxentry)) { in xtInsert()
650 le16_add_cpu(&p->header.nextindex, 1); in xtInsert()
660 le16_to_cpu(p->header.nextindex) - xtlck->lwm.offset; in xtInsert()
715 if ((sp->header.flag & BT_ROOT) && (!S_ISDIR(ip->i_mode)) && in xtSplitUp()
716 (le16_to_cpu(sp->header.maxentry) < XTROOTMAXSLOT) && in xtSplitUp()
718 sp->header.maxentry = cpu_to_le16(XTROOTMAXSLOT); in xtSplitUp()
730 nextindex = le16_to_cpu(sp->header.nextindex); in xtSplitUp()
741 le16_add_cpu(&sp->header.nextindex, 1); in xtSplitUp()
750 le16_to_cpu(sp->header.nextindex) - in xtSplitUp()
793 rc = (sp->header.flag & BT_ROOT) ? in xtSplitUp()
849 nextindex = le16_to_cpu(sp->header.nextindex); in xtSplitUp()
853 if (nextindex == le16_to_cpu(sp->header.maxentry)) { in xtSplitUp()
869 rc = (sp->header.flag & BT_ROOT) ? in xtSplitUp()
910 le16_add_cpu(&sp->header.nextindex, 1); in xtSplitUp()
920 le16_to_cpu(sp->header.nextindex) - in xtSplitUp()
1012 rp->header.self = *pxd; in xtSplitPage()
1013 rp->header.flag = sp->header.flag & BT_TYPE; in xtSplitPage()
1014 rp->header.maxentry = sp->header.maxentry; /* little-endian */ in xtSplitPage()
1015 rp->header.nextindex = cpu_to_le16(XTENTRYSTART); in xtSplitPage()
1036 nextbn = le64_to_cpu(sp->header.next); in xtSplitPage()
1037 rp->header.next = cpu_to_le64(nextbn); in xtSplitPage()
1038 rp->header.prev = cpu_to_le64(addressPXD(&sp->header.self)); in xtSplitPage()
1039 sp->header.next = cpu_to_le64(rbn); in xtSplitPage()
1056 if (nextbn == 0 && skip == le16_to_cpu(sp->header.maxentry)) { in xtSplitPage()
1067 rp->header.nextindex = cpu_to_le16(XTENTRYSTART + 1); in xtSplitPage()
1104 p->header.prev = cpu_to_le64(rbn); in xtSplitPage()
1116 maxentry = le16_to_cpu(sp->header.maxentry); in xtSplitPage()
1139 sp->header.nextindex = cpu_to_le16(middle + 1); in xtSplitPage()
1145 rp->header.nextindex = in xtSplitPage()
1169 sp->header.nextindex = cpu_to_le16(middle); in xtSplitPage()
1175 rp->header.nextindex = cpu_to_le16(XTENTRYSTART + in xtSplitPage()
1180 sxtlck->lwm.length = le16_to_cpu(sp->header.nextindex) - in xtSplitPage()
1184 rxtlck->lwm.length = le16_to_cpu(rp->header.nextindex) - in xtSplitPage()
1272 rp->header.flag = in xtSplitRoot()
1273 (sp->header.flag & BT_LEAF) ? BT_LEAF : BT_INTERNAL; in xtSplitRoot()
1274 rp->header.self = *pxd; in xtSplitRoot()
1275 rp->header.nextindex = cpu_to_le16(XTENTRYSTART); in xtSplitRoot()
1276 rp->header.maxentry = cpu_to_le16(PSIZE >> L2XTSLOTSIZE); in xtSplitRoot()
1279 rp->header.next = 0; in xtSplitRoot()
1280 rp->header.prev = 0; in xtSplitRoot()
1285 nextindex = le16_to_cpu(sp->header.maxentry); in xtSplitRoot()
1303 rp->header.nextindex = cpu_to_le16(nextindex + 1); in xtSplitRoot()
1309 xtlck->lwm.length = le16_to_cpu(rp->header.nextindex) - in xtSplitRoot()
1331 sp->header.flag &= ~BT_LEAF; in xtSplitRoot()
1332 sp->header.flag |= BT_INTERNAL; in xtSplitRoot()
1334 sp->header.nextindex = cpu_to_le16(XTENTRYSTART + 1); in xtSplitRoot()
1423 nextindex = le16_to_cpu(p->header.nextindex); in xtExtend()
1431 if (nextindex == le16_to_cpu(p->header.maxentry)) { in xtExtend()
1452 if (p->header.flag & BT_INTERNAL) { in xtExtend()
1453 ASSERT(p->header.nextindex == in xtExtend()
1480 le16_add_cpu(&p->header.nextindex, 1); in xtExtend()
1500 le16_to_cpu(p->header.nextindex) - xtlck->lwm.offset; in xtExtend()
1561 nextindex = le16_to_cpu(p->header.nextindex); in xtTailgate()
1596 if (nextindex == le16_to_cpu(p->header.maxentry)) { in xtTailgate()
1617 if (p->header.flag & BT_INTERNAL) { in xtTailgate()
1618 ASSERT(p->header.nextindex == in xtTailgate()
1645 le16_add_cpu(&p->header.nextindex, 1); in xtTailgate()
1681 xtlck->lwm.length = le16_to_cpu(p->header.nextindex) - in xtTailgate()
1767 nextindex = le16_to_cpu(p->header.nextindex); in xtUpdate()
1832 p->header.nextindex = in xtUpdate()
1833 cpu_to_le16(le16_to_cpu(p->header.nextindex) - in xtUpdate()
1838 nextindex = le16_to_cpu(p->header.nextindex); in xtUpdate()
1899 p->header.nextindex = in xtUpdate()
1900 cpu_to_le16(le16_to_cpu(p->header.nextindex) - in xtUpdate()
1928 if (nextindex == le16_to_cpu(p->header.maxentry)) { in xtUpdate()
1950 if (p->header.flag & BT_INTERNAL) { in xtUpdate()
1951 ASSERT(p->header.nextindex == in xtUpdate()
1970 (le16_to_cpu(p->header.maxentry) >> 1)) { in xtUpdate()
1973 le16_to_cpu(p->header.nextindex) + in xtUpdate()
1990 p->header.nextindex = in xtUpdate()
1991 cpu_to_le16(le16_to_cpu(p->header.nextindex) + 1); in xtUpdate()
2011 le16_to_cpu(p->header.nextindex) - in xtUpdate()
2015 bn = le64_to_cpu(p->header.next); in xtUpdate()
2034 nextindex = le16_to_cpu(p->header.nextindex); in xtUpdate()
2040 if (nextindex == le16_to_cpu(p->header.maxentry)) { in xtUpdate()
2079 if (nextindex == le16_to_cpu(p->header.maxentry)) { in xtUpdate()
2104 if (p->header.flag & BT_INTERNAL) { in xtUpdate()
2105 ASSERT(p->header.nextindex == in xtUpdate()
2133 p->header.nextindex = in xtUpdate()
2134 cpu_to_le16(le16_to_cpu(p->header.nextindex) + 1); in xtUpdate()
2141 xtlck->lwm.length = le16_to_cpu(p->header.nextindex) - in xtUpdate()
2229 nextindex = le16_to_cpu(p->header.nextindex); in xtAppend()
2230 if (nextindex < le16_to_cpu(p->header.maxentry)) in xtAppend()
2305 le16_add_cpu(&p->header.nextindex, 1); in xtAppend()
2309 xtlck->lwm.length = le16_to_cpu(p->header.nextindex) - in xtAppend()
2367 nextindex = le16_to_cpu(p->header.nextindex); in xtDelete()
2368 le16_add_cpu(&p->header.nextindex, -1); in xtDelete()
2373 if (p->header.nextindex == cpu_to_le16(XTENTRYSTART)) in xtDelete()
2426 if (fp->header.flag & BT_ROOT) { in xtDeleteUp()
2428 fp->header.flag &= ~BT_INTERNAL; in xtDeleteUp()
2429 fp->header.flag |= BT_LEAF; in xtDeleteUp()
2430 fp->header.nextindex = cpu_to_le16(XTENTRYSTART); in xtDeleteUp()
2445 xaddr = addressPXD(&fp->header.self); in xtDeleteUp()
2446 xlen = lengthPXD(&fp->header.self); in xtDeleteUp()
2471 nextindex = le16_to_cpu(p->header.nextindex); in xtDeleteUp()
2478 if (p->header.flag & BT_ROOT) { in xtDeleteUp()
2480 p->header.flag &= ~BT_INTERNAL; in xtDeleteUp()
2481 p->header.flag |= BT_LEAF; in xtDeleteUp()
2482 p->header.nextindex = in xtDeleteUp()
2493 xaddr = addressPXD(&p->header.self); in xtDeleteUp()
2531 le16_add_cpu(&p->header.nextindex, -1); in xtDeleteUp()
2729 if (p->header.next) { in xtRelocate()
2730 nextbn = le64_to_cpu(p->header.next); in xtRelocate()
2740 if (p->header.prev) { in xtRelocate()
2741 prevbn = le64_to_cpu(p->header.prev); in xtRelocate()
2760 lp->header.next = cpu_to_le64(nxaddr); in xtRelocate()
2767 rp->header.prev = cpu_to_le64(nxaddr); in xtRelocate()
2798 pxd = &p->header.self; in xtRelocate()
2803 le16_to_cpu(p->header.nextindex) - xtlck->lwm.offset; in xtRelocate()
2863 xtlck->lwm.length = le16_to_cpu(pp->header.nextindex) - in xtRelocate()
2932 if (p->header.flag & BT_LEAF) { in xtSearchNode()
2937 lim = le16_to_cpu(p->header.nextindex) - XTENTRYSTART; in xtSearchNode()
3018 nextbn = le64_to_cpu(p->header.next); in xtRelink()
3019 prevbn = le64_to_cpu(p->header.prev); in xtRelink()
3037 p->header.prev = cpu_to_le64(prevbn); in xtRelink()
3058 p->header.next = le64_to_cpu(nextbn); in xtRelink()
3086 p->header.flag = DXD_INDEX | BT_ROOT | BT_LEAF; in xtInitRoot()
3087 p->header.nextindex = cpu_to_le16(XTENTRYSTART); in xtInitRoot()
3090 p->header.maxentry = cpu_to_le16(XTROOTINITSLOT_DIR); in xtInitRoot()
3092 p->header.maxentry = cpu_to_le16(XTROOTINITSLOT); in xtInitRoot()
3250 index = le16_to_cpu(p->header.nextindex) - 1; in xtTruncate()
3257 if (p->header.next) { in xtTruncate()
3266 p->header.next = 0; in xtTruncate()
3269 if (p->header.flag & BT_INTERNAL) in xtTruncate()
3300 xtlck->hwm.offset = le16_to_cpu(p->header.nextindex) - 1; in xtTruncate()
3405 if (nextindex < le16_to_cpu(p->header.nextindex)) { in xtTruncate()
3409 le16_to_cpu(p->header.nextindex) - in xtTruncate()
3414 p->header.nextindex = cpu_to_le16(nextindex); in xtTruncate()
3440 le16_to_cpu(p->header.nextindex) - XTENTRYSTART; in xtTruncate()
3444 if (p->header.flag & BT_ROOT) { in xtTruncate()
3445 p->header.flag &= ~BT_INTERNAL; in xtTruncate()
3446 p->header.flag |= BT_LEAF; in xtTruncate()
3447 p->header.nextindex = cpu_to_le16(XTENTRYSTART); in xtTruncate()
3494 if (index < le16_to_cpu(p->header.nextindex) - 1) { in xtTruncate()
3504 le16_to_cpu(p->header. in xtTruncate()
3514 le16_to_cpu(p->header.nextindex) - in xtTruncate()
3521 p->header.nextindex = cpu_to_le16(index + 1); in xtTruncate()
3579 le16_to_cpu(p->header.nextindex) - 1; in xtTruncate()
3586 le16_to_cpu(p->header.nextindex) - in xtTruncate()
3593 if (p->header.flag & BT_ROOT) { in xtTruncate()
3594 p->header.flag &= ~BT_INTERNAL; in xtTruncate()
3595 p->header.flag |= BT_LEAF; in xtTruncate()
3596 p->header.nextindex = cpu_to_le16(XTENTRYSTART); in xtTruncate()
3597 if (le16_to_cpu(p->header.maxentry) == XTROOTMAXSLOT) { in xtTruncate()
3602 p->header.maxentry = in xtTruncate()
3773 index = le16_to_cpu(p->header.nextindex) - 1; in xtTruncate_pmap()
3775 if (p->header.flag & BT_INTERNAL) in xtTruncate_pmap()
3829 xtlck->hwm.offset = le16_to_cpu(p->header.nextindex) - 1; in xtTruncate_pmap()
3834 if (p->header.flag & BT_ROOT) { in xtTruncate_pmap()