Lines Matching full:buffers

242 	/* Reset MDL id's and move all buffers back to the stream's buf_pool */  in cx18_unload_queues()
272 * Attach buffers to MDLs, give the MDLs ids, and add MDLs to q_free in cx18_load_queues()
274 * Excess buffers are left in buf_pool and/or on an MDL in q_idle in cx18_load_queues()
301 * case of a non-integral number of buffers to meet in cx18_load_queues()
313 /* Not enough buffers for this MDL; we won't use it */ in cx18_load_queues()
337 if (s->buffers == 0) in cx18_stream_alloc()
340 CX18_DEBUG_INFO("Allocate %s stream: %d x %d buffers (%d.%02d kB total)\n", in cx18_stream_alloc()
341 s->name, s->buffers, s->buf_size, in cx18_stream_alloc()
342 s->buffers * s->buf_size / 1024, in cx18_stream_alloc()
343 (s->buffers * s->buf_size * 100 / 1024) % 100); in cx18_stream_alloc()
345 if (((char __iomem *)&cx->scb->cpu_mdl[cx->free_mdl_idx + s->buffers] - in cx18_stream_alloc()
350 CX18_ERR("Too many buffers, cannot fit in SCB area\n"); in cx18_stream_alloc()
351 CX18_ERR("Max buffers = %zu\n", in cx18_stream_alloc()
358 /* allocate stream buffers and MDLs */ in cx18_stream_alloc()
359 for (i = 0; i < s->buffers; i++) { in cx18_stream_alloc()
394 if (i == s->buffers) { in cx18_stream_alloc()
395 cx->free_mdl_idx += s->buffers; in cx18_stream_alloc()
398 CX18_ERR("Couldn't allocate buffers for %s stream\n", s->name); in cx18_stream_alloc()
409 CX18_DEBUG_INFO("Deallocating buffers for %s stream\n", s->name); in cx18_stream_free()
411 /* move all buffers to buf_pool and all MDLs to q_idle */ in cx18_stream_free()