Lines Matching refs:p_cache
184 if (!pC->p_cache) in control_cache_alloc_check()
191 p_master_cache = (char *)pC->p_cache; in control_cache_alloc_check()
268 struct hpi_control_cache *p_cache, struct hpi_control_cache_info **pI) in find_control() argument
270 if (!control_cache_alloc_check(p_cache)) { in find_control()
277 *pI = p_cache->p_info[control_index]; in find_control()
527 short hpi_check_control_cache(struct hpi_control_cache *p_cache, in hpi_check_control_cache() argument
532 if (!find_control(phm->obj_index, p_cache, &pI)) { in hpi_check_control_cache()
611 void hpi_cmn_control_cache_sync_to_msg(struct hpi_control_cache *p_cache, in hpi_cmn_control_cache_sync_to_msg() argument
620 if (!find_control(phm->obj_index, p_cache, &pI)) { in hpi_cmn_control_cache_sync_to_msg()
642 struct hpi_control_cache *p_cache = in hpi_alloc_control_cache() local
643 kmalloc(sizeof(*p_cache), GFP_KERNEL); in hpi_alloc_control_cache()
644 if (!p_cache) in hpi_alloc_control_cache()
647 p_cache->p_info = in hpi_alloc_control_cache()
648 kcalloc(control_count, sizeof(*p_cache->p_info), GFP_KERNEL); in hpi_alloc_control_cache()
649 if (!p_cache->p_info) { in hpi_alloc_control_cache()
650 kfree(p_cache); in hpi_alloc_control_cache()
654 p_cache->cache_size_in_bytes = size_in_bytes; in hpi_alloc_control_cache()
655 p_cache->control_count = control_count; in hpi_alloc_control_cache()
656 p_cache->p_cache = p_dsp_control_buffer; in hpi_alloc_control_cache()
657 p_cache->init = 0; in hpi_alloc_control_cache()
658 return p_cache; in hpi_alloc_control_cache()
661 void hpi_free_control_cache(struct hpi_control_cache *p_cache) in hpi_free_control_cache() argument
663 if (p_cache) { in hpi_free_control_cache()
664 kfree(p_cache->p_info); in hpi_free_control_cache()
665 kfree(p_cache); in hpi_free_control_cache()