Lines Matching refs:xad
132 xad_t *xad; in xtLookup() local
179 xad = &p->xad[index]; in xtLookup()
180 xoff = offsetXAD(xad); in xtLookup()
181 xlen = lengthXAD(xad); in xtLookup()
183 xaddr = addressXAD(xad); in xtLookup()
186 *pflag = xad->flag; in xtLookup()
224 xad_t *xad; in xtSearch() local
270 xad = &p->xad[index]; in xtSearch()
271 t64 = offsetXAD(xad); in xtSearch()
272 if (xoff < t64 + lengthXAD(xad)) { in xtSearch()
286 xad++; in xtSearch()
287 t64 = offsetXAD(xad); in xtSearch()
288 if (xoff < t64 + lengthXAD(xad)) { in xtSearch()
360 XT_CMP(cmp, xoff, &p->xad[index], t64); in xtSearch()
402 next = offsetXAD(&p->xad[index + 1]); in xtSearch()
419 next = offsetXAD(&p->xad[base]); in xtSearch()
486 bn = addressXAD(&p->xad[index]); in xtSearch()
525 xad_t *xad; in xtInsert() local
561 xad = &p->xad[index - 1]; in xtInsert()
562 hint = addressXAD(xad) + lengthXAD(xad) - 1; in xtInsert()
618 memmove(&p->xad[index + 1], &p->xad[index], in xtInsert()
622 xad = &p->xad[index]; in xtInsert()
623 XT_PUTENTRY(xad, xflag, xoff, xlen, xaddr); in xtInsert()
678 xad_t *xad; in xtSplitUp() local
708 memmove(&sp->xad[skip + 1], &sp->xad[skip], in xtSplitUp()
712 xad = &sp->xad[skip]; in xtSplitUp()
713 XT_PUTENTRY(xad, split->flag, split->off, split->len, in xtSplitUp()
834 split->off = offsetXAD(&rcp->xad[XTENTRYSTART]); in xtSplitUp()
875 memmove(&sp->xad[skip + 1], &sp->xad[skip], in xtSplitUp()
880 xad = &sp->xad[skip]; in xtSplitUp()
881 XT_PUTENTRY(xad, XAD_NEW, in xtSplitUp()
882 offsetXAD(&rcp->xad[XTENTRYSTART]), in xtSplitUp()
947 xad_t *xad; in xtSplitPage() local
1039 xad = &rp->xad[XTENTRYSTART]; in xtSplitPage()
1040 XT_PUTENTRY(xad, split->flag, split->off, split->len, in xtSplitPage()
1101 memmove(&rp->xad[XTENTRYSTART], &sp->xad[middle], in xtSplitPage()
1106 memmove(&sp->xad[skip + 1], &sp->xad[skip], in xtSplitPage()
1110 xad = &sp->xad[skip]; in xtSplitPage()
1111 XT_PUTENTRY(xad, split->flag, split->off, split->len, in xtSplitPage()
1130 memmove(&rp->xad[XTENTRYSTART], &sp->xad[middle], in xtSplitPage()
1135 xad = &rp->xad[n]; in xtSplitPage()
1136 XT_PUTENTRY(xad, split->flag, split->off, split->len, in xtSplitPage()
1141 memmove(&rp->xad[n + 1], &sp->xad[skip], in xtSplitPage()
1209 xad_t *xad; in xtSplitRoot() local
1262 memmove(&rp->xad[XTENTRYSTART], &sp->xad[XTENTRYSTART], in xtSplitRoot()
1272 memmove(&rp->xad[skip + 1], &rp->xad[skip], in xtSplitRoot()
1275 xad = &rp->xad[skip]; in xtSplitRoot()
1276 XT_PUTENTRY(xad, split->flag, split->off, split->len, split->addr); in xtSplitRoot()
1303 xad = &sp->xad[XTENTRYSTART]; in xtSplitRoot()
1304 XT_PUTENTRY(xad, XAD_NEW, 0, JFS_SBI(ip->i_sb)->nbperpage, rbn); in xtSplitRoot()
1349 xad_t *xad; in xtExtend() local
1370 xad = &p->xad[index]; in xtExtend()
1371 if ((offsetXAD(xad) + lengthXAD(xad)) != xoff) { in xtExtend()
1389 xlen = lengthXAD(xad) + xlen; in xtExtend()
1397 xoff = offsetXAD(xad) + MAXXLEN; in xtExtend()
1398 xaddr = addressXAD(xad) + MAXXLEN; in xtExtend()
1431 xad = &p->xad[XTENTRYSTART]; in xtExtend()
1432 bn = addressXAD(xad); in xtExtend()
1452 xad = &p->xad[index + 1]; in xtExtend()
1453 XT_PUTENTRY(xad, XAD_NEW, xoff, len, xaddr); in xtExtend()
1460 xad = &p->xad[index]; in xtExtend()
1467 XADlength(xad, xlen); in xtExtend()
1468 if (!(xad->flag & XAD_NEW)) in xtExtend()
1469 xad->flag |= XAD_EXTENDED; in xtExtend()
1508 xad_t *xad, *lxad, *rxad; in xtUpdate() local
1543 xad = &p->xad[index0]; in xtUpdate()
1544 xflag = xad->flag; in xtUpdate()
1545 xoff = offsetXAD(xad); in xtUpdate()
1546 xlen = lengthXAD(xad); in xtUpdate()
1547 xaddr = addressXAD(xad); in xtUpdate()
1573 lxad = &p->xad[index - 1]; in xtUpdate()
1593 XADoffset(xad, xoff + nxlen); in xtUpdate()
1594 XADlength(xad, xlen - nxlen); in xtUpdate()
1595 XADaddress(xad, xaddr + nxlen); in xtUpdate()
1601 memmove(&p->xad[index], &p->xad[index + 1], in xtUpdate()
1625 *xad = *nxad; in xtUpdate()
1626 xad->flag = xflag & ~XAD_NOTRECORDED; in xtUpdate()
1644 rxad = &p->xad[index + 1]; in xtUpdate()
1665 XADlength(xad, xlen - nxlen); in xtUpdate()
1669 memmove(&p->xad[index], &p->xad[index + 1], in xtUpdate()
1696 xad = &p->xad[index]; in xtUpdate()
1697 XADlength(xad, nxoff - xoff); in xtUpdate()
1725 xad = &p->xad[XTENTRYSTART]; in xtUpdate()
1726 bn = addressXAD(xad); in xtUpdate()
1753 memmove(&p->xad[newindex + 1], &p->xad[newindex], in xtUpdate()
1757 xad = &p->xad[newindex]; in xtUpdate()
1758 *xad = *nxad; in xtUpdate()
1759 xad->flag = xflag & ~XAD_NOTRECORDED; in xtUpdate()
1843 xad = &p->xad[index]; in xtUpdate()
1844 *xad = *nxad; in xtUpdate()
1845 xad->flag = xflag & ~XAD_NOTRECORDED; in xtUpdate()
1879 xad = &p->xad[XTENTRYSTART]; in xtUpdate()
1880 bn = addressXAD(xad); in xtUpdate()
1897 memmove(&p->xad[newindex + 1], &p->xad[newindex], in xtUpdate()
1901 xad = &p->xad[newindex]; in xtUpdate()
1902 XT_PUTENTRY(xad, xflag, xoff, xlen, xaddr); in xtUpdate()
1954 xad_t *xad; in xtAppend() local
2073 xad = &p->xad[index]; in xtAppend()
2074 XT_PUTENTRY(xad, xflag, xoff, xlen, xaddr); in xtAppend()
2196 xad_t *xad; in xtTruncate() local
2304 xad = &p->xad[index]; in xtTruncate()
2305 xoff = offsetXAD(xad); in xtTruncate()
2306 xlen = lengthXAD(xad); in xtTruncate()
2334 xad = &p->xad[index]; in xtTruncate()
2335 xoff = offsetXAD(xad); in xtTruncate()
2336 xlen = lengthXAD(xad); in xtTruncate()
2337 xaddr = addressXAD(xad); in xtTruncate()
2345 invalidate_xad_metapages(ip, *xad); in xtTruncate()
2387 XADlength(xad, len); in xtTruncate()
2433 xadlock.xdlist = &p->xad[nextindex]; in xtTruncate()
2464 xadlock.xdlist = &p->xad[XTENTRYSTART]; in xtTruncate()
2538 xadlock.xdlist = &p->xad[index + 1]; in xtTruncate()
2556 nfreed += lengthXAD(&p->xad[index]); in xtTruncate()
2610 xadlock.xdlist = &p->xad[XTENTRYSTART]; in xtTruncate()
2685 xad = &p->xad[index]; in xtTruncate()
2686 bn = addressXAD(xad); in xtTruncate()
2757 xad_t *xad; in xtTruncate_pmap() local
2814 xad = &p->xad[index]; in xtTruncate_pmap()
2815 xoff = offsetXAD(xad); in xtTruncate_pmap()
2816 xlen = lengthXAD(xad); in xtTruncate_pmap()
2885 xad = &p->xad[index]; in xtTruncate_pmap()
2886 bn = addressXAD(xad); in xtTruncate_pmap()