Lines Matching defs:old

1351  * @old: long value to compare with
1354 * If (@v == @old), atomically updates @v to @new with full ordering.
1362 raw_atomic_long_cmpxchg(atomic_long_t *v, long old, long new)
1365 return raw_atomic64_cmpxchg(v, old, new);
1367 return raw_atomic_cmpxchg(v, old, new);
1374 * @old: long value to compare with
1377 * If (@v == @old), atomically updates @v to @new with acquire ordering.
1385 raw_atomic_long_cmpxchg_acquire(atomic_long_t *v, long old, long new)
1388 return raw_atomic64_cmpxchg_acquire(v, old, new);
1390 return raw_atomic_cmpxchg_acquire(v, old, new);
1397 * @old: long value to compare with
1400 * If (@v == @old), atomically updates @v to @new with release ordering.
1408 raw_atomic_long_cmpxchg_release(atomic_long_t *v, long old, long new)
1411 return raw_atomic64_cmpxchg_release(v, old, new);
1413 return raw_atomic_cmpxchg_release(v, old, new);
1420 * @old: long value to compare with
1423 * If (@v == @old), atomically updates @v to @new with relaxed ordering.
1431 raw_atomic_long_cmpxchg_relaxed(atomic_long_t *v, long old, long new)
1434 return raw_atomic64_cmpxchg_relaxed(v, old, new);
1436 return raw_atomic_cmpxchg_relaxed(v, old, new);
1443 * @old: pointer to long value to compare with
1446 * If (@v == @old), atomically updates @v to @new with full ordering.
1447 * Otherwise, @v is not modified, @old is updated to the current value of @v,
1455 raw_atomic_long_try_cmpxchg(atomic_long_t *v, long *old, long new)
1458 return raw_atomic64_try_cmpxchg(v, (s64 *)old, new);
1460 return raw_atomic_try_cmpxchg(v, (int *)old, new);
1467 * @old: pointer to long value to compare with
1470 * If (@v == @old), atomically updates @v to @new with acquire ordering.
1471 * Otherwise, @v is not modified, @old is updated to the current value of @v,
1479 raw_atomic_long_try_cmpxchg_acquire(atomic_long_t *v, long *old, long new)
1482 return raw_atomic64_try_cmpxchg_acquire(v, (s64 *)old, new);
1484 return raw_atomic_try_cmpxchg_acquire(v, (int *)old, new);
1491 * @old: pointer to long value to compare with
1494 * If (@v == @old), atomically updates @v to @new with release ordering.
1495 * Otherwise, @v is not modified, @old is updated to the current value of @v,
1503 raw_atomic_long_try_cmpxchg_release(atomic_long_t *v, long *old, long new)
1506 return raw_atomic64_try_cmpxchg_release(v, (s64 *)old, new);
1508 return raw_atomic_try_cmpxchg_release(v, (int *)old, new);
1515 * @old: pointer to long value to compare with
1518 * If (@v == @old), atomically updates @v to @new with relaxed ordering.
1519 * Otherwise, @v is not modified, @old is updated to the current value of @v,
1527 raw_atomic_long_try_cmpxchg_relaxed(atomic_long_t *v, long *old, long new)
1530 return raw_atomic64_try_cmpxchg_relaxed(v, (s64 *)old, new);
1532 return raw_atomic_try_cmpxchg_relaxed(v, (int *)old, new);
1799 * Return: The old value of (@v - 1), regardless of whether @v was updated.