Lines Matching refs:secondary
22 * The index of these clocks is the secondary index of DT bindings
844 * Converts the primary and secondary indices (as they appear in DT) to an
847 static int stm32f4_rcc_lookup_clk_idx(u8 primary, u8 secondary)
852 if (WARN_ON(secondary >= stm32fx_end_primary_clk))
854 return secondary;
860 if (WARN_ON(secondary >= BITS_PER_BYTE * sizeof(table) ||
861 0 == (table[BIT_ULL_WORD(secondary)] &
862 BIT_ULL_MASK(secondary))))
866 table[BIT_ULL_WORD(secondary)] &=
867 GENMASK_ULL(secondary % BITS_PER_LONG_LONG, 0);
870 (BIT_ULL_WORD(secondary) >= 1 ? hweight64(table[1]) : 0) +
871 (BIT_ULL_WORD(secondary) >= 2 ? hweight64(table[2]) : 0);
1809 unsigned int secondary;
1813 secondary = 8 * (gd->offset - STM32F4_RCC_AHB1ENR) +
1815 idx = stm32f4_rcc_lookup_clk_idx(0, secondary);