Lines Matching refs:tint_num

31 	uint8_t tint_num[GPIO_RZ_MAX_TINT_NUM];  member
257 static int gpio_rz_int_disable(const struct device *dev, uint8_t tint_num) in gpio_rz_int_disable() argument
265 tssr = &tssr[tint_num / 4]; in gpio_rz_int_disable()
266 titsr = &titsr[tint_num / 16]; in gpio_rz_int_disable()
268 irq_disable(GPIO_RZ_TINT_IRQ_GET(tint_num)); in gpio_rz_int_disable()
270 *tssr &= ~(0xFF << GPIO_RZ_TSSR_OFFSET(tint_num)); in gpio_rz_int_disable()
272 *titsr &= ~(0x3 << GPIO_RZ_TITSR_OFFSET(tint_num)); in gpio_rz_int_disable()
275 if (data->irq_set_edge & BIT(tint_num)) { in gpio_rz_int_disable()
276 *tscr &= ~BIT(tint_num); in gpio_rz_int_disable()
277 data->irq_set_edge &= ~BIT(tint_num); in gpio_rz_int_disable()
279 data->tint_data[tint_num].gpio_dev = NULL; in gpio_rz_int_disable()
280 data->tint_data[tint_num].pin = UINT8_MAX; in gpio_rz_int_disable()
286 uint8_t tint_num, uint8_t irq_type, gpio_pin_t pin) in gpio_rz_int_enable() argument
293 tssr = &tssr[tint_num / 4]; in gpio_rz_int_enable()
294 titsr = &titsr[tint_num / 16]; in gpio_rz_int_enable()
296 *titsr |= (irq_type << GPIO_RZ_TITSR_OFFSET(tint_num)); in gpio_rz_int_enable()
298 *tssr |= (GPIO_RZ_TSSR_VAL(gpio_config->port_num, pin)) << GPIO_RZ_TSSR_OFFSET(tint_num); in gpio_rz_int_enable()
301 int_data->irq_set_edge |= BIT(tint_num); in gpio_rz_int_enable()
303 R_INTC_IM33->TSCR &= ~BIT(tint_num); in gpio_rz_int_enable()
305 int_data->tint_data[tint_num].gpio_dev = gpio_dev; in gpio_rz_int_enable()
306 int_data->tint_data[tint_num].pin = pin; in gpio_rz_int_enable()
307 irq_enable(GPIO_RZ_TINT_IRQ_GET(tint_num)); in gpio_rz_int_enable()
318 uint8_t tint_num = config->tint_num[pin]; in gpio_rz_pin_interrupt_configure() local
323 if (tint_num >= GPIO_RZ_MAX_TINT_NUM) { in gpio_rz_pin_interrupt_configure()
324 LOG_DEV_ERR(dev, "Invalid TINT interrupt:%d >= %d", tint_num, GPIO_RZ_MAX_TINT_NUM); in gpio_rz_pin_interrupt_configure()
341 gpio_rz_int_disable(config->int_dev, tint_num); in gpio_rz_pin_interrupt_configure()
361 gpio_rz_int_enable(config->int_dev, dev, tint_num, irq_type, pin); in gpio_rz_pin_interrupt_configure()
387 uint8_t tint_num; in gpio_rz_tint_isr() local
389 tint_num = irq - GPIO_RZ_TINT_IRQ_OFFSET; in gpio_rz_tint_isr()
391 if (!(*tscr & BIT(tint_num))) { in gpio_rz_tint_isr()
392 LOG_DEV_DBG(dev, "tint:%u spurious irq, status 0", tint_num); in gpio_rz_tint_isr()
396 if (data->irq_set_edge & BIT(tint_num)) { in gpio_rz_tint_isr()
397 *tscr &= ~BIT(tint_num); in gpio_rz_tint_isr()
400 gpio_rz_isr(data->tint_data[tint_num].gpio_dev, data->tint_data[tint_num].pin); in gpio_rz_tint_isr()
493 .tint_num = {PIN_IRQS_GET(inst)}, \