Lines Matching refs:curr
578 uint32_t prev, curr; in ap_wiggle() local
596 if (0 != read32(GPIO_DATA, &curr)) { in ap_wiggle()
600 debug(1, "citadel 0x%08x\n", curr); in ap_wiggle()
601 if (curr & cit_bit) in ap_wiggle()
603 prev = curr; in ap_wiggle()
608 if (0 != read32(GPIO_DATA, &curr)) { in ap_wiggle()
612 debug(1, "citadel 0x%08x\n", curr); in ap_wiggle()
613 if (!(curr & cit_bit)) in ap_wiggle()
615 if (prev != curr && (prev ^ curr) != cit_bit) in ap_wiggle()
616 Error("unexpected GPIO change: prev 0x%08x cur 0x%08x", prev, curr); in ap_wiggle()
617 prev = curr; in ap_wiggle()
622 if (0 != read32(GPIO_DATA, &curr)) { in ap_wiggle()
626 debug(1, "citadel 0x%08x\n", curr); in ap_wiggle()
627 if (curr & cit_bit) in ap_wiggle()
629 if (prev != curr && (prev ^ curr) != cit_bit) in ap_wiggle()
630 Error("unexpected GPIO change: prev 0x%08x cur 0x%08x", prev, curr); in ap_wiggle()
643 uint32_t prev, curr; in phys_wiggle() local
654 if (0 != read32(GPIO_DATA, &curr)) { in phys_wiggle()
658 debug(1, "initial value 0x%08x\n", curr); in phys_wiggle()
659 prev = curr; in phys_wiggle()
664 if (0 != read32(GPIO_DATA, &curr)) { in phys_wiggle()
668 } while (prev == curr && !stopped); in phys_wiggle()
669 debug(1, "new value 0x%08x\n", curr); in phys_wiggle()
670 if ((prev ^ curr) != cit_bit) in phys_wiggle()
672 __func__, prev, curr); in phys_wiggle()
673 prev = curr; in phys_wiggle()
678 if (0 != read32(GPIO_DATA, &curr)) { in phys_wiggle()
682 } while (prev == curr && !stopped); in phys_wiggle()
683 debug(1, "new value 0x%08x\n", curr); in phys_wiggle()
684 if ((prev ^ curr) != cit_bit) in phys_wiggle()
686 __func__, prev, curr); in phys_wiggle()
697 uint32_t curr; in cit_interrupt() local
708 if (0 != read32(GPIO_DATAOUT, &curr)) { in cit_interrupt()
713 debug(1, "initial value 0x%08x\n", curr); in cit_interrupt()
714 if (curr & cit_bit) { in cit_interrupt()
726 if (0 != write32(GPIO_DATAOUT, curr & (~cit_bit))) { in cit_interrupt()
732 if (0 != read32(GPIO_DATAOUT, &curr)) { in cit_interrupt()
736 if (curr & cit_bit) { in cit_interrupt()
753 if (0 != write32(GPIO_DATAOUT, curr | cit_bit)) { in cit_interrupt()
768 if (0 != write32(GPIO_DATAOUT, curr & (~cit_bit))) { in cit_interrupt()