Lines Matching refs:nxpprofile_ctrl
47 phNxpNciProfile_Control_t nxpprofile_ctrl; variable
269 status = phNxpNciHal_fw_download_seq(nxpprofile_ctrl.bClkSrcVal, in phNxpNciHal_fw_download()
270 nxpprofile_ctrl.bClkFreqVal); in phNxpNciHal_fw_download()
354 nxpprofile_ctrl.bClkSrcVal = 0; in phNxpNciHal_get_clk_freq()
355 nxpprofile_ctrl.bClkFreqVal = 0; in phNxpNciHal_get_clk_freq()
356 nxpprofile_ctrl.bTimeout = 0; in phNxpNciHal_get_clk_freq()
360 nxpprofile_ctrl.bClkSrcVal = num; in phNxpNciHal_get_clk_freq()
367 nxpprofile_ctrl.bClkFreqVal = num; in phNxpNciHal_get_clk_freq()
374 nxpprofile_ctrl.bTimeout = num; in phNxpNciHal_get_clk_freq()
378 nxpprofile_ctrl.bClkSrcVal); in phNxpNciHal_get_clk_freq()
380 nxpprofile_ctrl.bClkFreqVal); in phNxpNciHal_get_clk_freq()
382 nxpprofile_ctrl.bTimeout); in phNxpNciHal_get_clk_freq()
384 if ((nxpprofile_ctrl.bClkSrcVal < CLK_SRC_XTAL) || in phNxpNciHal_get_clk_freq()
385 (nxpprofile_ctrl.bClkSrcVal > CLK_SRC_PLL)) { in phNxpNciHal_get_clk_freq()
388 nxpprofile_ctrl.bClkSrcVal = NXP_SYS_CLK_SRC_SEL; in phNxpNciHal_get_clk_freq()
390 if ((nxpprofile_ctrl.bClkFreqVal < CLK_FREQ_13MHZ) || in phNxpNciHal_get_clk_freq()
391 (nxpprofile_ctrl.bClkFreqVal > CLK_FREQ_52MHZ)) { in phNxpNciHal_get_clk_freq()
394 nxpprofile_ctrl.bClkFreqVal = NXP_SYS_CLK_FREQ_SEL; in phNxpNciHal_get_clk_freq()
396 if ((nxpprofile_ctrl.bTimeout < CLK_TO_CFG_DEF) || in phNxpNciHal_get_clk_freq()
397 (nxpprofile_ctrl.bTimeout > CLK_TO_CFG_MAX)) { in phNxpNciHal_get_clk_freq()
400 nxpprofile_ctrl.bTimeout = CLK_TO_CFG_DEF; in phNxpNciHal_get_clk_freq()
456 memset(&nxpprofile_ctrl, 0, sizeof(phNxpNciProfile_Control_t)); in phNxpNciHal_open()
2140 if (nxpprofile_ctrl.bClkSrcVal == CLK_SRC_PLL) { in phNxpNciHal_set_clock()
2146 if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_13MHZ) { in phNxpNciHal_set_clock()
2148 } else if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_19_2MHZ) { in phNxpNciHal_set_clock()
2150 } else if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_24MHZ) { in phNxpNciHal_set_clock()
2152 } else if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_26MHZ) { in phNxpNciHal_set_clock()
2154 } else if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_38_4MHZ) { in phNxpNciHal_set_clock()
2156 } else if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_52MHZ) { in phNxpNciHal_set_clock()
2164 set_clock_cmd[11] = nxpprofile_ctrl.bTimeout; in phNxpNciHal_set_clock()
2169 } else if (nxpprofile_ctrl.bClkSrcVal == CLK_SRC_XTAL) { in phNxpNciHal_set_clock()
2221 phNxpNciClock.p_rx_data[16] == nxpprofile_ctrl.bTimeout) { in phNxpNciHal_check_clock_config()
2299 if (nxpprofile_ctrl.bClkSrcVal == CLK_SRC_PLL) { in check_config_parameter()
2302 if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_13MHZ) { in check_config_parameter()
2304 } else if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_19_2MHZ) { in check_config_parameter()
2306 } else if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_24MHZ) { in check_config_parameter()
2308 } else if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_26MHZ) { in check_config_parameter()
2310 } else if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_38_4MHZ) { in check_config_parameter()
2312 } else if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_52MHZ) { in check_config_parameter()
2318 } else if (nxpprofile_ctrl.bClkSrcVal == CLK_SRC_XTAL) { in check_config_parameter()