Lines Matching refs:irq_data

481 	struct max8925_irq_data *irq_data;  in max8925_irq()  local
487 irq_data = &max8925_irqs[i]; in max8925_irq()
489 if (irq_data->tsc_irq) in max8925_irq()
491 if (irq_data->flags == FLAGS_RTC) in max8925_irq()
493 else if (irq_data->flags == FLAGS_ADC) in max8925_irq()
497 if (read_reg != irq_data->reg) { in max8925_irq()
498 read_reg = irq_data->reg; in max8925_irq()
499 value = max8925_reg_read(i2c, irq_data->reg); in max8925_irq()
501 if (value & irq_data->enable) in max8925_irq()
510 struct max8925_irq_data *irq_data; in max8925_tsc_irq() local
516 irq_data = &max8925_irqs[i]; in max8925_tsc_irq()
518 if (!irq_data->tsc_irq) in max8925_tsc_irq()
520 if (irq_data->flags == FLAGS_RTC) in max8925_tsc_irq()
522 else if (irq_data->flags == FLAGS_ADC) in max8925_tsc_irq()
526 if (read_reg != irq_data->reg) { in max8925_tsc_irq()
527 read_reg = irq_data->reg; in max8925_tsc_irq()
528 value = max8925_reg_read(i2c, irq_data->reg); in max8925_tsc_irq()
530 if (value & irq_data->enable) in max8925_tsc_irq()
536 static void max8925_irq_lock(struct irq_data *data) in max8925_irq_lock()
543 static void max8925_irq_sync_unlock(struct irq_data *data) in max8925_irq_sync_unlock()
546 struct max8925_irq_data *irq_data; in max8925_irq_sync_unlock() local
562 irq_data = &max8925_irqs[i]; in max8925_irq_sync_unlock()
564 switch (irq_data->mask_reg) { in max8925_irq_sync_unlock()
566 irq_chg[0] &= ~irq_data->enable; in max8925_irq_sync_unlock()
569 irq_chg[1] &= ~irq_data->enable; in max8925_irq_sync_unlock()
572 irq_on[0] &= ~irq_data->enable; in max8925_irq_sync_unlock()
575 irq_on[1] &= ~irq_data->enable; in max8925_irq_sync_unlock()
578 irq_rtc &= ~irq_data->enable; in max8925_irq_sync_unlock()
581 irq_tsc &= ~irq_data->enable; in max8925_irq_sync_unlock()
621 static void max8925_irq_enable(struct irq_data *data) in max8925_irq_enable()
629 static void max8925_irq_disable(struct irq_data *data) in max8925_irq_disable()