Lines Matching refs:phm

37 u16 hpi_validate_response(struct hpi_message *phm, struct hpi_response *phr)  in hpi_validate_response()  argument
44 if (phr->object != phm->object) { in hpi_validate_response()
50 if (phr->function != phm->function) { in hpi_validate_response()
151 static void subsys_get_adapter(struct hpi_message *phm, in subsys_get_adapter() argument
154 int count = phm->obj_index; in subsys_get_adapter()
312 struct hpi_message *phm, struct hpi_response *phr) in hpi_check_control_cache_single() argument
325 if (phm->u.c.attribute == HPI_METER_PEAK) { in hpi_check_control_cache_single()
328 } else if (phm->u.c.attribute == HPI_METER_RMS) { in hpi_check_control_cache_single()
345 if (phm->u.c.attribute == HPI_VOLUME_GAIN) { in hpi_check_control_cache_single()
348 } else if (phm->u.c.attribute == HPI_VOLUME_MUTE) { in hpi_check_control_cache_single()
365 if (phm->u.c.attribute == HPI_MULTIPLEXER_SOURCE) { in hpi_check_control_cache_single()
373 if (phm->u.c.attribute == HPI_CHANNEL_MODE_MODE) in hpi_check_control_cache_single()
379 if (phm->u.c.attribute == HPI_LEVEL_GAIN) { in hpi_check_control_cache_single()
386 if (phm->u.c.attribute == HPI_TUNER_FREQ) in hpi_check_control_cache_single()
388 else if (phm->u.c.attribute == HPI_TUNER_BAND) in hpi_check_control_cache_single()
390 else if (phm->u.c.attribute == HPI_TUNER_LEVEL_AVG) in hpi_check_control_cache_single()
403 if (phm->u.c.attribute == HPI_AESEBURX_ERRORSTATUS) in hpi_check_control_cache_single()
405 else if (phm->u.c.attribute == HPI_AESEBURX_FORMAT) in hpi_check_control_cache_single()
411 if (phm->u.c.attribute == HPI_AESEBUTX_FORMAT) in hpi_check_control_cache_single()
417 if (phm->u.c.attribute == HPI_TONEDETECTOR_STATE) in hpi_check_control_cache_single()
423 if (phm->u.c.attribute == HPI_SILENCEDETECTOR_STATE) { in hpi_check_control_cache_single()
429 if (phm->u.c.attribute == HPI_MICROPHONE_PHANTOM_POWER) in hpi_check_control_cache_single()
435 if (phm->u.c.attribute == HPI_SAMPLECLOCK_SOURCE) in hpi_check_control_cache_single()
437 else if (phm->u.c.attribute == HPI_SAMPLECLOCK_SOURCE_INDEX) { in hpi_check_control_cache_single()
445 } else if (phm->u.c.attribute == HPI_SAMPLECLOCK_SAMPLERATE) in hpi_check_control_cache_single()
455 HPI_CTL_ATTR_INDEX(phm->u.c. in hpi_check_control_cache_single()
462 if (phm->u.c.attribute == HPI_PAD_PROGRAM_ID) in hpi_check_control_cache_single()
464 else if (phm->u.c.attribute == HPI_PAD_PROGRAM_TYPE) in hpi_check_control_cache_single()
468 HPI_CTL_ATTR_INDEX(phm->u.c. in hpi_check_control_cache_single()
470 unsigned int offset = phm->u.c.param1; in hpi_check_control_cache_single()
515 found ? "Cached" : "Uncached", phm->adapter_index, in hpi_check_control_cache_single()
517 phm->u.c.attribute); in hpi_check_control_cache_single()
522 phr->object = phm->object; in hpi_check_control_cache_single()
523 phr->function = phm->function; in hpi_check_control_cache_single()
530 struct hpi_message *phm, struct hpi_response *phr) in hpi_check_control_cache() argument
534 if (!find_control(phm->obj_index, p_cache, &pI)) { in hpi_check_control_cache()
537 phm->adapter_index); in hpi_check_control_cache()
546 *)pI, phm, phr); in hpi_check_control_cache()
556 *pC, struct hpi_message *phm, struct hpi_response *phr) in hpi_cmn_control_cache_sync_to_msg_single() argument
560 if (phm->u.c.attribute == HPI_VOLUME_GAIN) { in hpi_cmn_control_cache_sync_to_msg_single()
563 } else if (phm->u.c.attribute == HPI_VOLUME_MUTE) { in hpi_cmn_control_cache_sync_to_msg_single()
564 if (phm->u.c.param1) in hpi_cmn_control_cache_sync_to_msg_single()
572 if (phm->u.c.attribute == HPI_MULTIPLEXER_SOURCE) { in hpi_cmn_control_cache_sync_to_msg_single()
573 pC->u.mux.source_node_type = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
574 pC->u.mux.source_node_index = (u16)phm->u.c.param2; in hpi_cmn_control_cache_sync_to_msg_single()
579 if (phm->u.c.attribute == HPI_CHANNEL_MODE_MODE) in hpi_cmn_control_cache_sync_to_msg_single()
580 pC->u.mode.mode = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
583 if (phm->u.c.attribute == HPI_LEVEL_GAIN) { in hpi_cmn_control_cache_sync_to_msg_single()
589 if (phm->u.c.attribute == HPI_MICROPHONE_PHANTOM_POWER) in hpi_cmn_control_cache_sync_to_msg_single()
590 pC->u.microphone.phantom_state = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
593 if (phm->u.c.attribute == HPI_AESEBUTX_FORMAT) in hpi_cmn_control_cache_sync_to_msg_single()
594 pC->u.aes3tx.format = phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
597 if (phm->u.c.attribute == HPI_AESEBURX_FORMAT) in hpi_cmn_control_cache_sync_to_msg_single()
598 pC->u.aes3rx.format = phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
601 if (phm->u.c.attribute == HPI_SAMPLECLOCK_SOURCE) in hpi_cmn_control_cache_sync_to_msg_single()
602 pC->u.clk.source = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
603 else if (phm->u.c.attribute == HPI_SAMPLECLOCK_SOURCE_INDEX) in hpi_cmn_control_cache_sync_to_msg_single()
604 pC->u.clk.source_index = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
605 else if (phm->u.c.attribute == HPI_SAMPLECLOCK_SAMPLERATE) in hpi_cmn_control_cache_sync_to_msg_single()
606 pC->u.clk.sample_rate = phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
614 struct hpi_message *phm, struct hpi_response *phr) 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()
625 phm->adapter_index); in hpi_cmn_control_cache_sync_to_msg()
634 hpi_cmn_control_cache_sync_to_msg_single(pC, phm, phr); in hpi_cmn_control_cache_sync_to_msg()
671 static void subsys_message(struct hpi_message *phm, struct hpi_response *phr) in subsys_message() argument
673 hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, phm->function, 0); in subsys_message()
675 switch (phm->function) { in subsys_message()
685 subsys_get_adapter(phm, phr); in subsys_message()
698 void HPI_COMMON(struct hpi_message *phm, struct hpi_response *phr) in HPI_COMMON() argument
700 switch (phm->type) { in HPI_COMMON()
702 switch (phm->object) { in HPI_COMMON()
704 subsys_message(phm, phr); in HPI_COMMON()