Searched refs:div_fctr (Results 1 – 2 of 2) sorted by relevance
/linux-6.12.1/drivers/accel/habanalabs/goya/ |
D | goya.c | 748 u32 nr = 0, nf = 0, od = 0, div_fctr = 0, pll_clk, div_sel; in goya_fetch_psoc_frequency() local 766 div_fctr = RREG32(mmPSOC_PCI_PLL_DIV_FACTOR_1); in goya_fetch_psoc_frequency() 777 freq = PLL_REF_CLK / (div_fctr + 1); in goya_fetch_psoc_frequency() 785 freq = pll_clk / (div_fctr + 1); in goya_fetch_psoc_frequency() 798 prop->psoc_pci_pll_div_factor = div_fctr; in goya_fetch_psoc_frequency()
|
/linux-6.12.1/drivers/accel/habanalabs/gaudi/ |
D | gaudi.c | 910 u32 nr = 0, nf = 0, od = 0, div_fctr = 0, pll_clk, div_sel; in gaudi_fetch_psoc_frequency() local 930 div_fctr = RREG32(mmPSOC_CPU_PLL_DIV_FACTOR_2); in gaudi_fetch_psoc_frequency() 941 freq = PLL_REF_CLK / (div_fctr + 1); in gaudi_fetch_psoc_frequency() 949 freq = pll_clk / (div_fctr + 1); in gaudi_fetch_psoc_frequency() 960 prop->psoc_pci_pll_div_factor = div_fctr; in gaudi_fetch_psoc_frequency()
|