Lines Matching refs:memory_pool
592 priv->memory_pool[curr + j].start = payload_addr; in init_memory()
593 priv->memory_pool[curr + j].size = mem->blocks_size[i]; in init_memory()
594 priv->memory_pool[curr + j].free = 1; in init_memory()
595 payload_addr += priv->memory_pool[curr + j].size; in init_memory()
599 WARN_ON(payload_addr - priv->memory_pool[0].start > in init_memory()
615 if (priv->memory_pool[i].size >= qtd->length && in alloc_mem()
616 priv->memory_pool[i].free) { in alloc_mem()
617 priv->memory_pool[i].free = 0; in alloc_mem()
618 qtd->payload_addr = priv->memory_pool[i].start; in alloc_mem()
634 if (priv->memory_pool[i].start == qtd->payload_addr) { in free_mem()
635 WARN_ON(priv->memory_pool[i].free); in free_mem()
636 priv->memory_pool[i].free = 1; in free_mem()