/openbmc/linux/drivers/gpu/drm/i915/gvt/ |
H A D | trace.h | 277 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)
|
/openbmc/linux/tools/testing/selftests/futex/functional/ |
H A D | futex_requeue_pi_signal_restart.c | 94 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()
|
H A D | futex_requeue_pi.c | 111 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()
|
/openbmc/qemu/hw/timer/ |
H A D | hpet.c | 498 uint64_t old_val, new_val, cleared; in hpet_ram_write() local 515 old_val = timer->config; in hpet_ram_write() 516 new_val = deposit64(old_val, shift, len, value); in hpet_ram_write() 517 new_val = hpet_fixup_reg(new_val, old_val, HPET_TN_CFG_WRITE_MASK); in hpet_ram_write() 518 if (deactivating_bit(old_val, new_val, HPET_TN_TYPE_LEVEL)) { in hpet_ram_write() 526 if (activating_bit(old_val, new_val, HPET_TN_ENABLE) in hpet_ram_write() 574 old_val = s->config; in hpet_ram_write() 575 new_val = deposit64(old_val, shift, len, value); in hpet_ram_write() 576 new_val = hpet_fixup_reg(new_val, old_val, HPET_CFG_WRITE_MASK); in hpet_ram_write() 578 if (activating_bit(old_val, new_val, HPET_CFG_ENABLE)) { in hpet_ram_write() [all …]
|
H A D | exynos4210_mct.c | 1179 uint32_t old_val; in exynos4210_mct_write() local 1247 old_val = s->g_timer.reg.tcon; in exynos4210_mct_write() 1256 if ((value & G_TCON_TIMER_ENABLE) > (old_val & in exynos4210_mct_write() 1260 if ((value & G_TCON_TIMER_ENABLE) < (old_val & in exynos4210_mct_write() 1267 if ((value & G_TCON_COMP_ENABLE(i)) != (old_val & in exynos4210_mct_write() 1319 old_val = s->l_timer[lt_i].reg.tcon; in exynos4210_mct_write() 1327 (old_val & L_TCON_TICK_START)) { in exynos4210_mct_write() 1334 (old_val & L_TCON_INT_START)) { in exynos4210_mct_write() 1341 (old_val & L_TCON_TICK_START)) { in exynos4210_mct_write() 1348 (old_val & L_TCON_INT_START)) { in exynos4210_mct_write() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_dcb.c | 1711 u32 old_val; in i40e_dcb_hw_rx_pb_config() local 1722 old_val = old_pb_cfg->shared_pool_low_wm; in i40e_dcb_hw_rx_pb_config() 1724 if (new_val < old_val) { in i40e_dcb_hw_rx_pb_config() 1736 old_val = old_pb_cfg->shared_pool_low_thresh[i]; in i40e_dcb_hw_rx_pb_config() 1738 if (new_val < old_val) { in i40e_dcb_hw_rx_pb_config() 1746 old_val = old_pb_cfg->tc_pool_low_wm[i]; in i40e_dcb_hw_rx_pb_config() 1748 if (new_val < old_val) { in i40e_dcb_hw_rx_pb_config() 1758 old_val = old_pb_cfg->shared_pool_high_wm; in i40e_dcb_hw_rx_pb_config() 1760 if (new_val < old_val) { in i40e_dcb_hw_rx_pb_config() 1772 old_val = old_pb_cfg->shared_pool_high_thresh[i]; in i40e_dcb_hw_rx_pb_config() [all …]
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-ath79.c | 58 u32 old_val, new_val; in ath79_gpio_update_bits() local 60 old_val = ath79_gpio_read(ctrl, reg); in ath79_gpio_update_bits() 61 new_val = (old_val & ~mask) | (bits & mask); in ath79_gpio_update_bits() 63 if (new_val != old_val) in ath79_gpio_update_bits() 66 return new_val != old_val; in ath79_gpio_update_bits()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | unpriv_bpf_disabled.c | 38 static int sysctl_set(const char *sysctl_path, char *old_val, const char *new_val) in sysctl_set() argument 46 if (old_val && fscanf(fp, "%s", old_val) <= 0) { in sysctl_set() 48 } else if (!old_val || strcmp(old_val, new_val) != 0) { in sysctl_set()
|
/openbmc/qemu/tests/tcg/hexagon/ |
H A D | preg_alias.c | 103 uint32_t old_val = 0x0000001c; in test_packet() local 106 result = old_val; in test_packet() 116 check32(result, old_val); in test_packet()
|
/openbmc/linux/drivers/pinctrl/freescale/ |
H A D | pinctrl-imx1-core.c | 94 u32 old_val; in imx1_write_2bit() local 105 old_val = readl(reg); in imx1_write_2bit() 106 old_val &= mask; in imx1_write_2bit() 110 new_val |= old_val;/* Set new state for pin_id */ in imx1_write_2bit() 121 u32 old_val; in imx1_write_bit() local 125 old_val = readl(reg); in imx1_write_bit() 126 old_val &= mask; in imx1_write_bit() 130 new_val |= old_val;/* Set new state for pin_id */ in imx1_write_bit()
|
/openbmc/qemu/hw/intc/ |
H A D | riscv_imsic.c | 95 target_ulong old_val = imsic->eidelivery[page]; in riscv_imsic_eidelivery_rmw() local 98 *val = old_val; in riscv_imsic_eidelivery_rmw() 102 imsic->eidelivery[page] = (old_val & ~wr_mask) | (new_val & wr_mask); in riscv_imsic_eidelivery_rmw() 113 target_ulong old_val = imsic->eithreshold[page]; in riscv_imsic_eithreshold_rmw() local 116 *val = old_val; in riscv_imsic_eithreshold_rmw() 120 imsic->eithreshold[page] = (old_val & ~wr_mask) | (new_val & wr_mask); in riscv_imsic_eithreshold_rmw()
|
/openbmc/linux/kernel/sched/ |
H A D | clock.c | 325 u64 *ptr, old_val, val; in sched_clock_remote() local 366 old_val = remote_clock; in sched_clock_remote() 373 old_val = this_clock; in sched_clock_remote() 377 if (!try_cmpxchg64(ptr, &old_val, val)) in sched_clock_remote()
|
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac_lib.c | 270 u32 old_val, value; in stmmac_set_mac() local 272 old_val = readl(ioaddr + MAC_CTRL_REG); in stmmac_set_mac() 273 value = old_val; in stmmac_set_mac() 280 if (value != old_val) in stmmac_set_mac()
|
/openbmc/linux/drivers/scsi/qla2xxx/ |
H A D | qla_inline.h | 110 int old_val; in qla2x00_set_fcport_disc_state() local 121 old_val = atomic_read(&fcport->shadow_disc_state); in qla2x00_set_fcport_disc_state() 122 if (old_val == atomic_cmpxchg(&fcport->shadow_disc_state, in qla2x00_set_fcport_disc_state() 123 old_val, (old_val << shiftbits) | state)) { in qla2x00_set_fcport_disc_state() 126 fcport->port_name, (old_val & mask) < port_dstate_str_sz ? in qla2x00_set_fcport_disc_state() 127 port_dstate_str[old_val & mask] : "Unknown", in qla2x00_set_fcport_disc_state()
|
/openbmc/linux/drivers/macintosh/ |
H A 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()
|
/openbmc/u-boot/drivers/video/ |
H A D | tda19988.c | 256 u8 old_val, page = REG2PAGE(reg); in tda19988_register_set() local 262 old_val = dm_i2c_reg_read(priv->chip, REG2ADDR(reg)); in tda19988_register_set() 263 old_val |= val; in tda19988_register_set() 264 dm_i2c_reg_write(priv->chip, REG2ADDR(reg), old_val); in tda19988_register_set() 269 u8 old_val, page = REG2PAGE(reg); in tda19988_register_clear() local 275 old_val = dm_i2c_reg_read(priv->chip, REG2ADDR(reg)); in tda19988_register_clear() 276 old_val &= ~val; in tda19988_register_clear() 277 dm_i2c_reg_write(priv->chip, REG2ADDR(reg), old_val); in tda19988_register_clear()
|
/openbmc/linux/sound/core/ |
H A D | vmaster.c | 341 static int sync_followers(struct link_master *master, int old_val, int new_val) in sync_followers() argument 350 master->val = old_val; in sync_followers() 364 int err, new_val, old_val; in master_put() local 371 old_val = master->val; in master_put() 373 if (new_val == old_val) in master_put() 376 err = sync_followers(master, old_val, new_val); in master_put()
|
/openbmc/linux/drivers/ata/ |
H A D | ahci_st.c | 41 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()
|
/openbmc/linux/drivers/net/ |
H A D | mdio.c | 70 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()
|
/openbmc/qemu/hw/core/ |
H A D | register.c | 74 uint64_t old_val, new_val, test, no_w_mask; in register_write() local 87 old_val = reg->data ? register_read_val(reg) : ac->reset; in register_write() 89 test = (old_val ^ val) & ac->rsvd; in register_write() 107 new_val = (val & ~no_w_mask) | (old_val & no_w_mask); in register_write()
|
/openbmc/linux/arch/sparc/kernel/ |
H A D | prom_common.c | 70 void *old_val = prop->value; in of_set_property() local 81 kfree(old_val); in of_set_property()
|
/openbmc/linux/arch/riscv/kvm/ |
H A D | aia.c | 337 unsigned long old_val; in aia_rmw_iprio() local 348 old_val = 0; in aia_rmw_iprio() 351 old_val |= (unsigned long)prio << (TOPI_IPRIO_BITS * i); in aia_rmw_iprio() 355 *val = old_val; in aia_rmw_iprio() 358 new_val = (old_val & ~wr_mask) | (new_val & wr_mask); in aia_rmw_iprio()
|
/openbmc/linux/drivers/mfd/ |
H A D | aat2870-core.c | 179 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()
|
/openbmc/qemu/tests/tcg/multiarch/gdbstub/ |
H A D | registers.py | 184 old_val = e["initial"] 192 if new_val != old_val:
|
/openbmc/linux/sound/isa/ad1816a/ |
H A D | ad1816a_lib.c | 761 unsigned short old_val, val; in snd_ad1816a_put_single() local 768 old_val = snd_ad1816a_read(chip, reg); in snd_ad1816a_put_single() 769 val = (old_val & ~(mask << shift)) | val; in snd_ad1816a_put_single() 770 change = val != old_val; in snd_ad1816a_put_single() 833 unsigned short old_val, val1, val2; in snd_ad1816a_put_double() local 844 old_val = snd_ad1816a_read(chip, reg); in snd_ad1816a_put_double() 845 val1 = (old_val & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_ad1816a_put_double() 846 change = val1 != old_val; in snd_ad1816a_put_double()
|