Home
last modified time | relevance | path

Searched refs:oldv (Results 1 – 5 of 5) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dhashmap.c57 long oldv, v = 1024 + i; in test_hashmap_generic() local
59 err = hashmap__update(map, k, v, &oldk, &oldv); in test_hashmap_generic()
67 err = hashmap__set(map, k, v, &oldk, &oldv); in test_hashmap_generic()
68 if (CHECK(oldk != 0 || oldv != 0, "check_kv", in test_hashmap_generic()
69 "unexpected k/v: %ld=%ld\n", oldk, oldv)) in test_hashmap_generic()
76 if (CHECK(!hashmap__find(map, k, &oldv), "elem_find", in test_hashmap_generic()
79 if (CHECK(oldv != v, "elem_val", "found value is wrong: %ld\n", oldv)) in test_hashmap_generic()
107 long oldv, v = 256 + i; in test_hashmap_generic() local
115 err = hashmap__update(map, k, v, &oldk, &oldv); in test_hashmap_generic()
117 err = hashmap__set(map, k, v, &oldk, &oldv); in test_hashmap_generic()
[all …]
/linux/arch/sh/include/asm/
H A Dcmpxchg-xchg.h28 u32 oldv, newv; in __xchg_cmpxchg() local
32 oldv = READ_ONCE(*p); in __xchg_cmpxchg()
33 ret = (oldv & bitmask) >> bitoff; in __xchg_cmpxchg()
34 newv = (oldv & ~bitmask) | (x << bitoff); in __xchg_cmpxchg()
35 } while (__cmpxchg_u32(p, oldv, newv) != oldv); in __xchg_cmpxchg()
/linux/arch/openrisc/include/asm/
H A Dcmpxchg.h102 u32 oldv, newv; in xchg_small() local
106 oldv = READ_ONCE(*p); in xchg_small()
107 ret = (oldv & bitmask) >> bitoff; in xchg_small()
108 newv = (oldv & ~bitmask) | (x << bitoff); in xchg_small()
109 } while (cmpxchg_u32(p, oldv, newv) != oldv); in xchg_small()
/linux/arch/xtensa/include/asm/
H A Dcmpxchg.h187 u32 oldv, newv; in xchg_small() local
191 oldv = READ_ONCE(*p); in xchg_small()
192 ret = (oldv & bitmask) >> bitoff; in xchg_small()
193 newv = (oldv & ~bitmask) | (x << bitoff); in xchg_small()
194 } while (__cmpxchg_u32(p, oldv, newv) != oldv); in xchg_small()
/linux/drivers/message/fusion/
H A Dmptbase.c3147 u16 oldv = le16_to_cpu(facts->Reserved_0101_FWVersion); in GetIocFacts() local
3149 ((oldv<<12) & 0xFF000000) | in GetIocFacts()
3150 ((oldv<<8) & 0x000FFF00); in GetIocFacts()