Home
last modified time | relevance | path

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

/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dhashmap.c56 void *oldv, *v = (void *)(long)(1024 + i); in test_hashmap_generic() local
58 err = hashmap__update(map, k, v, &oldk, &oldv); in test_hashmap_generic()
66 err = hashmap__set(map, k, v, &oldk, &oldv); in test_hashmap_generic()
67 if (CHECK(oldk != NULL || oldv != NULL, "check_kv", in test_hashmap_generic()
68 "unexpected k/v: %p=%p\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", in test_hashmap_generic()
80 "found value is wrong: %ld\n", (long)oldv)) in test_hashmap_generic()
108 void *oldv, *v = (void *)(long)(256 + i); in test_hashmap_generic() local
116 err = hashmap__update(map, k, v, &oldk, &oldv); in test_hashmap_generic()
[all …]
/linux-6.1.9/arch/sh/include/asm/
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-6.1.9/arch/openrisc/include/asm/
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-6.1.9/arch/xtensa/include/asm/
Dcmpxchg.h185 u32 oldv, newv; in xchg_small() local
189 oldv = READ_ONCE(*p); in xchg_small()
190 ret = (oldv & bitmask) >> bitoff; in xchg_small()
191 newv = (oldv & ~bitmask) | (x << bitoff); in xchg_small()
192 } while (__cmpxchg_u32(p, oldv, newv) != oldv); in xchg_small()
/linux-6.1.9/drivers/message/fusion/
Dmptbase.c3151 u16 oldv = le16_to_cpu(facts->Reserved_0101_FWVersion); in GetIocFacts() local
3153 ((oldv<<12) & 0xFF000000) | in GetIocFacts()
3154 ((oldv<<8) & 0x000FFF00); in GetIocFacts()