Lines Matching refs:secondary
847 static int stm32f4_rcc_lookup_clk_idx(u8 primary, u8 secondary) in stm32f4_rcc_lookup_clk_idx() argument
852 if (WARN_ON(secondary >= stm32fx_end_primary_clk)) in stm32f4_rcc_lookup_clk_idx()
854 return secondary; in stm32f4_rcc_lookup_clk_idx()
860 if (WARN_ON(secondary >= BITS_PER_BYTE * sizeof(table) || in stm32f4_rcc_lookup_clk_idx()
861 0 == (table[BIT_ULL_WORD(secondary)] & in stm32f4_rcc_lookup_clk_idx()
862 BIT_ULL_MASK(secondary)))) in stm32f4_rcc_lookup_clk_idx()
866 table[BIT_ULL_WORD(secondary)] &= in stm32f4_rcc_lookup_clk_idx()
867 GENMASK_ULL(secondary % BITS_PER_LONG_LONG, 0); in stm32f4_rcc_lookup_clk_idx()
870 (BIT_ULL_WORD(secondary) >= 1 ? hweight64(table[1]) : 0) + in stm32f4_rcc_lookup_clk_idx()
871 (BIT_ULL_WORD(secondary) >= 2 ? hweight64(table[2]) : 0); in stm32f4_rcc_lookup_clk_idx()
1810 unsigned int secondary; in stm32f4_rcc_init() local
1814 secondary = 8 * (gd->offset - STM32F4_RCC_AHB1ENR) + in stm32f4_rcc_init()
1816 idx = stm32f4_rcc_lookup_clk_idx(0, secondary); in stm32f4_rcc_init()