• Home
  • Raw
  • Download

Lines Matching refs:phr

35 u16 hpi_validate_response(struct hpi_message *phm, struct hpi_response *phr)  in hpi_validate_response()  argument
37 if (phr->type != HPI_TYPE_RESPONSE) { in hpi_validate_response()
38 HPI_DEBUG_LOG(ERROR, "header type %d invalid\n", phr->type); in hpi_validate_response()
42 if (phr->object != phm->object) { in hpi_validate_response()
44 phr->object); in hpi_validate_response()
48 if (phr->function != phm->function) { in hpi_validate_response()
50 phr->function); in hpi_validate_response()
150 struct hpi_response *phr) in subsys_get_adapter() argument
165 phr->u.s.adapter_index = adapters.adapter[index].index; in subsys_get_adapter()
166 phr->u.s.adapter_type = adapters.adapter[index].type; in subsys_get_adapter()
168 phr->u.s.adapter_index = 0; in subsys_get_adapter()
169 phr->u.s.adapter_type = 0; in subsys_get_adapter()
170 phr->error = HPI_ERROR_INVALID_OBJ_INDEX; in subsys_get_adapter()
310 struct hpi_message *phm, struct hpi_response *phr) in hpi_check_control_cache_single() argument
324 phr->u.c.an_log_value[0] = pC->u.meter.an_log_peak[0]; in hpi_check_control_cache_single()
325 phr->u.c.an_log_value[1] = pC->u.meter.an_log_peak[1]; in hpi_check_control_cache_single()
329 phr->error = in hpi_check_control_cache_single()
331 phr->u.c.an_log_value[0] = HPI_METER_MINIMUM; in hpi_check_control_cache_single()
332 phr->u.c.an_log_value[1] = HPI_METER_MINIMUM; in hpi_check_control_cache_single()
334 phr->u.c.an_log_value[0] = in hpi_check_control_cache_single()
336 phr->u.c.an_log_value[1] = in hpi_check_control_cache_single()
344 phr->u.c.an_log_value[0] = pC->u.vol.an_log[0]; in hpi_check_control_cache_single()
345 phr->u.c.an_log_value[1] = pC->u.vol.an_log[1]; in hpi_check_control_cache_single()
349 phr->u.c.param1 = in hpi_check_control_cache_single()
352 phr->u.c.param1 = 0; in hpi_check_control_cache_single()
354 phr->error = in hpi_check_control_cache_single()
356 phr->u.c.param1 = 0; in hpi_check_control_cache_single()
364 phr->u.c.param1 = pC->u.mux.source_node_type; in hpi_check_control_cache_single()
365 phr->u.c.param2 = pC->u.mux.source_node_index; in hpi_check_control_cache_single()
372 phr->u.c.param1 = pC->u.mode.mode; in hpi_check_control_cache_single()
378 phr->u.c.an_log_value[0] = pC->u.level.an_log[0]; in hpi_check_control_cache_single()
379 phr->u.c.an_log_value[1] = pC->u.level.an_log[1]; in hpi_check_control_cache_single()
385 phr->u.c.param1 = pC->u.tuner.freq_ink_hz; in hpi_check_control_cache_single()
387 phr->u.c.param1 = pC->u.tuner.band; in hpi_check_control_cache_single()
391 phr->u.cu.tuner.s_level = 0; in hpi_check_control_cache_single()
392 phr->error = in hpi_check_control_cache_single()
395 phr->u.cu.tuner.s_level = in hpi_check_control_cache_single()
402 phr->u.c.param1 = pC->u.aes3rx.error_status; in hpi_check_control_cache_single()
404 phr->u.c.param1 = pC->u.aes3rx.format; in hpi_check_control_cache_single()
410 phr->u.c.param1 = pC->u.aes3tx.format; in hpi_check_control_cache_single()
416 phr->u.c.param1 = pC->u.tone.state; in hpi_check_control_cache_single()
422 phr->u.c.param1 = pC->u.silence.state; in hpi_check_control_cache_single()
428 phr->u.c.param1 = pC->u.microphone.phantom_state; in hpi_check_control_cache_single()
434 phr->u.c.param1 = pC->u.clk.source; in hpi_check_control_cache_single()
438 phr->u.c.param1 = 0; in hpi_check_control_cache_single()
439 phr->error = in hpi_check_control_cache_single()
442 phr->u.c.param1 = pC->u.clk.source_index; in hpi_check_control_cache_single()
444 phr->u.c.param1 = pC->u.clk.sample_rate; in hpi_check_control_cache_single()
455 phr->error = in hpi_check_control_cache_single()
461 phr->u.c.param1 = p_pad->pI; in hpi_check_control_cache_single()
463 phr->u.c.param1 = p_pad->pTY; in hpi_check_control_cache_single()
474 phr->error = in hpi_check_control_cache_single()
489 phr->error = in hpi_check_control_cache_single()
495 if (tocopy > sizeof(phr->u.cu.chars8.sz_data)) in hpi_check_control_cache_single()
496 tocopy = sizeof(phr->u.cu.chars8. in hpi_check_control_cache_single()
499 memcpy(phr->u.cu.chars8.sz_data, in hpi_check_control_cache_single()
502 phr->u.cu.chars8.remaining_chars = in hpi_check_control_cache_single()
518 phr->size = (u16)response_size; in hpi_check_control_cache_single()
519 phr->type = HPI_TYPE_RESPONSE; in hpi_check_control_cache_single()
520 phr->object = phm->object; in hpi_check_control_cache_single()
521 phr->function = phm->function; in hpi_check_control_cache_single()
528 struct hpi_message *phm, struct hpi_response *phr) in hpi_check_control_cache() argument
539 phr->error = 0; in hpi_check_control_cache()
540 phr->specific_error = 0; in hpi_check_control_cache()
541 phr->version = 0; in hpi_check_control_cache()
544 *)pI, phm, phr); in hpi_check_control_cache()
554 *pC, struct hpi_message *phm, struct hpi_response *phr) in hpi_cmn_control_cache_sync_to_msg_single() argument
559 pC->u.vol.an_log[0] = phr->u.c.an_log_value[0]; in hpi_cmn_control_cache_sync_to_msg_single()
560 pC->u.vol.an_log[1] = phr->u.c.an_log_value[1]; in hpi_cmn_control_cache_sync_to_msg_single()
582 pC->u.vol.an_log[0] = phr->u.c.an_log_value[0]; in hpi_cmn_control_cache_sync_to_msg_single()
583 pC->u.vol.an_log[1] = phr->u.c.an_log_value[1]; in hpi_cmn_control_cache_sync_to_msg_single()
612 struct hpi_message *phm, struct hpi_response *phr) in hpi_cmn_control_cache_sync_to_msg() argument
617 if (phr->error) in hpi_cmn_control_cache_sync_to_msg()
632 hpi_cmn_control_cache_sync_to_msg_single(pC, phm, phr); in hpi_cmn_control_cache_sync_to_msg()
669 static void subsys_message(struct hpi_message *phm, struct hpi_response *phr) in subsys_message() argument
671 hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, phm->function, 0); in subsys_message()
683 subsys_get_adapter(phm, phr); in subsys_message()
686 phr->u.s.num_adapters = adapters.gw_num_adapters; in subsys_message()
691 phr->error = HPI_ERROR_INVALID_FUNC; in subsys_message()
696 void HPI_COMMON(struct hpi_message *phm, struct hpi_response *phr) in HPI_COMMON() argument
702 subsys_message(phm, phr); in HPI_COMMON()
708 phr->error = HPI_ERROR_INVALID_TYPE; in HPI_COMMON()