Lines Matching refs:nxpucihal_ctrl

41 extern phNxpUciHal_Control_t nxpucihal_ctrl;
88 if (phNxpUciHal_init_cb_data(&nxpucihal_ctrl.ext_cb_data, NULL) != UWBSTATUS_SUCCESS) { in phNxpUciHal_process_ext_cmd_rsp()
99 nxpucihal_ctrl.ext_cb_data.status = UWBSTATUS_FAILED; in phNxpUciHal_process_ext_cmd_rsp()
100 nxpucihal_ctrl.ext_cb_waiting = true; in phNxpUciHal_process_ext_cmd_rsp()
110 if (nxpucihal_ctrl.hal_parse_enabled) { in phNxpUciHal_process_ext_cmd_rsp()
116 phNxpUciHal_sem_timed_wait_msec(&nxpucihal_ctrl.ext_cb_data, HAL_EXTNS_WRITE_RSP_TIMEOUT_MS); in phNxpUciHal_process_ext_cmd_rsp()
118 nxpucihal_ctrl.ext_cb_waiting = false; in phNxpUciHal_process_ext_cmd_rsp()
120 switch (nxpucihal_ctrl.ext_cb_data.status) { in phNxpUciHal_process_ext_cmd_rsp()
130 status = nxpucihal_ctrl.ext_cb_data.status; in phNxpUciHal_process_ext_cmd_rsp()
136 NXPLOG_UCIHAL_E("Failed to process cmd/rsp 0x%x", nxpucihal_ctrl.ext_cb_data.status); in phNxpUciHal_process_ext_cmd_rsp()
149 phNxpUciHal_cleanup_cb_data(&nxpucihal_ctrl.ext_cb_data); in phNxpUciHal_process_ext_cmd_rsp()
174 nxpucihal_ctrl.cmd_len = cmd_len; in phNxpUciHal_send_ext_cmd()
175 memcpy(nxpucihal_ctrl.p_cmd_data, p_cmd, cmd_len); in phNxpUciHal_send_ext_cmd()
177 nxpucihal_ctrl.cmd_len, nxpucihal_ctrl.p_cmd_data, &data_written); in phNxpUciHal_send_ext_cmd()
298 phNxpUciHal_Runtime_Settings_t *rt_set = &nxpucihal_ctrl.rt_settings; in phNxpUciHal_resetRuntimeSettings()
315 phNxpUciHal_Runtime_Settings_t *rt_set = &nxpucihal_ctrl.rt_settings; in phNxpUciHal_applyCountryCaps()
388 phNxpUciHal_Runtime_Settings_t *rt_set = &nxpucihal_ctrl.rt_settings; in CountryCodeCapsGenTxPowerPacket()
455 if (nxpucihal_ctrl.hal_ext_enabled) { in phNxpUciHal_handle_set_calibration()
469 phNxpUciHal_Runtime_Settings_t *rt_set = &nxpucihal_ctrl.rt_settings; in phNxpUciHal_handle_set_calibration()
478 …CountryCodeCapsGenTxPowerPacket(nxpucihal_ctrl.p_cmd_data, sizeof(nxpucihal_ctrl.p_cmd_data), &nxp… in phNxpUciHal_handle_set_calibration()
525nxpucihal_ctrl.uwb_chip->read_otp(EXTCAL_PARAM_CLK_ACCURACY, xtal_data, sizeof(xtal_data), &xtal_d… in extcal_do_xtal()
537 …ret = nxpucihal_ctrl.uwb_chip->apply_calibration(EXTCAL_PARAM_CLK_ACCURACY, 0, xtal_data, xtal_dat… in extcal_do_xtal()
548 std::bitset<8> rx_antenna_mask(nxpucihal_ctrl.cal_rx_antenna_mask); in extcal_do_ant_delay()
556 const int16_t extra_delay = nxpucihal_ctrl.uwb_chip->extra_group_delay(); in extcal_do_ant_delay()
591 …tHAL_UWB_STATUS ret = nxpucihal_ctrl.uwb_chip->apply_calibration(EXTCAL_PARAM_RX_ANT_DELAY, ch, en… in extcal_do_ant_delay()
601 std::bitset<8> tx_antenna_mask(nxpucihal_ctrl.cal_tx_antenna_mask); in extcal_do_tx_power()
635 …tHAL_UWB_STATUS ret = nxpucihal_ctrl.uwb_chip->apply_calibration(EXTCAL_PARAM_TX_POWER, ch, entrie… in extcal_do_tx_power()
652 …tHAL_UWB_STATUS ret = nxpucihal_ctrl.uwb_chip->apply_calibration(EXTCAL_PARAM_TX_PULSE_SHAPE, 0, d… in extcal_do_tx_pulse_shape()
683 …ret = nxpucihal_ctrl.uwb_chip->apply_calibration(EXTCAL_PARAM_DDFS_TONE_CONFIG, 0, ddfs_tone, (siz… in extcal_do_tx_base_band()
698 … ret = nxpucihal_ctrl.uwb_chip->apply_calibration(EXTCAL_PARAM_TX_BASE_BAND_CONTROL, 0, &flag, 1); in extcal_do_tx_base_band()
724 nxpucihal_ctrl.cal_rx_antenna_mask = rx_antenna_mask_n; in phNxpUciHal_extcal_handle_coreinit()
725 nxpucihal_ctrl.cal_tx_antenna_mask = tx_antenna_mask_n; in phNxpUciHal_extcal_handle_coreinit()
759 phNxpUciHal_Runtime_Settings_t *rt_set = &nxpucihal_ctrl.rt_settings; in phNxpUciHal_handle_set_country_code()
800 nxpucihal_ctrl.rx_data_len = 5; in phNxpUciHal_handle_set_country_code()
807 (*nxpucihal_ctrl.p_uwb_stack_data_cback)(nxpucihal_ctrl.rx_data_len, rsp_data); in phNxpUciHal_handle_set_country_code()
823 const phNxpUciHal_Runtime_Settings_t *rt_set = &nxpucihal_ctrl.rt_settings; in phNxpUciHal_handle_set_app_config()
885 nxpucihal_ctrl.rx_data_len = sizeof(rsp_data); in phNxpUciHal_handle_set_app_config()
886 (*nxpucihal_ctrl.p_uwb_stack_data_cback)(nxpucihal_ctrl.rx_data_len, rsp_data); in phNxpUciHal_handle_set_app_config()
958 if (nxpucihal_ctrl.numberOfAntennaPairs == 1) { in phNxpUciHal_handle_get_caps_info()
960 } else if (nxpucihal_ctrl.numberOfAntennaPairs > 1) { in phNxpUciHal_handle_get_caps_info()
987 const phNxpUciHal_Runtime_Settings_t *rt_set = &nxpucihal_ctrl.rt_settings; in phNxpUciHal_handle_get_caps_info()
1026 (*nxpucihal_ctrl.p_uwb_stack_data_cback)(packet_len, packet); in phNxpUciHal_handle_get_caps_info()
1029 nxpucihal_ctrl.isSkipPacket = 1; in phNxpUciHal_handle_get_caps_info()