Lines Matching refs:count
42 used = bitmap_weight(cma->bitmap, (int)cma->count); in cma_used_get()
58 start = find_next_zero_bit(cma->bitmap, cma->count, end); in cma_maxchunk_get()
59 if (start >= cma->count) in cma_maxchunk_get()
61 end = find_next_bit(cma->bitmap, cma->count, start); in cma_maxchunk_get()
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); in cma_alloc_mem()
147 mem->n = count; in cma_alloc_mem()
182 &cma->count, &cma_debugfs_fops); in cma_debugfs_add_one()