Home
last modified time | relevance | path

Searched full:atomic (Results 1 – 25 of 1854) sorted by relevance

12345678910>>...75

/linux/arch/mips/include/asm/octeon/
H A Dcvmx-fau.h123 * @reg: FAU atomic register to access. 0 <= reg < 2048.
127 * Returns Address to store for atomic update
139 * @tagwait: Should the atomic add wait for the current tag switch
143 * @reg: FAU atomic register to access. 0 <= reg < 2048.
150 * Returns Address to read from for atomic update
162 * Perform an atomic 64 bit add
164 * @reg: FAU atomic register to access. 0 <= reg < 2048.
177 * Perform an atomic 32 bit add
179 * @reg: FAU atomic register to access. 0 <= reg < 2048.
193 * Perform an atomic 16 bit add
[all …]
/linux/lib/
H A Ddec_and_lock.c4 #include <linux/atomic.h>
12 * if (atomic_dec_and_test(&atomic)) {
19 * "atomic".
21 int _atomic_dec_and_lock(atomic_t *atomic, spinlock_t *lock) in _atomic_dec_and_lock() argument
24 if (atomic_add_unless(atomic, -1, 1)) in _atomic_dec_and_lock()
29 if (atomic_dec_and_test(atomic)) in _atomic_dec_and_lock()
37 int _atomic_dec_and_lock_irqsave(atomic_t *atomic, spinlock_t *lock, in _atomic_dec_and_lock_irqsave() argument
41 if (atomic_add_unless(atomic, -1, 1)) in _atomic_dec_and_lock_irqsave()
46 if (atomic_dec_and_test(atomic)) in _atomic_dec_and_lock_irqsave()
53 int _atomic_dec_and_raw_lock(atomic_t *atomic, raw_spinlock_t *lock) in _atomic_dec_and_raw_lock() argument
[all …]
H A Dpercpu-refcount.c57 * change the start state to atomic with the latter setting the initial refcount
193 * time is equivalent and saves us atomic operations: in percpu_ref_switch_to_atomic_rcu()
198 "percpu ref (%ps) <= 0 (%ld) after switching to atomic", in percpu_ref_switch_to_atomic_rcu()
222 /* switching from percpu to atomic */ in __percpu_ref_switch_to_atomic()
273 * If the previous ATOMIC switching hasn't finished yet, wait for in __percpu_ref_switch_mode()
274 * its completion. If the caller ensures that ATOMIC switching in __percpu_ref_switch_mode()
287 * percpu_ref_switch_to_atomic - switch a percpu_ref to atomic mode
288 * @ref: percpu_ref to switch to atomic mode
294 * Schedule switching of @ref to atomic mode. All its percpu counts will
295 * be collected to the main atomic counter. On completion, when all CPUs
[all …]
H A Datomic64_test.c13 #include <linux/atomic.h>
22 atomic##bit##_set(&v, v0); \
24 atomic##bit##_##op(val, &v); \
26 WARN(atomic##bit##_read(&v) != r, "%Lx != %Lx\n", \
27 (unsigned long long)atomic##bit##_read(&v), \
32 * Test for a atomic operation family,
46 atomic##bit##_set(&v, v0); \
49 BUG_ON(atomic##bit##_##op(val, &v) != r); \
50 BUG_ON(atomic##bit##_read(&v) != r); \
55 atomic##bit##_set(&v, v0); \
[all …]
/linux/include/drm/
H A Ddrm_modeset_helper_vtables.h63 * These hooks are used by the legacy CRTC helpers and the new atomic
78 * This callback is used by the legacy CRTC helpers. Atomic helpers
80 * facilitate transitions to atomic, but it is deprecated. Instead
93 * This callback is used by the legacy CRTC helpers. Atomic helpers
95 * transitions to atomic, but it is deprecated. Instead @atomic_disable
108 * This callback is used by the legacy CRTC helpers. Atomic helpers
110 * transitions to atomic, but it is deprecated. Instead @atomic_enable
128 * atomic helpers to validate modes supplied by userspace in
135 * Since this function is both called from the check phase of an atomic
160 * This function is used by both legacy CRTC helpers and atomic helpers.
[all …]
H A Ddrm_atomic.h37 * This structure is used to track pending modeset changes and atomic commit on
45 * atomic commit thread hardware
61 * clean up atomic state
68 * drm_atomic_helper_setup_commit() from the atomic helper library.
200 * struct drm_private_state_funcs - atomic state functions for private objects
202 * These hooks are used by atomic helpers to create, swap and destroy states of
205 * added to the atomic states is expected to have an implementation of these
218 * Duplicated atomic state or NULL when obj->state is not
245 * struct drm_private_obj - base struct for driver private atomic object
299 * @state: Current atomic state for this driver private object.
[all …]
H A Ddrm_crtc.h99 * &drm_mode_config_funcs.atomic_check callback to reject an atomic
108 * @planes_changed: Planes on this crtc are updated. Used by the atomic
109 * helpers and drivers to steer the atomic commit control flow.
114 * @mode_changed: @mode or @enable has been changed. Used by the atomic
115 * helpers and drivers to steer the atomic commit control flow. See also
126 * @active_changed: @active has been toggled. Used by the atomic
127 * helpers and drivers to steer the atomic commit control flow. See also
134 * either in their state or routing. Used by the atomic
135 * helpers and drivers to steer the atomic commit control flow. See also
138 * Drivers are supposed to set this as-needed from their own atomic
[all …]
H A Ddrm_plane.h77 * Optional fence to wait for before scanning out @fb. The core atomic
259 * by the atomic helpers and drivers to steer the atomic commit control
312 * Drivers implementing atomic modeset should use
335 * Drivers implementing atomic modeset should use
361 * Atomic drivers can use drm_atomic_helper_plane_reset() to reset
362 * atomic state using this hook.
373 * driver-private properties. For atomic drivers it is not used because
386 * Duplicate the current atomic state for this plane and return it.
387 * The core and helpers guarantee that any atomic state duplicated with
393 * This callback is mandatory for atomic drivers.
[all …]
/linux/scripts/atomic/
H A Dgen-atomics.sh4 # Generate atomic headers
11 gen-atomic-instrumented.sh linux/atomic/atomic-instrumented.h
12 gen-atomic-long.sh linux/atomic/atomic-long.h
13 gen-atomic-fallback.sh linux/atomic/atomic-arch-fallback.h
H A Datomic-tbl.sh112 # gen_param_type(arg, int, atomic)
117 local atomic="$1"; shift
122 v) type="${atomic}_t *";;
123 cv) type="const ${atomic}_t *";;
129 #gen_param(arg, int, atomic)
134 local atomic="$1"; shift
136 local type="$(gen_param_type "${arg}" "${int}" "${atomic}")"
141 #gen_params(int, atomic, arg...)
145 local atomic="$1"; shift
148 gen_param "$1" "${int}" "${atomic}"
[all …]
H A Dgen-atomic-long.sh6 . ${ATOMICDIR}/atomic-tbl.sh
8 #gen_cast(arg, int, atomic)
13 local atomic="$1"; shift
17 printf "($(gen_param_type "${arg}" "${int}" "${atomic}"))"
20 #gen_args_cast(int, atomic, arg...)
24 local atomic="$1"; shift
27 local cast="$(gen_cast "$1" "${int}" "${atomic}")"
48 local argscast_32="$(gen_args_cast "int" "atomic" "$@")"
H A Dgen-atomic-fallback.sh6 . ${ATOMICDIR}/atomic-tbl.sh
8 #gen_template_fallback(template, meta, pfx, name, sfx, order, atomic, int, args...)
17 local atomic="$1"; shift
22 local params="$(gen_params "${int}" "${atomic}" "$@")"
28 #gen_order_fallback(meta, pfx, name, sfx, order, atomic, int, args...)
42 #gen_proto_fallback(meta, pfx, name, sfx, order, atomic, int, args...)
55 #gen_proto_order_variant(meta, pfx, name, sfx, order, atomic, int, args...)
63 local atomic="$1"; shift
66 local atomicname="${atomic}_${pfx}${name}${sfx}${order}"
67 local basename="${atomic}_${pfx}${name}${sfx}"
[all …]
H A Dgen-atomic-instrumented.sh6 . ${ATOMICDIR}/atomic-tbl.sh
25 # An atomic RMW: if this parameter is not a constant, and this atomic is
52 #gen_proto_order_variant(meta, pfx, name, sfx, order, atomic, int, arg...)
60 local atomic="$1"; shift
63 local atomicname="${atomic}_${pfx}${name}${sfx}${order}"
66 local params="$(gen_params "${int}" "${atomic}" "$@")"
71 gen_kerneldoc "" "${meta}" "${pfx}" "${name}" "${sfx}" "${order}" "${atomic}" "${int}" "$@"
138 * This file provoides atomic operations with explicit instrumentation (e.g.
153 gen_proto "${meta}" "${name}" "atomic" "int" ${args}
/linux/drivers/firmware/arm_scmi/transports/
H A DKconfig52 bool "Enable atomic mode support for SCMI SMC transport"
55 Enable support of atomic operation for SCMI SMC based transport.
57 If you want the SCMI SMC based transport to operate in atomic
60 Enabling atomic mode operations allows any SCMI driver using this
61 transport to optionally ask for atomic SCMI transactions and operate
62 in atomic context too, at the price of using a number of busy-waiting
109 bool "Enable atomic mode for SCMI VirtIO transport"
112 Enable support of atomic operation for SCMI VirtIO based transport.
114 If you want the SCMI VirtIO based transport to operate in atomic
118 Enabling atomic mode operations allows any SCMI driver using this
[all …]
/linux/Documentation/
H A Datomic_bitops.txt2 Atomic bitops
5 While our bitmap_{}() functions are non-atomic, we have a number of operations
6 operating on single bits in a bitmap that are atomic.
18 RMW atomic operations without return value:
23 RMW atomic operations with return value:
33 All RMW atomic operations have a '__' prefixed variant which is non-atomic.
39 Non-atomic ops:
67 Since a platform only has a single means of achieving atomic operations
H A Datomic_t.txt2 On atomic types (atomic_t atomic64_t and atomic_long_t).
4 The atomic type provides an interface to the architecture's means of atomic
5 RMW operations between CPUs (atomic operations on MMIO are not supported and
20 RMW atomic operations:
67 Therefore, an explicitly unsigned variant of the atomic ops is strictly
91 C Atomic-RMW-ops-are-atomic-WRT-atomic_set
118 The obvious case where this is not so is when we need to implement atomic ops
155 All these operations are SMP atomic; that is, the operations (for a single
156 atomic variable) can be fully ordered and no intermediate state is lost or
192 only apply to the RMW atomic ops and can be used to augment/upgrade the
[all …]
/linux/include/linux/
H A Datomic.h2 /* Atomic operations usable in machine independent code */
7 #include <asm/atomic.h>
11 * Relaxed variants of xchg, cmpxchg and some atomic operations.
80 #include <linux/atomic/atomic-arch-fallback.h>
81 #include <linux/atomic/atomic-long.h>
82 #include <linux/atomic/atomic-instrumented.h>
/linux/drivers/gpu/drm/
H A Ddrm_atomic.c99 * @state: atomic state
115 * drm_atomic_state_init - init new atomic state
117 * @state: atomic state
119 * Default implementation for filling in a new atomic state.
150 drm_dbg_atomic(dev, "Allocated atomic state %p\n", state); in drm_atomic_state_init()
160 * drm_atomic_state_alloc - allocate atomic state
163 * This allocates an empty atomic state to track updates.
188 * drm_atomic_state_default_clear - clear base atomic state
189 * @state: atomic state
191 * Default implementation for clearing atomic state.
[all …]
H A Ddrm_atomic_state_helper.c44 * DOC: atomic state reset and initialization
46 * Both the drm core and the atomic helpers assume that there is always the full
47 * and correct atomic software state for all connectors, CRTCs and planes
55 * the atomic helpers provide default reset implementations for all hooks.
57 * On the upside the precise state tracking of atomic simplifies system suspend
66 * @crtc_state: atomic CRTC state, must not be NULL
110 * Resets the atomic state for @crtc by freeing the state pointer (which might
126 * __drm_atomic_helper_crtc_duplicate_state - copy atomic CRTC state
128 * @state: atomic CRTC state
130 * Copies atomic state from a CRTC's current state and resets inferred values.
[all …]
/linux/net/rds/
H A Drdma.c866 * Fill in rds_message for an atomic request.
876 || rm->atomic.op_active) in rds_cmsg_atomic()
884 rm->atomic.op_type = RDS_ATOMIC_TYPE_FADD; in rds_cmsg_atomic()
885 rm->atomic.op_m_fadd.add = args->fadd.add; in rds_cmsg_atomic()
886 rm->atomic.op_m_fadd.nocarry_mask = 0; in rds_cmsg_atomic()
889 rm->atomic.op_type = RDS_ATOMIC_TYPE_FADD; in rds_cmsg_atomic()
890 rm->atomic.op_m_fadd.add = args->m_fadd.add; in rds_cmsg_atomic()
891 rm->atomic.op_m_fadd.nocarry_mask = args->m_fadd.nocarry_mask; in rds_cmsg_atomic()
894 rm->atomic.op_type = RDS_ATOMIC_TYPE_CSWP; in rds_cmsg_atomic()
895 rm->atomic.op_m_cswp.compare = args->cswp.compare; in rds_cmsg_atomic()
[all …]
/linux/Documentation/core-api/
H A Dlocal_ops.rst5 Semantics and Behavior of Local Atomic Operations
11 This document explains the purpose of the local atomic operations, how
26 Purpose of local atomic operations
29 Local atomic operations are meant to provide fast and highly reentrant per CPU
30 counters. They minimize the performance cost of standard atomic operations by
34 Having fast per CPU atomic counters is interesting in many cases: it does not
39 Local atomic operations only guarantee variable modification atomicity wrt the
50 It can be done by slightly modifying the standard atomic operations: only
63 Rules to follow when using local atomic operations
82 "``long``", aligned, variables are always atomic. Since no memory
[all …]
/linux/include/asm-generic/bitops/
H A Dinstrumented-non-atomic.h4 * This file provides wrappers with sanitizer instrumentation for non-atomic
21 * Unlike set_bit(), this function is non-atomic. If it is called on the same
37 * Unlike clear_bit(), this function is non-atomic. If it is called on the same
53 * Unlike change_bit(), this function is non-atomic. If it is called on the same
68 * We treat non-atomic read-write bitops a little more special. in __instrument_read_write_bitop()
72 * assume-plain-writes-atomic rule): in __instrument_read_write_bitop()
75 * races with unmarked readers -> check "atomic" write. in __instrument_read_write_bitop()
93 * This operation is non-atomic. If two instances of this operation race, one
108 * This operation is non-atomic. If two instances of this operation race, one
123 * This operation is non-atomic. If two instances of this operation race, one
/linux/
H A DKbuild46 # Check the manual modification of atomic headers
61 atomic-checks += $(addprefix $(obj)/.checked-, \
62 atomic-arch-fallback.h \
63 atomic-instrumented.h \
64 atomic-long.h)
66 targets += $(atomic-checks)
67 $(atomic-checks): $(obj)/.checked-%: include/linux/atomic/% FORCE
73 prepare: $(offsets-file) missing-syscalls $(atomic-checks)
/linux/arch/x86/include/asm/
H A Dsync_bitops.h11 * is guaranteed to be atomic. All bit operations return 0 if the bit
26 * This function is atomic and may not be reordered. See __set_bit()
27 * if you do not require the atomic guarantees.
45 * sync_clear_bit() is atomic and may not be reordered. However, it does
63 * sync_change_bit() is atomic and may not be reordered.
80 * This operation is atomic and cannot be reordered.
93 * This operation is atomic and cannot be reordered.
106 * This operation is atomic and cannot be reordered.
/linux/drivers/gpu/drm/ci/xfails/
H A Dmsm-sdm845-fails.txt10 kms_cursor_legacy@basic-flip-before-cursor-atomic,Fail
12 kms_cursor_legacy@cursor-vs-flip-atomic,Fail
13 kms_cursor_legacy@cursor-vs-flip-atomic-transitions,Fail
14 kms_cursor_legacy@cursor-vs-flip-atomic-transitions-varying-size,Fail
18 kms_cursor_legacy@flip-vs-cursor-atomic,Fail
19 kms_cursor_legacy@flip-vs-cursor-crc-atomic,Fail

12345678910>>...75