Lines Matching refs:twai_config
85 const struct can_esp32_twai_config *twai_config = sja1000_config->custom; in can_esp32_twai_read_reg() local
86 mm_reg_t addr = twai_config->base + reg * sizeof(uint32_t); in can_esp32_twai_read_reg()
94 const struct can_esp32_twai_config *twai_config = sja1000_config->custom; in can_esp32_twai_write_reg() local
95 mm_reg_t addr = twai_config->base + reg * sizeof(uint32_t); in can_esp32_twai_write_reg()
108 const struct can_esp32_twai_config *twai_config = sja1000_config->custom; in can_esp32_twai_write_reg32() local
109 mm_reg_t addr = twai_config->base + reg * sizeof(uint32_t); in can_esp32_twai_write_reg32()
169 const struct can_esp32_twai_config *twai_config = sja1000_config->custom; in can_esp32_twai_init() local
172 if (!device_is_ready(twai_config->clock_dev)) { in can_esp32_twai_init()
177 err = pinctrl_apply_state(twai_config->pcfg, PINCTRL_STATE_DEFAULT); in can_esp32_twai_init()
183 err = clock_control_on(twai_config->clock_dev, twai_config->clock_subsys); in can_esp32_twai_init()
204 can_esp32_twai_write_reg32(dev, TWAI_CLOCK_DIVIDER_REG, twai_config->cdr32); in can_esp32_twai_init()
207 err = esp_intr_alloc(twai_config->irq_source, in can_esp32_twai_init()
208 ESP_PRIO_TO_FLAGS(twai_config->irq_priority) | in can_esp32_twai_init()
209 ESP_INT_FLAGS_CHECK(twai_config->irq_flags) | ESP_INTR_FLAG_IRAM, in can_esp32_twai_init()