Home
last modified time | relevance | path

Searched refs:config (Results 1 – 25 of 64) sorted by relevance

123

/lk-master/platform/pc/
A Duart.c55 if (!dev->config) in uart_init()
58 const struct platform_uart_config *config = dev->config; in uart_init() local
73 int divisor = 115200 / config->baud_rate; in uart_init()
78 outp(config->io_port + 3, 3); // 8N1 in uart_init()
82 unmask_interrupt(config->irq); in uart_init()
99 DEBUG_ASSERT(dev->config); in uart_irq_handler()
102 const struct platform_uart_config *config = dev->config; in uart_irq_handler() local
106 char c = inp(config->io_port + 0); in uart_irq_handler()
118 DEBUG_ASSERT(dev->config); in uart_write_thread()
121 const struct platform_uart_config *config = dev->config; in uart_write_thread() local
[all …]
/lk-master/dev/fbcon/
A Dfbcon.c85 if (config->update_start) in fbcon_flush()
86 config->update_start(); in fbcon_flush()
87 if (config->update_done) in fbcon_flush()
88 while (!config->update_done()); in fbcon_flush()
95 unsigned count = config->width * (config->height - FONT_HEIGHT); in fbcon_scroll_up()
111 uint16_t *dst = config->base; in fbcon_clear()
112 unsigned count = config->width * config->height; in fbcon_clear()
131 if (!config) in fbcon_putc()
144 pixels = config->base; in fbcon_putc()
170 config = _config; in fbcon_setup()
[all …]
/lk-master/platform/stm32f0xx/
A Dtimer_capture.c175 uint32_t config = TIM_CCER_CC1E; in stm32_timer_capture_setup_chan() local
178 config |= TIM_CCER_CC1P; in stm32_timer_capture_setup_chan()
180 config |= TIM_CCER_CC1NP; in stm32_timer_capture_setup_chan()
187 val |= config << shift; in stm32_timer_capture_setup_chan()
256 uint32_t sr = tc->config->regs->SR; in stm32_timer_capture_irq()
275 tc->config->regs->SR = irq_ack; in stm32_timer_capture_irq()
322 if (tc->config == NULL) { in stm32_timer_capture_setup()
326 stm32_timer_enable(tc->config); in stm32_timer_capture_setup()
333 tc->config->regs->CR1 = 0; in stm32_timer_capture_setup()
348 tc->config->regs->DIER = dier; in stm32_timer_capture_setup()
[all …]
/lk-master/dev/usb/
A Dusb.c35 usb_config *config; member
77 return usb_get_current_iface_num(&usb.config->highspeed.config); in usb_get_current_iface_num_highspeed()
81 return usb_get_current_iface_num(&usb.config->lowspeed.config); in usb_get_current_iface_num_lowspeed()
114 return usb_append_interface(&usb.config->highspeed.config, int_descr, len); in usb_append_interface_highspeed()
118 return usb_append_interface(&usb.config->lowspeed.config, int_descr, len); in usb_append_interface_lowspeed()
161 if (config != usb.active_config) { in usb_set_active_config()
162 usb.active_config = config; in usb_set_active_config()
245 usbc_ep0_send(speed->config.desc, speed->config.len, in usbc_callback()
344 DEBUG_ASSERT(config); in usb_setup()
347 usb.config = config; in usb_setup()
[all …]
/lk-master/platform/stm32f7xx/
A Dsdram.c148 static uint32_t GetMemoryWidth(sdram_config_t *config) { in GetMemoryWidth() argument
149 switch (config->bus_width) { in GetMemoryWidth()
160 static uint32_t GetColumnBitsNumber(sdram_config_t *config) { in GetColumnBitsNumber() argument
161 switch (config->col_bits_num) { in GetColumnBitsNumber()
174 static uint32_t GetCasLatencyFMC(sdram_config_t *config) { in GetCasLatencyFMC() argument
175 switch (config->cas_latency) { in GetCasLatencyFMC()
186 static uint32_t GetCasLatencyModeReg(sdram_config_t *config) { in GetCasLatencyModeReg() argument
187 switch (config->cas_latency) { in GetCasLatencyModeReg()
202 uint8_t stm32_sdram_init(sdram_config_t *config) { in stm32_sdram_init() argument
222 sdramHandle.Init.MemoryDataWidth = GetMemoryWidth(config); in stm32_sdram_init()
[all …]
/lk-master/dev/bus/pci/
A Ddebug.cpp98 pci_config_t config; in pci_config() local
112 ret = pci_read_config_byte(&loc, i, (uint8_t *) &config + i); in pci_config()
117 loc.dev_fn >> 3, loc.dev_fn & 7, config.vendor_id, config.device_id); in pci_config()
119 config.command, config.status, config.program_interface, in pci_config()
120 config.sub_class, config.base_class); in pci_config()
123 printf("bar%d=%08x bar%d=%08x\n", i, config.base_addresses[i], in pci_config()
124 i+1, config.base_addresses[i+1]); in pci_config()
/lk-master/target/dartuinoP0/
A Dusb.c70 usb_config config = { variable
74 .config = USB_DESC_STATIC(cfg_descr),
79 .config = USB_DESC_STATIC(cfg_descr),
86 usb_setup(&config); in target_usb_setup()
/lk-master/target/stm32f746g-disco/
A Dusb.c69 usb_config config = { variable
73 .config = USB_DESC_STATIC(cfg_descr),
78 .config = USB_DESC_STATIC(cfg_descr),
85 usb_setup(&config); in target_usb_setup()
/lk-master/external/platform/cc13xx/cc13xxware/driverlib/
A Drf_data_entry.h83 } config; member
110 } config; member
138 } config; member
168 } config; member
196 } config; member
/lk-master/platform/stellaris/
A Dinit.c41 ulong config = SYSCTL_SYSDIV_4 | SYSCTL_USE_PLL | SYSCTL_OSC_MAIN; in platform_early_init() local
43 config |= SYSCTL_XTAL_16MHZ; in platform_early_init()
45 config |= SYSCTL_XTAL_8MHZ; in platform_early_init()
50 SysCtlClockSet(config); in platform_early_init()
/lk-master/target/stellaris-launchpad/
A Dusb.c92 usb_config config = { variable
96 .config = USB_DESC_STATIC(cfg_descr),
101 .config = USB_DESC_STATIC(cfg_descr),
108 usb_setup(&config); in target_usb_setup()
/lk-master/app/usbtest/
A Ddescriptor.c85 static usb_config config = { variable
89 .config = USB_DESC_STATIC(cfg_descr),
94 .config = USB_DESC_STATIC(cfg_descr),
101 usb_setup(&config); in usbtest_usb_setup()
/lk-master/dev/net/pcnet/
A Dpcnet.c134 const struct platform_pcnet_config *config = dev->config; in pcnet_init() local
136 if (!config) in pcnet_init()
139 …if (pci_find_pci_device(&loc, config->device_id, config->vendor_id, config->index) != _PCI_SUCCESS… in pcnet_init()
275 pci_config_t config; in pcnet_read_pci_config() local
276 uint8_t *buf = (uint8_t *) &config; in pcnet_read_pci_config()
283 for (i=0; i < sizeof(config); i++) in pcnet_read_pci_config()
289 if (config.base_addresses[i] & 0x1) { in pcnet_read_pci_config()
302 if (config.interrupt_line != 0xff) { in pcnet_read_pci_config()
303 LTRACEF(" IRQ %u\n", config.interrupt_line); in pcnet_read_pci_config()
311 LTRACEF("Command: %04x\n", config.command); in pcnet_read_pci_config()
[all …]
/lk-master/platform/mediatek/mt6735/
A Dinterrupts.c197 unsigned int config; in mt_irq_set_sens() local
200 config = DRV_Reg32(GIC_DIST_BASE + GIC_DIST_CONFIG + (irq / 16) * 4); in mt_irq_set_sens()
201 config |= (0x2 << (irq % 16) * 2); in mt_irq_set_sens()
202 DRV_WriteReg32(GIC_DIST_BASE + GIC_DIST_CONFIG + (irq / 16) * 4, config); in mt_irq_set_sens()
204 config = DRV_Reg32(GIC_DIST_BASE + GIC_DIST_CONFIG + (irq / 16) * 4); in mt_irq_set_sens()
205 config &= ~(0x2 << (irq % 16) * 2); in mt_irq_set_sens()
206 DRV_WriteReg32( GIC_DIST_BASE + GIC_DIST_CONFIG + (irq / 16) * 4, config); in mt_irq_set_sens()
/lk-master/external/platform/nrfx/hal/
A Dnrf_qspi.h705 uint32_t config = p_config->readoc; in nrf_qspi_ifconfig0_set() local
710 p_reg->IFCONFIG0 = config; in nrf_qspi_ifconfig0_set()
717 uint32_t config = p_reg->IFCONFIG1 & 0x00FFFF00; in nrf_qspi_ifconfig1_set() local
718 config |= p_config->sck_delay; in nrf_qspi_ifconfig1_set()
723 p_reg->IFCONFIG1 = config; in nrf_qspi_ifconfig1_set()
729 uint32_t config = p_config->opcode; in nrf_qspi_addrconfig_set() local
730 config |= ((uint32_t)p_config->byte0) << QSPI_ADDRCONF_BYTE0_Pos; in nrf_qspi_addrconfig_set()
731 config |= ((uint32_t)p_config->byte1) << QSPI_ADDRCONF_BYTE1_Pos; in nrf_qspi_addrconfig_set()
732 config |= ((uint32_t)(p_config->mode)) << QSPI_ADDRCONF_MODE_Pos; in nrf_qspi_addrconfig_set()
734 config |= (p_config->wren ? 1U : 0U) << QSPI_ADDRCONF_WREN_Pos; in nrf_qspi_addrconfig_set()
[all …]
A Dnrf_spi.h374 uint32_t config = (spi_bit_order == NRF_SPI_BIT_ORDER_MSB_FIRST ? in nrf_spi_configure() local
380 config |= (SPI_CONFIG_CPOL_ActiveHigh << SPI_CONFIG_CPOL_Pos) | in nrf_spi_configure()
385 config |= (SPI_CONFIG_CPOL_ActiveHigh << SPI_CONFIG_CPOL_Pos) | in nrf_spi_configure()
390 config |= (SPI_CONFIG_CPOL_ActiveLow << SPI_CONFIG_CPOL_Pos) | in nrf_spi_configure()
395 config |= (SPI_CONFIG_CPOL_ActiveLow << SPI_CONFIG_CPOL_Pos) | in nrf_spi_configure()
399 p_reg->CONFIG = config; in nrf_spi_configure()
A Dnrf_nvmc.h207 nrf_nvmc_icache_config_t config);
350 nrf_nvmc_icache_config_t config) in nrf_nvmc_icache_config_set() argument
356 if (config == NRF_NVMC_ICACHE_DISABLE) in nrf_nvmc_icache_config_set()
367 p_reg->ICACHECNF = (uint32_t)config; in nrf_nvmc_icache_config_set()
/lk-master/dev/virtio/block/
A Dvirtio-block.c120 volatile struct virtio_blk_config *config = (struct virtio_blk_config *)dev->config_ptr; in virtio_block_init() local
122 LTRACEF("capacity 0x%llx\n", config->capacity); in virtio_block_init()
123 LTRACEF("size_max 0x%x\n", config->size_max); in virtio_block_init()
124 LTRACEF("seg_max 0x%x\n", config->seg_max); in virtio_block_init()
125 LTRACEF("blk_size 0x%x\n", config->blk_size); in virtio_block_init()
146 config->blk_size, config->capacity, in virtio_block_init()
155 printf("found virtio block device of size %lld\n", config->capacity * config->blk_size); in virtio_block_init()
/lk-master/external/platform/nrfx/drivers/src/
A Dnrfx_nfct.c139 nrfx_nfct_config_t config; member
221 NRFX_NFCT_CB_HANDLE(m_nfct_cb.config.cb, nfct_evt); in nrfx_nfct_field_event_handler()
237 NRFX_NFCT_CB_HANDLE(m_nfct_cb.config.cb, nfct_evt); in nrfx_nfct_field_event_handler()
335 NRFX_NFCT_CB_HANDLE(m_nfct_cb.config.cb, nfct_evt); in nrfx_nfct_field_poll()
427 m_nfct_cb.config = *p_config; in nrfx_nfct_init()
740 NRFX_NFCT_CB_HANDLE(m_nfct_cb.config.cb, nfct_evt); in nrfx_nfct_irq_handler()
765 NRFX_NFCT_CB_HANDLE(m_nfct_cb.config.cb, nfct_evt); in nrfx_nfct_irq_handler()
786 NRFX_NFCT_CB_HANDLE(m_nfct_cb.config.cb, nfct_evt); in nrfx_nfct_irq_handler()
804 if (m_nfct_cb.config.cb != NULL) in nrfx_nfct_irq_handler()
813 m_nfct_cb.config.cb(&nfct_evt); in nrfx_nfct_irq_handler()
[all …]
/lk-master/external/platform/stm32f0xx/STM32F0xx_HAL_Driver/
A Dstm32f0xx_hal_tsc.c551 HAL_StatusTypeDef HAL_TSC_IOConfig(TSC_HandleTypeDef* htsc, TSC_IOConfigTypeDef* config) in HAL_TSC_IOConfig() argument
563 …htsc->Instance->IOHCR = (uint32_t)(~(config->ChannelIOs | config->ShieldIOs | config->SamplingIOs)… in HAL_TSC_IOConfig()
566 htsc->Instance->IOCCR = (config->ChannelIOs | config->ShieldIOs); in HAL_TSC_IOConfig()
569 htsc->Instance->IOSCR = config->SamplingIOs; in HAL_TSC_IOConfig()
572 htsc->Instance->IOGCSR = TSC_extract_groups(config->ChannelIOs); in HAL_TSC_IOConfig()
/lk-master/target/nucleo-f072rb/
A Dusb.c98 usb_config config = { variable
102 .config = USB_DESC_STATIC(cfg_descr),
107 .config = USB_DESC_STATIC(cfg_descr),
192 usb_setup(&config); in target_usb_setup()
/lk-master/platform/mediatek/common/gic/
A Dmt_gic_v3.c253 unsigned int config; in mt_irq_set_sens() local
256 config = DRV_Reg32(GIC_DIST_BASE + GIC_DIST_CONFIG + (irq / 16) * 4); in mt_irq_set_sens()
257 config |= (0x2 << (irq % 16) * 2); in mt_irq_set_sens()
258 DRV_WriteReg32(GIC_DIST_BASE + GIC_DIST_CONFIG + (irq / 16) * 4, config); in mt_irq_set_sens()
260 config = DRV_Reg32(GIC_DIST_BASE + GIC_DIST_CONFIG + (irq / 16) * 4); in mt_irq_set_sens()
261 config &= ~(0x2 << (irq % 16) * 2); in mt_irq_set_sens()
262 DRV_WriteReg32( GIC_DIST_BASE + GIC_DIST_CONFIG + (irq / 16) * 4, config); in mt_irq_set_sens()
/lk-master/external/platform/pico/rp2_common/hardware_dma/include/hardware/
A Ddma.h321 static inline uint32_t channel_config_get_ctrl_value(const dma_channel_config *config) { in channel_config_get_ctrl_value() argument
322 return config->ctrl; in channel_config_get_ctrl_value()
332 static inline void dma_channel_set_config(uint channel, const dma_channel_config *config, bool trig… in dma_channel_set_config() argument
335 dma_channel_hw_addr(channel)->al1_ctrl = channel_config_get_ctrl_value(config); in dma_channel_set_config()
337 dma_channel_hw_addr(channel)->ctrl_trig = channel_config_get_ctrl_value(config); in dma_channel_set_config()
396 static inline void dma_channel_configure(uint channel, const dma_channel_config *config, volatile v… in dma_channel_configure() argument
402 dma_channel_set_config(channel, config, trigger); in dma_channel_configure()
/lk-master/platform/cc13xx/include/platform/
A Dti-rf-prop.h64 uint8_t config; member
84 uint8_t config; member
128 uint8_t config; member
/lk-master/external/platform/pico/rp2_common/hardware_interp/include/hardware/
A Dinterp.h252 static inline void interp_set_config(interp_hw_t *interp, uint lane, interp_config *config) { in interp_set_config() argument
254 invalid_params_if(INTERP, config->ctrl & SIO_INTERP1_CTRL_LANE0_CLAMP_BITS && in interp_set_config()
256 invalid_params_if(INTERP, config->ctrl & SIO_INTERP0_CTRL_LANE0_BLEND_BITS && in interp_set_config()
258 interp->ctrl[lane] = config->ctrl; in interp_set_config()

Completed in 28 milliseconds

123