Home
last modified time | relevance | path

Searched refs:cur_stat (Results 1 – 2 of 2) sorted by relevance

/linux-4.19.296/drivers/gpio/
Dgpio-pca953x.c566 u8 cur_stat[MAX_BANK]; in pca953x_irq_pending() local
580 ret = pca953x_read_regs(chip, PCA953X_INPUT, cur_stat); in pca953x_irq_pending()
586 pending[i] = (~cur_stat[i] & chip->irq_trig_fall[i]) | in pca953x_irq_pending()
587 (cur_stat[i] & chip->irq_trig_raise[i]); in pca953x_irq_pending()
596 ret = pca953x_read_regs(chip, chip->regs->input, cur_stat); in pca953x_irq_pending()
602 cur_stat[i] &= chip->reg_direction[i]; in pca953x_irq_pending()
607 trigger[i] = (cur_stat[i] ^ old_stat[i]) & chip->irq_mask[i]; in pca953x_irq_pending()
615 memcpy(chip->irq_stat, cur_stat, NBANK(chip)); in pca953x_irq_pending()
619 (cur_stat[i] & chip->irq_trig_raise[i]); in pca953x_irq_pending()
Dgpio-max732x.c447 uint8_t cur_stat; in max732x_irq_pending() local
464 cur_stat = status & 0xFF; in max732x_irq_pending()
465 cur_stat &= chip->irq_mask; in max732x_irq_pending()
467 old_stat = cur_stat ^ trigger; in max732x_irq_pending()
470 (cur_stat & chip->irq_trig_raise); in max732x_irq_pending()