Lines Matching refs:phm

46 u16 hpi_validate_response(struct hpi_message *phm, struct hpi_response *phr)  in hpi_validate_response()  argument
53 if (phr->object != phm->object) { in hpi_validate_response()
59 if (phr->function != phm->function) { in hpi_validate_response()
160 static void subsys_get_adapter(struct hpi_message *phm, in subsys_get_adapter() argument
163 int count = phm->obj_index; in subsys_get_adapter()
321 struct hpi_message *phm, struct hpi_response *phr) in hpi_check_control_cache_single() argument
334 if (phm->u.c.attribute == HPI_METER_PEAK) { in hpi_check_control_cache_single()
337 } else if (phm->u.c.attribute == HPI_METER_RMS) { in hpi_check_control_cache_single()
354 if (phm->u.c.attribute == HPI_VOLUME_GAIN) { in hpi_check_control_cache_single()
357 } else if (phm->u.c.attribute == HPI_VOLUME_MUTE) { in hpi_check_control_cache_single()
374 if (phm->u.c.attribute == HPI_MULTIPLEXER_SOURCE) { in hpi_check_control_cache_single()
382 if (phm->u.c.attribute == HPI_CHANNEL_MODE_MODE) in hpi_check_control_cache_single()
388 if (phm->u.c.attribute == HPI_LEVEL_GAIN) { in hpi_check_control_cache_single()
395 if (phm->u.c.attribute == HPI_TUNER_FREQ) in hpi_check_control_cache_single()
397 else if (phm->u.c.attribute == HPI_TUNER_BAND) in hpi_check_control_cache_single()
399 else if (phm->u.c.attribute == HPI_TUNER_LEVEL_AVG) in hpi_check_control_cache_single()
412 if (phm->u.c.attribute == HPI_AESEBURX_ERRORSTATUS) in hpi_check_control_cache_single()
414 else if (phm->u.c.attribute == HPI_AESEBURX_FORMAT) in hpi_check_control_cache_single()
420 if (phm->u.c.attribute == HPI_AESEBUTX_FORMAT) in hpi_check_control_cache_single()
426 if (phm->u.c.attribute == HPI_TONEDETECTOR_STATE) in hpi_check_control_cache_single()
432 if (phm->u.c.attribute == HPI_SILENCEDETECTOR_STATE) { in hpi_check_control_cache_single()
438 if (phm->u.c.attribute == HPI_MICROPHONE_PHANTOM_POWER) in hpi_check_control_cache_single()
444 if (phm->u.c.attribute == HPI_SAMPLECLOCK_SOURCE) in hpi_check_control_cache_single()
446 else if (phm->u.c.attribute == HPI_SAMPLECLOCK_SOURCE_INDEX) { in hpi_check_control_cache_single()
454 } else if (phm->u.c.attribute == HPI_SAMPLECLOCK_SAMPLERATE) in hpi_check_control_cache_single()
464 HPI_CTL_ATTR_INDEX(phm->u.c. in hpi_check_control_cache_single()
471 if (phm->u.c.attribute == HPI_PAD_PROGRAM_ID) in hpi_check_control_cache_single()
473 else if (phm->u.c.attribute == HPI_PAD_PROGRAM_TYPE) in hpi_check_control_cache_single()
477 HPI_CTL_ATTR_INDEX(phm->u.c. in hpi_check_control_cache_single()
479 unsigned int offset = phm->u.c.param1; in hpi_check_control_cache_single()
524 found ? "Cached" : "Uncached", phm->adapter_index, in hpi_check_control_cache_single()
526 phm->u.c.attribute); in hpi_check_control_cache_single()
531 phr->object = phm->object; in hpi_check_control_cache_single()
532 phr->function = phm->function; in hpi_check_control_cache_single()
539 struct hpi_message *phm, struct hpi_response *phr) in hpi_check_control_cache() argument
543 if (!find_control(phm->obj_index, p_cache, &pI)) { in hpi_check_control_cache()
546 phm->adapter_index); in hpi_check_control_cache()
555 *)pI, phm, phr); in hpi_check_control_cache()
565 *pC, struct hpi_message *phm, struct hpi_response *phr) in hpi_cmn_control_cache_sync_to_msg_single() argument
569 if (phm->u.c.attribute == HPI_VOLUME_GAIN) { in hpi_cmn_control_cache_sync_to_msg_single()
572 } else if (phm->u.c.attribute == HPI_VOLUME_MUTE) { in hpi_cmn_control_cache_sync_to_msg_single()
573 if (phm->u.c.param1) in hpi_cmn_control_cache_sync_to_msg_single()
581 if (phm->u.c.attribute == HPI_MULTIPLEXER_SOURCE) { in hpi_cmn_control_cache_sync_to_msg_single()
582 pC->u.mux.source_node_type = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
583 pC->u.mux.source_node_index = (u16)phm->u.c.param2; in hpi_cmn_control_cache_sync_to_msg_single()
588 if (phm->u.c.attribute == HPI_CHANNEL_MODE_MODE) in hpi_cmn_control_cache_sync_to_msg_single()
589 pC->u.mode.mode = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
592 if (phm->u.c.attribute == HPI_LEVEL_GAIN) { in hpi_cmn_control_cache_sync_to_msg_single()
598 if (phm->u.c.attribute == HPI_MICROPHONE_PHANTOM_POWER) in hpi_cmn_control_cache_sync_to_msg_single()
599 pC->u.microphone.phantom_state = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
602 if (phm->u.c.attribute == HPI_AESEBUTX_FORMAT) in hpi_cmn_control_cache_sync_to_msg_single()
603 pC->u.aes3tx.format = phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
606 if (phm->u.c.attribute == HPI_AESEBURX_FORMAT) in hpi_cmn_control_cache_sync_to_msg_single()
607 pC->u.aes3rx.format = phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
610 if (phm->u.c.attribute == HPI_SAMPLECLOCK_SOURCE) in hpi_cmn_control_cache_sync_to_msg_single()
611 pC->u.clk.source = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
612 else if (phm->u.c.attribute == HPI_SAMPLECLOCK_SOURCE_INDEX) in hpi_cmn_control_cache_sync_to_msg_single()
613 pC->u.clk.source_index = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
614 else if (phm->u.c.attribute == HPI_SAMPLECLOCK_SAMPLERATE) in hpi_cmn_control_cache_sync_to_msg_single()
615 pC->u.clk.sample_rate = phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
623 struct hpi_message *phm, struct hpi_response *phr) in hpi_cmn_control_cache_sync_to_msg() argument
631 if (!find_control(phm->obj_index, p_cache, &pI)) { in hpi_cmn_control_cache_sync_to_msg()
634 phm->adapter_index); in hpi_cmn_control_cache_sync_to_msg()
643 hpi_cmn_control_cache_sync_to_msg_single(pC, phm, phr); in hpi_cmn_control_cache_sync_to_msg()
680 static void subsys_message(struct hpi_message *phm, struct hpi_response *phr) in subsys_message() argument
682 hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, phm->function, 0); in subsys_message()
684 switch (phm->function) { in subsys_message()
694 subsys_get_adapter(phm, phr); in subsys_message()
707 void HPI_COMMON(struct hpi_message *phm, struct hpi_response *phr) in HPI_COMMON() argument
709 switch (phm->type) { in HPI_COMMON()
711 switch (phm->object) { in HPI_COMMON()
713 subsys_message(phm, phr); in HPI_COMMON()