Lines Matching refs:allocated

67 	ssize_t	allocated;
83 fit = imin(count, ab->allocated - (ab->fixedcursor - ab->base));
102 fit = imin(count, ab->allocated - (ab->varcursor - ab->base));
108 fit = imin(extcount, ab->allocated - (ab->varcursor - ab->base));
149 space = ab->allocated - (ab->varcursor - ab->base);
163 if ((AB.allocated - (AB.fixedcursor - AB.base)) >= 4) { \
171 if ((AB.allocated - (AB.fixedcursor - AB.base)) >= 8) { \
869 ab.allocated = imin(uap->bufferSize, fixedsize + varsize);
870 if (ab.allocated > ATTR_MAX_BUFFER) {
872 VFS_DEBUG(ctx, vp, "ATTRLIST - ERROR: buffer size too large (%d limit %d)", ab.allocated, ATTR_MAX_BUFFER);
875 MALLOC(ab.base, char *, ab.allocated, M_TEMP, M_WAITOK);
878 VFS_DEBUG(ctx, vp, "ATTRLIST - ERROR: could not allocate %d for copy buffer", ab.allocated);
1154 panic("packed field size mismatch; allocated %ld but packed %ld for common %08x vol %08x",
1165 *(uint32_t *)ab.base = (uap->options & FSOPT_REPORT_FULLSIZE) ? ab.needed : imin(ab.allocated, ab.needed);
1177 error = copyout(ab.base, uap->attributeBuffer, ab.allocated);
1485 ab.allocated = fixedsize + varsize;
1486 if (ab.allocated > ATTR_MAX_BUFFER) {
1488 VFS_DEBUG(ctx, vp, "ATTRLIST - ERROR: buffer size too large (%d limit %d)", ab.allocated, ATTR_MAX_BUFFER);
1491 MALLOC(ab.base, char *, ab.allocated, M_TEMP, M_WAITOK);
1494 VFS_DEBUG(ctx, vp, "ATTRLIST - ERROR: could not allocate %d for copy buffer", ab.allocated);
1537 ab.needed = ab.allocated;
1942 panic("packed field size mismatch; allocated %ld but packed %ld for common %08x vol %08x",
1953 *(uint32_t *)ab.base = (uap->options & FSOPT_REPORT_FULLSIZE) ? ab.needed : imin(ab.allocated, ab.needed);
1968 error = copyout(ab.base, uap->attributeBuffer, imin(uap->bufferSize, ab.allocated));