Lines Matching refs:space
43 * The queue is flushed automatically on insufficient space or once the
48 * nine_queue_alloc returns NULL on insufficent space.
173 /* Gets a a pointer to slice of memory with size @space.
175 * Returns NULL on @space > NINE_QUEUE_SIZE. */
177 nine_queue_alloc(struct nine_queue_pool* ctx, unsigned space)
182 if (space > NINE_QUEUE_SIZE)
187 if ((cmdbuf->offset + space > NINE_QUEUE_SIZE) ||
195 DBG("cmdbuf=%p space=%d\n", cmdbuf, space);
197 /* at this pointer there's always a free queue with sufficient space available */
200 cmdbuf->offset += space;
201 cmdbuf->instr_size[cmdbuf->num_instr] = space;