• Home
  • Raw
  • Download

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()
238 cached, pC->p_info[info->control_index], in control_cache_alloc_check()
246 if (byte_count >= pC->cache_size_in_bytes) in control_cache_alloc_check()
249 if (info->control_index == pC->control_count - 1) in control_cache_alloc_check()
253 if (byte_count != pC->cache_size_in_bytes) in control_cache_alloc_check()
256 pC->adap_idx, byte_count, in control_cache_alloc_check()
257 pC->cache_size_in_bytes); in control_cache_alloc_check()
261 pC->adap_idx, byte_count); in control_cache_alloc_check()
263 pC->init = (u16)cached; in control_cache_alloc_check()
265 return pC->init; in control_cache_alloc_check()
317 struct hpi_control_cache_single *pC; in hpi_check_control_cache() local
338 pC = (struct hpi_control_cache_single *)pI; in hpi_check_control_cache()
344 phr->u.c.an_log_value[0] = pC->u.meter.an_log_peak[0]; in hpi_check_control_cache()
345 phr->u.c.an_log_value[1] = pC->u.meter.an_log_peak[1]; in hpi_check_control_cache()
347 if (pC->u.meter.an_logRMS[0] == in hpi_check_control_cache()
355 pC->u.meter.an_logRMS[0]; in hpi_check_control_cache()
357 pC->u.meter.an_logRMS[1]; in hpi_check_control_cache()
364 phr->u.c.an_log_value[0] = pC->u.vol.an_log[0]; in hpi_check_control_cache()
365 phr->u.c.an_log_value[1] = pC->u.vol.an_log[1]; in hpi_check_control_cache()
367 if (pC->u.vol.flags & HPI_VOLUME_FLAG_HAS_MUTE) { in hpi_check_control_cache()
368 if (pC->u.vol.flags & HPI_VOLUME_FLAG_MUTED) in hpi_check_control_cache()
384 phr->u.c.param1 = pC->u.mux.source_node_type; in hpi_check_control_cache()
385 phr->u.c.param2 = pC->u.mux.source_node_index; in hpi_check_control_cache()
392 phr->u.c.param1 = pC->u.mode.mode; in hpi_check_control_cache()
398 phr->u.c.an_log_value[0] = pC->u.level.an_log[0]; in hpi_check_control_cache()
399 phr->u.c.an_log_value[1] = pC->u.level.an_log[1]; in hpi_check_control_cache()
405 phr->u.c.param1 = pC->u.tuner.freq_ink_hz; in hpi_check_control_cache()
407 phr->u.c.param1 = pC->u.tuner.band; in hpi_check_control_cache()
409 if (pC->u.tuner.s_level_avg == in hpi_check_control_cache()
416 pC->u.tuner.s_level_avg; in hpi_check_control_cache()
422 phr->u.c.param1 = pC->u.aes3rx.error_status; in hpi_check_control_cache()
424 phr->u.c.param1 = pC->u.aes3rx.format; in hpi_check_control_cache()
430 phr->u.c.param1 = pC->u.aes3tx.format; in hpi_check_control_cache()
436 phr->u.c.param1 = pC->u.tone.state; in hpi_check_control_cache()
442 phr->u.c.param1 = pC->u.silence.state; in hpi_check_control_cache()
448 phr->u.c.param1 = pC->u.microphone.phantom_state; in hpi_check_control_cache()
454 phr->u.c.param1 = pC->u.clk.source; in hpi_check_control_cache()
456 if (pC->u.clk.source_index == in hpi_check_control_cache()
462 phr->u.c.param1 = pC->u.clk.source_index; in hpi_check_control_cache()
464 phr->u.c.param1 = pC->u.clk.sample_rate; in hpi_check_control_cache()
555 struct hpi_control_cache_single *pC; in hpi_cmn_control_cache_sync_to_msg() local
571 pC = (struct hpi_control_cache_single *)pI; in hpi_cmn_control_cache_sync_to_msg()
576 pC->u.vol.an_log[0] = phr->u.c.an_log_value[0]; in hpi_cmn_control_cache_sync_to_msg()
577 pC->u.vol.an_log[1] = phr->u.c.an_log_value[1]; in hpi_cmn_control_cache_sync_to_msg()
580 pC->u.vol.flags |= HPI_VOLUME_FLAG_MUTED; in hpi_cmn_control_cache_sync_to_msg()
582 pC->u.vol.flags &= ~HPI_VOLUME_FLAG_MUTED; in hpi_cmn_control_cache_sync_to_msg()
588 pC->u.mux.source_node_type = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg()
589 pC->u.mux.source_node_index = (u16)phm->u.c.param2; in hpi_cmn_control_cache_sync_to_msg()
595 pC->u.mode.mode = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg()
599 pC->u.vol.an_log[0] = phr->u.c.an_log_value[0]; in hpi_cmn_control_cache_sync_to_msg()
600 pC->u.vol.an_log[1] = phr->u.c.an_log_value[1]; in hpi_cmn_control_cache_sync_to_msg()
605 pC->u.microphone.phantom_state = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg()
609 pC->u.aes3tx.format = phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg()
613 pC->u.aes3rx.format = phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg()
617 pC->u.clk.source = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg()
619 pC->u.clk.source_index = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg()
621 pC->u.clk.sample_rate = phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg()