/Zephyr-Core-2.7.6/drivers/eeprom/ |
D | eeprom_emulator.c | 115 const struct eeprom_emu_config *dev_config = DEV_CONFIG(dev); in eeprom_emu_flash_read() local 117 return flash_read(dev_config->flash_dev, dev_config->flash_offset + in eeprom_emu_flash_read() 127 const struct eeprom_emu_config *dev_config = DEV_CONFIG(dev); in eeprom_emu_flash_write() local 130 rc = flash_write(dev_config->flash_dev, dev_config->flash_offset + in eeprom_emu_flash_write() 142 const struct eeprom_emu_config *dev_config = DEV_CONFIG(dev); in eeprom_emu_flash_erase() local 145 rc = flash_erase(dev_config->flash_dev, dev_config->flash_offset + in eeprom_emu_flash_erase() 155 const struct eeprom_emu_config *dev_config = DEV_CONFIG(dev); in eeprom_emu_page_invalidate() local 156 uint8_t buf[dev_config->flash_cbs]; in eeprom_emu_page_invalidate() 162 offset += (dev_config->page_size - sizeof(buf)); in eeprom_emu_page_invalidate() 172 const struct eeprom_emu_config *dev_config = DEV_CONFIG(dev); in eeprom_emu_get_address() local [all …]
|
/Zephyr-Core-2.7.6/drivers/dma/ |
D | dmamux_stm32.c | 89 const struct dmamux_stm32_config *dev_config = dev->config; in dmamux_stm32_configure() local 97 if (request_id > dev_config->req_nb + dev_config->gen_nb) { in dmamux_stm32_configure() 103 if (id >= dev_config->channel_nb) { in dmamux_stm32_configure() 119 if (dma_stm32_configure(dev_config->mux_channels[id].dev_dma, in dmamux_stm32_configure() 120 dev_config->mux_channels[id].dma_id, config) != 0) { in dmamux_stm32_configure() 127 (DMAMUX_Channel_TypeDef *)dev_config->base; in dmamux_stm32_configure() 136 const struct dmamux_stm32_config *dev_config = dev->config; in dmamux_stm32_start() local 139 if (id >= dev_config->channel_nb) { in dmamux_stm32_start() 144 if (dma_stm32_start(dev_config->mux_channels[id].dev_dma, in dmamux_stm32_start() 145 dev_config->mux_channels[id].dma_id) != 0) { in dmamux_stm32_start() [all …]
|
/Zephyr-Core-2.7.6/drivers/i2c/ |
D | i2c_nrfx_twim.c | 22 uint32_t dev_config; member 49 const struct i2c_nrfx_twim_config *dev_config = get_dev_config(dev); in i2c_nrfx_twim_transfer() local 53 uint16_t concat_buf_size = dev_config->concat_buf_size; in i2c_nrfx_twim_transfer() 63 nrfx_twim_enable(&dev_config->twim); in i2c_nrfx_twim_transfer() 113 if (msgs[i].len > dev_config->flash_buf_max_size) { in i2c_nrfx_twim_transfer() 140 nrfx_err_t res = nrfx_twim_xfer(&dev_config->twim, in i2c_nrfx_twim_transfer() 174 nrfx_twim_disable(&dev_config->twim); in i2c_nrfx_twim_transfer() 175 nrfx_twim_bus_recover(dev_config->config.scl, in i2c_nrfx_twim_transfer() 176 dev_config->config.sda); in i2c_nrfx_twim_transfer() 209 nrfx_twim_disable(&dev_config->twim); in i2c_nrfx_twim_transfer() [all …]
|
D | i2c_b91.c | 33 static int i2c_b91_configure(const struct device *dev, uint32_t dev_config) in i2c_b91_configure() argument 40 if (dev_config & I2C_ADDR_10_BITS) { in i2c_b91_configure() 46 if (!(dev_config & I2C_MODE_MASTER)) { in i2c_b91_configure() 52 switch (I2C_SPEED_GET(dev_config)) { in i2c_b91_configure() 130 uint32_t dev_config = (I2C_MODE_MASTER | i2c_map_dt_bitrate(cfg->bitrate)); in i2c_b91_init() local 136 status = i2c_b91_configure(dev, dev_config); in i2c_b91_init()
|
D | i2c_nrfx_twi.c | 21 uint32_t dev_config; member 174 uint32_t dev_config) in i2c_nrfx_twi_configure() argument 178 if (I2C_ADDR_10_BITS & dev_config) { in i2c_nrfx_twi_configure() 182 switch (I2C_SPEED_GET(dev_config)) { in i2c_nrfx_twi_configure() 193 get_dev_data(dev)->dev_config = dev_config; in i2c_nrfx_twi_configure() 227 if (get_dev_data(dev)->dev_config) { in twi_nrfx_pm_control() 229 get_dev_data(dev)->dev_config); in twi_nrfx_pm_control()
|
D | i2c_npcx_port.c | 59 uint32_t dev_config) in i2c_npcx_port_configure() argument 69 if (!(dev_config & I2C_MODE_MASTER)) { in i2c_npcx_port_configure() 73 if (dev_config & I2C_ADDR_10_BITS) { in i2c_npcx_port_configure() 78 return npcx_i2c_ctrl_configure(config->i2c_ctrl, dev_config); in i2c_npcx_port_configure()
|
D | i2c_cc13xx_cc26xx.c | 33 uint32_t dev_config; member 243 uint32_t dev_config) in i2c_cc13xx_cc26xx_configure() argument 247 switch (I2C_SPEED_GET(dev_config)) { in i2c_cc13xx_cc26xx_configure() 260 if (!(dev_config & I2C_MODE_MASTER)) { in i2c_cc13xx_cc26xx_configure() 266 if (dev_config & I2C_ADDR_10_BITS) { in i2c_cc13xx_cc26xx_configure() 275 get_dev_data(dev)->dev_config = dev_config; in i2c_cc13xx_cc26xx_configure() 316 get_dev_data(dev)->dev_config) != 0) { in postNotifyFxn() 341 get_dev_data(dev)->dev_config); in i2c_cc13xx_cc26xx_pm_control()
|
D | i2c_sifive.c | 200 static int i2c_sifive_configure(const struct device *dev, uint32_t dev_config) in i2c_sifive_configure() argument 221 switch (I2C_SPEED_GET(dev_config)) { in i2c_sifive_configure() 245 if (!(dev_config & I2C_MODE_MASTER)) { in i2c_sifive_configure() 254 if (dev_config & I2C_ADDR_10_BITS) { in i2c_sifive_configure() 304 uint32_t dev_config = 0U; in i2c_sifive_init() local 307 dev_config = (I2C_MODE_MASTER | i2c_map_dt_bitrate(config->f_bus)); in i2c_sifive_init() 309 rc = i2c_sifive_configure(dev, dev_config); in i2c_sifive_init()
|
D | i2c_nios2.c | 31 static int i2c_nios2_configure(const struct device *dev, uint32_t dev_config) in i2c_nios2_configure() argument 37 if (!(I2C_MODE_MASTER & dev_config)) { in i2c_nios2_configure() 43 if (I2C_ADDR_10_BITS & dev_config) { in i2c_nios2_configure() 49 if (I2C_SPEED_GET(dev_config) != I2C_SPEED_STANDARD) { in i2c_nios2_configure()
|
D | i2c_handlers.c | 12 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()
|
D | i2c_rv32m1_lpi2c.c | 39 uint32_t dev_config) in rv32m1_lpi2c_configure() argument 46 if (!(I2C_MODE_MASTER & dev_config)) { in rv32m1_lpi2c_configure() 52 if (I2C_ADDR_10_BITS & dev_config) { in rv32m1_lpi2c_configure() 58 switch (I2C_SPEED_GET(dev_config)) { in rv32m1_lpi2c_configure()
|
D | i2c_sbcon.c | 80 static int i2c_sbcon_configure(const struct device *dev, uint32_t dev_config) in i2c_sbcon_configure() argument 84 return i2c_bitbang_configure(&context->bitbang, dev_config); in i2c_sbcon_configure()
|
D | i2c_npcx_controller.h | 41 int npcx_i2c_ctrl_configure(const struct device *i2c_dev, uint32_t dev_config);
|
D | i2c_bitbang.c | 42 int i2c_bitbang_configure(struct i2c_bitbang *context, uint32_t dev_config) in i2c_bitbang_configure() argument 45 if (I2C_ADDR_10_BITS & dev_config) { in i2c_bitbang_configure() 50 switch (I2C_SPEED_GET(dev_config)) { in i2c_bitbang_configure()
|
D | i2c_esp32.c | 59 uint32_t dev_config; member 182 static int i2c_esp32_configure(const struct device *dev, uint32_t dev_config) in i2c_esp32_configure() argument 215 if (dev_config & I2C_MODE_MASTER) { in i2c_esp32_configure() 221 if (dev_config & I2C_ADDR_10_BITS) { in i2c_esp32_configure() 240 ret = i2c_esp32_configure_speed(dev, I2C_SPEED_GET(dev_config)); in i2c_esp32_configure() 349 if (data->dev_config & I2C_ADDR_10_BITS) { in i2c_esp32_write_addr() 511 addr &= BIT_MASK(data->dev_config & I2C_ADDR_10_BITS ? 10 : 7); in i2c_esp32_transfer()
|
D | i2c_emul.c | 63 static int i2c_emul_configure(const struct device *dev, uint32_t dev_config) in i2c_emul_configure() argument 67 data->config = dev_config; in i2c_emul_configure()
|
D | i2c_litex.c | 95 static int i2c_litex_configure(const struct device *dev, uint32_t dev_config) in i2c_litex_configure() argument 99 return i2c_bitbang_configure(bitbang, dev_config); in i2c_litex_configure()
|
D | i2c_bitbang.h | 49 int i2c_bitbang_configure(struct i2c_bitbang *bitbang, uint32_t dev_config);
|
/Zephyr-Core-2.7.6/drivers/flash/ |
D | spi_flash_at45.c | 562 const struct spi_flash_at45_config *dev_config = get_dev_config(dev); in spi_flash_at45_init() local 565 dev_data->spi = device_get_binding(dev_config->spi_bus); in spi_flash_at45_init() 567 LOG_ERR("Cannot find %s", dev_config->spi_bus); in spi_flash_at45_init() 572 if (dev_config->reset) { in spi_flash_at45_init() 573 if (gpio_pin_configure_dt(dev_config->reset, in spi_flash_at45_init() 578 gpio_pin_set(dev_config->reset->port, dev_config->reset->pin, 0); in spi_flash_at45_init() 583 if (dev_config->wp) { in spi_flash_at45_init() 584 if (gpio_pin_configure_dt(dev_config->wp, in spi_flash_at45_init() 589 gpio_pin_set(dev_config->wp->port, dev_config->wp->pin, 1); in spi_flash_at45_init() 593 if (dev_config->cs_gpio) { in spi_flash_at45_init() [all …]
|
/Zephyr-Core-2.7.6/subsys/mgmt/osdp/src/ |
D | osdp.c | 38 struct uart_config dev_config; member 210 p->dev_config.baudrate = CONFIG_OSDP_UART_BAUD_RATE; in osdp_init() 211 p->dev_config.data_bits = UART_CFG_DATA_BITS_8; in osdp_init() 212 p->dev_config.parity = UART_CFG_PARITY_NONE; in osdp_init() 213 p->dev_config.stop_bits = UART_CFG_STOP_BITS_1; in osdp_init() 214 p->dev_config.flow_ctrl = UART_CFG_FLOW_CTRL_NONE; in osdp_init() 215 uart_configure(p->dev, &p->dev_config); in osdp_init()
|
/Zephyr-Core-2.7.6/drivers/spi/ |
D | spi_nrfx_spim.c | 112 const struct spi_nrfx_config *dev_config = get_dev_config(dev); in configure() local 114 uint32_t max_freq = dev_config->max_freq; in configure() 159 config = dev_config->def_config; in configure() 168 nrfx_spim_uninit(&dev_config->spim); in configure() 172 result = nrfx_spim_init(&dev_config->spim, &config, in configure() 190 const struct spi_nrfx_config *dev_config = get_dev_config(dev); in transfer_next_chunk() local 210 if (chunk_len > dev_config->max_chunk_len) { in transfer_next_chunk() 211 chunk_len = dev_config->max_chunk_len; in transfer_next_chunk() 230 result = nrfx_spim_xfer(&dev_config->spim, &xfer, 0); in transfer_next_chunk()
|
D | spi_nrfx_spis.c | 111 const struct spi_nrfx_config *dev_config = get_dev_config(dev); in prepare_for_transfer() local 120 if (buf_len > dev_config->max_buf_len) { in prepare_for_transfer() 121 buf_len = dev_config->max_buf_len; in prepare_for_transfer() 125 &dev_config->spis, in prepare_for_transfer()
|
D | spi_nrfx_spi.c | 93 const struct spi_nrfx_config *dev_config = get_dev_config(dev); 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()
|
/Zephyr-Core-2.7.6/tests/kernel/device/src/ |
D | dummy_driver.c | 14 uint32_t dev_config);
|
D | bad_driver.c | 14 uint32_t dev_config);
|