qcacmn: add function for multi-pages memory zero operation

Add function qdf_mem_multi_pages_zero() to support multi-pages
memory zero operation.

Change-Id: I08b5c2722c02881550d3a1da27d5137c0957fd51
CRs-Fixed: 2776365
This commit is contained in:
Jinwei Chen
2020-09-14 21:52:20 +08:00
committed by snandini
parent e1fb6b17d4
commit 21d6fd0ac6
2 changed files with 37 additions and 0 deletions

View File

@@ -299,6 +299,18 @@ void qdf_mem_multi_pages_free(qdf_device_t osdev,
#endif /* MEMORY_DEBUG */
/**
* qdf_mem_multi_pages_zero() - zero out each page memory
* @pages: Multi page information storage
* @cacheable: Coherent memory or cacheable memory
*
* This function will zero out each page memory
*
* Return: None
*/
void qdf_mem_multi_pages_zero(struct qdf_mem_multi_page_t *pages,
bool cacheable);
/**
* qdf_aligned_malloc() - allocates aligned QDF memory.
* @size: Size to be allocated