Lines Matching refs:dev_config

38 	const struct spi_litex_cfg *dev_config = dev->config;  in spi_set_frequency()  local
40 if (!dev_config->clk_divider_exists) { in spi_set_frequency()
48 litex_write16(divisor, dev_config->clk_divider_addr); in spi_set_frequency()
54 const struct spi_litex_cfg *dev_config = dev->config; in spi_config() local
57 if (config->slave >= dev_config->max_cs) { in spi_config()
67 if (SPI_WORD_SIZE_GET(config->operation) > dev_config->data_width) { in spi_config()
68 LOG_ERR("Word size must be <= %d", dev_config->data_width); in spi_config()
104 if (!litex_read8(dev_config->loopback_addr) != !(config->operation & SPI_MODE_LOOP)) { in spi_config()
106 dev_config->loopback_addr); in spi_config()
115 litex_write16(*control, dev_config->control_addr); in spi_config()
125 const struct spi_litex_cfg *dev_config = dev->config; in spi_litex_send() local
127 litex_write32(frame, dev_config->mosi_addr); in spi_litex_send()
129 litex_write16(control | BIT(0), dev_config->control_addr); in spi_litex_send()
131 while (!(litex_read8(dev_config->status_addr) & BIT(0))) { in spi_litex_send()
138 const struct spi_litex_cfg *dev_config = dev->config; in spi_litex_recv() local
141 return litex_read32(dev_config->miso_addr); in spi_litex_recv()
148 const struct spi_litex_cfg *dev_config = dev->config; in spi_litex_xfer() local
154 litex_write16(BIT(config->slave), dev_config->cs_addr); in spi_litex_xfer()
183 litex_write16(0, dev_config->cs_addr); in spi_litex_xfer()
217 const struct spi_litex_cfg *dev_config = dev->config; in spi_litex_release() local
219 if (!(litex_read8(dev_config->status_addr) & BIT(0))) { in spi_litex_release()