Home
last modified time | relevance | path

Searched refs:ctl (Results 1 – 23 of 23) sorted by relevance

/bsp/gd32/risc-v/libraries/GD32VF103_Firmware_Library/GD32VF103_standard_peripheral/Source/
A Dgd32vf103_i2c.c174 uint32_t ctl = 0U; in i2c_mode_addr_config() local
178 ctl |= mode; in i2c_mode_addr_config()
371 uint32_t ctl = 0U; in i2c_dma_enable() local
375 ctl |= dmastate; in i2c_dma_enable()
396 ctl |= dmalast; in i2c_dma_last_transfer_config()
438 ctl |= gcallpara; in i2c_slave_response_to_gcall_config()
459 ctl |= sreset; in i2c_software_reset_config()
480 ctl |= pecstate; in i2c_pec_enable()
501 ctl |= pecpara; in i2c_pec_transfer_enable()
533 ctl |= smbuspara; in i2c_smbus_issue_alert()
[all …]
A Dgd32vf103_usart.c211 uint32_t ctl = 0U; in usart_transmit_config() local
215 ctl |= txconfig; in usart_transmit_config()
232 uint32_t ctl = 0U; in usart_receive_config() local
236 ctl |= rxconfig; in usart_receive_config()
428 uint32_t ctl = 0U; in usart_synchronous_clock_config() local
559 uint32_t ctl = 0U; in usart_hardware_flow_rts_config() local
563 ctl |= rtsconfig; in usart_hardware_flow_rts_config()
580 uint32_t ctl = 0U; in usart_hardware_flow_cts_config() local
584 ctl |= ctsconfig; in usart_hardware_flow_cts_config()
605 ctl |= dmacmd; in usart_dma_receive_config()
[all …]
A Dgd32vf103_bkp.c152 uint16_t ctl = 0U; in bkp_rtc_output_select() local
155 ctl = BKP_OCTL; in bkp_rtc_output_select()
157 ctl |= outputsel; in bkp_rtc_output_select()
158 BKP_OCTL = ctl; in bkp_rtc_output_select()
170 uint16_t ctl; in bkp_rtc_calibration_value_set() local
173 ctl = BKP_OCTL; in bkp_rtc_calibration_value_set()
176 BKP_OCTL = ctl; in bkp_rtc_calibration_value_set()
212 uint16_t ctl = 0U; in bkp_tamper_active_level_set() local
215 ctl = BKP_TPCTL; in bkp_tamper_active_level_set()
217 ctl |= level; in bkp_tamper_active_level_set()
[all …]
A Dgd32vf103_dma.c112 uint32_t ctl; in dma_init() local
128 ctl = DMA_CHCTL(dma_periph, channelx); in dma_init()
366 uint32_t ctl; in dma_priority_config() local
375 ctl &= ~DMA_CHXCTL_PRIO; in dma_priority_config()
376 ctl |= priority; in dma_priority_config()
397 uint32_t ctl; in dma_memory_width_config() local
406 ctl &= ~DMA_CHXCTL_MWIDTH; in dma_memory_width_config()
407 ctl |= mwidth; in dma_memory_width_config()
428 uint32_t ctl; in dma_periph_width_config() local
437 ctl &= ~DMA_CHXCTL_PWIDTH; in dma_periph_width_config()
[all …]
A Dgd32vf103_dac.c434 uint32_t ctl = 0U; in dac_concurrent_enable() local
435 ctl = DAC_CTL_DEN0 | DAC_CTL_DEN1; in dac_concurrent_enable()
436 DAC_CTL |= (ctl); in dac_concurrent_enable()
447 uint32_t ctl = 0U; in dac_concurrent_disable() local
448 ctl = DAC_CTL_DEN0 | DAC_CTL_DEN1; in dac_concurrent_disable()
449 DAC_CTL &= (~ctl); in dac_concurrent_disable()
486 uint32_t ctl = 0U; in dac_concurrent_output_buffer_enable() local
487 ctl = DAC_CTL_DBOFF0 | DAC_CTL_DBOFF1; in dac_concurrent_output_buffer_enable()
488 DAC_CTL &= (~ctl); in dac_concurrent_output_buffer_enable()
499 uint32_t ctl = 0U; in dac_concurrent_output_buffer_disable() local
[all …]
/bsp/allwinner/libraries/sunxi-hal/hal/source/sound/core/
A Dsnd_ctl.c49 if (!card->ctl) { in ksnd_ctl_num()
53 snd_mutex_lock(card->ctl->ctl_mutex); in ksnd_ctl_num()
78 if (!card->ctl) { in ksnd_ctl_get()
82 snd_mutex_lock(card->ctl->ctl_mutex); in ksnd_ctl_get()
111 if (!card->ctl) { in ksnd_ctl_get_bynum()
116 snd_mutex_lock(card->ctl->ctl_mutex); in ksnd_ctl_get_bynum()
142 if (!card->ctl) { in ksnd_ctl_set()
172 if (!card->ctl) { in ksnd_ctl_set_bynum()
203 if (!card->ctl) { in ksnd_ctl_set_multi_args()
252 if (!card->ctl) { in ksnd_ctl_add_elem()
[all …]
A Dsnd_core.c696 struct snd_ctl *ctl; in snd_ctl_free() local
699 ctl = card->ctl; in snd_ctl_free()
700 if (!ctl) in snd_ctl_free()
706 snd_free(ctl); in snd_ctl_free()
707 card->ctl = NULL; in snd_ctl_free()
1049 struct snd_ctl *ctl; in snd_ctl_create() local
1054 if (!ctl) { in snd_ctl_create()
1059 ctl->card = card; in snd_ctl_create()
1060 snprintf(ctl->id, sizeof(ctl->id), "CTL %s", card->codec->codec_dai->name); in snd_ctl_create()
1064 snd_free(ctl); in snd_ctl_create()
[all …]
/bsp/allwinner/libraries/sunxi-hal/hal/source/phy/
A Dhal_phy.c143 int ctl = 0; in genphy_setup_forced() local
150 ctl |= BMCR_SPEED100; in genphy_setup_forced()
167 int ctl; in genphy_restart_aneg() local
171 if (ctl < 0) in genphy_restart_aneg()
172 return ctl; in genphy_restart_aneg()
177 ctl &= ~(BMCR_ISOLATE); in genphy_restart_aneg()
179 ctl = phy_write(phydev, MDIO_DEVAD_NONE, MII_BMCR, ctl); in genphy_restart_aneg()
181 return ctl; in genphy_restart_aneg()
210 if (ctl < 0) in genphy_config_aneg()
211 return ctl; in genphy_config_aneg()
[all …]
/bsp/cvitek/drivers/libraries/eth/
A Dcvi_eth_phy.c479 int32_t ctl = CVI_BMCR_ANRESTART; in genphy_setup_forced() local
483 ctl |= CVI_BMCR_SPEED1000; in genphy_setup_forced()
485 ctl |= CVI_BMCR_SPEED100; in genphy_setup_forced()
487 ctl |= CVI_BMCR_SPEED100; in genphy_setup_forced()
490 ctl |= CVI_BMCR_FULLDPLX; in genphy_setup_forced()
500 uint16_t ctl; in genphy_restart_aneg() local
503 if (ret != 0 || ctl < 0) in genphy_restart_aneg()
509 ctl &= ~(CVI_BMCR_ISOLATE); in genphy_restart_aneg()
523 uint16_t ctl; in genphy_config_aneg() local
538 if (ret != 0 || ctl < 0) in genphy_config_aneg()
[all …]
/bsp/nuvoton/libraries/m2354/rtt_port/
A Ddrv_sdio.c239 volatile uint32_t ctl = 0, tout = 0; in nu_sdh_sendcmd() local
244 ctl &= ~SDH_CTL_DBW_Msk; in nu_sdh_sendcmd()
248 ctl |= SDH_CTL_DBW_Msk; in nu_sdh_sendcmd()
266 ctl |= SDH_CTL_R2EN_Msk; in nu_sdh_sendcmd()
270 ctl |= SDH_CTL_RIEN_Msk; in nu_sdh_sendcmd()
276 ctl |= ((9 << SDH_CTL_SDNWR_Pos) | (1 << SDH_CTL_BLKCNT_Pos)); in nu_sdh_sendcmd()
277 ctl |= ((cmd->cmd_code << SDH_CTL_CMDCODE_Pos) | SDH_CTL_COEN_Msk); in nu_sdh_sendcmd()
288 ctl = (ctl & ~SDH_CTL_BLKCNT_Msk) | (data->blks << SDH_CTL_BLKCNT_Pos); in nu_sdh_sendcmd()
299 ctl |= SDH_CTL_DIEN_Msk; // Data-in in nu_sdh_sendcmd()
304 ctl |= SDH_CTL_DOEN_Msk; // Data-out in nu_sdh_sendcmd()
[all …]
/bsp/nuvoton/libraries/m460/rtt_port/
A Ddrv_sdio.c239 volatile uint32_t ctl = 0, tout = 0; in nu_sdh_sendcmd() local
244 ctl &= ~SDH_CTL_DBW_Msk; in nu_sdh_sendcmd()
248 ctl |= SDH_CTL_DBW_Msk; in nu_sdh_sendcmd()
266 ctl |= SDH_CTL_R2EN_Msk; in nu_sdh_sendcmd()
270 ctl |= SDH_CTL_RIEN_Msk; in nu_sdh_sendcmd()
276 ctl |= ((9 << SDH_CTL_SDNWR_Pos) | (1 << SDH_CTL_BLKCNT_Pos)); in nu_sdh_sendcmd()
277 ctl |= ((cmd->cmd_code << SDH_CTL_CMDCODE_Pos) | SDH_CTL_COEN_Msk); in nu_sdh_sendcmd()
288 ctl = (ctl & ~SDH_CTL_BLKCNT_Msk) | (data->blks << SDH_CTL_BLKCNT_Pos); in nu_sdh_sendcmd()
299 ctl |= SDH_CTL_DIEN_Msk; // Data-in in nu_sdh_sendcmd()
304 ctl |= SDH_CTL_DOEN_Msk; // Data-out in nu_sdh_sendcmd()
[all …]
/bsp/nuvoton/libraries/m480/rtt_port/
A Ddrv_sdio.c239 volatile uint32_t ctl = 0, tout = 0; in nu_sdh_sendcmd() local
244 ctl &= ~SDH_CTL_DBW_Msk; in nu_sdh_sendcmd()
248 ctl |= SDH_CTL_DBW_Msk; in nu_sdh_sendcmd()
266 ctl |= SDH_CTL_R2EN_Msk; in nu_sdh_sendcmd()
270 ctl |= SDH_CTL_RIEN_Msk; in nu_sdh_sendcmd()
276 ctl |= ((9 << SDH_CTL_SDNWR_Pos) | (1 << SDH_CTL_BLKCNT_Pos)); in nu_sdh_sendcmd()
277 ctl |= ((cmd->cmd_code << SDH_CTL_CMDCODE_Pos) | SDH_CTL_COEN_Msk); in nu_sdh_sendcmd()
288 ctl = (ctl & ~SDH_CTL_BLKCNT_Msk) | (data->blks << SDH_CTL_BLKCNT_Pos); in nu_sdh_sendcmd()
299 ctl |= SDH_CTL_DIEN_Msk; // Data-in in nu_sdh_sendcmd()
304 ctl |= SDH_CTL_DOEN_Msk; // Data-out in nu_sdh_sendcmd()
[all …]
/bsp/allwinner/libraries/sunxi-hal/hal/source/watchdog/
A Dhal_watchdog.c67 (unsigned int)(wdt->mode), (unsigned int)(wdt->cfg), (unsigned int)(wdt->ctl)); in hal_watchdog_info()
110 writel_wdt(WDT_CTRL_KEY | WDT_CTRL_RESTART, &wdt->ctl); in hal_watchdog_reset()
154 writel_wdt(WDT_CTRL_KEY | WDT_CTRL_RESTART, &wdt->ctl); in hal_watchdog_feed()
A Dplatform_watchdog.h68 volatile u32 ctl; //0x10 member
/bsp/microblaze/
A Dboard.c206 rt_uint32_t ctl; in rt_tmr_init() local
211ctl = XTC_CSR_ENABLE_TMR_MASK | XTC_CSR_ENABLE_INT_MASK | XTC_CSR_AUTO_RELOAD_MASK | XTC_CSR_DOWN_… in rt_tmr_init()
212 XTmrCtr_WriteReg(timer.BaseAddress, TIMER_CNTR_0, XTC_TCSR_OFFSET, ctl); in rt_tmr_init()
/bsp/mini4020/drivers/
A Ddm9161.c119 unsigned long ctl; in enable_mdi() local
121 ctl = sep_emac_read(MAC_CTRL); in enable_mdi()
122 sep_emac_write(MAC_CTRL, ctl&(~0x3)); /* enable management port */ in enable_mdi()
132 unsigned long ctl; in disable_mdi() local
134 ctl = sep_emac_read(MAC_CTRL); in disable_mdi()
135 sep_emac_write(MAC_CTRL, ctl|(0x3)); /* disable management port */ in disable_mdi()
/bsp/k230/drivers/interdrv/sysctl/sysctl_clock/
A Dsysctl_clk.c374 return ((sysctl_boot->pll[0].ctl >> 2) & 0x1) ? true:false; in sysctl_boot_get_root_clk_en()
380 return ((sysctl_boot->pll[1].ctl >> 2) & 0x1) ? true:false; in sysctl_boot_get_root_clk_en()
386 return ((sysctl_boot->pll[2].ctl >> 2) & 0x1) ? true:false; in sysctl_boot_get_root_clk_en()
392 return ((sysctl_boot->pll[3].ctl >> 2) & 0x1) ? true:false; in sysctl_boot_get_root_clk_en()
410 sysctl_boot->pll[0].ctl |= (1 << 2) | (1 << 18); /* enable pll */ in sysctl_boot_set_root_clk_en()
421 sysctl_boot->pll[1].ctl |= (1 << 2) | (1 << 18); /* enable pll */ in sysctl_boot_set_root_clk_en()
462 sysctl_boot->pll[0].ctl |= (1 << 0)|(1 << 16); in sysctl_boot_set_root_clk_pwroff()
469 sysctl_boot->pll[1].ctl |= (1 << 0)|(1 << 16); in sysctl_boot_set_root_clk_pwroff()
476 sysctl_boot->pll[2].ctl |= (1 << 0)|(1 << 16); in sysctl_boot_set_root_clk_pwroff()
483 sysctl_boot->pll[3].ctl |= (1 << 0)|(1 << 16); in sysctl_boot_set_root_clk_pwroff()
[all …]
/bsp/k230/drivers/interdrv/sysctl/sysctl_boot/
A Dsysctl_boot.h35 volatile uint32_t ctl; member
/bsp/allwinner/libraries/sunxi-hal/include/hal/sound/
A Dsnd_core.h559 struct snd_ctl *ctl; member
611 int snd_ctl_add_elem(struct snd_ctl *ctl, struct snd_ctl_info *info);
612 int snd_ctl_remove_elem(struct snd_ctl *ctl, struct snd_kcontrol *control);
/bsp/CME_M7/StdPeriph_Driver/inc/
A Dcmem7_usb.h582 BOOL USB_otgControl(USB_OTG_CTL ctl, BOOL val);
/bsp/loongson/ls2kdev/drivers/ata/
A Dlibata.h348 u8 ctl; /* control reg */ member
/bsp/CME_M7/StdPeriph_Driver/src/
A Dcmem7_usb.c819 BOOL USB_otgControl(USB_OTG_CTL ctl, BOOL val) in USB_otgControl() argument
822 switch (ctl) { in USB_otgControl()
/bsp/nuvoton/libraries/n9h30/rtt_port/
A Ddrv_ge2d.c2560 void ge2dRotation(int srcx, int srcy, int destx, int desty, int width, int height, int ctl) in ge2dRotation() argument
2598 cmd32 = 0xcc030000 | (ctl << 1); in ge2dRotation()

Completed in 61 milliseconds