Lines Matching refs:p_cache
195 if (!pC->p_cache) in control_cache_alloc_check()
202 p_master_cache = (char *)pC->p_cache; in control_cache_alloc_check()
279 struct hpi_control_cache *p_cache, struct hpi_control_cache_info **pI) in find_control() argument
281 if (!control_cache_alloc_check(p_cache)) { in find_control()
288 *pI = p_cache->p_info[control_index]; in find_control()
538 short hpi_check_control_cache(struct hpi_control_cache *p_cache, in hpi_check_control_cache() argument
543 if (!find_control(phm->obj_index, p_cache, &pI)) { in hpi_check_control_cache()
622 void hpi_cmn_control_cache_sync_to_msg(struct hpi_control_cache *p_cache, in hpi_cmn_control_cache_sync_to_msg() argument
631 if (!find_control(phm->obj_index, p_cache, &pI)) { in hpi_cmn_control_cache_sync_to_msg()
653 struct hpi_control_cache *p_cache = in hpi_alloc_control_cache() local
654 kmalloc(sizeof(*p_cache), GFP_KERNEL); in hpi_alloc_control_cache()
655 if (!p_cache) in hpi_alloc_control_cache()
658 p_cache->p_info = in hpi_alloc_control_cache()
659 kcalloc(control_count, sizeof(*p_cache->p_info), GFP_KERNEL); in hpi_alloc_control_cache()
660 if (!p_cache->p_info) { in hpi_alloc_control_cache()
661 kfree(p_cache); in hpi_alloc_control_cache()
665 p_cache->cache_size_in_bytes = size_in_bytes; in hpi_alloc_control_cache()
666 p_cache->control_count = control_count; in hpi_alloc_control_cache()
667 p_cache->p_cache = p_dsp_control_buffer; in hpi_alloc_control_cache()
668 p_cache->init = 0; in hpi_alloc_control_cache()
669 return p_cache; in hpi_alloc_control_cache()
672 void hpi_free_control_cache(struct hpi_control_cache *p_cache) in hpi_free_control_cache() argument
674 if (p_cache) { in hpi_free_control_cache()
675 kfree(p_cache->p_info); in hpi_free_control_cache()
676 kfree(p_cache); in hpi_free_control_cache()