Lines Matching refs:dev_config

76 	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()
145 const struct max7219_config *dev_config = dev->config; in max7219_write() local
149 const uint16_t max_height = dev_config->num_cascading * MAX7219_DIGITS_PER_DEVICE; in max7219_write()
247 const struct max7219_config *dev_config = dev->config; in max7219_get_capabilities() local
250 caps->y_resolution = MAX7219_DIGITS_PER_DEVICE * dev_config->num_cascading; in max7219_get_capabilities()
267 const struct max7219_config *dev_config = dev->config; in max7219_init() local
271 if (!spi_is_ready_dt(&dev_config->spi)) { in max7219_init()
278 dev_config->num_cascading * MAX7219_DIGITS_PER_DEVICE * sizeof(uint8_t)); in max7219_init()
292 ret = max7219_transmit_all(dev, MAX7219_REG_INTENSITY, dev_config->intensity); in max7219_init()
298 ret = max7219_transmit_all(dev, MAX7219_REG_SCAN_LIMIT, dev_config->scan_limit); in max7219_init()
311 .buf_size = dev_config->num_cascading * MAX7219_DIGITS_PER_DEVICE, in max7219_init()
312 .height = dev_config->num_cascading * MAX7219_DIGITS_PER_DEVICE, in max7219_init()