Lines Matching refs:count
92 static int cma_free_mem(struct cma *cma, int count) in cma_free_mem() argument
96 while (count) { in cma_free_mem()
101 if (mem->n <= count) { in cma_free_mem()
103 count -= mem->n; in cma_free_mem()
106 cma_release(cma, mem->p, count); in cma_free_mem()
107 mem->p += count; in cma_free_mem()
108 mem->n -= count; in cma_free_mem()
109 count = 0; in cma_free_mem()
131 static int cma_alloc_mem(struct cma *cma, int count) in cma_alloc_mem() argument
140 p = cma_alloc(cma, count, 0, false); in cma_alloc_mem()
147 mem->n = count; in cma_alloc_mem()
177 debugfs_create_file("count", 0444, tmp, &cma->count, &cma_debugfs_fops); in cma_debugfs_add_one()