/device/soc/esp/esp32/components/osal/port/xtensa/include/esp_osal/ |
D | portmacro.h | 151 static inline void __attribute__((always_inline)) vPortCPUInitializeMutex(portMUX_TYPE *mux) in vPortCPUInitializeMutex() argument 153 spinlock_initialize(mux); in vPortCPUInitializeMutex() 156 static inline void __attribute__((always_inline)) vPortCPUAcquireMutex(portMUX_TYPE *mux) in vPortCPUAcquireMutex() argument 158 spinlock_acquire(mux, portMUX_NO_TIMEOUT); in vPortCPUAcquireMutex() 161 static inline bool __attribute__((always_inline)) vPortCPUAcquireMutexTimeout(portMUX_TYPE *mux, in… in vPortCPUAcquireMutexTimeout() argument 163 return (spinlock_acquire(mux, timeout)); in vPortCPUAcquireMutexTimeout() 166 static inline void __attribute__((always_inline)) vPortCPUReleaseMutex(portMUX_TYPE *mux) in vPortCPUReleaseMutex() argument 168 spinlock_release(mux); in vPortCPUReleaseMutex() 171 void vPortEnterCritical(portMUX_TYPE *mux); 172 void vPortExitCritical(portMUX_TYPE *mux); [all …]
|
/device/soc/amlogic/a311d/soc/arch/arm64/boot/dts/amlogic/ |
D | meson-g12-common.dtsi | 346 "mux", 354 mux { 362 mux { 370 mux-0 { 377 mux-1 { 386 mux-0 { 398 mux-0 { 414 mux { 423 mux { 432 mux { [all …]
|
/device/soc/esp/esp32/components/osal/ |
D | queue.c | 120 portMUX_TYPE mux; //Mutex required due to SMP member 195 taskENTER_CRITICAL( &pxQueue->mux); \ 206 taskEXIT_CRITICAL( &pxQueue->mux) 328 vPortCPUInitializeMutex(&pxQueue->mux); in xQueueGenericReset() 331 taskENTER_CRITICAL( &pxQueue->mux); in xQueueGenericReset() 362 taskEXIT_CRITICAL( &pxQueue->mux); in xQueueGenericReset() 554 vPortCPUInitializeMutex(&pxNewQueue->mux); in prvInitialiseMutex() 781 taskENTER_CRITICAL( &pxQueue->mux); in xQueueGenericSend() 798 taskEXIT_CRITICAL( &pxQueue->mux); in xQueueGenericSend() 807 taskEXIT_CRITICAL( &pxQueue->mux); in xQueueGenericSend() [all …]
|
/device/soc/rockchip/rk3588/kernel/drivers/clk/rockchip/ |
D | clk-dclk-divider.c | 107 struct clk_mux *mux = NULL; in rockchip_clk_register_dclk_branch() local 114 mux = kzalloc(sizeof(*mux), GFP_KERNEL); in rockchip_clk_register_dclk_branch() 115 if (!mux) in rockchip_clk_register_dclk_branch() 118 mux->reg = base + muxdiv_offset; in rockchip_clk_register_dclk_branch() 119 mux->shift = mux_shift; in rockchip_clk_register_dclk_branch() 120 mux->mask = BIT(mux_width) - 1; in rockchip_clk_register_dclk_branch() 121 mux->flags = mux_flags; in rockchip_clk_register_dclk_branch() 122 mux->lock = lock; in rockchip_clk_register_dclk_branch() 157 mux ? &mux->hw : NULL, mux_ops, in rockchip_clk_register_dclk_branch() 166 kfree(mux); in rockchip_clk_register_dclk_branch()
|
/device/board/isoftstone/yangfan/kernel/src/driv/clk/ |
D | clk-dclk-divider.c | 107 struct clk_mux *mux = NULL; in rockchip_clk_register_dclk_branch() local 114 mux = kzalloc(sizeof(*mux), GFP_KERNEL); in rockchip_clk_register_dclk_branch() 115 if (!mux) in rockchip_clk_register_dclk_branch() 118 mux->reg = base + muxdiv_offset; in rockchip_clk_register_dclk_branch() 119 mux->shift = mux_shift; in rockchip_clk_register_dclk_branch() 120 mux->mask = BIT(mux_width) - 1; in rockchip_clk_register_dclk_branch() 121 mux->flags = mux_flags; in rockchip_clk_register_dclk_branch() 122 mux->lock = lock; in rockchip_clk_register_dclk_branch() 157 mux ? &mux->hw : NULL, mux_ops, in rockchip_clk_register_dclk_branch() 166 kfree(mux); in rockchip_clk_register_dclk_branch()
|
/device/soc/rockchip/common/vendor/drivers/clk/ |
D | clk-dclk-divider.c | 100 struct clk_mux *mux = NULL; in rockchip_clk_register_dclk_branch() local 106 mux = kzalloc(sizeof(*mux), GFP_KERNEL); in rockchip_clk_register_dclk_branch() 107 if (!mux) { in rockchip_clk_register_dclk_branch() 111 mux->reg = base + muxdiv_offset; in rockchip_clk_register_dclk_branch() 112 mux->shift = mux_shift; in rockchip_clk_register_dclk_branch() 113 mux->mask = BIT(mux_width) - 1; in rockchip_clk_register_dclk_branch() 114 mux->flags = mux_flags; in rockchip_clk_register_dclk_branch() 115 mux->lock = lock; in rockchip_clk_register_dclk_branch() 151 …clk = clk_register_composite(NULL, name, parent_names, num_parents, mux ? &mux->hw : NULL, mux_ops, in rockchip_clk_register_dclk_branch() 158 kfree(mux); in rockchip_clk_register_dclk_branch()
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/clk/ |
D | ccu_mux.c | 230 return ccu_mux_helper_get_parent(&cm->common, &cm->mux); in ccu_mux_get_parent() 237 return ccu_mux_helper_set_parent(&cm->common, &cm->mux, index); in ccu_mux_set_parent() 245 return ccu_mux_helper_apply_prediv(&cm->common, &cm->mux, -1, in ccu_mux_recalc_rate() 271 struct ccu_mux_nb *mux = to_ccu_mux_nb(nb); in ccu_mux_notifier_cb() local 275 mux->original_index = ccu_mux_helper_get_parent(mux->common, in ccu_mux_notifier_cb() 276 mux->cm); in ccu_mux_notifier_cb() 277 ret = ccu_mux_helper_set_parent(mux->common, mux->cm, in ccu_mux_notifier_cb() 278 mux->bypass_index); in ccu_mux_notifier_cb() 280 ret = ccu_mux_helper_set_parent(mux->common, mux->cm, in ccu_mux_notifier_cb() 281 mux->original_index); in ccu_mux_notifier_cb() [all …]
|
D | ccu_div.c | 13 static unsigned long ccu_div_round_rate(struct ccu_mux_internal *mux, in ccu_div_round_rate() argument 67 parent_rate = ccu_mux_helper_apply_prediv(&cd->common, &cd->mux, -1, in ccu_div_recalc_rate() 84 return ccu_mux_helper_determine_rate(&cd->common, &cd->mux, in ccu_div_determine_rate() 96 parent_rate = ccu_mux_helper_apply_prediv(&cd->common, &cd->mux, -1, in ccu_div_set_rate() 122 return ccu_mux_helper_get_parent(&cd->common, &cd->mux); in ccu_div_get_parent() 129 return ccu_mux_helper_set_parent(&cd->common, &cd->mux, index); in ccu_div_set_parent()
|
D | ccu_mp.h | 27 struct ccu_mux_internal mux; member 43 .mux = _SUNXI_CCU_MUX(_muxshift, _muxwidth), \ 63 .mux = _SUNXI_CCU_MUX(_muxshift, _muxwidth), \ 84 .mux = _SUNXI_CCU_MUX(_muxshift, _muxwidth), \ 129 .mux = _SUNXI_CCU_MUX(24, 2), \
|
D | ccu_mult.c | 33 static unsigned long ccu_mult_round_rate(struct ccu_mux_internal *mux, in ccu_mult_round_rate() argument 89 parent_rate = ccu_mux_helper_apply_prediv(&cm->common, &cm->mux, -1, in ccu_mult_recalc_rate() 100 return ccu_mux_helper_determine_rate(&cm->common, &cm->mux, in ccu_mult_determine_rate() 122 parent_rate = ccu_mux_helper_apply_prediv(&cm->common, &cm->mux, -1, in ccu_mult_set_rate() 154 return ccu_mux_helper_get_parent(&cm->common, &cm->mux); in ccu_mult_get_parent() 161 return ccu_mux_helper_set_parent(&cm->common, &cm->mux, index); in ccu_mult_set_parent()
|
D | ccu-sun50iw12-r.c | 31 .mux = { 54 .mux = { 75 .mux = { 98 .mux = _SUNXI_CCU_MUX(4, 2), 111 .mux = _SUNXI_CCU_MUX(4, 2), 124 .mux = _SUNXI_CCU_MUX(4, 2),
|
D | ccu_mp.c | 95 static unsigned long ccu_mp_round_rate(struct ccu_mux_internal *mux, in ccu_mp_round_rate() argument 158 parent_rate = ccu_mux_helper_apply_prediv(&cmp->common, &cmp->mux, -1, in ccu_mp_recalc_rate() 191 return ccu_mux_helper_determine_rate(&cmp->common, &cmp->mux, in ccu_mp_determine_rate() 205 parent_rate = ccu_mux_helper_apply_prediv(&cmp->common, &cmp->mux, -1, in ccu_mp_set_rate() 245 return ccu_mux_helper_get_parent(&cmp->common, &cmp->mux); in ccu_mp_get_parent() 252 return ccu_mux_helper_set_parent(&cmp->common, &cmp->mux, index); in ccu_mp_set_parent()
|
/device/soc/rockchip/common/sdk_linux/drivers/clk/rockchip/ |
D | clk-half-divider.c | 155 struct clk_mux *mux = NULL; in rockchip_clk_register_halfdiv() local 161 mux = kzalloc(sizeof(*mux), GFP_KERNEL); in rockchip_clk_register_halfdiv() 162 if (!mux) { in rockchip_clk_register_halfdiv() 166 mux->reg = base + muxdiv_offset; in rockchip_clk_register_halfdiv() 167 mux->shift = mux_shift; in rockchip_clk_register_halfdiv() 168 mux->mask = BIT(mux_width) - 1; in rockchip_clk_register_halfdiv() 169 mux->flags = mux_flags; in rockchip_clk_register_halfdiv() 170 mux->lock = lock; in rockchip_clk_register_halfdiv() 205 …hw = clk_hw_register_composite(NULL, name, parent_names, num_parents, mux ? &mux->hw : NULL, mux_o… in rockchip_clk_register_halfdiv() 215 kfree(mux); in rockchip_clk_register_halfdiv()
|
D | clk.c | 45 struct clk_mux *mux = NULL; in rockchip_clk_register_branch() local 52 mux = kzalloc(sizeof(*mux), GFP_KERNEL); in rockchip_clk_register_branch() 53 if (!mux) { in rockchip_clk_register_branch() 57 mux->reg = base + muxdiv_offset; in rockchip_clk_register_branch() 58 mux->shift = mux_shift; in rockchip_clk_register_branch() 59 mux->mask = BIT(mux_width) - 1; in rockchip_clk_register_branch() 60 mux->flags = mux_flags; in rockchip_clk_register_branch() 61 mux->table = mux_table; in rockchip_clk_register_branch() 62 mux->lock = lock; in rockchip_clk_register_branch() 100 …hw = clk_hw_register_composite(NULL, name, parent_names, num_parents, mux ? &mux->hw : NULL, mux_o… in rockchip_clk_register_branch() [all …]
|
/device/soc/esp/esp32/components/pthread/ |
D | pthread.c | 76 static int IRAM_ATTR pthread_mutex_lock_internal(esp_pthread_mutex_t *mux, TickType_t tmo); 559 esp_pthread_mutex_t *mux = (esp_pthread_mutex_t *)malloc(sizeof(esp_pthread_mutex_t)); 560 if (!mux) { 563 mux->type = type; 565 if (mux->type == PTHREAD_MUTEX_RECURSIVE) { 566 mux->sem = xSemaphoreCreateRecursiveMutex(); 568 mux->sem = xSemaphoreCreateMutex(); 570 if (!mux->sem) { 571 free(mux); 575 *mutex = (pthread_mutex_t)mux; // pointer value fit into pthread_mutex_t (uint32_t) [all …]
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/drivers_ext/gr551x/ |
D | gr551x_spi_flash.c | 331 spim_params.pin_cfg.cs.mux = p_flash_init->flash_io.spi_cs.mux; in FLASH_SPIM_ID_init() 336 spim_params.pin_cfg.clk.mux = p_flash_init->flash_io.spi_clk.mux; in FLASH_SPIM_ID_init() 341 spim_params.pin_cfg.mosi.mux = p_flash_init->flash_io.spi_io0.qspi_io0.mux; in FLASH_SPIM_ID_init() 346 spim_params.pin_cfg.miso.mux = p_flash_init->flash_io.spi_io1.qspi_io1.mux; in FLASH_SPIM_ID_init() 370 qspi_params->pin_cfg.cs.mux = p_flash_init->flash_io.spi_cs.mux; in FLASH_SPIM_ID0_ID1_init() 375 qspi_params->pin_cfg.clk.mux = p_flash_init->flash_io.spi_clk.mux; in FLASH_SPIM_ID0_ID1_init() 380 qspi_params->pin_cfg.io_0.mux = p_flash_init->flash_io.spi_io0.qspi_io0.mux; in FLASH_SPIM_ID0_ID1_init() 385 qspi_params->pin_cfg.io_1.mux = p_flash_init->flash_io.spi_io1.qspi_io1.mux; in FLASH_SPIM_ID0_ID1_init() 390 qspi_params->pin_cfg.io_2.mux = p_flash_init->flash_io.qspi_io2.mux; in FLASH_SPIM_ID0_ID1_init() 395 qspi_params->pin_cfg.io_3.mux = p_flash_init->flash_io.qspi_io3.mux; in FLASH_SPIM_ID0_ID1_init() [all …]
|
/device/board/unionman/unionpi_tiger/kernel/hdf/audio/linux_drv/src/ |
D | g12a_toacodec.c | 64 unsigned int mux = src; in meson_g12a_toacodec_src_sel() local 68 FIELD_PREP(CTRL0_DAT_SEL, mux) | in meson_g12a_toacodec_src_sel() 69 FIELD_PREP(CTRL0_LRCLK_SEL, mux) | in meson_g12a_toacodec_src_sel() 70 FIELD_PREP(CTRL0_BCLK_SEL, mux)); in meson_g12a_toacodec_src_sel() 74 FIELD_PREP(CTRL0_MCLK_SEL, mux)); in meson_g12a_toacodec_src_sel()
|
D | g12a_tohdmitx.c | 64 unsigned int mux = src; in meson_g12a_tohdmitx_src_sel() local 70 FIELD_PREP(CTRL0_I2S_DAT_SEL, mux) | in meson_g12a_tohdmitx_src_sel() 71 FIELD_PREP(CTRL0_I2S_LRCLK_SEL, mux) | in meson_g12a_tohdmitx_src_sel() 72 FIELD_PREP(CTRL0_I2S_BCLK_SEL, mux)); in meson_g12a_tohdmitx_src_sel()
|
/device/soc/esp/esp32/components/esp_ringbuf/ |
D | ringbuf.c | 105 portMUX_TYPE mux; //Spinlock required for SMP member 254 vPortCPUInitializeMutex(&pxNewRingbuffer->mux); in prvInitializeNewRingbuffer() 755 portENTER_CRITICAL(&pxRingbuffer->mux); in prvReceiveGeneric() 780 portEXIT_CRITICAL(&pxRingbuffer->mux); in prvReceiveGeneric() 787 portEXIT_CRITICAL(&pxRingbuffer->mux); in prvReceiveGeneric() 810 portENTER_CRITICAL_ISR(&pxRingbuffer->mux); in prvReceiveGenericFromISR() 835 portEXIT_CRITICAL_ISR(&pxRingbuffer->mux); in prvReceiveGenericFromISR() 948 portENTER_CRITICAL(&pxRingbuffer->mux); in xRingbufferSendAcquire() 957 portEXIT_CRITICAL(&pxRingbuffer->mux); in xRingbufferSendAcquire() 964 portEXIT_CRITICAL(&pxRingbuffer->mux); in xRingbufferSendAcquire() [all …]
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/app_drivers/src/ |
D | app_io.c | 102 io_config.mux = p_init->mux; in app_io_init() 120 aon_io_config.mux = p_init->mux; in app_io_init() 133 msio_config.mux = p_init->mux; in app_io_init()
|
D | app_pwm.c | 177 io_init.mux = pin_cfg.channel_a.mux; in pwm_gpio_config() 184 io_init.mux = pin_cfg.channel_b.mux; in pwm_gpio_config() 191 io_init.mux = pin_cfg.channel_c.mux; in pwm_gpio_config()
|
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/components/bk_system/ |
D | target_util.c | 84 UINT32 mux = sys_drv_mclk_mux_get(); in delay_ms() 86 switch (mux) { in delay_ms() 121 UINT32 mux = sys_drv_mclk_mux_get(); in delay_10us() 123 switch (mux) { in delay_10us()
|
/device/soc/rockchip/common/sdk_linux/drivers/pinctrl/ |
D | pinctrl-rk805.c | 436 static int _rk805_pinctrl_set_mux(struct pinctrl_dev *pctldev, unsigned int offset, int mux) in _rk805_pinctrl_set_mux() argument 445 if (mux == RK805_PINMUX_GPIO) { in _rk805_pinctrl_set_mux() 452 } else if (mux == RK805_PINMUX_TS) { in _rk805_pinctrl_set_mux() 459 dev_err(pci->dev, "Couldn't find function mux %d\n", mux); in _rk805_pinctrl_set_mux() 466 static int _rk817_pinctrl_set_mux(struct pinctrl_dev *pctldev, unsigned int offset, int mux) in _rk817_pinctrl_set_mux() argument 475 mux <<= ffs(pci->pin_cfg[offset].fun_msk) - 1; in _rk817_pinctrl_set_mux() 476 …egmap_update_bits(pci->rk808->regmap, pci->pin_cfg[offset].reg, pci->pin_cfg[offset].fun_msk, mux); in _rk817_pinctrl_set_mux() 478 dev_err(pci->dev, "set gpio%d func%d failed\n", offset, mux); in _rk817_pinctrl_set_mux() 487 int mux = pci->functions[function].mux_option; in rk805_pinctrl_set_mux() local 493 return _rk805_pinctrl_set_mux(pctldev, offset, mux); in rk805_pinctrl_set_mux() [all …]
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/tools/menuconfig/ |
D | Kconfig | 146 bool "Enable uart0 IO mux config" 149 Enable uart0 IO mux config. 151 bool "Enable uart1 IO mux config" 154 Enable uart1 IO mux config. 156 bool "Enable uart2 IO mux config" 159 Enable uart2 IO mux config.
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/drivers/inc/ |
D | gr55xx_ll_msio.h | 100 uint32_t mux; /*!< Specifies the Peripheral to be connected to the selected pins. member 223 .mux = LL_MSIO_MUX_7, \ 461 __STATIC_INLINE void ll_msio_set_pin_mux(uint32_t pin, uint32_t mux) in ll_msio_set_pin_mux() argument 464 if (LL_MSIO_MUX_7 == mux) { in ll_msio_set_pin_mux() 469 MODIFY_REG(MCU_SUB->MSIO_PAD_MUX_CTL, 0xF << pos, mux << pos); in ll_msio_set_pin_mux()
|