Lines Matching defs:base
64 char *base;
81 fit = imin(count, ab->allocated - (ab->fixedcursor - ab->base));
100 fit = imin(count, ab->allocated - (ab->varcursor - ab->base));
106 fit = imin(extcount, ab->allocated - (ab->varcursor - ab->base));
147 space = ab->allocated - (ab->varcursor - ab->base);
161 if ((AB.allocated - (AB.fixedcursor - AB.base)) >= 4) { \
169 if ((AB.allocated - (AB.fixedcursor - AB.base)) >= 8) { \
526 ab.base = NULL;
713 MALLOC(ab.base, char *, ab.allocated, M_TEMP, M_WAITOK);
714 if (ab.base == NULL) {
723 ab.fixedcursor = ab.base + sizeof(uint32_t);
724 ab.varcursor = ab.base + fixedsize;
887 if ((ab.fixedcursor - ab.base) != fixedsize)
889 fixedsize, ab.fixedcursor - ab.base, alp->commonattr, alp->volattr);
890 if (ab.varcursor != (ab.base + ab.needed))
891 panic("packed variable field size mismatch; used %d but expected %ld", ab.varcursor - ab.base, ab.needed);
899 *(uint32_t *)ab.base = (uap->options & FSOPT_REPORT_FULLSIZE) ? ab.needed : imin(ab.allocated, ab.needed);
901 error = copyout(ab.base, uap->attributeBuffer, ab.allocated);
906 if (ab.base != NULL)
907 FREE(ab.base, M_TEMP);
939 ab.base = NULL;
1140 MALLOC(ab.base, char *, ab.allocated, M_TEMP, M_WAITOK);
1141 if (ab.base == NULL) {
1180 ab.fixedcursor = ab.base + sizeof(uint32_t);
1181 ab.varcursor = ab.base + fixedsize;
1276 fisize = imin(32, ab.allocated - (ab.fixedcursor - ab.base));
1479 if ((ab.fixedcursor - ab.base) != fixedsize)
1481 fixedsize, ab.fixedcursor - ab.base, al.commonattr, al.volattr);
1482 if (ab.varcursor != (ab.base + ab.needed))
1483 panic("packed variable field size mismatch; used %d but expected %ld", ab.varcursor - ab.base, ab.needed);
1491 *(uint32_t *)ab.base = (uap->options & FSOPT_REPORT_FULLSIZE) ? ab.needed : imin(ab.allocated, ab.needed);
1494 error = copyout(ab.base, uap->attributeBuffer, imin(uap->bufferSize, ab.allocated));
1503 if (ab.base != NULL)
1504 FREE(ab.base, M_TEMP);