Lines Matching full:instance
16 void sy1xx_udma_enable_clock(sy1xx_udma_module_t module, uint32_t instance) in sy1xx_udma_enable_clock() argument
24 if (instance >= SY1XX_MAX_UART_COUNT) { in sy1xx_udma_enable_clock()
27 udma_ctrl_per_cg |= 1 << (instance + 0); in sy1xx_udma_enable_clock()
31 if (instance >= SY1XX_MAX_I2C_COUNT) { in sy1xx_udma_enable_clock()
34 udma_ctrl_per_cg |= 1 << (instance + 10); in sy1xx_udma_enable_clock()
38 if (instance >= SY1XX_MAX_SPI_COUNT) { in sy1xx_udma_enable_clock()
41 udma_ctrl_per_cg |= 1 << (instance + 3); in sy1xx_udma_enable_clock()
45 if (instance >= SY1XX_MAX_ETH_COUNT) { in sy1xx_udma_enable_clock()
48 udma_ctrl_per_cg |= 1 << (instance + 20); in sy1xx_udma_enable_clock()
58 void sy1xx_udma_disable_clock(sy1xx_udma_module_t module, uint32_t instance) in sy1xx_udma_disable_clock() argument
66 if (instance >= SY1XX_MAX_UART_COUNT) { in sy1xx_udma_disable_clock()
69 udma_ctrl_per_cg &= ~(1 << (instance + 0)); in sy1xx_udma_disable_clock()
73 if (instance >= SY1XX_MAX_I2C_COUNT) { in sy1xx_udma_disable_clock()
76 udma_ctrl_per_cg &= ~(1 << (instance + 10)); in sy1xx_udma_disable_clock()
80 if (instance >= SY1XX_MAX_SPI_COUNT) { in sy1xx_udma_disable_clock()
83 udma_ctrl_per_cg &= ~(1 << (instance + 3)); in sy1xx_udma_disable_clock()
87 if (instance >= SY1XX_MAX_ETH_COUNT) { in sy1xx_udma_disable_clock()
90 udma_ctrl_per_cg &= ~(1 << (instance + 20)); in sy1xx_udma_disable_clock()