• Home
  • Raw
  • Download

Lines Matching refs:p_cache

186 	if (!pC->p_cache)  in control_cache_alloc_check()
193 p_master_cache = (char *)pC->p_cache; in control_cache_alloc_check()
270 struct hpi_control_cache *p_cache, struct hpi_control_cache_info **pI) in find_control() argument
272 if (!control_cache_alloc_check(p_cache)) { in find_control()
279 *pI = p_cache->p_info[control_index]; in find_control()
529 short hpi_check_control_cache(struct hpi_control_cache *p_cache, in hpi_check_control_cache() argument
534 if (!find_control(phm->obj_index, p_cache, &pI)) { in hpi_check_control_cache()
613 void hpi_cmn_control_cache_sync_to_msg(struct hpi_control_cache *p_cache, in hpi_cmn_control_cache_sync_to_msg() argument
622 if (!find_control(phm->obj_index, p_cache, &pI)) { in hpi_cmn_control_cache_sync_to_msg()
644 struct hpi_control_cache *p_cache = in hpi_alloc_control_cache() local
645 kmalloc(sizeof(*p_cache), GFP_KERNEL); in hpi_alloc_control_cache()
646 if (!p_cache) in hpi_alloc_control_cache()
649 p_cache->p_info = in hpi_alloc_control_cache()
650 kcalloc(control_count, sizeof(*p_cache->p_info), GFP_KERNEL); in hpi_alloc_control_cache()
651 if (!p_cache->p_info) { in hpi_alloc_control_cache()
652 kfree(p_cache); in hpi_alloc_control_cache()
656 p_cache->cache_size_in_bytes = size_in_bytes; in hpi_alloc_control_cache()
657 p_cache->control_count = control_count; in hpi_alloc_control_cache()
658 p_cache->p_cache = p_dsp_control_buffer; in hpi_alloc_control_cache()
659 p_cache->init = 0; in hpi_alloc_control_cache()
660 return p_cache; in hpi_alloc_control_cache()
663 void hpi_free_control_cache(struct hpi_control_cache *p_cache) in hpi_free_control_cache() argument
665 if (p_cache) { in hpi_free_control_cache()
666 kfree(p_cache->p_info); in hpi_free_control_cache()
667 kfree(p_cache); in hpi_free_control_cache()