Home
last modified time | relevance | path

Searched refs:oldv (Results 1 - 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dhashmap.c57 void *oldv, *v = (void *)(long)(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 != NULL || oldv != NULL, "check_kv", in test_hashmap_generic()
69 "unexpected k/v: %p=%p\n", oldk, oldv)) in test_hashmap_generic()
77 if (CHECK(!hashmap__find(map, k, &oldv), "elem_find", in test_hashmap_generic()
80 if (CHECK(oldv != v, "elem_val", in test_hashmap_generic()
81 "found value is wrong: %ld\n", (long)oldv)) in test_hashmap_generic()
109 void *oldv, *v = (void *)(long)(256 + i); in test_hashmap_generic() local
117 err = hashmap__update(map, k, v, &oldk, &oldv); in test_hashmap_generic()
167 void *oldv, *v; test_hashmap_generic() local
203 void *oldv, *v; test_hashmap_generic() local
[all...]
/kernel/linux/linux-6.6/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()
165 long oldv, v; test_hashmap_generic() local
199 long oldv, v; test_hashmap_generic() local
[all...]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/arch/xtensa/include/asm/
H A 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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/arch/xtensa/include/asm/
H A 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()
/kernel/linux/linux-5.10/drivers/message/fusion/
H A Dmptbase.c3161 u16 oldv = le16_to_cpu(facts->Reserved_0101_FWVersion); in GetIocFacts() local
3163 ((oldv<<12) & 0xFF000000) | in GetIocFacts()
3164 ((oldv<<8) & 0x000FFF00); in GetIocFacts()
/kernel/linux/linux-6.6/drivers/message/fusion/
H A 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()

Completed in 19 milliseconds