Lines Matching refs:nxpprofile_ctrl
45 phNxpNciProfile_Control_t nxpprofile_ctrl; variable
260 … status = phNxpNciHal_fw_download_seq(nxpprofile_ctrl.bClkSrcVal, nxpprofile_ctrl.bClkFreqVal); in phNxpNciHal_fw_download()
344 nxpprofile_ctrl.bClkSrcVal = 0; in phNxpNciHal_get_clk_freq()
345 nxpprofile_ctrl.bClkFreqVal = 0; in phNxpNciHal_get_clk_freq()
346 nxpprofile_ctrl.bTimeout = 0; in phNxpNciHal_get_clk_freq()
351 nxpprofile_ctrl.bClkSrcVal = num; in phNxpNciHal_get_clk_freq()
359 nxpprofile_ctrl.bClkFreqVal = num; in phNxpNciHal_get_clk_freq()
367 nxpprofile_ctrl.bTimeout = num; in phNxpNciHal_get_clk_freq()
370 NXPLOG_FWDNLD_D("gphNxpNciHal_fw_IoctlCtx.bClkSrcVal = 0x%x", nxpprofile_ctrl.bClkSrcVal); in phNxpNciHal_get_clk_freq()
371 NXPLOG_FWDNLD_D("gphNxpNciHal_fw_IoctlCtx.bClkFreqVal = 0x%x", nxpprofile_ctrl.bClkFreqVal); in phNxpNciHal_get_clk_freq()
372 NXPLOG_FWDNLD_D("gphNxpNciHal_fw_IoctlCtx.bClkFreqVal = 0x%x", nxpprofile_ctrl.bTimeout); in phNxpNciHal_get_clk_freq()
374 if ((nxpprofile_ctrl.bClkSrcVal < CLK_SRC_XTAL) || in phNxpNciHal_get_clk_freq()
375 (nxpprofile_ctrl.bClkSrcVal > CLK_SRC_PLL)) in phNxpNciHal_get_clk_freq()
378 nxpprofile_ctrl.bClkSrcVal = NXP_SYS_CLK_SRC_SEL; in phNxpNciHal_get_clk_freq()
380 if ((nxpprofile_ctrl.bClkFreqVal < CLK_FREQ_13MHZ) || in phNxpNciHal_get_clk_freq()
381 (nxpprofile_ctrl.bClkFreqVal > CLK_FREQ_52MHZ)) in phNxpNciHal_get_clk_freq()
384 nxpprofile_ctrl.bClkFreqVal = NXP_SYS_CLK_FREQ_SEL; in phNxpNciHal_get_clk_freq()
386 if ((nxpprofile_ctrl.bTimeout < CLK_TO_CFG_DEF) || (nxpprofile_ctrl.bTimeout > CLK_TO_CFG_MAX)) in phNxpNciHal_get_clk_freq()
389 nxpprofile_ctrl.bTimeout = CLK_TO_CFG_DEF; in phNxpNciHal_get_clk_freq()
440 memset (&nxpprofile_ctrl, 0, sizeof(phNxpNciProfile_Control_t)); in phNxpNciHal_open()
1895 if (nxpprofile_ctrl.bClkSrcVal == CLK_SRC_PLL) in phNxpNciHal_set_clock()
1902 if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_13MHZ) in phNxpNciHal_set_clock()
1906 else if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_19_2MHZ) in phNxpNciHal_set_clock()
1910 else if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_24MHZ) in phNxpNciHal_set_clock()
1914 else if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_26MHZ) in phNxpNciHal_set_clock()
1918 else if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_38_4MHZ) in phNxpNciHal_set_clock()
1922 else if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_52MHZ) in phNxpNciHal_set_clock()
1933 set_clock_cmd[11] = nxpprofile_ctrl.bTimeout; in phNxpNciHal_set_clock()
1940 else if(nxpprofile_ctrl.bClkSrcVal == CLK_SRC_XTAL) in phNxpNciHal_set_clock()
1998 …Clock.p_rx_data[12] == param_clock_src && phNxpNciClock.p_rx_data[16] == nxpprofile_ctrl.bTimeout) in phNxpNciHal_check_clock_config()
2088 if (nxpprofile_ctrl.bClkSrcVal == CLK_SRC_PLL) in check_config_parameter()
2092 if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_13MHZ) in check_config_parameter()
2096 else if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_19_2MHZ) in check_config_parameter()
2100 else if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_24MHZ) in check_config_parameter()
2104 else if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_26MHZ) in check_config_parameter()
2108 else if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_38_4MHZ) in check_config_parameter()
2112 else if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_52MHZ) in check_config_parameter()
2122 else if(nxpprofile_ctrl.bClkSrcVal == CLK_SRC_XTAL) in check_config_parameter()