Home
last modified time | relevance | path

Searched refs:old_val (Results 1 – 25 of 49) sorted by relevance

12

/Linux-v5.4/drivers/gpu/drm/i915/gvt/
Dtrace.h277 unsigned int old_val, bool changed),
279 TP_ARGS(id, reg_name, reg, new_val, old_val, changed),
286 __field(unsigned int, old_val)
295 __entry->old_val = old_val;
301 __entry->old_val, __entry->changed)
348 unsigned int old_val, unsigned int new_val),
350 TP_ARGS(old_id, new_id, action, reg, old_val, new_val),
357 __field(unsigned int, old_val)
366 __entry->old_val = old_val;
373 __entry->old_val, __entry->new_val)
/Linux-v5.4/tools/testing/selftests/futex/functional/
Dfutex_requeue_pi_signal_restart.c94 unsigned int old_val; in waiterfn() local
101 old_val = f1; in waiterfn()
102 res = futex_wait_requeue_pi(&f1, old_val, &(f2), NULL, in waiterfn()
120 unsigned int old_val; in main() local
181 old_val = f1; in main()
182 res = futex_cmp_requeue_pi(&f1, old_val, &(f2), 1, 0, in main()
Dfutex_requeue_pi.c111 futex_t old_val; in waiterfn() local
119 old_val = f1; in waiterfn()
123 args->ret = futex_wait_requeue_pi(&f1, old_val, &f2, args->timeout, in waiterfn()
149 futex_t old_val; in broadcast_wakerfn() local
164 old_val = f1; in broadcast_wakerfn()
165 args->ret = futex_cmp_requeue_pi(&f1, old_val, &f2, nr_wake, nr_requeue, in broadcast_wakerfn()
195 unsigned int old_val; in signal_wakerfn() local
216 old_val = f1; in signal_wakerfn()
217 args->ret = futex_cmp_requeue_pi(&f1, old_val, &f2, in signal_wakerfn()
/Linux-v5.4/kernel/sched/
Dclock.c302 u64 *ptr, old_val, val; in sched_clock_remote() local
343 old_val = remote_clock; in sched_clock_remote()
350 old_val = this_clock; in sched_clock_remote()
354 if (cmpxchg64(ptr, old_val, val) != old_val) in sched_clock_remote()
/Linux-v5.4/arch/arc/include/asm/
Dcmpxchg.h157 typeof(*(ptr)) old_val; \
160 old_val = _xchg(ptr, with); \
162 old_val; \
/Linux-v5.4/drivers/gpio/
Dgpio-ath79.c57 u32 old_val, new_val; in ath79_gpio_update_bits() local
59 old_val = ath79_gpio_read(ctrl, reg); in ath79_gpio_update_bits()
60 new_val = (old_val & ~mask) | (bits & mask); in ath79_gpio_update_bits()
62 if (new_val != old_val) in ath79_gpio_update_bits()
65 return new_val != old_val; in ath79_gpio_update_bits()
/Linux-v5.4/drivers/pinctrl/freescale/
Dpinctrl-imx1-core.c91 u32 old_val; in imx1_write_2bit() local
102 old_val = readl(reg); in imx1_write_2bit()
103 old_val &= mask; in imx1_write_2bit()
107 new_val |= old_val;/* Set new state for pin_id */ in imx1_write_2bit()
118 u32 old_val; in imx1_write_bit() local
122 old_val = readl(reg); in imx1_write_bit()
123 old_val &= mask; in imx1_write_bit()
127 new_val |= old_val;/* Set new state for pin_id */ in imx1_write_bit()
/Linux-v5.4/drivers/macintosh/
Dmac_hid.c190 int old_val = *valp; in mac_hid_toggle_emumouse() local
199 if (rc == 0 && write && *valp != old_val) { in mac_hid_toggle_emumouse()
210 *valp = old_val; in mac_hid_toggle_emumouse()
/Linux-v5.4/sound/core/
Dvmaster.c312 static int sync_slaves(struct link_master *master, int old_val, int new_val) in sync_slaves() argument
321 master->val = old_val; in sync_slaves()
335 int err, new_val, old_val; in master_put() local
342 old_val = master->val; in master_put()
344 if (new_val == old_val) in master_put()
347 err = sync_slaves(master, old_val, new_val); in master_put()
/Linux-v5.4/drivers/ata/
Dahci_st.c41 unsigned long old_val, new_val; in st_ahci_configure_oob() local
48 old_val = readl(mmio + ST_AHCI_OOBR); in st_ahci_configure_oob()
49 writel(old_val | ST_AHCI_OOBR_WE, mmio + ST_AHCI_OOBR); in st_ahci_configure_oob()
/Linux-v5.4/drivers/net/
Dmdio.c70 int old_val = mdio->mdio_read(mdio->dev, prtad, devad, addr); in mdio_set_flag() local
73 if (old_val < 0) in mdio_set_flag()
74 return old_val; in mdio_set_flag()
76 new_val = old_val | mask; in mdio_set_flag()
78 new_val = old_val & ~mask; in mdio_set_flag()
79 if (old_val == new_val) in mdio_set_flag()
/Linux-v5.4/arch/sparc/kernel/
Dprom_common.c70 void *old_val = prop->value; in of_set_property() local
81 kfree(old_val); in of_set_property()
/Linux-v5.4/drivers/mfd/
Daat2870-core.c179 u8 old_val, new_val; in aat2870_update() local
184 ret = __aat2870_read(aat2870, addr, &old_val); in aat2870_update()
188 new_val = (old_val & ~mask) | (val & mask); in aat2870_update()
189 change = old_val != new_val; in aat2870_update()
Dhtc-i2cpld.c135 unsigned long uval, old_val; in htcpld_handler() local
165 old_val = chip->cache_in; in htcpld_handler()
183 oldb = (old_val >> irqpin) & 1; in htcpld_handler()
Dmax8998.c109 u8 old_val = ret & 0xff; in max8998_update_reg() local
110 u8 new_val = (val & mask) | (old_val & (~mask)); in max8998_update_reg()
/Linux-v5.4/drivers/net/ethernet/stmicro/stmmac/
Ddwmac5.c418 u32 old_val, val; in dwmac5_rxp_config() local
421 old_val = readl(ioaddr + GMAC_CONFIG); in dwmac5_rxp_config()
422 val = old_val & ~GMAC_CONFIG_RE; in dwmac5_rxp_config()
495 writel(old_val, ioaddr + GMAC_CONFIG); in dwmac5_rxp_config()
/Linux-v5.4/sound/isa/ad1816a/
Dad1816a_lib.c807 unsigned short old_val, val; in snd_ad1816a_put_single() local
814 old_val = snd_ad1816a_read(chip, reg); in snd_ad1816a_put_single()
815 val = (old_val & ~(mask << shift)) | val; in snd_ad1816a_put_single()
816 change = val != old_val; in snd_ad1816a_put_single()
879 unsigned short old_val, val1, val2; in snd_ad1816a_put_double() local
890 old_val = snd_ad1816a_read(chip, reg); in snd_ad1816a_put_double()
891 val1 = (old_val & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_ad1816a_put_double()
892 change = val1 != old_val; in snd_ad1816a_put_double()
/Linux-v5.4/drivers/gpu/drm/radeon/
Datom.c454 atom_dst_to_src[(attr >> 3) & 7][(attr >> 6) & 3], old_val = in atom_put_dst() local
457 old_val &= atom_arg_mask[align] >> atom_arg_shift[align]; in atom_put_dst()
560 DEBUG(".[31:0] <- 0x%08X\n", old_val); in atom_put_dst()
563 DEBUG(".[15:0] <- 0x%04X\n", old_val); in atom_put_dst()
566 DEBUG(".[23:8] <- 0x%04X\n", old_val); in atom_put_dst()
569 DEBUG(".[31:16] <- 0x%04X\n", old_val); in atom_put_dst()
572 DEBUG(".[7:0] <- 0x%02X\n", old_val); in atom_put_dst()
575 DEBUG(".[15:8] <- 0x%02X\n", old_val); in atom_put_dst()
578 DEBUG(".[23:16] <- 0x%02X\n", old_val); in atom_put_dst()
581 DEBUG(".[31:24] <- 0x%02X\n", old_val); in atom_put_dst()
/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/
Datom.c448 atom_dst_to_src[(attr >> 3) & 7][(attr >> 6) & 3], old_val = in atom_put_dst() local
451 old_val &= atom_arg_mask[align] >> atom_arg_shift[align]; in atom_put_dst()
554 DEBUG(".[31:0] <- 0x%08X\n", old_val); in atom_put_dst()
557 DEBUG(".[15:0] <- 0x%04X\n", old_val); in atom_put_dst()
560 DEBUG(".[23:8] <- 0x%04X\n", old_val); in atom_put_dst()
563 DEBUG(".[31:16] <- 0x%04X\n", old_val); in atom_put_dst()
566 DEBUG(".[7:0] <- 0x%02X\n", old_val); in atom_put_dst()
569 DEBUG(".[15:8] <- 0x%02X\n", old_val); in atom_put_dst()
572 DEBUG(".[23:16] <- 0x%02X\n", old_val); in atom_put_dst()
575 DEBUG(".[31:24] <- 0x%02X\n", old_val); in atom_put_dst()
/Linux-v5.4/drivers/media/pci/solo6x10/
Dsolo6x10-g723.c311 u8 old_val; in snd_solo_capture_volume_put() local
313 old_val = tw28_get_audio_gain(solo_dev, ch); in snd_solo_capture_volume_put()
314 if (old_val == value->value.integer.value[0]) in snd_solo_capture_volume_put()
Dsolo6x10-tw28.c847 u8 old_val; in tw28_set_audio_gain() local
854 old_val = tw_readbyte(solo_dev, chip_num, in tw28_set_audio_gain()
858 val = (old_val & ((ch % 2) ? 0x0f : 0xf0)) | in tw28_set_audio_gain()
/Linux-v5.4/sound/i2c/other/
Dak4117.c203 u8 old_val; in snd_ak4117_rx_put() local
206 old_val = chip->regmap[AK4117_REG_IO]; in snd_ak4117_rx_put()
207 change = !!ucontrol->value.integer.value[0] != ((old_val & AK4117_IPS) ? 1 : 0); in snd_ak4117_rx_put()
209 …reg_write(chip, AK4117_REG_IO, (old_val & ~AK4117_IPS) | (ucontrol->value.integer.value[0] ? AK411… in snd_ak4117_rx_put()
Dak4113.c236 u8 old_val; in snd_ak4113_rx_put() local
239 old_val = chip->regmap[AK4113_REG_IO1]; in snd_ak4113_rx_put()
240 change = ucontrol->value.integer.value[0] != AK4113_IPS(old_val); in snd_ak4113_rx_put()
243 (old_val & (~AK4113_IPS(0xff))) | in snd_ak4113_rx_put()
/Linux-v5.4/arch/x86/mm/
Dmpx.c264 unsigned long old_val, unsigned long new_val) in mpx_cmpxchg_bd_entry() argument
276 addr, old_val, new_val); in mpx_cmpxchg_bd_entry()
279 u32 old_val_32 = old_val; in mpx_cmpxchg_bd_entry()
/Linux-v5.4/drivers/media/usb/gspca/m5602/
Dm5602_s5k83a.c562 u8 old_val, ctrl_val, test_val = 0xff; in s5k83a_dump_registers() local
564 m5602_read_sensor(sd, address, &old_val, 1); in s5k83a_dump_registers()
576 m5602_write_sensor(sd, address, &old_val, 1); in s5k83a_dump_registers()

12