Lines Matching refs:mgn_set
1931 u16 val16, mgn_set, div_set, tar; in rtw89_pci_auto_refclk_cal() local
2003 mgn_set = tar * INTF_INTGRA_HOSTREF_V1 / INTF_INTGRA_MINREF_V1 - tar; in rtw89_pci_auto_refclk_cal()
2005 if (mgn_set >= 128) { in rtw89_pci_auto_refclk_cal()
2007 mgn_set = 0x000F; in rtw89_pci_auto_refclk_cal()
2008 } else if (mgn_set >= 64) { in rtw89_pci_auto_refclk_cal()
2010 mgn_set >>= 3; in rtw89_pci_auto_refclk_cal()
2011 } else if (mgn_set >= 32) { in rtw89_pci_auto_refclk_cal()
2013 mgn_set >>= 2; in rtw89_pci_auto_refclk_cal()
2014 } else if (mgn_set >= 16) { in rtw89_pci_auto_refclk_cal()
2016 mgn_set >>= 1; in rtw89_pci_auto_refclk_cal()
2017 } else if (mgn_set == 0) { in rtw89_pci_auto_refclk_cal()
2045 tar, div_set, mgn_set); in rtw89_pci_auto_refclk_cal()
2047 (tar & 0x0FFF) | (mgn_set << 12), phy_rate); in rtw89_pci_auto_refclk_cal()