Home
last modified time | relevance | path

Searched refs:oldval (Results 1 – 22 of 22) sorted by relevance

/openbmc/qemu/tests/tcg/arm/
H A Dcommpage.c25 typedef int (cmpxchg_fn)(int oldval, int newval, volatile int *ptr);
29 typedef int (cmpxchg64_fn)(const int64_t *oldval,
47 const int64_t oldval = 1, newval = 2; in main() local
58 fail_unless(ARM_KUSER_CMPXCHG64(&oldval, &newval, &val64) == 0); in main()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-dbs/rocksdb/files/
H A D0001-replace-old-sync-with-new-atomic-builtin-equivalents.patch50 T *addr, U oldval, V newval) {
52 - return __sync_val_compare_and_swap(addr, oldval, newval);
53 + return __atomic_compare_exchange(addr, oldval, newval);
57 toku_sync_bool_compare_and_swap(T *addr, U oldval, V newval) {
59 - return __sync_bool_compare_and_swap(addr, oldval, newval);
60 + return static_cast<bool>(__atomic_compare_exchange(addr, oldval, newval));
/openbmc/u-boot/drivers/mmc/
H A Dbcm2835_sdhci.c105 u32 oldval = (reg == SDHCI_COMMAND) ? shadow : in bcm2835_sdhci_writew() local
110 u32 newval = (oldval & ~mask) | (val << word_shift); in bcm2835_sdhci_writew()
120 u32 oldval = bcm2835_sdhci_raw_readl(host, reg & ~3); in bcm2835_sdhci_writeb() local
124 u32 newval = (oldval & ~mask) | (val << byte_shift); in bcm2835_sdhci_writeb()
/openbmc/qemu/hw/nvram/
H A Dnrf51_nvm.c291 uint32_t oldval; in flash_write() local
296 oldval = ldl_le_p(s->storage + offset); in flash_write()
297 oldval &= value; in flash_write()
298 stl_le_p(s->storage + offset, oldval); in flash_write()
/openbmc/u-boot/scripts/kconfig/
H A Dconf.c166 tristate oldval, newval; in conf_sym() local
173 oldval = sym_get_tristate_value(sym); in conf_sym()
174 switch (oldval) { in conf_sym()
185 if (oldval != no && sym_tristate_within_range(sym, no)) in conf_sym()
187 if (oldval != mod && sym_tristate_within_range(sym, mod)) in conf_sym()
189 if (oldval != yes && sym_tristate_within_range(sym, yes)) in conf_sym()
216 newval = oldval; in conf_sym()
H A Dsymbol.c359 struct symbol_value newval, oldval; in sym_calc_value() local
378 oldval = sym->curr; in sym_calc_value()
472 if (memcmp(&oldval, &sym->curr, sizeof(oldval))) { in sym_calc_value()
534 tristate oldval = sym_get_tristate_value(sym); in sym_set_tristate_value() local
536 if (oldval != val && !sym_tristate_within_range(sym, val)) in sym_set_tristate_value()
562 if (oldval != val) in sym_set_tristate_value()
570 tristate oldval, newval; in sym_toggle_tristate_value() local
572 oldval = newval = sym_get_tristate_value(sym); in sym_toggle_tristate_value()
587 } while (oldval != newval); in sym_toggle_tristate_value()
678 const char *oldval; in sym_set_string_value() local
[all …]
H A Dqconf.cc478 tristate oldval; in setValue() local
488 oldval = sym_get_tristate_value(sym); in setValue()
492 if (oldval == no && item->menu->list) in setValue()
/openbmc/qemu/hw/timer/
H A Darmv7m_systick.c140 uint32_t oldval; in systick_write() local
148 oldval = s->control; in systick_write()
152 if ((oldval ^ value) & SYSTICK_CLKSOURCE) { in systick_write()
156 if ((oldval ^ value) & SYSTICK_ENABLE) { in systick_write()
H A Dstellaris-gptm.c162 uint32_t oldval; in gptm_write() local
180 oldval = s->control; in gptm_write()
183 if ((oldval ^ value) & 1) { in gptm_write()
190 if (((oldval ^ value) & 0x100) && s->config >= 4) { in gptm_write()
/openbmc/qemu/hw/i386/
H A Dport92.c32 int oldval = s->outport; in port92_write() local
37 if ((val & 1) && !(oldval & 1)) { in port92_write()
/openbmc/qemu/hw/alpha/
H A Dtyphoon.c310 uint64_t oldval, newval; in cchip_write() local
325 newval = oldval = s->cchip.misc; in cchip_write()
342 if ((newval ^ oldval) & 0xff0) { in cchip_write()
468 uint64_t oldval; in pchip_write() local
524 oldval = s->pchip.ctl; in pchip_write()
525 oldval &= ~0x00001cff0fc7ffull; /* RW fields */ in pchip_write()
526 oldval |= val & 0x00001cff0fc7ffull; in pchip_write()
527 s->pchip.ctl = oldval; in pchip_write()
/openbmc/u-boot/env/
H A Dflags.c502 const char *oldval = NULL; in env_flags_validate() local
505 oldval = item->data; in env_flags_validate()
547 printf("oldval: %s defval: %s\n", oldval, defval); in env_flags_validate()
548 if (strcmp(oldval, defval) != 0) { in env_flags_validate()
/openbmc/openbmc/poky/meta/recipes-support/db/db/
H A D0001-Fix-libc-compatibility-by-renaming-atomic_init-API.patch37 #define atomic_compare_exchange(env, p, oldval, newval) \
38 (DB_ASSERT(env, atomic_read(p) == (oldval)), \
114 @@ -474,7 +474,7 @@ atomic_compare_exchange(env, v, oldval, newval)
116 ret = atomic_read(v) == oldval;
H A D0001-atomic-Rename-local-__atomic_compare_exchange-to-avo.patch40 db_atomic_t *p, atomic_value_t oldval, atomic_value_t newval)
/openbmc/qemu/hw/misc/
H A Dtz-mpc.c253 uint32_t oldval; in tz_mpc_reg_write() local
257 oldval = s->ctrl; in tz_mpc_reg_write()
260 oldval = s->blk_idx; in tz_mpc_reg_write()
263 oldval = s->blk_lut[s->blk_idx]; in tz_mpc_reg_write()
266 oldval = 0; in tz_mpc_reg_write()
269 value = deposit32(oldval, (addr & 3) * 8, size * 8, value); in tz_mpc_reg_write()
/openbmc/u-boot/tools/env/
H A Dfw_env.c534 char *oldval = NULL; in fw_env_write() local
549 oldval = envmatch(name, env); in fw_env_write()
550 if (oldval) in fw_env_write()
554 deleting = (oldval && !(value && strlen(value))); in fw_env_write()
555 creating = (!oldval && (value && strlen(value))); in fw_env_write()
556 overwriting = (oldval && (value && strlen(value))); in fw_env_write()
578 if (strcmp(oldval, defval) in fw_env_write()
660 char *oldval; in fw_env_set() local
695 oldval = value; in fw_env_set()
701 free(oldval); in fw_env_set()
/openbmc/openbmc/poky/bitbake/lib/bb/
H A Dsiggen.py1065 oldval = a_data['varvals'][dep]
1067 if newval and oldval and ('\n' in oldval or '\n' in newval):
1068 diff = difflib.unified_diff(oldval.splitlines(), newval.splitlines(), lineterm='')
1082 elif newval and oldval and (' ' in oldval or ' ' in newval):
1083 … {var} value changed:{color_default}\n{diff}", var=dep, diff=worddiff_str(oldval, newval, colors)))
1085 …' to '{color_default}{newval}{color_title}'{color_default}", var=dep, oldval=oldval, newval=newval…
/openbmc/qemu/hw/gpio/
H A Dpca9552.c304 static inline uint8_t pca955x_ledsel(uint8_t oldval, int led_num, int state) in pca955x_ledsel() argument
306 return (oldval & (~(0x3 << (led_num << 1)))) | in pca955x_ledsel()
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dnand_bbt.c965 uint8_t oldval; in mark_bbt_region() local
982 oldval = bbt_get_entry(this, block); in mark_bbt_region()
984 if ((oldval != BBT_BLOCK_RESERVED) && in mark_bbt_region()
996 oldval = bbt_get_entry(this, block); in mark_bbt_region()
998 if (oldval != BBT_BLOCK_RESERVED) in mark_bbt_region()
/openbmc/qemu/hw/display/
H A Dartist.c914 uint64_t oldval; in artist_reg_write() local
1075 oldval = s->misc_video; in artist_reg_write()
1078 if (((oldval & 0x0A000000) == 0x0A000000) && in artist_reg_write()
1083 if (((oldval & 0x0A000000) != 0x0A000000) && in artist_reg_write()
/openbmc/qemu/hw/net/
H A Dsunhme.c378 uint64_t oldval = s->macregs[addr >> 2]; in sunhme_mac_write() local
386 if (!(oldval & HME_MAC_RXCFG_ENABLE) && in sunhme_mac_write()
H A De1000.c484 uint32_t oldval = s->eecd_state.old_eecd; in set_eecd() local
491 if (E1000_EECD_CS & (val ^ oldval)) { /* CS rise edge; reset state */ in set_eecd()
497 if (!(E1000_EECD_SK & (val ^ oldval))) { /* no clock edge */ in set_eecd()