Lines Matching refs:nxpprofile_ctrl
46 phNxpNciProfile_Control_t nxpprofile_ctrl; variable
277 … status = phNxpNciHal_fw_download_seq(nxpprofile_ctrl.bClkSrcVal, nxpprofile_ctrl.bClkFreqVal); in phNxpNciHal_fw_download()
367 nxpprofile_ctrl.bClkSrcVal = 0; in phNxpNciHal_get_clk_freq()
368 nxpprofile_ctrl.bClkFreqVal = 0; in phNxpNciHal_get_clk_freq()
369 nxpprofile_ctrl.bTimeout = 0; in phNxpNciHal_get_clk_freq()
374 nxpprofile_ctrl.bClkSrcVal = num; in phNxpNciHal_get_clk_freq()
382 nxpprofile_ctrl.bClkFreqVal = num; in phNxpNciHal_get_clk_freq()
390 nxpprofile_ctrl.bTimeout = num; in phNxpNciHal_get_clk_freq()
393 NXPLOG_FWDNLD_D("gphNxpNciHal_fw_IoctlCtx.bClkSrcVal = 0x%x", nxpprofile_ctrl.bClkSrcVal); in phNxpNciHal_get_clk_freq()
394 NXPLOG_FWDNLD_D("gphNxpNciHal_fw_IoctlCtx.bClkFreqVal = 0x%x", nxpprofile_ctrl.bClkFreqVal); in phNxpNciHal_get_clk_freq()
395 NXPLOG_FWDNLD_D("gphNxpNciHal_fw_IoctlCtx.bClkFreqVal = 0x%x", nxpprofile_ctrl.bTimeout); in phNxpNciHal_get_clk_freq()
397 if ((nxpprofile_ctrl.bClkSrcVal < CLK_SRC_XTAL) || in phNxpNciHal_get_clk_freq()
398 (nxpprofile_ctrl.bClkSrcVal > CLK_SRC_PLL)) in phNxpNciHal_get_clk_freq()
401 nxpprofile_ctrl.bClkSrcVal = NXP_SYS_CLK_SRC_SEL; in phNxpNciHal_get_clk_freq()
403 if ((nxpprofile_ctrl.bClkFreqVal < CLK_FREQ_13MHZ) || in phNxpNciHal_get_clk_freq()
404 (nxpprofile_ctrl.bClkFreqVal > CLK_FREQ_52MHZ)) in phNxpNciHal_get_clk_freq()
407 nxpprofile_ctrl.bClkFreqVal = NXP_SYS_CLK_FREQ_SEL; in phNxpNciHal_get_clk_freq()
409 if ((nxpprofile_ctrl.bTimeout < CLK_TO_CFG_DEF) || (nxpprofile_ctrl.bTimeout > CLK_TO_CFG_MAX)) in phNxpNciHal_get_clk_freq()
412 nxpprofile_ctrl.bTimeout = CLK_TO_CFG_DEF; in phNxpNciHal_get_clk_freq()
463 memset (&nxpprofile_ctrl, 0, sizeof(phNxpNciProfile_Control_t)); in phNxpNciHal_open()
2221 if (nxpprofile_ctrl.bClkSrcVal == CLK_SRC_PLL) in phNxpNciHal_set_clock()
2228 if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_13MHZ) in phNxpNciHal_set_clock()
2232 else if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_19_2MHZ) in phNxpNciHal_set_clock()
2236 else if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_24MHZ) in phNxpNciHal_set_clock()
2240 else if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_26MHZ) in phNxpNciHal_set_clock()
2244 else if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_38_4MHZ) in phNxpNciHal_set_clock()
2248 else if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_52MHZ) in phNxpNciHal_set_clock()
2259 set_clock_cmd[11] = nxpprofile_ctrl.bTimeout; in phNxpNciHal_set_clock()
2266 else if(nxpprofile_ctrl.bClkSrcVal == CLK_SRC_XTAL) in phNxpNciHal_set_clock()
2324 …Clock.p_rx_data[12] == param_clock_src && phNxpNciClock.p_rx_data[16] == nxpprofile_ctrl.bTimeout) in phNxpNciHal_check_clock_config()
2414 if (nxpprofile_ctrl.bClkSrcVal == CLK_SRC_PLL) in check_config_parameter()
2418 if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_13MHZ) in check_config_parameter()
2422 else if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_19_2MHZ) in check_config_parameter()
2426 else if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_24MHZ) in check_config_parameter()
2430 else if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_26MHZ) in check_config_parameter()
2434 else if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_38_4MHZ) in check_config_parameter()
2438 else if (nxpprofile_ctrl.bClkFreqVal == CLK_FREQ_52MHZ) in check_config_parameter()
2448 else if(nxpprofile_ctrl.bClkSrcVal == CLK_SRC_XTAL) in check_config_parameter()