Lines Matching refs:pC

185 static unsigned int control_cache_alloc_check(struct hpi_control_cache *pC)  in control_cache_alloc_check()  argument
189 if (!pC) in control_cache_alloc_check()
192 if (pC->init) in control_cache_alloc_check()
193 return pC->init; in control_cache_alloc_check()
195 if (!pC->p_cache) in control_cache_alloc_check()
198 if (pC->control_count && pC->cache_size_in_bytes) { in control_cache_alloc_check()
202 p_master_cache = (char *)pC->p_cache; in control_cache_alloc_check()
204 pC->control_count); in control_cache_alloc_check()
205 for (i = 0; i < pC->control_count; i++) { in control_cache_alloc_check()
214 pC->adap_idx); in control_cache_alloc_check()
223 pC->adap_idx, i); in control_cache_alloc_check()
228 pC->p_info[info->control_index] = info; in control_cache_alloc_check()
231 pC->p_info[info->control_index] = NULL; in control_cache_alloc_check()
237 cached, pC->p_info[info->control_index], in control_cache_alloc_check()
245 if (byte_count >= pC->cache_size_in_bytes) in control_cache_alloc_check()
248 if (info->control_index == pC->control_count - 1) in control_cache_alloc_check()
252 if (byte_count != pC->cache_size_in_bytes) in control_cache_alloc_check()
255 pC->adap_idx, byte_count, in control_cache_alloc_check()
256 pC->cache_size_in_bytes); in control_cache_alloc_check()
260 pC->adap_idx, byte_count); in control_cache_alloc_check()
262 pC->init = (u16)cached; in control_cache_alloc_check()
264 return pC->init; in control_cache_alloc_check()
316 struct hpi_control_cache_single *pC; in hpi_check_control_cache() local
331 pC = (struct hpi_control_cache_single *)pI; in hpi_check_control_cache()
338 phr->u.c.an_log_value[0] = pC->u.meter.an_log_peak[0]; in hpi_check_control_cache()
339 phr->u.c.an_log_value[1] = pC->u.meter.an_log_peak[1]; in hpi_check_control_cache()
341 if (pC->u.meter.an_logRMS[0] == in hpi_check_control_cache()
349 pC->u.meter.an_logRMS[0]; in hpi_check_control_cache()
351 pC->u.meter.an_logRMS[1]; in hpi_check_control_cache()
358 phr->u.c.an_log_value[0] = pC->u.vol.an_log[0]; in hpi_check_control_cache()
359 phr->u.c.an_log_value[1] = pC->u.vol.an_log[1]; in hpi_check_control_cache()
361 if (pC->u.vol.flags & HPI_VOLUME_FLAG_HAS_MUTE) { in hpi_check_control_cache()
362 if (pC->u.vol.flags & HPI_VOLUME_FLAG_MUTED) in hpi_check_control_cache()
378 phr->u.c.param1 = pC->u.mux.source_node_type; in hpi_check_control_cache()
379 phr->u.c.param2 = pC->u.mux.source_node_index; in hpi_check_control_cache()
386 phr->u.c.param1 = pC->u.mode.mode; in hpi_check_control_cache()
392 phr->u.c.an_log_value[0] = pC->u.level.an_log[0]; in hpi_check_control_cache()
393 phr->u.c.an_log_value[1] = pC->u.level.an_log[1]; in hpi_check_control_cache()
399 phr->u.c.param1 = pC->u.tuner.freq_ink_hz; in hpi_check_control_cache()
401 phr->u.c.param1 = pC->u.tuner.band; in hpi_check_control_cache()
403 if (pC->u.tuner.s_level_avg == in hpi_check_control_cache()
410 pC->u.tuner.s_level_avg; in hpi_check_control_cache()
416 phr->u.c.param1 = pC->u.aes3rx.error_status; in hpi_check_control_cache()
418 phr->u.c.param1 = pC->u.aes3rx.format; in hpi_check_control_cache()
424 phr->u.c.param1 = pC->u.aes3tx.format; in hpi_check_control_cache()
430 phr->u.c.param1 = pC->u.tone.state; in hpi_check_control_cache()
436 phr->u.c.param1 = pC->u.silence.state; in hpi_check_control_cache()
442 phr->u.c.param1 = pC->u.microphone.phantom_state; in hpi_check_control_cache()
448 phr->u.c.param1 = pC->u.clk.source; in hpi_check_control_cache()
450 if (pC->u.clk.source_index == in hpi_check_control_cache()
456 phr->u.c.param1 = pC->u.clk.source_index; in hpi_check_control_cache()
458 phr->u.c.param1 = pC->u.clk.sample_rate; in hpi_check_control_cache()
547 struct hpi_control_cache_single *pC; in hpi_cmn_control_cache_sync_to_msg() local
563 pC = (struct hpi_control_cache_single *)pI; in hpi_cmn_control_cache_sync_to_msg()
568 pC->u.vol.an_log[0] = phr->u.c.an_log_value[0]; in hpi_cmn_control_cache_sync_to_msg()
569 pC->u.vol.an_log[1] = phr->u.c.an_log_value[1]; in hpi_cmn_control_cache_sync_to_msg()
572 pC->u.vol.flags |= HPI_VOLUME_FLAG_MUTED; in hpi_cmn_control_cache_sync_to_msg()
574 pC->u.vol.flags &= ~HPI_VOLUME_FLAG_MUTED; in hpi_cmn_control_cache_sync_to_msg()
580 pC->u.mux.source_node_type = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg()
581 pC->u.mux.source_node_index = (u16)phm->u.c.param2; in hpi_cmn_control_cache_sync_to_msg()
587 pC->u.mode.mode = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg()
591 pC->u.vol.an_log[0] = phr->u.c.an_log_value[0]; in hpi_cmn_control_cache_sync_to_msg()
592 pC->u.vol.an_log[1] = phr->u.c.an_log_value[1]; in hpi_cmn_control_cache_sync_to_msg()
597 pC->u.microphone.phantom_state = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg()
601 pC->u.aes3tx.format = phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg()
605 pC->u.aes3rx.format = phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg()
609 pC->u.clk.source = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg()
611 pC->u.clk.source_index = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg()
613 pC->u.clk.sample_rate = phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg()