Lines Matching refs:xad

122 			xad_t * xad,
143 xad_t *xad; in xtLookup() local
190 xad = &p->xad[index]; in xtLookup()
191 xoff = offsetXAD(xad); in xtLookup()
192 xlen = lengthXAD(xad); in xtLookup()
194 xaddr = addressXAD(xad); in xtLookup()
197 *pflag = xad->flag; in xtLookup()
235 xad_t *xad; in xtSearch() local
281 xad = &p->xad[index]; in xtSearch()
282 t64 = offsetXAD(xad); in xtSearch()
283 if (xoff < t64 + lengthXAD(xad)) { in xtSearch()
297 xad++; in xtSearch()
298 t64 = offsetXAD(xad); in xtSearch()
299 if (xoff < t64 + lengthXAD(xad)) { in xtSearch()
371 XT_CMP(cmp, xoff, &p->xad[index], t64); in xtSearch()
413 next = offsetXAD(&p->xad[index + 1]); in xtSearch()
430 next = offsetXAD(&p->xad[base]); in xtSearch()
497 bn = addressXAD(&p->xad[index]); in xtSearch()
536 xad_t *xad; in xtInsert() local
572 xad = &p->xad[index - 1]; in xtInsert()
573 hint = addressXAD(xad) + lengthXAD(xad) - 1; in xtInsert()
629 memmove(&p->xad[index + 1], &p->xad[index], in xtInsert()
633 xad = &p->xad[index]; in xtInsert()
634 XT_PUTENTRY(xad, xflag, xoff, xlen, xaddr); in xtInsert()
689 xad_t *xad; in xtSplitUp() local
719 memmove(&sp->xad[skip + 1], &sp->xad[skip], in xtSplitUp()
723 xad = &sp->xad[skip]; in xtSplitUp()
724 XT_PUTENTRY(xad, split->flag, split->off, split->len, in xtSplitUp()
845 split->off = offsetXAD(&rcp->xad[XTENTRYSTART]); in xtSplitUp()
886 memmove(&sp->xad[skip + 1], &sp->xad[skip], in xtSplitUp()
891 xad = &sp->xad[skip]; in xtSplitUp()
892 XT_PUTENTRY(xad, XAD_NEW, in xtSplitUp()
893 offsetXAD(&rcp->xad[XTENTRYSTART]), in xtSplitUp()
958 xad_t *xad; in xtSplitPage() local
1050 xad = &rp->xad[XTENTRYSTART]; in xtSplitPage()
1051 XT_PUTENTRY(xad, split->flag, split->off, split->len, in xtSplitPage()
1112 memmove(&rp->xad[XTENTRYSTART], &sp->xad[middle], in xtSplitPage()
1117 memmove(&sp->xad[skip + 1], &sp->xad[skip], in xtSplitPage()
1121 xad = &sp->xad[skip]; in xtSplitPage()
1122 XT_PUTENTRY(xad, split->flag, split->off, split->len, in xtSplitPage()
1141 memmove(&rp->xad[XTENTRYSTART], &sp->xad[middle], in xtSplitPage()
1146 xad = &rp->xad[n]; in xtSplitPage()
1147 XT_PUTENTRY(xad, split->flag, split->off, split->len, in xtSplitPage()
1152 memmove(&rp->xad[n + 1], &sp->xad[skip], in xtSplitPage()
1220 xad_t *xad; in xtSplitRoot() local
1273 memmove(&rp->xad[XTENTRYSTART], &sp->xad[XTENTRYSTART], in xtSplitRoot()
1283 memmove(&rp->xad[skip + 1], &rp->xad[skip], in xtSplitRoot()
1286 xad = &rp->xad[skip]; in xtSplitRoot()
1287 XT_PUTENTRY(xad, split->flag, split->off, split->len, split->addr); in xtSplitRoot()
1314 xad = &sp->xad[XTENTRYSTART]; in xtSplitRoot()
1315 XT_PUTENTRY(xad, XAD_NEW, 0, JFS_SBI(ip->i_sb)->nbperpage, rbn); in xtSplitRoot()
1360 xad_t *xad; in xtExtend() local
1381 xad = &p->xad[index]; in xtExtend()
1382 if ((offsetXAD(xad) + lengthXAD(xad)) != xoff) { in xtExtend()
1400 xlen = lengthXAD(xad) + xlen; in xtExtend()
1408 xoff = offsetXAD(xad) + MAXXLEN; in xtExtend()
1409 xaddr = addressXAD(xad) + MAXXLEN; in xtExtend()
1442 xad = &p->xad[XTENTRYSTART]; in xtExtend()
1443 bn = addressXAD(xad); in xtExtend()
1463 xad = &p->xad[index + 1]; in xtExtend()
1464 XT_PUTENTRY(xad, XAD_NEW, xoff, len, xaddr); in xtExtend()
1471 xad = &p->xad[index]; in xtExtend()
1478 XADlength(xad, xlen); in xtExtend()
1479 if (!(xad->flag & XAD_NEW)) in xtExtend()
1480 xad->flag |= XAD_EXTENDED; in xtExtend()
1523 xad_t *xad; in xtTailgate() local
1565 xad = &p->xad[index]; in xtTailgate()
1570 if ((llen = xoff - offsetXAD(xad)) == 0) in xtTailgate()
1607 xad = &p->xad[XTENTRYSTART]; in xtTailgate()
1608 bn = addressXAD(xad); in xtTailgate()
1628 xad = &p->xad[index + 1]; in xtTailgate()
1629 XT_PUTENTRY(xad, XAD_NEW, xoff, xlen, xaddr); in xtTailgate()
1636 xad = &p->xad[index]; in xtTailgate()
1643 rlen = lengthXAD(xad) - llen; in xtTailgate()
1644 if (!(xad->flag & XAD_NEW)) { in xtTailgate()
1650 PXDaddress(&pxdlock->pxd, addressXAD(xad) + llen); in xtTailgate()
1656 dbFree(ip, addressXAD(xad) + llen, (s64) rlen); in xtTailgate()
1660 XADlength(xad, llen); in xtTailgate()
1663 XT_PUTENTRY(xad, XAD_NEW, xoff, xlen, xaddr); in xtTailgate()
1702 xad_t *xad, *lxad, *rxad; in xtUpdate() local
1737 xad = &p->xad[index0]; in xtUpdate()
1738 xflag = xad->flag; in xtUpdate()
1739 xoff = offsetXAD(xad); in xtUpdate()
1740 xlen = lengthXAD(xad); in xtUpdate()
1741 xaddr = addressXAD(xad); in xtUpdate()
1766 *xad = *nxad; in xtUpdate()
1767 xad->flag = xflag & ~XAD_NOTRECORDED; in xtUpdate()
1787 lxad = &p->xad[index - 1]; in xtUpdate()
1807 XADoffset(xad, xoff + nxlen); in xtUpdate()
1808 XADlength(xad, xlen - nxlen); in xtUpdate()
1809 XADaddress(xad, xaddr + nxlen); in xtUpdate()
1815 memmove(&p->xad[index], &p->xad[index + 1], in xtUpdate()
1839 *xad = *nxad; in xtUpdate()
1840 xad->flag = xflag & ~XAD_NOTRECORDED; in xtUpdate()
1858 rxad = &p->xad[index + 1]; in xtUpdate()
1879 XADlength(xad, xlen - nxlen); in xtUpdate()
1883 memmove(&p->xad[index], &p->xad[index + 1], in xtUpdate()
1911 xad = &p->xad[index]; in xtUpdate()
1912 XADlength(xad, nxoff - xoff); in xtUpdate()
1940 xad = &p->xad[XTENTRYSTART]; in xtUpdate()
1941 bn = addressXAD(xad); in xtUpdate()
1968 memmove(&p->xad[newindex + 1], &p->xad[newindex], in xtUpdate()
1972 xad = &p->xad[newindex]; in xtUpdate()
1973 *xad = *nxad; in xtUpdate()
1974 xad->flag = xflag & ~XAD_NOTRECORDED; in xtUpdate()
2058 xad = &p->xad[index]; in xtUpdate()
2059 *xad = *nxad; in xtUpdate()
2060 xad->flag = xflag & ~XAD_NOTRECORDED; in xtUpdate()
2094 xad = &p->xad[XTENTRYSTART]; in xtUpdate()
2095 bn = addressXAD(xad); in xtUpdate()
2112 memmove(&p->xad[newindex + 1], &p->xad[newindex], in xtUpdate()
2116 xad = &p->xad[newindex]; in xtUpdate()
2117 XT_PUTENTRY(xad, xflag, xoff, xlen, xaddr); in xtUpdate()
2169 xad_t *xad; in xtAppend() local
2288 xad = &p->xad[index]; in xtAppend()
2289 XT_PUTENTRY(xad, xflag, xoff, xlen, xaddr); in xtAppend()
2376 memmove(&p->xad[index], &p->xad[index + 1], in xtDelete()
2514 memmove(&p->xad[index], &p->xad[index + 1], in xtDeleteUp()
2556 xad_t *xad; in xtRelocate() local
2603 xad = &pp->xad[index]; in xtRelocate()
2604 if (addressXAD(xad) != oxaddr || lengthXAD(xad) != xlen) { in xtRelocate()
2625 xad = &pp->xad[index]; in xtRelocate()
2636 if (xad->flag & XAD_NOTRECORDED) in xtRelocate()
2845 xad = &pp->xad[index]; in xtRelocate()
2846 xad->flag |= XAD_NEW; in xtRelocate()
2847 XADaddress(xad, nxaddr); in xtRelocate()
2878 static int xtSearchNode(struct inode *ip, xad_t * xad, /* required XAD entry */ in xtSearchNode() argument
2894 xoff = offsetXAD(xad); in xtSearchNode()
2895 xlen = lengthXAD(xad); in xtSearchNode()
2896 xaddr = addressXAD(xad); in xtSearchNode()
2932 XT_CMP(cmp, xoff, &p->xad[index], t64); in xtSearchNode()
2939 if (xaddr == addressXAD(&p->xad[index]) && in xtSearchNode()
2940 xoff == offsetXAD(&p->xad[index])) { in xtSearchNode()
2977 bn = addressXAD(&p->xad[index]); in xtSearchNode()
3157 xad_t *xad; in xtTruncate() local
3265 xad = &p->xad[index]; in xtTruncate()
3266 xoff = offsetXAD(xad); in xtTruncate()
3267 xlen = lengthXAD(xad); in xtTruncate()
3295 xad = &p->xad[index]; in xtTruncate()
3296 xoff = offsetXAD(xad); in xtTruncate()
3297 xlen = lengthXAD(xad); in xtTruncate()
3298 xaddr = addressXAD(xad); in xtTruncate()
3306 invalidate_xad_metapages(ip, *xad); in xtTruncate()
3348 XADlength(xad, len); in xtTruncate()
3394 xadlock.xdlist = &p->xad[nextindex]; in xtTruncate()
3425 xadlock.xdlist = &p->xad[XTENTRYSTART]; in xtTruncate()
3499 xadlock.xdlist = &p->xad[index + 1]; in xtTruncate()
3517 nfreed += lengthXAD(&p->xad[index]); in xtTruncate()
3571 xadlock.xdlist = &p->xad[XTENTRYSTART]; in xtTruncate()
3646 xad = &p->xad[index]; in xtTruncate()
3647 bn = addressXAD(xad); in xtTruncate()
3718 xad_t *xad; in xtTruncate_pmap() local
3775 xad = &p->xad[index]; in xtTruncate_pmap()
3776 xoff = offsetXAD(xad); in xtTruncate_pmap()
3777 xlen = lengthXAD(xad); in xtTruncate_pmap()
3846 xad = &p->xad[index]; in xtTruncate_pmap()
3847 bn = addressXAD(xad); in xtTruncate_pmap()