Lines Matching refs:xad
131 xad_t * xad,
160 xad_t *xad; in xtLookup() local
206 xad = &p->xad[index]; in xtLookup()
207 xoff = offsetXAD(xad); in xtLookup()
208 xlen = lengthXAD(xad); in xtLookup()
210 xaddr = addressXAD(xad); in xtLookup()
213 *pflag = xad->flag; in xtLookup()
259 xad_t *xad, *pxd; in xtLookupList() local
267 pxd = xadlist->xad; in xtLookupList()
317 xad = &p->xad[index]; in xtLookupList()
323 xstart = offsetXAD(xad); in xtLookupList()
324 xlen = lengthXAD(xad); in xtLookupList()
326 xaddr = addressXAD(xad); in xtLookupList()
391 xad++; in xtLookupList()
404 XT_PUTENTRY(pxd, xad->flag, pstart, plen, paddr); in xtLookupList()
459 xad = &p->xad[index]; in xtLookupList()
462 xad++; in xtLookupList()
508 xad_t *xad; in xtSearch() local
553 xad = &p->xad[index]; in xtSearch()
554 t64 = offsetXAD(xad); in xtSearch()
555 if (xoff < t64 + lengthXAD(xad)) { in xtSearch()
569 xad++; in xtSearch()
570 t64 = offsetXAD(xad); in xtSearch()
571 if (xoff < t64 + lengthXAD(xad)) { in xtSearch()
639 XT_CMP(cmp, xoff, &p->xad[index], t64); in xtSearch()
754 bn = addressXAD(&p->xad[index]); in xtSearch()
793 xad_t *xad; in xtInsert() local
828 xad = &p->xad[index - 1]; in xtInsert()
829 hint = addressXAD(xad) + lengthXAD(xad) - 1; in xtInsert()
879 memmove(&p->xad[index + 1], &p->xad[index], in xtInsert()
883 xad = &p->xad[index]; in xtInsert()
884 XT_PUTENTRY(xad, xflag, xoff, xlen, xaddr); in xtInsert()
940 xad_t *xad; in xtSplitUp() local
970 memmove(&sp->xad[skip + 1], &sp->xad[skip], in xtSplitUp()
974 xad = &sp->xad[skip]; in xtSplitUp()
975 XT_PUTENTRY(xad, split->flag, split->off, split->len, in xtSplitUp()
1097 split->off = offsetXAD(&rcp->xad[XTENTRYSTART]); in xtSplitUp()
1138 memmove(&sp->xad[skip + 1], &sp->xad[skip], in xtSplitUp()
1143 xad = &sp->xad[skip]; in xtSplitUp()
1144 XT_PUTENTRY(xad, XAD_NEW, in xtSplitUp()
1145 offsetXAD(&rcp->xad[XTENTRYSTART]), in xtSplitUp()
1212 xad_t *xad; in xtSplitPage() local
1293 xad = &rp->xad[XTENTRYSTART]; in xtSplitPage()
1294 XT_PUTENTRY(xad, split->flag, split->off, split->len, in xtSplitPage()
1357 memmove(&rp->xad[XTENTRYSTART], &sp->xad[middle], in xtSplitPage()
1362 memmove(&sp->xad[skip + 1], &sp->xad[skip], in xtSplitPage()
1366 xad = &sp->xad[skip]; in xtSplitPage()
1367 XT_PUTENTRY(xad, split->flag, split->off, split->len, in xtSplitPage()
1386 memmove(&rp->xad[XTENTRYSTART], &sp->xad[middle], in xtSplitPage()
1391 xad = &rp->xad[n]; in xtSplitPage()
1392 XT_PUTENTRY(xad, split->flag, split->off, split->len, in xtSplitPage()
1397 memmove(&rp->xad[n + 1], &sp->xad[skip], in xtSplitPage()
1460 xad_t *xad; in xtSplitRoot() local
1505 memmove(&rp->xad[XTENTRYSTART], &sp->xad[XTENTRYSTART], in xtSplitRoot()
1515 memmove(&rp->xad[skip + 1], &rp->xad[skip], in xtSplitRoot()
1518 xad = &rp->xad[skip]; in xtSplitRoot()
1519 XT_PUTENTRY(xad, split->flag, split->off, split->len, split->addr); in xtSplitRoot()
1546 xad = &sp->xad[XTENTRYSTART]; in xtSplitRoot()
1547 XT_PUTENTRY(xad, XAD_NEW, 0, JFS_SBI(ip->i_sb)->nbperpage, rbn); in xtSplitRoot()
1594 xad_t *xad; in xtExtend() local
1615 xad = &p->xad[index]; in xtExtend()
1616 if ((offsetXAD(xad) + lengthXAD(xad)) != xoff) { in xtExtend()
1634 xlen = lengthXAD(xad) + xlen; in xtExtend()
1642 xoff = offsetXAD(xad) + MAXXLEN; in xtExtend()
1643 xaddr = addressXAD(xad) + MAXXLEN; in xtExtend()
1676 xad = &p->xad[XTENTRYSTART]; in xtExtend()
1677 bn = addressXAD(xad); in xtExtend()
1697 xad = &p->xad[index + 1]; in xtExtend()
1698 XT_PUTENTRY(xad, XAD_NEW, xoff, len, xaddr); in xtExtend()
1706 xad = &p->xad[index]; in xtExtend()
1713 XADlength(xad, xlen); in xtExtend()
1714 if (!(xad->flag & XAD_NEW)) in xtExtend()
1715 xad->flag |= XAD_EXTENDED; in xtExtend()
1758 xad_t *xad; in xtTailgate() local
1801 xad = &p->xad[index]; in xtTailgate()
1806 if ((llen = xoff - offsetXAD(xad)) == 0) in xtTailgate()
1843 xad = &p->xad[XTENTRYSTART]; in xtTailgate()
1844 bn = addressXAD(xad); in xtTailgate()
1864 xad = &p->xad[index + 1]; in xtTailgate()
1865 XT_PUTENTRY(xad, XAD_NEW, xoff, xlen, xaddr); in xtTailgate()
1873 xad = &p->xad[index]; in xtTailgate()
1880 rlen = lengthXAD(xad) - llen; in xtTailgate()
1881 if (!(xad->flag & XAD_NEW)) { in xtTailgate()
1887 PXDaddress(&pxdlock->pxd, addressXAD(xad) + llen); in xtTailgate()
1893 dbFree(ip, addressXAD(xad) + llen, (s64) rlen); in xtTailgate()
1897 XADlength(xad, llen); in xtTailgate()
1900 XT_PUTENTRY(xad, XAD_NEW, xoff, xlen, xaddr); in xtTailgate()
1939 xad_t *xad, *lxad, *rxad; in xtUpdate() local
1974 xad = &p->xad[index0]; in xtUpdate()
1975 xflag = xad->flag; in xtUpdate()
1976 xoff = offsetXAD(xad); in xtUpdate()
1977 xlen = lengthXAD(xad); in xtUpdate()
1978 xaddr = addressXAD(xad); in xtUpdate()
2003 *xad = *nxad; in xtUpdate()
2004 xad->flag = xflag & ~XAD_NOTRECORDED; in xtUpdate()
2024 lxad = &p->xad[index - 1]; in xtUpdate()
2044 XADoffset(xad, xoff + nxlen); in xtUpdate()
2045 XADlength(xad, xlen - nxlen); in xtUpdate()
2046 XADaddress(xad, xaddr + nxlen); in xtUpdate()
2052 memmove(&p->xad[index], &p->xad[index + 1], in xtUpdate()
2076 *xad = *nxad; in xtUpdate()
2077 xad->flag = xflag & ~XAD_NOTRECORDED; in xtUpdate()
2095 rxad = &p->xad[index + 1]; in xtUpdate()
2116 XADlength(xad, xlen - nxlen); in xtUpdate()
2120 memmove(&p->xad[index], &p->xad[index + 1], in xtUpdate()
2148 xad = &p->xad[index]; in xtUpdate()
2149 XADlength(xad, nxoff - xoff); in xtUpdate()
2177 xad = &p->xad[XTENTRYSTART]; in xtUpdate()
2178 bn = addressXAD(xad); in xtUpdate()
2205 memmove(&p->xad[newindex + 1], &p->xad[newindex], in xtUpdate()
2209 xad = &p->xad[newindex]; in xtUpdate()
2210 *xad = *nxad; in xtUpdate()
2211 xad->flag = xflag & ~XAD_NOTRECORDED; in xtUpdate()
2296 xad = &p->xad[index]; in xtUpdate()
2297 *xad = *nxad; in xtUpdate()
2298 xad->flag = xflag & ~XAD_NOTRECORDED; in xtUpdate()
2332 xad = &p->xad[XTENTRYSTART]; in xtUpdate()
2333 bn = addressXAD(xad); in xtUpdate()
2350 memmove(&p->xad[newindex + 1], &p->xad[newindex], in xtUpdate()
2354 xad = &p->xad[newindex]; in xtUpdate()
2355 XT_PUTENTRY(xad, xflag, xoff, xlen, xaddr); in xtUpdate()
2407 xad_t *xad; in xtAppend() local
2522 xad = &p->xad[index]; in xtAppend()
2523 XT_PUTENTRY(xad, xflag, xoff, xlen, xaddr); in xtAppend()
2612 memmove(&p->xad[index], &p->xad[index + 1], in xtDelete()
2750 memmove(&p->xad[index], &p->xad[index + 1], in xtDeleteUp()
2794 xad_t *xad; in xtRelocate() local
2841 xad = &pp->xad[index]; in xtRelocate()
2842 if (addressXAD(xad) != oxaddr || lengthXAD(xad) != xlen) { in xtRelocate()
2863 xad = &pp->xad[index]; in xtRelocate()
2874 if (xad->flag & XAD_NOTRECORDED) in xtRelocate()
3085 xad = &pp->xad[index]; in xtRelocate()
3086 xad->flag |= XAD_NEW; in xtRelocate()
3087 XADaddress(xad, nxaddr); in xtRelocate()
3118 static int xtSearchNode(struct inode *ip, xad_t * xad, /* required XAD entry */ in xtSearchNode() argument
3134 xoff = offsetXAD(xad); in xtSearchNode()
3135 xlen = lengthXAD(xad); in xtSearchNode()
3136 xaddr = addressXAD(xad); in xtSearchNode()
3172 XT_CMP(cmp, xoff, &p->xad[index], t64); in xtSearchNode()
3179 if (xaddr == addressXAD(&p->xad[index]) && in xtSearchNode()
3180 xoff == offsetXAD(&p->xad[index])) { in xtSearchNode()
3217 bn = addressXAD(&p->xad[index]); in xtSearchNode()
3397 xad_t *xad; in xtTruncate() local
3505 xad = &p->xad[index]; in xtTruncate()
3506 xoff = offsetXAD(xad); in xtTruncate()
3507 xlen = lengthXAD(xad); in xtTruncate()
3535 xad = &p->xad[index]; in xtTruncate()
3536 xoff = offsetXAD(xad); in xtTruncate()
3537 xlen = lengthXAD(xad); in xtTruncate()
3538 xaddr = addressXAD(xad); in xtTruncate()
3546 invalidate_xad_metapages(ip, *xad); in xtTruncate()
3588 XADlength(xad, len); in xtTruncate()
3634 xadlock.xdlist = &p->xad[nextindex]; in xtTruncate()
3665 xadlock.xdlist = &p->xad[XTENTRYSTART]; in xtTruncate()
3739 xadlock.xdlist = &p->xad[index + 1]; in xtTruncate()
3757 nfreed += lengthXAD(&p->xad[index]); in xtTruncate()
3811 xadlock.xdlist = &p->xad[XTENTRYSTART]; in xtTruncate()
3881 xad = &p->xad[index]; in xtTruncate()
3882 bn = addressXAD(xad); in xtTruncate()
3953 xad_t *xad; in xtTruncate_pmap() local
4011 xad = &p->xad[index]; in xtTruncate_pmap()
4012 xoff = offsetXAD(xad); in xtTruncate_pmap()
4013 xlen = lengthXAD(xad); in xtTruncate_pmap()
4078 xad = &p->xad[index]; in xtTruncate_pmap()
4079 bn = addressXAD(xad); in xtTruncate_pmap()
4109 xad_t *xad; in xtDisplayTree() local
4199 xad = &p->xad[index]; in xtDisplayTree()
4200 bn = addressXAD(xad); in xtDisplayTree()
4226 xad_t *xad; in xtDisplayPage() local
4236 xad = &p->xad[XTENTRYSTART]; in xtDisplayPage()
4238 i++, xad++, j++) { in xtDisplayPage()
4239 xoff = offsetXAD(xad); in xtDisplayPage()
4240 xaddr = addressXAD(xad); in xtDisplayPage()
4241 xlen = lengthXAD(xad); in xtDisplayPage()
4312 e = &p->xad[index]; in xtGather()
4386 e = &p->xad[index]; in xtGather()