/* * This header provides constants for the STM32F4 RCC IP */ #ifndef _DT_BINDINGS_MFD_STM32F4_RCC_H #define _DT_BINDINGS_MFD_STM32F4_RCC_H /* AHB1 */ #define STM32F4_RCC_AHB1_GPIOA 0 #define STM32F4_RCC_AHB1_GPIOB 1 #define STM32F4_RCC_AHB1_GPIOC 2 #define STM32F4_RCC_AHB1_GPIOD 3 #define STM32F4_RCC_AHB1_GPIOE 4 #define STM32F4_RCC_AHB1_GPIOF 5 #define STM32F4_RCC_AHB1_GPIOG 6 #define STM32F4_RCC_AHB1_GPIOH 7 #define STM32F4_RCC_AHB1_GPIOI 8 #define STM32F4_RCC_AHB1_GPIOJ 9 #define STM32F4_RCC_AHB1_GPIOK 10 #define STM32F4_RCC_AHB1_CRC 12 #define STM32F4_RCC_AHB1_DMA1 21 #define STM32F4_RCC_AHB1_DMA2 22 #define STM32F4_RCC_AHB1_DMA2D 23 #define STM32F4_RCC_AHB1_ETHMAC 25 #define STM32F4_RCC_AHB1_OTGHS 29 #define STM32F4_AHB1_RESET(bit) (STM32F4_RCC_AHB1_##bit + (0x10 * 8)) #define STM32F4_AHB1_CLOCK(bit) (STM32F4_RCC_AHB1_##bit + (0x30 * 8)) /* AHB2 */ #define STM32F4_RCC_AHB2_DCMI 0 #define STM32F4_RCC_AHB2_CRYP 4 #define STM32F4_RCC_AHB2_HASH 5 #define STM32F4_RCC_AHB2_RNG 6 #define STM32F4_RCC_AHB2_OTGFS 7 #define STM32F4_AHB2_RESET(bit) (STM32F4_RCC_AHB2_##bit + (0x14 * 8)) #define STM32F4_AHB2_CLOCK(bit) (STM32F4_RCC_AHB2_##bit + (0x34 * 8)) /* AHB3 */ #define STM32F4_RCC_AHB3_FMC 0 #define STM32F4_AHB3_RESET(bit) (STM32F4_RCC_AHB3_##bit + (0x18 * 8)) #define STM32F4_AHB3_CLOCK(bit) (STM32F4_RCC_AHB3_##bit + (0x38 * 8)) /* APB1 */ #define STM32F4_RCC_APB1_TIM2 0 #define STM32F4_RCC_APB1_TIM3 1 #define STM32F4_RCC_APB1_TIM4 2 #define STM32F4_RCC_APB1_TIM5 3 #define STM32F4_RCC_APB1_TIM6 4 #define STM32F4_RCC_APB1_TIM7 5 #define STM32F4_RCC_APB1_TIM12 6 #define STM32F4_RCC_APB1_TIM13 7 #define STM32F4_RCC_APB1_TIM14 8 #define STM32F4_RCC_APB1_WWDG 11 #define STM32F4_RCC_APB1_SPI2 14 #define STM32F4_RCC_APB1_SPI3 15 #define STM32F4_RCC_APB1_UART2 17 #define STM32F4_RCC_APB1_UART3 18 #define STM32F4_RCC_APB1_UART4 19 #define STM32F4_RCC_APB1_UART5 20 #define STM32F4_RCC_APB1_I2C1 21 #define STM32F4_RCC_APB1_I2C2 22 #define STM32F4_RCC_APB1_I2C3 23 #define STM32F4_RCC_APB1_CAN1 25 #define STM32F4_RCC_APB1_CAN2 26 #define STM32F4_RCC_APB1_PWR 28 #define STM32F4_RCC_APB1_DAC 29 #define STM32F4_RCC_APB1_UART7 30 #define STM32F4_RCC_APB1_UART8 31 #define STM32F4_APB1_RESET(bit) (STM32F4_RCC_APB1_##bit + (0x20 * 8)) #define STM32F4_APB1_CLOCK(bit) (STM32F4_RCC_APB1_##bit + (0x40 * 8)) /* APB2 */ #define STM32F4_RCC_APB2_TIM1 0 #define STM32F4_RCC_APB2_TIM8 1 #define STM32F4_RCC_APB2_USART1 4 #define STM32F4_RCC_APB2_USART6 5 #define STM32F4_RCC_APB2_ADC 8 #define STM32F4_RCC_APB2_SDIO 11 #define STM32F4_RCC_APB2_SPI1 12 #define STM32F4_RCC_APB2_SPI4 13 #define STM32F4_RCC_APB2_SYSCFG 14 #define STM32F4_RCC_APB2_TIM9 16 #define STM32F4_RCC_APB2_TIM10 17 #define STM32F4_RCC_APB2_TIM11 18 #define STM32F4_RCC_APB2_SPI5 20 #define STM32F4_RCC_APB2_SPI6 21 #define STM32F4_RCC_APB2_SAI1 22 #define STM32F4_RCC_APB2_LTDC 26 #define STM32F4_APB2_RESET(bit) (STM32F4_RCC_APB2_##bit + (0x24 * 8)) #define STM32F4_APB2_CLOCK(bit) (STM32F4_RCC_APB2_##bit + (0x44 * 8)) #endif /* _DT_BINDINGS_MFD_STM32F4_RCC_H */ alue='15'>15space:mode:
authorMatthew Wilcox <willy@linux.intel.com>2016-12-14 15:09:01 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2016-12-14 16:04:10 -0800
commite157b555945fb16ddc6cce605a1eb6b4135ea5f1 (patch)
treef0b53b641059c010cfd38a32ae7f4f3b27b04303
parent175542f575723e43f897ddb09d0011c13f7cf0ec (diff)
radix-tree: add radix_tree_split
This new function splits a larger multiorder entry into smaller entries (potentially multi-order entries). These entries are initialised to RADIX_TREE_RETRY to ensure that RCU walkers who see this state aren't confused. The caller should then call radix_tree_for_each_slot() and radix_tree_replace_slot() in order to turn these retry entries into the intended new entries. Tags are replicated from the original multiorder entry into each new entry. Link: http://lkml.kernel.org/r/1480369871-5271-59-git-send-email-mawilcox@linuxonhyperv.com Signed-off-by: Matthew Wilcox <willy@linux.intel.com> Tested-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Cc: Konstantin Khlebnikov <koct9i@gmail.com> Cc: Ross Zwisler <ross.zwisler@linux.intel.com> Cc: Matthew Wilcox <mawilcox@microsoft.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat
-rw-r--r--include/linux/radix-tree.h12
-rw-r--r--lib/radix-tree.c142
-rw-r--r--tools/testing/radix-tree/multiorder.c64
3 files changed, 214 insertions, 4 deletions
diff --git a/include/linux/radix-tree.h b/include/linux/radix-tree.h