Home
last modified time | relevance | path

Searched refs:dev_config (Results 1 – 25 of 66) sorted by relevance

123

/Zephyr-Core-3.4.0/drivers/eeprom/
Deeprom_emulator.c112 const struct eeprom_emu_config *dev_config = dev->config; in eeprom_emu_flash_read() local
114 return flash_read(dev_config->flash_dev, dev_config->flash_offset + in eeprom_emu_flash_read()
124 const struct eeprom_emu_config *dev_config = dev->config; in eeprom_emu_flash_write() local
127 rc = flash_write(dev_config->flash_dev, dev_config->flash_offset + in eeprom_emu_flash_write()
139 const struct eeprom_emu_config *dev_config = dev->config; in eeprom_emu_flash_erase() local
142 rc = flash_erase(dev_config->flash_dev, dev_config->flash_offset + in eeprom_emu_flash_erase()
152 const struct eeprom_emu_config *dev_config = dev->config; in eeprom_emu_page_invalidate() local
153 uint8_t buf[dev_config->flash_cbs]; in eeprom_emu_page_invalidate()
159 offset += (dev_config->page_size - sizeof(buf)); in eeprom_emu_page_invalidate()
169 const struct eeprom_emu_config *dev_config = dev->config; in eeprom_emu_get_address() local
[all …]
/Zephyr-Core-3.4.0/drivers/watchdog/
Dwdt_dw.c44 const struct dw_wdt_dev_cfg *const dev_config = dev->config; in dw_wdt_setup() local
51 dw_wdt_response_mode_set(dev_config->base, !!dev_data->callback); in dw_wdt_setup()
54 return dw_wdt_configure(dev_config->base, dev_data->config); in dw_wdt_setup()
59 const struct dw_wdt_dev_cfg *const dev_config = dev->config; local
63 if (config->callback && !dev_config->irq_config) {
80 return dw_wdt_calc_period(dev_config->base, dev_config->clk_freq, config,
86 const struct dw_wdt_dev_cfg *const dev_config = dev->config; local
93 dw_wdt_counter_restart(dev_config->base);
107 const struct dw_wdt_dev_cfg *const dev_config = dev->config; local
110 ret = dw_wdt_probe(dev_config->base, dev_config->reset_pulse_length);
[all …]
Dwdt_intel_adsp.c65 const struct intel_adsp_wdt_dev_cfg *const dev_config = dev->config; in intel_adsp_wdt_setup() local
84 intel_adsp_wdt_reset_set(dev_config->base, i, dev_data->allow_reset); in intel_adsp_wdt_setup()
93 const struct intel_adsp_wdt_dev_cfg *const dev_config = dev->config; in intel_adsp_wdt_install_timeout() local
106 ret = dw_wdt_calc_period(dev_data->core_wdt[0], dev_config->clk_freq, config, in intel_adsp_wdt_install_timeout()
152 const struct intel_adsp_wdt_dev_cfg *const dev_config = dev->config; in intel_adsp_wdt_init() local
158 dev_data->core_wdt[i] = intel_adsp_wdt_pointer_get(dev_config->base, i); in intel_adsp_wdt_init()
184 const struct intel_adsp_wdt_dev_cfg *const dev_config = dev->config; in intel_adsp_watchdog_pause() local
190 intel_adsp_wdt_pause(dev_config->base, channel_id); in intel_adsp_watchdog_pause()
204 const struct intel_adsp_wdt_dev_cfg *const dev_config = dev->config; in intel_adsp_watchdog_resume() local
210 intel_adsp_wdt_resume(dev_config->base, channel_id); in intel_adsp_watchdog_resume()
/Zephyr-Core-3.4.0/drivers/dma/
Ddmamux_stm32.c126 const struct dmamux_stm32_dma_fops *get_dma_fops(const struct dmamux_stm32_config *dev_config) in get_dma_fops() argument
129 if (dev_config->base == DT_REG_ADDR(DT_NODELABEL(dmamux1))) { in get_dma_fops()
135 if (dev_config->base == DT_REG_ADDR(DT_NODELABEL(dmamux2))) { in get_dma_fops()
140 __ASSERT(false, "Unknown dma base address %x", dev_config->base); in get_dma_fops()
148 const struct dmamux_stm32_config *dev_config = dev->config; in dmamux_stm32_configure() local
149 const struct dmamux_stm32_dma_fops *dma_device = get_dma_fops(dev_config); in dmamux_stm32_configure()
157 if (request_id > dev_config->req_nb + dev_config->gen_nb) { in dmamux_stm32_configure()
163 if (id >= dev_config->channel_nb) { in dmamux_stm32_configure()
179 if (dma_device->configure(dev_config->mux_channels[id].dev_dma, in dmamux_stm32_configure()
180 dev_config->mux_channels[id].dma_id, config) != 0) { in dmamux_stm32_configure()
[all …]
/Zephyr-Core-3.4.0/drivers/display/
Ddisplay_nrf_led_matrix.c46 #define GET_ROW_IDX(dev_config, pixel_idx) \ argument
47 _GET_ROW_IDX(dev_config->pixel_mapping[pixel_idx])
52 #define GET_COL_IDX(dev_config, pixel_idx) \ argument
53 _GET_COL_IDX(dev_config->pixel_mapping[pixel_idx])
127 const struct display_drv_config *dev_config = dev->config; in api_blanking_on() local
130 nrf_timer_task_trigger(dev_config->timer, NRF_TIMER_TASK_STOP); in api_blanking_on()
132 set_pin(dev_config->rows[i], false); in api_blanking_on()
135 set_pin(dev_config->cols[i], false); in api_blanking_on()
147 const struct display_drv_config *dev_config = dev->config; in api_blanking_off() local
152 nrf_timer_task_trigger(dev_config->timer, NRF_TIMER_TASK_CLEAR); in api_blanking_off()
[all …]
Ddisplay_max7219.c76 const struct max7219_config *dev_config = dev->config; in max7219_transmit_all() local
81 .len = dev_config->num_cascading * 2, in max7219_transmit_all()
88 for (int i = 0; i < dev_config->num_cascading; i++) { in max7219_transmit_all()
93 return spi_write_dt(&dev_config->spi, &tx_bufs); in max7219_transmit_all()
99 const struct max7219_config *dev_config = dev->config; in max7219_transmit_one() local
104 .len = dev_config->num_cascading * 2, in max7219_transmit_one()
111 for (int i = 0; i < dev_config->num_cascading; i++) { in max7219_transmit_one()
112 if (i != (dev_config->num_cascading - 1 - max7219_idx)) { in max7219_transmit_one()
122 return spi_write_dt(&dev_config->spi, &tx_bufs); in max7219_transmit_one()
159 const struct max7219_config *dev_config = dev->config; in max7219_write() local
[all …]
/Zephyr-Core-3.4.0/drivers/flash/
Dsoc_flash_xmc4xxx.c58 const struct flash_xmc4xxx_config *dev_config = dev->config; in flash_xmc4xxx_read() local
60 if (offset < 0 || offset + len > dev_config->size) { in flash_xmc4xxx_read()
63 memcpy(data, (void *)(dev_config->base + offset), len); in flash_xmc4xxx_read()
73 const struct flash_xmc4xxx_config *dev_config = dev->config; in flash_xmc4xxx_write() local
75 uint32_t flash_addr = dev_config->base; in flash_xmc4xxx_write()
79 if (offset < 0 || offset + len > dev_config->size) { in flash_xmc4xxx_write()
83 if (len % dev_config->parameters.write_block_size || in flash_xmc4xxx_write()
84 offset % dev_config->parameters.write_block_size > 0) { in flash_xmc4xxx_write()
94 num_pages = len / dev_config->parameters.write_block_size; in flash_xmc4xxx_write()
101 memcpy(aligned_page, src, dev_config->parameters.write_block_size); in flash_xmc4xxx_write()
[all …]
Dspi_flash_at45.c557 const struct spi_flash_at45_config *dev_config = dev->config; in spi_flash_at45_init() local
560 if (!spi_is_ready_dt(&dev_config->bus)) { in spi_flash_at45_init()
561 LOG_ERR("SPI bus %s not ready", dev_config->bus.bus->name); in spi_flash_at45_init()
566 if (dev_config->reset) { in spi_flash_at45_init()
567 if (!device_is_ready(dev_config->reset->port)) { in spi_flash_at45_init()
571 if (gpio_pin_configure_dt(dev_config->reset, GPIO_OUTPUT_ACTIVE)) { in spi_flash_at45_init()
575 gpio_pin_set_dt(dev_config->reset, 0); in spi_flash_at45_init()
580 if (dev_config->wp) { in spi_flash_at45_init()
581 if (!device_is_ready(dev_config->wp->port)) { in spi_flash_at45_init()
585 if (gpio_pin_configure_dt(dev_config->wp, GPIO_OUTPUT_ACTIVE)) { in spi_flash_at45_init()
[all …]
/Zephyr-Core-3.4.0/drivers/i2c/
Di2c_nrfx_twim.c50 const struct i2c_nrfx_twim_config *dev_config = dev->config; in i2c_nrfx_twim_transfer() local
54 uint16_t concat_buf_size = dev_config->concat_buf_size; in i2c_nrfx_twim_transfer()
114 if (msgs[i].len > dev_config->flash_buf_max_size) { in i2c_nrfx_twim_transfer()
141 nrfx_err_t res = nrfx_twim_xfer(&dev_config->twim, in i2c_nrfx_twim_transfer()
240 const struct i2c_nrfx_twim_config *dev_config = dev->config; in i2c_nrfx_twim_configure() local
248 nrf_twim_frequency_set(dev_config->twim.p_twim, in i2c_nrfx_twim_configure()
252 nrf_twim_frequency_set(dev_config->twim.p_twim, in i2c_nrfx_twim_configure()
257 nrf_twim_frequency_set(dev_config->twim.p_twim, in i2c_nrfx_twim_configure()
271 const struct i2c_nrfx_twim_config *dev_config = dev->config; in i2c_nrfx_twim_recover_bus() local
277 scl_pin = nrf_twim_scl_pin_get(dev_config->twim.p_twim); in i2c_nrfx_twim_recover_bus()
[all …]
Di2c_handlers.c12 uint32_t dev_config) in z_vrfy_i2c_configure() argument
15 return z_impl_i2c_configure((const struct device *)dev, dev_config); in z_vrfy_i2c_configure()
20 uint32_t *dev_config) in z_vrfy_i2c_get_config() argument
23 Z_OOPS(Z_SYSCALL_MEMORY_WRITE(dev_config, sizeof(uint32_t))); in z_vrfy_i2c_get_config()
25 return z_impl_i2c_get_config(dev, dev_config); in z_vrfy_i2c_get_config()
Di2c_b91.c31 static int i2c_b91_configure(const struct device *dev, uint32_t dev_config) in i2c_b91_configure() argument
38 if (dev_config & I2C_ADDR_10_BITS) { in i2c_b91_configure()
44 if (!(dev_config & I2C_MODE_CONTROLLER)) { in i2c_b91_configure()
50 switch (I2C_SPEED_GET(dev_config)) { in i2c_b91_configure()
127 uint32_t dev_config = (I2C_MODE_CONTROLLER | i2c_map_dt_bitrate(cfg->bitrate)); in i2c_b91_init() local
133 status = i2c_b91_configure(dev, dev_config); in i2c_b91_init()
Di2c_npcx_port.c55 uint32_t dev_config) in i2c_npcx_port_configure() argument
65 if (!(dev_config & I2C_MODE_CONTROLLER)) { in i2c_npcx_port_configure()
69 if (dev_config & I2C_ADDR_10_BITS) { in i2c_npcx_port_configure()
74 return npcx_i2c_ctrl_configure(config->i2c_ctrl, dev_config); in i2c_npcx_port_configure()
77 static int i2c_npcx_port_get_config(const struct device *dev, uint32_t *dev_config) in i2c_npcx_port_get_config() argument
90 *dev_config = (I2C_MODE_CONTROLLER | speed); in i2c_npcx_port_get_config()
Di2c_nrfx_twi.c29 uint32_t dev_config; member
173 uint32_t dev_config) in i2c_nrfx_twi_configure() argument
179 if (I2C_ADDR_10_BITS & dev_config) { in i2c_nrfx_twi_configure()
183 switch (I2C_SPEED_GET(dev_config)) { in i2c_nrfx_twi_configure()
194 data->dev_config = dev_config; in i2c_nrfx_twi_configure()
249 if (data->dev_config) { in twi_nrfx_pm_action()
250 i2c_nrfx_twi_configure(dev, data->dev_config); in twi_nrfx_pm_action()
Di2c_sifive.c201 static int i2c_sifive_configure(const struct device *dev, uint32_t dev_config) in i2c_sifive_configure() argument
222 switch (I2C_SPEED_GET(dev_config)) { in i2c_sifive_configure()
246 if (!(dev_config & I2C_MODE_CONTROLLER)) { in i2c_sifive_configure()
255 if (dev_config & I2C_ADDR_10_BITS) { in i2c_sifive_configure()
305 uint32_t dev_config = 0U; in i2c_sifive_init() local
308 dev_config = (I2C_MODE_CONTROLLER | i2c_map_dt_bitrate(config->f_bus)); in i2c_sifive_init()
310 rc = i2c_sifive_configure(dev, dev_config); in i2c_sifive_init()
Di2c_cc13xx_cc26xx.c34 uint32_t dev_config; member
231 uint32_t dev_config) in i2c_cc13xx_cc26xx_configure() argument
236 switch (I2C_SPEED_GET(dev_config)) { in i2c_cc13xx_cc26xx_configure()
249 if (!(dev_config & I2C_MODE_CONTROLLER)) { in i2c_cc13xx_cc26xx_configure()
255 if (dev_config & I2C_ADDR_10_BITS) { in i2c_cc13xx_cc26xx_configure()
266 data->dev_config = dev_config; in i2c_cc13xx_cc26xx_configure()
310 data->dev_config) != 0) { in postNotifyFxn()
337 ret = i2c_cc13xx_cc26xx_configure(dev, data->dev_config); in i2c_cc13xx_cc26xx_pm_action()
Di2c_emul.c59 static int i2c_emul_configure(const struct device *dev, uint32_t dev_config) in i2c_emul_configure() argument
63 data->config = dev_config; in i2c_emul_configure()
68 static int i2c_emul_get_config(const struct device *dev, uint32_t *dev_config) in i2c_emul_get_config() argument
72 *dev_config = data->config; in i2c_emul_get_config()
Di2c_nios2.c31 i2c_nios2_configure(const struct device *dev, uint32_t dev_config) in i2c_nios2_configure() argument
38 if (!(I2C_MODE_CONTROLLER & dev_config)) { in i2c_nios2_configure()
44 if (I2C_ADDR_10_BITS & dev_config) { in i2c_nios2_configure()
50 if (I2C_SPEED_GET(dev_config) != I2C_SPEED_STANDARD) { in i2c_nios2_configure()
/Zephyr-Core-3.4.0/drivers/spi/
Dspi_nrfx_spim.c115 const struct spi_nrfx_config *dev_config = dev->config; in configure() local
117 uint32_t max_freq = dev_config->max_freq; in configure()
168 config = dev_config->def_config; in configure()
177 nrfx_spim_uninit(&dev_config->spim); in configure()
181 result = nrfx_spim_init(&dev_config->spim, &config, in configure()
211 const struct spi_nrfx_config *dev_config = dev->config; in anomaly_58_workaround_setup() local
212 NRF_SPIM_Type *spim = dev_config->spim.p_reg; in anomaly_58_workaround_setup()
251 const struct spi_nrfx_config *dev_config = dev->config; in anomaly_58_workaround_init() local
256 if (dev_config->anomaly_58_workaround) { in anomaly_58_workaround_init()
292 const struct spi_nrfx_config *dev_config = dev->config; in transfer_next_chunk() local
[all …]
Dspi_nrfx_spi.c87 const struct spi_nrfx_config *dev_config = dev->config; in configure() local
128 config = dev_config->def_config; in configure()
135 nrfx_spi_uninit(&dev_config->spi); in configure()
139 result = nrfx_spi_init(&dev_config->spi, &config, in configure()
168 const struct spi_nrfx_config *dev_config = dev->config; in transfer_next_chunk() local
185 result = nrfx_spi_xfer(&dev_config->spi, &xfer, 0); in transfer_next_chunk()
225 const struct spi_nrfx_config *dev_config = dev->config; in transceive() local
249 nrfx_spi_uninit(&dev_config->spi); in transceive()
320 const struct spi_nrfx_config *dev_config = dev->config; in spi_nrfx_pm_action() local
324 ret = pinctrl_apply_state(dev_config->pcfg, in spi_nrfx_pm_action()
[all …]
Dspi_nrfx_spis.c59 const struct spi_nrfx_config *dev_config = dev->config; in configure() local
101 nrf_spis_configure(dev_config->spis.p_reg, in configure()
113 const struct spi_nrfx_config *dev_config = dev->config; in prepare_for_transfer() local
116 if (tx_buf_len > dev_config->max_buf_len || in prepare_for_transfer()
117 rx_buf_len > dev_config->max_buf_len) { in prepare_for_transfer()
124 result = nrfx_spis_buffers_set(&dev_config->spis, in prepare_for_transfer()
231 const struct spi_nrfx_config *dev_config = dev->config; in spi_nrfx_init() local
236 err = pinctrl_apply_state(dev_config->pcfg, PINCTRL_STATE_DEFAULT); in spi_nrfx_init()
244 result = nrfx_spis_init(&dev_config->spis, &dev_config->config, in spi_nrfx_init()
/Zephyr-Core-3.4.0/subsys/mgmt/osdp/src/
Dosdp.c37 struct uart_config dev_config; member
208 p->dev_config.baudrate = CONFIG_OSDP_UART_BAUD_RATE; in osdp_init()
209 p->dev_config.data_bits = UART_CFG_DATA_BITS_8; in osdp_init()
210 p->dev_config.parity = UART_CFG_PARITY_NONE; in osdp_init()
211 p->dev_config.stop_bits = UART_CFG_STOP_BITS_1; in osdp_init()
212 p->dev_config.flow_ctrl = UART_CFG_FLOW_CTRL_NONE; in osdp_init()
213 uart_configure(p->dev, &p->dev_config); in osdp_init()
/Zephyr-Core-3.4.0/drivers/lora/
Dsx127x.c177 static const struct sx127x_config dev_config = { variable
233 gpio_pin_set_dt(&dev_config.antenna_enable, val); in sx127x_antenna_enable()
240 gpio_pin_set_dt(&dev_config.rfi_enable, val); in sx127x_rfi_enable()
247 gpio_pin_set_dt(&dev_config.rfo_enable, val); in sx127x_rfo_enable()
254 gpio_pin_set_dt(&dev_config.pa_boost_enable, val); in sx127x_pa_boost_enable()
284 gpio_pin_set_dt(&dev_config.tcxo_power, 1); in SX127xSetBoardTcxo()
290 gpio_pin_set_dt(&dev_config.tcxo_power, 0); in SX127xSetBoardTcxo()
323 gpio_pin_set_dt(&dev_config.reset, 1); in SX127xReset()
327 gpio_pin_set_dt(&dev_config.reset, 0); in SX127xReset()
413 return spi_transceive_dt(&dev_config.bus, &tx, &rx); in sx127x_transceive()
[all …]
Dsx126x.c42 static const struct sx126x_config dev_config = { variable
125 ret = spi_write_dt(&dev_config.bus, &tx); in sx126x_spi_transceive()
127 ret = spi_transceive_dt(&dev_config.bus, &tx, &rx); in sx126x_spi_transceive()
240 gpio_pin_set_dt(&dev_config.antenna_enable, 1); in SX126xAntSwOn()
250 gpio_pin_set_dt(&dev_config.antenna_enable, 0); in SX126xAntSwOff()
259 gpio_pin_set_dt(&dev_config.tx_enable, value); in sx126x_set_tx_enable()
266 gpio_pin_set_dt(&dev_config.rx_enable, value); in sx126x_set_rx_enable()
391 ret = spi_write_dt(&dev_config.bus, &tx); in SX126xWakeup()
476 &dev_config, POST_KERNEL, CONFIG_LORA_INIT_PRIORITY,
/Zephyr-Core-3.4.0/drivers/smbus/
Dsmbus_handlers.c12 uint32_t dev_config) in z_vrfy_smbus_configure() argument
16 return z_impl_smbus_configure(dev, dev_config); in z_vrfy_smbus_configure()
21 uint32_t *dev_config) in z_vrfy_smbus_get_config() argument
24 Z_OOPS(Z_SYSCALL_MEMORY_WRITE(dev_config, sizeof(uint32_t))); in z_vrfy_smbus_get_config()
26 return z_impl_smbus_get_config(dev, dev_config); in z_vrfy_smbus_get_config()
/Zephyr-Core-3.4.0/drivers/sensor/qdec_nrfx/
Dqdec_nrfx.c224 const struct qdec_nrfx_config *dev_config = dev->config; in qdec_nrfx_init() local
226 dev_config->irq_connect(); in qdec_nrfx_init()
228 int err = pinctrl_apply_state(dev_config->pcfg, PINCTRL_STATE_DEFAULT); in qdec_nrfx_init()
234 nrfx_err_t nerr = nrfx_qdec_init(&dev_config->qdec, in qdec_nrfx_init()
235 &dev_config->config, in qdec_nrfx_init()
248 nrfx_qdec_enable(&dev_config->qdec); in qdec_nrfx_init()

123