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