Lines Matching refs:len
115 _objalloc_alloc (struct objalloc *o, unsigned long len)
119 if (len == 0)
120 len = 1;
122 len = (len + OBJALLOC_ALIGN - 1) &~ (OBJALLOC_ALIGN - 1);
124 if (len <= o->current_space)
126 o->current_ptr += len;
127 o->current_space -= len;
128 return (PTR) (o->current_ptr - len);
131 if (len >= BIG_REQUEST)
136 ret = (char *) malloc (CHUNK_HEADER_SIZE + len);
163 return objalloc_alloc (o, len);