| /linux/lib/ |
| H A D | dec_and_lock.c | 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 56 if (atomic_add_unless(atomic, -1, 1)) in _atomic_dec_and_raw_lock() 61 if (atomic_dec_and_test(atomic)) in _atomic_dec_and_raw_lock() 68 int _atomic_dec_and_raw_lock_irqsave(atomic_t *atomic, raw_spinlock_t *lock, in _atomic_dec_and_raw_lock_irqsave() argument [all …]
|
| H A D | atomic64_test.c | 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), \ 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); \ 58 BUG_ON(atomic##bit##_##op(val, &v) != v0); \ 59 BUG_ON(atomic##bit##_read(&v) != r); \ [all …]
|
| /linux/scripts/atomic/ |
| H A D | gen-atomics.sh | 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 14 gen-rust-atomic-helpers.sh ../rust/helpers/atomic.c
|
| H A D | atomic-tbl.sh | 117 local atomic="$1"; shift 122 v) type="${atomic}_t *";; 123 cv) type="const ${atomic}_t *";; 134 local atomic="$1"; shift 136 local type="$(gen_param_type "${arg}" "${int}" "${atomic}")" 145 local atomic="$1"; shift 148 gen_param "$1" "${int}" "${atomic}" 195 local atomic="$1"; shift 198 local atomicname="${atomic}_${pfx}${name}${sfx}${order}" 202 local params="$(gen_params "${int}" "${atomic}" "$@")" [all …]
|
| H A D | gen-atomic-fallback.sh | 6 . ${ATOMICDIR}/atomic-tbl.sh 17 local atomic="$1"; shift 22 local params="$(gen_params "${int}" "${atomic}" "$@")" 63 local atomic="$1"; shift 66 local atomicname="${atomic}_${pfx}${name}${sfx}${order}" 67 local basename="${atomic}_${pfx}${name}${sfx}" 73 local params="$(gen_params "${int}" "${atomic}" "$@")" 76 gen_kerneldoc "raw_" "${meta}" "${pfx}" "${name}" "${sfx}" "${order}" "${atomic}" "${int}" "$@" 101 gen_order_fallback "${meta}" "${pfx}" "${name}" "${sfx}" "${order}" "${atomic}" "${int}" "$@" 112 gen_proto_fallback "${meta}" "${pfx}" "${name}" "${sfx}" "${order}" "${atomic}" "${int}" "$@" [all …]
|
| H A D | gen-atomic-long.sh | 6 . ${ATOMICDIR}/atomic-tbl.sh 13 local atomic="$1"; shift 17 printf "($(gen_param_type "${arg}" "${int}" "${atomic}"))" 24 local atomic="$1"; shift 27 local cast="$(gen_cast "$1" "${int}" "${atomic}")" 48 local argscast_32="$(gen_args_cast "int" "atomic" "$@")"
|
| H A D | gen-rust-atomic-helpers.sh | 6 . ${ATOMICDIR}/atomic-tbl.sh 16 local atomic="$1"; shift 19 local atomicname="${atomic}_${pfx}${name}${sfx}${order}" 22 local params="$(gen_params "${int}" "${atomic}" "$@")" 43 * This file provides helpers for the various atomic functions for Rust.
|
| H A D | gen-atomic-instrumented.sh | 6 . ${ATOMICDIR}/atomic-tbl.sh 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.
|
| /linux/Documentation/filesystems/ext4/ |
| H A D | atomic_writes.rst | 12 system crashes. The ext4 filesystem supports atomic writes (only with Direct 14 supports hardware atomic writes. This is supported in the following two ways: 17 EXT4 supports atomic write operations with a single filesystem block since 18 v6.13. In this the atomic write unit minimum and maximum sizes are both set 20 e.g. doing atomic write of 16KB with 16KB filesystem blocksize on 64KB 24 EXT4 now also supports atomic writes spanning multiple filesystem blocks 25 using a feature known as bigalloc. The atomic write unit's minimum and 27 based on the underlying device’s supported atomic write unit limits. 32 Basic requirements for atomic writes in ext4: 35 2. The underlying block device must support atomic writes [all …]
|
| /linux/net/rds/ |
| H A D | rdma.c | 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() 896 rm->atomic.op_m_cswp.swap = args->cswp.swap; in rds_cmsg_atomic() [all …]
|
| /linux/Documentation/ |
| H A D | atomic_bitops.txt | 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 D | atomic_t.txt | 2 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/ |
| H A D | Kbuild | 57 # Check the manual modification of atomic headers 72 atomic-checks += $(addprefix $(obj)/.checked-, \ 73 atomic-arch-fallback.h \ 74 atomic-instrumented.h \ 75 atomic-long.h) 77 targets += $(atomic-checks) 78 $(atomic-checks): $(obj)/.checked-%: include/linux/atomic/% FORCE 84 prepare: $(offsets-file) missing-syscalls $(atomic-checks)
|
| /linux/sound/synth/emux/ |
| H A D | emux_oss.c | 27 void *private, int atomic, int hop); 30 int cmd, unsigned char *event, int atomic, int hop); 32 int cmd, unsigned char *event, int atomic, int hop); 34 int ch, int param, int val, int atomic, int hop); 290 int atomic, int hop) in snd_emux_event_oss_input() argument 303 return snd_emux_event_input(ev, direct, private_data, atomic, hop); in snd_emux_event_oss_input() 311 emuspec_control(emu, p, cmd, data, atomic, hop); in snd_emux_event_oss_input() 313 gusspec_control(emu, p, cmd, data, atomic, hop); in snd_emux_event_oss_input() 323 unsigned char *event, int atomic, int hop) in emuspec_control() argument 363 fake_event(emu, port, voice, MIDI_CTL_ALL_NOTES_OFF, 0, atomic, hop); in emuspec_control() [all …]
|
| /linux/drivers/firmware/arm_scmi/transports/ |
| H A D | Kconfig | 52 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/sound/core/seq/ |
| H A D | seq_queue.c | 229 void snd_seq_check_queue(struct snd_seq_queue *q, int atomic, int hop) in snd_seq_check_queue() argument 255 snd_seq_dispatch_event(cell, atomic, hop); in snd_seq_check_queue() 266 snd_seq_dispatch_event(cell, atomic, hop); in snd_seq_check_queue() 285 int snd_seq_enqueue_event(struct snd_seq_event_cell *cell, int atomic, int hop) in snd_seq_enqueue_event() argument 327 snd_seq_check_queue(q, atomic, hop); in snd_seq_enqueue_event() 568 int atomic, int hop) in queue_broadcast_event() argument 583 snd_seq_kernel_client_dispatch(SNDRV_SEQ_CLIENT_SYSTEM, &sev, atomic, hop); in queue_broadcast_event() 592 int atomic, int hop) in snd_seq_queue_process_event() argument 599 queue_broadcast_event(q, ev, atomic, hop); in snd_seq_queue_process_event() 604 queue_broadcast_event(q, ev, atomic, hop); in snd_seq_queue_process_event() [all …]
|
| H A D | seq_system.h | 13 void snd_seq_system_broadcast(int client, int port, int type, bool atomic); 21 bool atomic) in snd_seq_system_ump_notify() argument 26 snd_seq_system_broadcast(client, block, type, atomic); in snd_seq_system_ump_notify() 37 bool atomic);
|
| H A D | seq_system.c | 81 void snd_seq_system_broadcast(int client, int port, int type, bool atomic) in snd_seq_system_broadcast() argument 88 snd_seq_kernel_client_dispatch(sysclient, &ev, atomic, 0); in snd_seq_system_broadcast() 94 bool atomic) in snd_seq_system_notify() argument 101 return snd_seq_kernel_client_dispatch(sysclient, ev, atomic, 0); in snd_seq_system_notify() 105 static int event_input_timer(struct snd_seq_event * ev, int direct, void *private_data, int atomic,… in event_input_timer() argument 107 return snd_seq_control_queue(ev, atomic, hop); in event_input_timer()
|
| /linux/include/linux/ |
| H A D | spinlock.h | 500 extern int _atomic_dec_and_lock(atomic_t *atomic, spinlock_t *lock); 501 #define atomic_dec_and_lock(atomic, lock) \ argument 502 __cond_lock(lock, _atomic_dec_and_lock(atomic, lock)) 504 extern int _atomic_dec_and_lock_irqsave(atomic_t *atomic, spinlock_t *lock, 506 #define atomic_dec_and_lock_irqsave(atomic, lock, flags) \ argument 507 __cond_lock(lock, _atomic_dec_and_lock_irqsave(atomic, lock, &(flags))) 509 extern int _atomic_dec_and_raw_lock(atomic_t *atomic, raw_spinlock_t *lock); 510 #define atomic_dec_and_raw_lock(atomic, lock) \ argument 511 __cond_lock(lock, _atomic_dec_and_raw_lock(atomic, lock)) 513 extern int _atomic_dec_and_raw_lock_irqsave(atomic_t *atomic, raw_spinlock_t *lock, [all …]
|
| /linux/Documentation/driver-api/ |
| H A D | basics.rst | 96 .. kernel-doc:: include/linux/atomic/atomic-instrumented.h 99 .. kernel-doc:: include/linux/atomic/atomic-arch-fallback.h 102 .. kernel-doc:: include/linux/atomic/atomic-long.h
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_pcode.c | 60 bool atomic) in __pcode_mailbox_rw() argument 76 timeout_ms * USEC_PER_MSEC, NULL, atomic); in __pcode_mailbox_rw() 91 bool atomic) in pcode_mailbox_rw() argument 98 return __pcode_mailbox_rw(tile, mbox, data0, data1, timeout_ms, return_data, atomic); in pcode_mailbox_rw() 136 u32 *status, bool atomic, int timeout_us, bool locked) in pcode_try_request() argument 145 atomic); in pcode_try_request() 148 atomic); in pcode_try_request() 152 if (atomic) in pcode_try_request()
|
| H A D | xe_vm_madvise.c | 110 xe_assert(vm->xe, op->atomic.val <= DRM_XE_ATOMIC_CPU); in madvise_atomic() 114 !(op->atomic.val == DRM_XE_ATOMIC_DEVICE && in madvise_atomic() 120 if (vmas[i]->attr.atomic_access == op->atomic.val) { in madvise_atomic() 124 vmas[i]->attr.atomic_access = op->atomic.val; in madvise_atomic() 128 if (!bo || bo->attr.atomic_access == op->atomic.val) in madvise_atomic() 133 bo->attr.atomic_access = op->atomic.val; in madvise_atomic() 259 if (XE_IOCTL_DBG(xe, args->atomic.val > DRM_XE_ATOMIC_CPU)) in madvise_args_are_sane() 262 if (XE_IOCTL_DBG(xe, args->atomic.pad)) in madvise_args_are_sane() 265 if (XE_IOCTL_DBG(xe, args->atomic.reserved)) in madvise_args_are_sane() 386 args->atomic.val)) { in xe_vm_madvise_ioctl()
|
| /linux/drivers/gpu/drm/ci/xfails/ |
| H A D | vkms-none-fails.txt | 4 kms_cursor_legacy@basic-flip-before-cursor-atomic,Fail 6 kms_cursor_legacy@cursor-vs-flip-atomic,Fail 10 kms_cursor_legacy@flip-vs-cursor-atomic,Fail 11 kms_cursor_legacy@flip-vs-cursor-crc-atomic,Fail
|
| H A D | meson-g12b-fails.txt | 9 kms_properties@connector-properties-atomic,Fail 11 kms_properties@get_properties-sanity-atomic,Fail 12 kms_properties@get_properties-sanity-non-atomic,Fail
|
| /linux/arch/mips/include/asm/ |
| H A D | atomic.h | 37 ATOMIC_OPS(atomic, int) 144 ATOMIC_OPS(atomic, add, int, +=, addu, ll, sc) 145 ATOMIC_OPS(atomic, sub, int, -=, subu, ll, sc) 166 ATOMIC_OPS(atomic, and, int, &=, and, ll, sc) 167 ATOMIC_OPS(atomic, or, int, |=, or, ll, sc) 168 ATOMIC_OPS(atomic, xor, int, ^=, xor, ll, sc) 248 ATOMIC_SIP_OP(atomic, int, subu, ll, sc)
|