Searched refs:oldreg (Results 1 – 2 of 2) sorted by relevance
/linux/sound/pci/oxygen/ |
H A D | oxygen_mixer.c | 444 u32 oldreg, newreg; in spdif_bit_switch_put() local 448 oldreg = oxygen_read32(chip, OXYGEN_SPDIF_CONTROL); in spdif_bit_switch_put() 450 newreg = oldreg | bit; in spdif_bit_switch_put() 452 newreg = oldreg & ~bit; in spdif_bit_switch_put() 453 changed = newreg != oldreg; in spdif_bit_switch_put() 488 u8 oldreg, newreg; in monitor_put() local 492 oldreg = oxygen_read8(chip, OXYGEN_ADC_MONITOR); in monitor_put() 494 newreg = oldreg | bit; in monitor_put() 496 newreg = oldreg & ~bit; in monitor_put() 497 changed = newreg != oldreg; in monitor_put() [all …]
|
/linux/drivers/power/supply/ |
H A D | twl4030_charger.c | 244 u8 bcictl1, oldreg, fullreg; in twl4030_charger_update_current() local 317 status = twl4030_bci_read(TWL4030_BCIMFTH8, &oldreg); in twl4030_charger_update_current() 320 if (oldreg != fullreg) { in twl4030_charger_update_current() 337 status = twl4030_bci_read(TWL4030_BCIMFTH9, &oldreg); in twl4030_charger_update_current() 340 if ((oldreg & 0xF0) != fullreg) { in twl4030_charger_update_current() 341 fullreg |= (oldreg & 0x0F); in twl4030_charger_update_current() 358 status = twl4030_bci_read(TWL4030_BCIIREF1, &oldreg); in twl4030_charger_update_current() 361 cur_reg = oldreg; in twl4030_charger_update_current() 362 status = twl4030_bci_read(TWL4030_BCIIREF2, &oldreg); in twl4030_charger_update_current() 365 cur_reg |= oldreg << 8; in twl4030_charger_update_current()
|