Lines Matching refs:ptr
82 void *ptr; in __qdf_flex_mem_alloc() local
91 ptr = &seg->bytes[index * pool->item_size]; in __qdf_flex_mem_alloc()
92 qdf_mem_zero(ptr, pool->item_size); in __qdf_flex_mem_alloc()
94 return ptr; in __qdf_flex_mem_alloc()
108 void *ptr; in qdf_flex_mem_alloc() local
115 ptr = __qdf_flex_mem_alloc(pool); in qdf_flex_mem_alloc()
118 return ptr; in qdf_flex_mem_alloc()
135 static void __qdf_flex_mem_free(struct qdf_flex_mem_pool *pool, void *ptr) in __qdf_flex_mem_free() argument
146 if (ptr < low_addr || ptr > high_addr) in __qdf_flex_mem_free()
149 index = (ptr - low_addr) / pool->item_size; in __qdf_flex_mem_free()
162 void qdf_flex_mem_free(struct qdf_flex_mem_pool *pool, void *ptr) in qdf_flex_mem_free() argument
168 QDF_BUG(ptr); in qdf_flex_mem_free()
169 if (!ptr) in qdf_flex_mem_free()
173 __qdf_flex_mem_free(pool, ptr); in qdf_flex_mem_free()