Lines Matching refs:new
507 unsigned int old, new, smute; in qtet_mute_put() local
511 new = 0; in qtet_mute_put()
516 new = SCR_MUTE; in qtet_mute_put()
520 if (old != new) { in qtet_mute_put()
522 set_scr(ice, (get_scr(ice) & ~SCR_MUTE) | new); in qtet_mute_put()
568 unsigned int old, new, tmp, masked_old; in qtet_ain12_sw_put() local
569 old = new = get_scr(ice); in qtet_ain12_sw_put()
579 new = old & ~(SCR_AIN12_SEL1 | SCR_AIN12_SEL0); in qtet_ain12_sw_put()
580 set_scr(ice, new); in qtet_ain12_sw_put()
582 new &= ~SCR_RELAY; in qtet_ain12_sw_put()
583 set_scr(ice, new); in qtet_ain12_sw_put()
587 new = old | SCR_RELAY; in qtet_ain12_sw_put()
588 set_scr(ice, new); in qtet_ain12_sw_put()
589 new = (new & ~SCR_AIN12_SEL1) | SCR_AIN12_SEL0; in qtet_ain12_sw_put()
590 set_scr(ice, new); in qtet_ain12_sw_put()
594 new = old | SCR_RELAY; in qtet_ain12_sw_put()
595 set_scr(ice, new); in qtet_ain12_sw_put()
596 new |= SCR_AIN12_SEL1 | SCR_AIN12_SEL0; in qtet_ain12_sw_put()
597 set_scr(ice, new); in qtet_ain12_sw_put()
623 unsigned int old, new; in qtet_php_put() local
624 old = new = get_scr(ice); in qtet_php_put()
629 new = old | SCR_PHP_V; in qtet_php_put()
630 set_scr(ice, new); in qtet_php_put()
632 new &= ~SCR_PHP; in qtet_php_put()
633 set_scr(ice, new); in qtet_php_put()
638 new = old & ~SCR_PHP_V; in qtet_php_put()
639 set_scr(ice, new); in qtet_php_put()
641 new |= SCR_PHP; in qtet_php_put()
642 set_scr(ice, new); in qtet_php_put()
644 if (old != new) in qtet_php_put()
699 unsigned int old, new; in qtet_sw_put() local
702 new = old | private.bit; in qtet_sw_put()
704 new = old & ~private.bit; in qtet_sw_put()
705 if (old != new) { in qtet_sw_put()
706 private.set_register(ice, new); in qtet_sw_put()
848 unsigned int new; in qtet_set_rate() local
854 new = (get_cpld(ice) & ~CPLD_CKS_MASK) | get_cks_val(rate); in qtet_set_rate()
856 new &= ~CPLD_SYNC_SEL; in qtet_set_rate()
859 set_cpld(ice, new); in qtet_set_rate()
872 unsigned int old, new; in qtet_set_spdif_clock() local
874 old = new = get_cpld(ice); in qtet_set_spdif_clock()
875 new &= ~(CPLD_CKS_MASK | CPLD_WORD_SEL); in qtet_set_spdif_clock()
878 new |= CPLD_EXT_SPDIF; in qtet_set_spdif_clock()
881 new |= CPLD_EXT_WORDCLOCK_1FS; in qtet_set_spdif_clock()
884 new |= CPLD_EXT_WORDCLOCK_256FS; in qtet_set_spdif_clock()
889 if (old != new) { in qtet_set_spdif_clock()
890 set_cpld(ice, new); in qtet_set_spdif_clock()