/linux-4.4.14/arch/s390/include/asm/ |
D | atomic.h | 35 int old_val; \ 41 : "=d" (old_val), "+Q" ((ptr)->counter) \ 44 old_val; \ 57 int old_val, new_val; \ 66 : "=&d" (old_val), "=&d" (new_val), "+Q" ((ptr)->counter)\ 69 old_val; \ 178 long long old_val; \ 184 : "=d" (old_val), "+Q" ((ptr)->counter) \ 187 old_val; \ 200 long long old_val, new_val; \ [all …]
|
D | spinlock.h | 153 unsigned int old_val; \ 159 : "=d" (old_val), "+Q" (*ptr) \ 162 old_val; \ 167 unsigned int old_val; \ 172 : "=d" (old_val), "+Q" (*ptr) \ 175 old_val; \
|
/linux-4.4.14/tools/testing/selftests/futex/functional/ |
D | futex_requeue_pi_signal_restart.c | 97 unsigned int old_val; in waiterfn() local 104 old_val = f1; in waiterfn() 105 res = futex_wait_requeue_pi(&f1, old_val, &(f2), NULL, in waiterfn() 123 unsigned int old_val; in main() local 182 old_val = f1; in main() 183 res = futex_cmp_requeue_pi(&f1, old_val, &(f2), 1, 0, in main()
|
D | futex_requeue_pi.c | 114 futex_t old_val; in waiterfn() local 122 old_val = f1; in waiterfn() 126 args->ret = futex_wait_requeue_pi(&f1, old_val, &f2, args->timeout, in waiterfn() 152 futex_t old_val; in broadcast_wakerfn() local 167 old_val = f1; in broadcast_wakerfn() 168 args->ret = futex_cmp_requeue_pi(&f1, old_val, &f2, nr_wake, nr_requeue, in broadcast_wakerfn() 198 unsigned int old_val; in signal_wakerfn() local 219 old_val = f1; in signal_wakerfn() 220 args->ret = futex_cmp_requeue_pi(&f1, old_val, &f2, in signal_wakerfn()
|
/linux-4.4.14/arch/arc/include/asm/ |
D | cmpxchg.h | 132 typeof(*(ptr)) old_val; \ 135 old_val = _xchg(ptr, with); \ 137 old_val; \
|
/linux-4.4.14/kernel/sched/ |
D | clock.c | 231 u64 *ptr, old_val, val; in sched_clock_remote() local 272 old_val = remote_clock; in sched_clock_remote() 279 old_val = this_clock; in sched_clock_remote() 283 if (cmpxchg64(ptr, old_val, val) != old_val) in sched_clock_remote()
|
/linux-4.4.14/drivers/net/ |
D | mdio.c | 73 int old_val = mdio->mdio_read(mdio->dev, prtad, devad, addr); in mdio_set_flag() local 76 if (old_val < 0) in mdio_set_flag() 77 return old_val; in mdio_set_flag() 79 new_val = old_val | mask; in mdio_set_flag() 81 new_val = old_val & ~mask; in mdio_set_flag() 82 if (old_val == new_val) in mdio_set_flag()
|
/linux-4.4.14/drivers/pinctrl/freescale/ |
D | pinctrl-imx1-core.c | 97 u32 old_val; in imx1_write_2bit() local 108 old_val = readl(reg); in imx1_write_2bit() 109 old_val &= mask; in imx1_write_2bit() 113 new_val |= old_val;/* Set new state for pin_id */ in imx1_write_2bit() 124 u32 old_val; in imx1_write_bit() local 128 old_val = readl(reg); in imx1_write_bit() 129 old_val &= mask; in imx1_write_bit() 133 new_val |= old_val;/* Set new state for pin_id */ in imx1_write_bit()
|
/linux-4.4.14/drivers/macintosh/ |
D | mac_hid.c | 189 int old_val = *valp; in mac_hid_toggle_emumouse() local 198 if (rc == 0 && write && *valp != old_val) { in mac_hid_toggle_emumouse() 209 *valp = old_val; in mac_hid_toggle_emumouse()
|
/linux-4.4.14/sound/core/ |
D | vmaster.c | 313 static int sync_slaves(struct link_master *master, int old_val, int new_val) in sync_slaves() argument 322 master->val = old_val; in sync_slaves() 336 int err, new_val, old_val; in master_put() local 343 old_val = master->val; in master_put() 345 if (new_val == old_val) in master_put() 348 err = sync_slaves(master, old_val, new_val); in master_put()
|
/linux-4.4.14/drivers/ata/ |
D | ahci_st.c | 44 unsigned long old_val, new_val; in st_ahci_configure_oob() local 51 old_val = readl(mmio + ST_AHCI_OOBR); in st_ahci_configure_oob() 52 writel(old_val | ST_AHCI_OOBR_WE, mmio + ST_AHCI_OOBR); in st_ahci_configure_oob()
|
/linux-4.4.14/arch/sparc/kernel/ |
D | prom_common.c | 74 void *old_val = prop->value; in of_set_property() local 85 kfree(old_val); in of_set_property()
|
/linux-4.4.14/drivers/mfd/ |
D | aat2870-core.c | 193 u8 old_val, new_val; in aat2870_update() local 198 ret = __aat2870_read(aat2870, addr, &old_val); in aat2870_update() 202 new_val = (old_val & ~mask) | (val & mask); in aat2870_update() 203 change = old_val != new_val; in aat2870_update()
|
D | htc-i2cpld.c | 149 unsigned long uval, old_val; in htcpld_handler() local 179 old_val = chip->cache_in; in htcpld_handler() 197 oldb = (old_val >> irqpin) & 1; in htcpld_handler()
|
D | max8998.c | 125 u8 old_val = ret & 0xff; in max8998_update_reg() local 126 u8 new_val = (val & mask) | (old_val & (~mask)); in max8998_update_reg()
|
D | max8997.c | 128 u8 old_val = ret & 0xff; in max8997_update_reg() local 129 u8 new_val = (val & mask) | (old_val & (~mask)); in max8997_update_reg()
|
/linux-4.4.14/sound/isa/ad1816a/ |
D | ad1816a_lib.c | 819 unsigned short old_val, val; in snd_ad1816a_put_single() local 826 old_val = snd_ad1816a_read(chip, reg); in snd_ad1816a_put_single() 827 val = (old_val & ~(mask << shift)) | val; in snd_ad1816a_put_single() 828 change = val != old_val; in snd_ad1816a_put_single() 891 unsigned short old_val, val1, val2; in snd_ad1816a_put_double() local 902 old_val = snd_ad1816a_read(chip, reg); in snd_ad1816a_put_double() 903 val1 = (old_val & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_ad1816a_put_double() 904 change = val1 != old_val; in snd_ad1816a_put_double()
|
/linux-4.4.14/drivers/gpu/drm/radeon/ |
D | atom.c | 452 atom_dst_to_src[(attr >> 3) & 7][(attr >> 6) & 3], old_val = in atom_put_dst() local 455 old_val &= atom_arg_mask[align] >> atom_arg_shift[align]; in atom_put_dst() 561 DEBUG(".[31:0] <- 0x%08X\n", old_val); in atom_put_dst() 564 DEBUG(".[15:0] <- 0x%04X\n", old_val); in atom_put_dst() 567 DEBUG(".[23:8] <- 0x%04X\n", old_val); in atom_put_dst() 570 DEBUG(".[31:16] <- 0x%04X\n", old_val); in atom_put_dst() 573 DEBUG(".[7:0] <- 0x%02X\n", old_val); in atom_put_dst() 576 DEBUG(".[15:8] <- 0x%02X\n", old_val); in atom_put_dst() 579 DEBUG(".[23:16] <- 0x%02X\n", old_val); in atom_put_dst() 582 DEBUG(".[31:24] <- 0x%02X\n", old_val); in atom_put_dst()
|
/linux-4.4.14/drivers/media/pci/solo6x10/ |
D | solo6x10-g723.c | 295 u8 old_val; in snd_solo_capture_volume_put() local 297 old_val = tw28_get_audio_gain(solo_dev, ch); in snd_solo_capture_volume_put() 298 if (old_val == value->value.integer.value[0]) in snd_solo_capture_volume_put()
|
D | solo6x10-tw28.c | 855 u8 old_val; in tw28_set_audio_gain() local 862 old_val = tw_readbyte(solo_dev, chip_num, in tw28_set_audio_gain() 866 val = (old_val & ((ch % 2) ? 0x0f : 0xf0)) | in tw28_set_audio_gain()
|
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/ |
D | atom.c | 449 atom_dst_to_src[(attr >> 3) & 7][(attr >> 6) & 3], old_val = in atom_put_dst() local 452 old_val &= atom_arg_mask[align] >> atom_arg_shift[align]; in atom_put_dst() 558 DEBUG(".[31:0] <- 0x%08X\n", old_val); in atom_put_dst() 561 DEBUG(".[15:0] <- 0x%04X\n", old_val); in atom_put_dst() 564 DEBUG(".[23:8] <- 0x%04X\n", old_val); in atom_put_dst() 567 DEBUG(".[31:16] <- 0x%04X\n", old_val); in atom_put_dst() 570 DEBUG(".[7:0] <- 0x%02X\n", old_val); in atom_put_dst() 573 DEBUG(".[15:8] <- 0x%02X\n", old_val); in atom_put_dst() 576 DEBUG(".[23:16] <- 0x%02X\n", old_val); in atom_put_dst() 579 DEBUG(".[31:24] <- 0x%02X\n", old_val); in atom_put_dst()
|
/linux-4.4.14/drivers/media/usb/gspca/m5602/ |
D | m5602_s5k83a.c | 437 u8 old_val, ctrl_val, test_val = 0xff; in s5k83a_dump_registers() local 439 m5602_read_sensor(sd, address, &old_val, 1); in s5k83a_dump_registers() 451 m5602_write_sensor(sd, address, &old_val, 1); in s5k83a_dump_registers()
|
/linux-4.4.14/sound/i2c/other/ |
D | ak4117.c | 219 u8 old_val; in snd_ak4117_rx_put() local 222 old_val = chip->regmap[AK4117_REG_IO]; in snd_ak4117_rx_put() 223 change = !!ucontrol->value.integer.value[0] != ((old_val & AK4117_IPS) ? 1 : 0); in snd_ak4117_rx_put() 225 …reg_write(chip, AK4117_REG_IO, (old_val & ~AK4117_IPS) | (ucontrol->value.integer.value[0] ? AK411… in snd_ak4117_rx_put()
|
D | ak4113.c | 252 u8 old_val; in snd_ak4113_rx_put() local 255 old_val = chip->regmap[AK4113_REG_IO1]; in snd_ak4113_rx_put() 256 change = ucontrol->value.integer.value[0] != AK4113_IPS(old_val); in snd_ak4113_rx_put() 259 (old_val & (~AK4113_IPS(0xff))) | in snd_ak4113_rx_put()
|
/linux-4.4.14/drivers/gpu/drm/i2c/ |
D | tda998x_drv.c | 516 int old_val; in reg_set() local 518 old_val = reg_read(priv, reg); in reg_set() 519 if (old_val >= 0) in reg_set() 520 reg_write(priv, reg, old_val | val); in reg_set() 526 int old_val; in reg_clear() local 528 old_val = reg_read(priv, reg); in reg_clear() 529 if (old_val >= 0) in reg_clear() 530 reg_write(priv, reg, old_val & ~val); in reg_clear()
|
/linux-4.4.14/drivers/pinctrl/intel/ |
D | pinctrl-baytrail.c | 292 u32 old_val; in byt_gpio_set() local 296 old_val = readl(reg); in byt_gpio_set() 299 writel(old_val | BYT_LEVEL, reg); in byt_gpio_set() 301 writel(old_val & ~BYT_LEVEL, reg); in byt_gpio_set()
|
/linux-4.4.14/drivers/input/ |
D | input.c | 59 static int input_defuzz_abs_event(int value, int old_val, int fuzz) in input_defuzz_abs_event() argument 62 if (value > old_val - fuzz / 2 && value < old_val + fuzz / 2) in input_defuzz_abs_event() 63 return old_val; in input_defuzz_abs_event() 65 if (value > old_val - fuzz && value < old_val + fuzz) in input_defuzz_abs_event() 66 return (old_val * 3 + value) / 4; in input_defuzz_abs_event() 68 if (value > old_val - fuzz * 2 && value < old_val + fuzz * 2) in input_defuzz_abs_event() 69 return (old_val + value) / 2; in input_defuzz_abs_event()
|
/linux-4.4.14/arch/x86/kvm/ |
D | ioapic.c | 110 bool new_val, old_val; in __rtc_irq_eoi_tracking_restore_one() local 120 old_val = test_bit(vcpu->vcpu_id, ioapic->rtc_status.dest_map); in __rtc_irq_eoi_tracking_restore_one() 122 if (new_val == old_val) in __rtc_irq_eoi_tracking_restore_one()
|
/linux-4.4.14/arch/x86/mm/ |
D | mpx.c | 381 unsigned long old_val, unsigned long new_val) in mpx_cmpxchg_bd_entry() argument 393 addr, old_val, new_val); in mpx_cmpxchg_bd_entry() 396 u32 old_val_32 = old_val; in mpx_cmpxchg_bd_entry()
|
/linux-4.4.14/drivers/platform/x86/ |
D | compal-laptop.c | 392 u8 old_val = ec_read_u8(ADDR); \ 395 ec_write(ADDR, state ? (old_val | MASK) : (old_val & ~MASK)); \
|
/linux-4.4.14/arch/mips/kvm/ |
D | emulate.c | 1113 unsigned int old_val, val, change; in kvm_mips_emulate_CP0() local 1115 old_val = kvm_read_c0_guest_status(cop0); in kvm_mips_emulate_CP0() 1117 change = val ^ old_val; in kvm_mips_emulate_CP0() 1185 unsigned int old_val, val, change, wrmask; in kvm_mips_emulate_CP0() local 1187 old_val = kvm_read_c0_guest_config5(cop0); in kvm_mips_emulate_CP0() 1192 change = (val ^ old_val) & wrmask; in kvm_mips_emulate_CP0() 1193 val = old_val ^ change; in kvm_mips_emulate_CP0()
|
/linux-4.4.14/sound/pci/ice1712/ |
D | ice1712.c | 2065 unsigned int val, old_val, nval; in snd_ice1712_pro_route_analog_put() local 2078 val = old_val = inw(ICEMT(ice, ROUTE_PSDOUT03)); in snd_ice1712_pro_route_analog_put() 2081 change = val != old_val; in snd_ice1712_pro_route_analog_put() 2090 val = old_val = inl(ICEMT(ice, ROUTE_CAPTURE)); in snd_ice1712_pro_route_analog_put() 2101 if (val != old_val) { in snd_ice1712_pro_route_analog_put() 2135 unsigned int val, old_val, nval; in snd_ice1712_pro_route_spdif_put() local 2139 val = old_val = inw(ICEMT(ice, ROUTE_SPDOUT)); in snd_ice1712_pro_route_spdif_put() 2161 change = val != old_val; in snd_ice1712_pro_route_spdif_put()
|
D | ice1724.c | 2087 unsigned int old_val, nval; in snd_ice1724_put_route_val() local 2098 val = old_val = inl(ICEMT1724(ice, ROUTE_PLAYBACK)); in snd_ice1724_put_route_val() 2101 change = val != old_val; in snd_ice1724_put_route_val()
|
/linux-4.4.14/drivers/net/wireless/hostap/ |
D | hostap_main.c | 332 u16 val, old_val; in hostap_set_encryption() local 352 old_val = val; in hostap_set_encryption() 376 if (val != old_val && in hostap_set_encryption()
|
/linux-4.4.14/net/netlabel/ |
D | netlabel_unlabeled.c | 758 u8 old_val; in netlbl_unlabel_acceptflg_set() local 760 old_val = netlabel_unlabel_acceptflg; in netlbl_unlabel_acceptflg_set() 766 " unlbl_accept=%u old=%u", value, old_val); in netlbl_unlabel_acceptflg_set()
|
/linux-4.4.14/arch/s390/kvm/ |
D | interrupt.c | 1008 unsigned char new_val, old_val; in __inject_extcall_sigpif() local 1012 old_val = *sigp_ctrl & ~SIGP_CTRL_C; in __inject_extcall_sigpif() 1013 if (cmpxchg(sigp_ctrl, old_val, new_val) != old_val) { in __inject_extcall_sigpif()
|
/linux-4.4.14/fs/btrfs/ |
D | extent-tree.c | 5854 u64 old_val; in update_block_group() local 5860 old_val = btrfs_super_bytes_used(info->super_copy); in update_block_group() 5862 old_val += num_bytes; in update_block_group() 5864 old_val -= num_bytes; in update_block_group() 5865 btrfs_set_super_bytes_used(info->super_copy, old_val); in update_block_group() 5897 old_val = btrfs_block_group_used(&cache->item); in update_block_group() 5900 old_val += num_bytes; in update_block_group() 5901 btrfs_set_block_group_used(&cache->item, old_val); in update_block_group() 5909 old_val -= num_bytes; in update_block_group() 5910 btrfs_set_block_group_used(&cache->item, old_val); in update_block_group() [all …]
|
/linux-4.4.14/drivers/gpu/drm/i915/ |
D | i915_irq.c | 430 uint32_t old_val; in bdw_update_port_irq() local 439 old_val = I915_READ(GEN8_DE_PORT_IMR); in bdw_update_port_irq() 441 new_val = old_val; in bdw_update_port_irq() 445 if (new_val != old_val) { in bdw_update_port_irq()
|
/linux-4.4.14/drivers/scsi/lpfc/ |
D | lpfc_attr.c | 1474 uint32_t old_val; in lpfc_poll_store() local 1495 old_val = phba->cfg_poll; in lpfc_poll_store() 1499 !(old_val & DISABLE_FCP_RING_INT)) { in lpfc_poll_store() 1516 (old_val & DISABLE_FCP_RING_INT)) in lpfc_poll_store()
|
/linux-4.4.14/arch/ia64/kernel/ |
D | perfmon.c | 5180 unsigned long old_val, ovfl_val, new_val; in pfm_overflow_handler() local 5223 old_val = new_val = ctx->ctx_pmds[i].val; in pfm_overflow_handler() 5230 if (likely(old_val > new_val)) { in pfm_overflow_handler() 5238 old_val, in pfm_overflow_handler()
|
/linux-4.4.14/Documentation/ |
D | atomic_ops.txt | 453 "old_val & mask" because that will not work.
|