old_val 157 arch/arc/include/asm/cmpxchg.h typeof(*(ptr)) old_val; \ old_val 160 arch/arc/include/asm/cmpxchg.h old_val = _xchg(ptr, with); \ old_val 162 arch/arc/include/asm/cmpxchg.h old_val; \ old_val 5125 arch/ia64/kernel/perfmon.c unsigned long old_val, ovfl_val, new_val; old_val 5168 arch/ia64/kernel/perfmon.c old_val = new_val = ctx->ctx_pmds[i].val; old_val 5175 arch/ia64/kernel/perfmon.c if (likely(old_val > new_val)) { old_val 5183 arch/ia64/kernel/perfmon.c old_val, old_val 1387 arch/mips/kvm/emulate.c unsigned int old_val, val, change; old_val 1389 arch/mips/kvm/emulate.c old_val = kvm_read_c0_guest_status(cop0); old_val 1391 arch/mips/kvm/emulate.c change = val ^ old_val; old_val 1459 arch/mips/kvm/emulate.c unsigned int old_val, val, change, wrmask; old_val 1461 arch/mips/kvm/emulate.c old_val = kvm_read_c0_guest_config5(cop0); old_val 1466 arch/mips/kvm/emulate.c change = (val ^ old_val) & wrmask; old_val 1467 arch/mips/kvm/emulate.c val = old_val ^ change; old_val 1235 arch/mips/kvm/vz.c unsigned int old_val, change; old_val 1252 arch/mips/kvm/vz.c old_val = read_gc0_status(); old_val 1253 arch/mips/kvm/vz.c change = val ^ old_val; old_val 1301 arch/mips/kvm/vz.c old_val = read_gc0_config5(); old_val 1302 arch/mips/kvm/vz.c change = val ^ old_val; old_val 1316 arch/mips/kvm/vz.c val = old_val ^ old_val 141 arch/nds32/kernel/perf_event_cpu.c u32 old_val = val; old_val 148 arch/nds32/kernel/perf_event_cpu.c return old_val; old_val 1345 arch/powerpc/include/asm/book3s/64/pgtable.h static inline bool is_pte_rw_upgrade(unsigned long old_val, unsigned long new_val) old_val 1347 arch/powerpc/include/asm/book3s/64/pgtable.h if (!(old_val & _PAGE_READ)) old_val 1350 arch/powerpc/include/asm/book3s/64/pgtable.h if ((!(old_val & _PAGE_WRITE)) && (new_val & _PAGE_WRITE)) old_val 84 arch/s390/kvm/interrupt.c union esca_sigp_ctrl new_val = {0}, old_val = *sigp_ctrl; old_val 88 arch/s390/kvm/interrupt.c old_val.c = 0; old_val 90 arch/s390/kvm/interrupt.c expect = old_val.value; old_val 91 arch/s390/kvm/interrupt.c rc = cmpxchg(&sigp_ctrl->value, old_val.value, new_val.value); old_val 96 arch/s390/kvm/interrupt.c union bsca_sigp_ctrl new_val = {0}, old_val = *sigp_ctrl; old_val 100 arch/s390/kvm/interrupt.c old_val.c = 0; old_val 102 arch/s390/kvm/interrupt.c expect = old_val.value; old_val 103 arch/s390/kvm/interrupt.c rc = cmpxchg(&sigp_ctrl->value, old_val.value, new_val.value); old_val 70 arch/sparc/kernel/prom_common.c void *old_val = prop->value; old_val 81 arch/sparc/kernel/prom_common.c kfree(old_val); old_val 107 arch/x86/kvm/ioapic.c bool new_val, old_val; old_val 118 arch/x86/kvm/ioapic.c old_val = test_bit(vcpu->vcpu_id, dest_map->map); old_val 120 arch/x86/kvm/ioapic.c if (new_val == old_val) old_val 6278 arch/x86/kvm/mmu.c bool old_val = nx_huge_pages; old_val 6293 arch/x86/kvm/mmu.c if (new_val != old_val) { old_val 6400 arch/x86/kvm/mmu.c unsigned int old_val; old_val 6403 arch/x86/kvm/mmu.c old_val = nx_huge_pages_recovery_ratio; old_val 6409 arch/x86/kvm/mmu.c !old_val && nx_huge_pages_recovery_ratio) { old_val 264 arch/x86/mm/mpx.c unsigned long old_val, unsigned long new_val) old_val 276 arch/x86/mm/mpx.c addr, old_val, new_val); old_val 279 arch/x86/mm/mpx.c u32 old_val_32 = old_val; old_val 41 drivers/ata/ahci_st.c unsigned long old_val, new_val; old_val 48 drivers/ata/ahci_st.c old_val = readl(mmio + ST_AHCI_OOBR); old_val 49 drivers/ata/ahci_st.c writel(old_val | ST_AHCI_OOBR_WE, mmio + ST_AHCI_OOBR); old_val 57 drivers/gpio/gpio-ath79.c u32 old_val, new_val; old_val 59 drivers/gpio/gpio-ath79.c old_val = ath79_gpio_read(ctrl, reg); old_val 60 drivers/gpio/gpio-ath79.c new_val = (old_val & ~mask) | (bits & mask); old_val 62 drivers/gpio/gpio-ath79.c if (new_val != old_val) old_val 65 drivers/gpio/gpio-ath79.c return new_val != old_val; old_val 448 drivers/gpu/drm/amd/amdgpu/atom.c atom_dst_to_src[(attr >> 3) & 7][(attr >> 6) & 3], old_val = old_val 451 drivers/gpu/drm/amd/amdgpu/atom.c old_val &= atom_arg_mask[align] >> atom_arg_shift[align]; old_val 554 drivers/gpu/drm/amd/amdgpu/atom.c DEBUG(".[31:0] <- 0x%08X\n", old_val); old_val 557 drivers/gpu/drm/amd/amdgpu/atom.c DEBUG(".[15:0] <- 0x%04X\n", old_val); old_val 560 drivers/gpu/drm/amd/amdgpu/atom.c DEBUG(".[23:8] <- 0x%04X\n", old_val); old_val 563 drivers/gpu/drm/amd/amdgpu/atom.c DEBUG(".[31:16] <- 0x%04X\n", old_val); old_val 566 drivers/gpu/drm/amd/amdgpu/atom.c DEBUG(".[7:0] <- 0x%02X\n", old_val); old_val 569 drivers/gpu/drm/amd/amdgpu/atom.c DEBUG(".[15:8] <- 0x%02X\n", old_val); old_val 572 drivers/gpu/drm/amd/amdgpu/atom.c DEBUG(".[23:16] <- 0x%02X\n", old_val); old_val 575 drivers/gpu/drm/amd/amdgpu/atom.c DEBUG(".[31:24] <- 0x%02X\n", old_val); old_val 688 drivers/gpu/drm/i2c/tda998x_drv.c int old_val; old_val 690 drivers/gpu/drm/i2c/tda998x_drv.c old_val = reg_read(priv, reg); old_val 691 drivers/gpu/drm/i2c/tda998x_drv.c if (old_val >= 0) old_val 692 drivers/gpu/drm/i2c/tda998x_drv.c reg_write(priv, reg, old_val | val); old_val 698 drivers/gpu/drm/i2c/tda998x_drv.c int old_val; old_val 700 drivers/gpu/drm/i2c/tda998x_drv.c old_val = reg_read(priv, reg); old_val 701 drivers/gpu/drm/i2c/tda998x_drv.c if (old_val >= 0) old_val 702 drivers/gpu/drm/i2c/tda998x_drv.c reg_write(priv, reg, old_val & ~val); old_val 277 drivers/gpu/drm/i915/gvt/trace.h unsigned int old_val, bool changed), old_val 279 drivers/gpu/drm/i915/gvt/trace.h TP_ARGS(id, reg_name, reg, new_val, old_val, changed), old_val 286 drivers/gpu/drm/i915/gvt/trace.h __field(unsigned int, old_val) old_val 295 drivers/gpu/drm/i915/gvt/trace.h __entry->old_val = old_val; old_val 301 drivers/gpu/drm/i915/gvt/trace.h __entry->old_val, __entry->changed) old_val 348 drivers/gpu/drm/i915/gvt/trace.h unsigned int old_val, unsigned int new_val), old_val 350 drivers/gpu/drm/i915/gvt/trace.h TP_ARGS(old_id, new_id, action, reg, old_val, new_val), old_val 357 drivers/gpu/drm/i915/gvt/trace.h __field(unsigned int, old_val) old_val 366 drivers/gpu/drm/i915/gvt/trace.h __entry->old_val = old_val; old_val 373 drivers/gpu/drm/i915/gvt/trace.h __entry->old_val, __entry->new_val) old_val 515 drivers/gpu/drm/i915/i915_irq.c u32 old_val; old_val 524 drivers/gpu/drm/i915/i915_irq.c old_val = I915_READ(GEN8_DE_PORT_IMR); old_val 526 drivers/gpu/drm/i915/i915_irq.c new_val = old_val; old_val 530 drivers/gpu/drm/i915/i915_irq.c if (new_val != old_val) { old_val 454 drivers/gpu/drm/radeon/atom.c atom_dst_to_src[(attr >> 3) & 7][(attr >> 6) & 3], old_val = old_val 457 drivers/gpu/drm/radeon/atom.c old_val &= atom_arg_mask[align] >> atom_arg_shift[align]; old_val 560 drivers/gpu/drm/radeon/atom.c DEBUG(".[31:0] <- 0x%08X\n", old_val); old_val 563 drivers/gpu/drm/radeon/atom.c DEBUG(".[15:0] <- 0x%04X\n", old_val); old_val 566 drivers/gpu/drm/radeon/atom.c DEBUG(".[23:8] <- 0x%04X\n", old_val); old_val 569 drivers/gpu/drm/radeon/atom.c DEBUG(".[31:16] <- 0x%04X\n", old_val); old_val 572 drivers/gpu/drm/radeon/atom.c DEBUG(".[7:0] <- 0x%02X\n", old_val); old_val 575 drivers/gpu/drm/radeon/atom.c DEBUG(".[15:8] <- 0x%02X\n", old_val); old_val 578 drivers/gpu/drm/radeon/atom.c DEBUG(".[23:16] <- 0x%02X\n", old_val); old_val 581 drivers/gpu/drm/radeon/atom.c DEBUG(".[31:24] <- 0x%02X\n", old_val); old_val 56 drivers/input/input.c static int input_defuzz_abs_event(int value, int old_val, int fuzz) old_val 59 drivers/input/input.c if (value > old_val - fuzz / 2 && value < old_val + fuzz / 2) old_val 60 drivers/input/input.c return old_val; old_val 62 drivers/input/input.c if (value > old_val - fuzz && value < old_val + fuzz) old_val 63 drivers/input/input.c return (old_val * 3 + value) / 4; old_val 65 drivers/input/input.c if (value > old_val - fuzz * 2 && value < old_val + fuzz * 2) old_val 66 drivers/input/input.c return (old_val + value) / 2; old_val 190 drivers/macintosh/mac_hid.c int old_val = *valp; old_val 199 drivers/macintosh/mac_hid.c if (rc == 0 && write && *valp != old_val) { old_val 210 drivers/macintosh/mac_hid.c *valp = old_val; old_val 311 drivers/media/pci/solo6x10/solo6x10-g723.c u8 old_val; old_val 313 drivers/media/pci/solo6x10/solo6x10-g723.c old_val = tw28_get_audio_gain(solo_dev, ch); old_val 314 drivers/media/pci/solo6x10/solo6x10-g723.c if (old_val == value->value.integer.value[0]) old_val 847 drivers/media/pci/solo6x10/solo6x10-tw28.c u8 old_val; old_val 854 drivers/media/pci/solo6x10/solo6x10-tw28.c old_val = tw_readbyte(solo_dev, chip_num, old_val 858 drivers/media/pci/solo6x10/solo6x10-tw28.c val = (old_val & ((ch % 2) ? 0x0f : 0xf0)) | old_val 562 drivers/media/usb/gspca/m5602/m5602_s5k83a.c u8 old_val, ctrl_val, test_val = 0xff; old_val 564 drivers/media/usb/gspca/m5602/m5602_s5k83a.c m5602_read_sensor(sd, address, &old_val, 1); old_val 576 drivers/media/usb/gspca/m5602/m5602_s5k83a.c m5602_write_sensor(sd, address, &old_val, 1); old_val 179 drivers/mfd/aat2870-core.c u8 old_val, new_val; old_val 184 drivers/mfd/aat2870-core.c ret = __aat2870_read(aat2870, addr, &old_val); old_val 188 drivers/mfd/aat2870-core.c new_val = (old_val & ~mask) | (val & mask); old_val 189 drivers/mfd/aat2870-core.c change = old_val != new_val; old_val 135 drivers/mfd/htc-i2cpld.c unsigned long uval, old_val; old_val 165 drivers/mfd/htc-i2cpld.c old_val = chip->cache_in; old_val 183 drivers/mfd/htc-i2cpld.c oldb = (old_val >> irqpin) & 1; old_val 113 drivers/mfd/max8997.c u8 old_val = ret & 0xff; old_val 114 drivers/mfd/max8997.c u8 new_val = (val & mask) | (old_val & (~mask)); old_val 109 drivers/mfd/max8998.c u8 old_val = ret & 0xff; old_val 110 drivers/mfd/max8998.c u8 new_val = (val & mask) | (old_val & (~mask)); old_val 418 drivers/net/ethernet/stmicro/stmmac/dwmac5.c u32 old_val, val; old_val 421 drivers/net/ethernet/stmicro/stmmac/dwmac5.c old_val = readl(ioaddr + GMAC_CONFIG); old_val 422 drivers/net/ethernet/stmicro/stmmac/dwmac5.c val = old_val & ~GMAC_CONFIG_RE; old_val 495 drivers/net/ethernet/stmicro/stmmac/dwmac5.c writel(old_val, ioaddr + GMAC_CONFIG); old_val 984 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c u32 old_val, val; old_val 987 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c old_val = readl(ioaddr + XGMAC_RX_CONFIG); old_val 988 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c val = old_val & ~XGMAC_CONFIG_RE; old_val 1061 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c writel(old_val, ioaddr + XGMAC_RX_CONFIG); old_val 70 drivers/net/mdio.c int old_val = mdio->mdio_read(mdio->dev, prtad, devad, addr); old_val 73 drivers/net/mdio.c if (old_val < 0) old_val 74 drivers/net/mdio.c return old_val; old_val 76 drivers/net/mdio.c new_val = old_val | mask; old_val 78 drivers/net/mdio.c new_val = old_val & ~mask; old_val 79 drivers/net/mdio.c if (old_val == new_val) old_val 328 drivers/net/wireless/intersil/hostap/hostap_main.c u16 val, old_val; old_val 348 drivers/net/wireless/intersil/hostap/hostap_main.c old_val = val; old_val 372 drivers/net/wireless/intersil/hostap/hostap_main.c if (val != old_val && old_val 91 drivers/pinctrl/freescale/pinctrl-imx1-core.c u32 old_val; old_val 102 drivers/pinctrl/freescale/pinctrl-imx1-core.c old_val = readl(reg); old_val 103 drivers/pinctrl/freescale/pinctrl-imx1-core.c old_val &= mask; old_val 107 drivers/pinctrl/freescale/pinctrl-imx1-core.c new_val |= old_val;/* Set new state for pin_id */ old_val 118 drivers/pinctrl/freescale/pinctrl-imx1-core.c u32 old_val; old_val 122 drivers/pinctrl/freescale/pinctrl-imx1-core.c old_val = readl(reg); old_val 123 drivers/pinctrl/freescale/pinctrl-imx1-core.c old_val &= mask; old_val 127 drivers/pinctrl/freescale/pinctrl-imx1-core.c new_val |= old_val;/* Set new state for pin_id */ old_val 1141 drivers/pinctrl/intel/pinctrl-baytrail.c u32 old_val; old_val 1147 drivers/pinctrl/intel/pinctrl-baytrail.c old_val = readl(reg); old_val 1149 drivers/pinctrl/intel/pinctrl-baytrail.c writel(old_val | BYT_LEVEL, reg); old_val 1151 drivers/pinctrl/intel/pinctrl-baytrail.c writel(old_val & ~BYT_LEVEL, reg); old_val 379 drivers/platform/x86/compal-laptop.c u8 old_val = ec_read_u8(ADDR); \ old_val 382 drivers/platform/x86/compal-laptop.c ec_write(ADDR, state ? (old_val | MASK) : (old_val & ~MASK)); \ old_val 2168 drivers/scsi/lpfc/lpfc_attr.c uint32_t old_val; old_val 2189 drivers/scsi/lpfc/lpfc_attr.c old_val = phba->cfg_poll; old_val 2193 drivers/scsi/lpfc/lpfc_attr.c !(old_val & DISABLE_FCP_RING_INT)) { old_val 2210 drivers/scsi/lpfc/lpfc_attr.c (old_val & DISABLE_FCP_RING_INT)) old_val 2641 fs/btrfs/block-group.c u64 old_val; old_val 2648 fs/btrfs/block-group.c old_val = btrfs_super_bytes_used(info->super_copy); old_val 2650 fs/btrfs/block-group.c old_val += num_bytes; old_val 2652 fs/btrfs/block-group.c old_val -= num_bytes; old_val 2653 fs/btrfs/block-group.c btrfs_set_super_bytes_used(info->super_copy, old_val); old_val 2683 fs/btrfs/block-group.c old_val = btrfs_block_group_used(&cache->item); old_val 2686 fs/btrfs/block-group.c old_val += num_bytes; old_val 2687 fs/btrfs/block-group.c btrfs_set_block_group_used(&cache->item, old_val); old_val 2695 fs/btrfs/block-group.c old_val -= num_bytes; old_val 2696 fs/btrfs/block-group.c btrfs_set_block_group_used(&cache->item, old_val); old_val 2729 fs/btrfs/block-group.c if (!alloc && old_val == 0) old_val 302 kernel/sched/clock.c u64 *ptr, old_val, val; old_val 343 kernel/sched/clock.c old_val = remote_clock; old_val 350 kernel/sched/clock.c old_val = this_clock; old_val 354 kernel/sched/clock.c if (cmpxchg64(ptr, old_val, val) != old_val) old_val 881 lib/test_kmod.c unsigned int old_val; old_val 892 lib/test_kmod.c old_val = *config; old_val 897 lib/test_kmod.c *(unsigned int *)config = old_val; old_val 210 lib/ubsan.c void *old_val) old_val 219 lib/ubsan.c val_to_string(old_val_str, sizeof(old_val_str), data->type, old_val); old_val 738 net/netlabel/netlabel_unlabeled.c u8 old_val; old_val 740 net/netlabel/netlabel_unlabeled.c old_val = netlabel_unlabel_acceptflg; old_val 746 net/netlabel/netlabel_unlabeled.c " unlbl_accept=%u old=%u", value, old_val); old_val 312 sound/core/vmaster.c static int sync_slaves(struct link_master *master, int old_val, int new_val) old_val 321 sound/core/vmaster.c master->val = old_val; old_val 335 sound/core/vmaster.c int err, new_val, old_val; old_val 342 sound/core/vmaster.c old_val = master->val; old_val 344 sound/core/vmaster.c if (new_val == old_val) old_val 347 sound/core/vmaster.c err = sync_slaves(master, old_val, new_val); old_val 236 sound/i2c/other/ak4113.c u8 old_val; old_val 239 sound/i2c/other/ak4113.c old_val = chip->regmap[AK4113_REG_IO1]; old_val 240 sound/i2c/other/ak4113.c change = ucontrol->value.integer.value[0] != AK4113_IPS(old_val); old_val 243 sound/i2c/other/ak4113.c (old_val & (~AK4113_IPS(0xff))) | old_val 203 sound/i2c/other/ak4117.c u8 old_val; old_val 206 sound/i2c/other/ak4117.c old_val = chip->regmap[AK4117_REG_IO]; old_val 207 sound/i2c/other/ak4117.c change = !!ucontrol->value.integer.value[0] != ((old_val & AK4117_IPS) ? 1 : 0); old_val 209 sound/i2c/other/ak4117.c reg_write(chip, AK4117_REG_IO, (old_val & ~AK4117_IPS) | (ucontrol->value.integer.value[0] ? AK4117_IPS : 0)); old_val 807 sound/isa/ad1816a/ad1816a_lib.c unsigned short old_val, val; old_val 814 sound/isa/ad1816a/ad1816a_lib.c old_val = snd_ad1816a_read(chip, reg); old_val 815 sound/isa/ad1816a/ad1816a_lib.c val = (old_val & ~(mask << shift)) | val; old_val 816 sound/isa/ad1816a/ad1816a_lib.c change = val != old_val; old_val 879 sound/isa/ad1816a/ad1816a_lib.c unsigned short old_val, val1, val2; old_val 890 sound/isa/ad1816a/ad1816a_lib.c old_val = snd_ad1816a_read(chip, reg); old_val 891 sound/isa/ad1816a/ad1816a_lib.c val1 = (old_val & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; old_val 892 sound/isa/ad1816a/ad1816a_lib.c change = val1 != old_val; old_val 2048 sound/pci/ice1712/ice1712.c unsigned int val, old_val, nval; old_val 2061 sound/pci/ice1712/ice1712.c val = old_val = inw(ICEMT(ice, ROUTE_PSDOUT03)); old_val 2064 sound/pci/ice1712/ice1712.c change = val != old_val; old_val 2073 sound/pci/ice1712/ice1712.c val = old_val = inl(ICEMT(ice, ROUTE_CAPTURE)); old_val 2084 sound/pci/ice1712/ice1712.c if (val != old_val) { old_val 2118 sound/pci/ice1712/ice1712.c unsigned int val, old_val, nval; old_val 2122 sound/pci/ice1712/ice1712.c val = old_val = inw(ICEMT(ice, ROUTE_SPDOUT)); old_val 2144 sound/pci/ice1712/ice1712.c change = val != old_val; old_val 2071 sound/pci/ice1712/ice1724.c unsigned int old_val, nval; old_val 2082 sound/pci/ice1712/ice1724.c val = old_val = inl(ICEMT1724(ice, ROUTE_PLAYBACK)); old_val 2085 sound/pci/ice1712/ice1724.c change = val != old_val; old_val 111 tools/testing/selftests/futex/functional/futex_requeue_pi.c futex_t old_val; old_val 119 tools/testing/selftests/futex/functional/futex_requeue_pi.c old_val = f1; old_val 123 tools/testing/selftests/futex/functional/futex_requeue_pi.c args->ret = futex_wait_requeue_pi(&f1, old_val, &f2, args->timeout, old_val 149 tools/testing/selftests/futex/functional/futex_requeue_pi.c futex_t old_val; old_val 164 tools/testing/selftests/futex/functional/futex_requeue_pi.c old_val = f1; old_val 165 tools/testing/selftests/futex/functional/futex_requeue_pi.c args->ret = futex_cmp_requeue_pi(&f1, old_val, &f2, nr_wake, nr_requeue, old_val 195 tools/testing/selftests/futex/functional/futex_requeue_pi.c unsigned int old_val; old_val 216 tools/testing/selftests/futex/functional/futex_requeue_pi.c old_val = f1; old_val 217 tools/testing/selftests/futex/functional/futex_requeue_pi.c args->ret = futex_cmp_requeue_pi(&f1, old_val, &f2, old_val 94 tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c unsigned int old_val; old_val 101 tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c old_val = f1; old_val 102 tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c res = futex_wait_requeue_pi(&f1, old_val, &(f2), NULL, old_val 120 tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c unsigned int old_val; old_val 181 tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c old_val = f1; old_val 182 tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c res = futex_cmp_requeue_pi(&f1, old_val, &(f2), 1, 0,