| /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 8 #gen_proto_order_variant(meta, pfx, name, sfx, order, atomic, int, arg...) 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. 48 #include <linux/atomic.h> 53 gen_proto "${meta}" "${name}" "atomic" "int" ${args}
|
| /linux/net/rds/ |
| H A D | rdma.c | 898 * Fill in rds_message for an atomic request. 908 || rm->atomic.op_active) in rds_cmsg_atomic() 916 rm->atomic.op_type = RDS_ATOMIC_TYPE_FADD; in rds_cmsg_atomic() 917 rm->atomic.op_m_fadd.add = args->fadd.add; in rds_cmsg_atomic() 918 rm->atomic.op_m_fadd.nocarry_mask = 0; in rds_cmsg_atomic() 921 rm->atomic.op_type = RDS_ATOMIC_TYPE_FADD; in rds_cmsg_atomic() 922 rm->atomic.op_m_fadd.add = args->m_fadd.add; in rds_cmsg_atomic() 923 rm->atomic.op_m_fadd.nocarry_mask = args->m_fadd.nocarry_mask; in rds_cmsg_atomic() 926 rm->atomic.op_type = RDS_ATOMIC_TYPE_CSWP; in rds_cmsg_atomic() 927 rm->atomic 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/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); 298 int atomic, int hop) in snd_emux_event_oss_input() 311 return snd_emux_event_input(ev, direct, private_data, atomic, hop); in snd_emux_event_oss_input() 319 emuspec_control(emu, p, cmd, data, atomic, hop); 321 gusspec_control(emu, p, cmd, data, atomic, hop); 331 unsigned char *event, int atomic, int hop) in emuspec_control() 371 fake_event(emu, port, voice, MIDI_CTL_ALL_NOTES_OFF, 0, atomic, ho in emuspec_control() 290 snd_emux_event_oss_input(struct snd_seq_event * ev,int direct,void * private_data,int atomic,int hop) snd_emux_event_oss_input() argument 323 emuspec_control(struct snd_emux * emu,struct snd_emux_port * port,int cmd,unsigned char * event,int atomic,int hop) emuspec_control() argument 418 gusspec_control(struct snd_emux * emu,struct snd_emux_port * port,int cmd,unsigned char * event,int atomic,int hop) gusspec_control() argument 483 fake_event(struct snd_emux * emu,struct snd_emux_port * port,int ch,int param,int val,int atomic,int hop) fake_event() argument [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 121 bool "Enable atomic mode for SCMI VirtIO transport" 124 Enable support of atomic operation for SCMI VirtIO based transport. 126 If you want the SCMI VirtIO based transport to operate in atomic 130 Enabling atomic mod [all...] |
| /linux/sound/core/seq/ |
| H A D | seq_queue.c | 230 void snd_seq_check_queue(struct snd_seq_queue *q, int atomic, int hop) in snd_seq_check_queue() argument 256 snd_seq_dispatch_event(cell, atomic, hop); in snd_seq_check_queue() 267 snd_seq_dispatch_event(cell, atomic, hop); in snd_seq_check_queue() 286 int snd_seq_enqueue_event(struct snd_seq_event_cell *cell, int atomic, int hop) in snd_seq_enqueue_event() argument 329 snd_seq_check_queue(q, atomic, hop); in snd_seq_enqueue_event() 570 int atomic, int hop) in queue_broadcast_event() argument 585 snd_seq_kernel_client_dispatch(SNDRV_SEQ_CLIENT_SYSTEM, &sev, atomic, hop); in queue_broadcast_event() 594 int atomic, int hop) in snd_seq_queue_process_event() argument 601 queue_broadcast_event(q, ev, atomic, hop); in snd_seq_queue_process_event() 606 queue_broadcast_event(q, ev, atomic, hop); in snd_seq_queue_process_event() [all …]
|
| 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()
|
| H A D | seq_ump_convert.c | 365 int atomic, int hop) in cvt_ump_midi1_to_midi2() argument 428 atomic, hop); in cvt_ump_midi1_to_midi2() 435 int atomic, int hop) in cvt_ump_midi2_to_midi1() argument 472 atomic, hop); in cvt_ump_midi2_to_midi1() 479 atomic, hop); in cvt_ump_midi2_to_midi1() 500 atomic, hop); in cvt_ump_midi2_to_midi1() 508 int atomic, int hop) in cvt_ump_to_any() argument 542 &ev_cvt[i], atomic, hop); in cvt_ump_to_any() 554 int atomic, int hop) in deliver_with_group_convert() argument 565 atomic, ho in deliver_with_group_convert() 586 snd_seq_deliver_from_ump(struct snd_seq_client * source,struct snd_seq_client * dest,struct snd_seq_client_port * dest_port,struct snd_seq_event * event,int atomic,int hop) snd_seq_deliver_from_ump() argument 1135 cvt_to_ump_midi1(struct snd_seq_client * dest,struct snd_seq_client_port * dest_port,struct snd_seq_event * event,int atomic,int hop) cvt_to_ump_midi1() argument 1169 cvt_to_ump_midi2(struct snd_seq_client * dest,struct snd_seq_client_port * dest_port,struct snd_seq_event * event,int atomic,int hop) cvt_to_ump_midi2() argument 1217 cvt_sysex_to_ump(struct snd_seq_client * dest,struct snd_seq_client_port * dest_port,struct snd_seq_event * event,int atomic,int hop) cvt_sysex_to_ump() argument 1277 snd_seq_deliver_to_ump(struct snd_seq_client * source,struct snd_seq_client * dest,struct snd_seq_client_port * dest_port,struct snd_seq_event * event,int atomic,int hop) snd_seq_deliver_to_ump() argument [all...] |
| H A D | seq_clientmgr.c | 70 int err, int atomic, int hop); 73 int atomic, int hop); 536 int err, int atomic, int hop) 588 result = snd_seq_deliver_single_event(NULL, &bounce_ev, atomic, hop + 1); in bounce_error_event() 627 int atomic, int hop) 640 atomic, hop); in __snd_seq_deliver_single_event() 648 int atomic, int hop) in __snd_seq_deliver_single_event() 672 event, atomic, hop); in _snd_seq_deliver_single_event() 679 event, atomic, hop); in _snd_seq_deliver_single_event() 684 atomic, ho in _snd_seq_deliver_single_event() 541 bounce_error_event(struct snd_seq_client * client,struct snd_seq_event * event,int err,int atomic,int hop) bounce_error_event() argument 632 __snd_seq_deliver_single_event(struct snd_seq_client * dest,struct snd_seq_client_port * dest_port,struct snd_seq_event * event,int atomic,int hop) __snd_seq_deliver_single_event() argument 653 _snd_seq_deliver_single_event(struct snd_seq_client * client,struct snd_seq_event * event,int atomic,int hop) _snd_seq_deliver_single_event() argument 701 snd_seq_deliver_single_event(struct snd_seq_client * client,struct snd_seq_event * event,int atomic,int hop) snd_seq_deliver_single_event() argument 716 __deliver_to_subscribers(struct snd_seq_client * client,struct snd_seq_event * event,int port,int atomic,int hop) __deliver_to_subscribers() argument 773 deliver_to_subscribers(struct snd_seq_client * client,struct snd_seq_event * event,int atomic,int hop) deliver_to_subscribers() argument 812 snd_seq_deliver_event(struct snd_seq_client * client,struct snd_seq_event * event,int atomic,int hop) snd_seq_deliver_event() argument 847 snd_seq_dispatch_event(struct snd_seq_event_cell * cell,int atomic,int hop) snd_seq_dispatch_event() argument 922 snd_seq_client_enqueue_event(struct snd_seq_client * client,struct snd_seq_event * event,struct file * file,int blocking,int atomic,int hop,struct mutex * mutexp) snd_seq_client_enqueue_event() argument 2436 snd_seq_kernel_client_dispatch(int client,struct snd_seq_event * ev,int atomic,int hop) snd_seq_kernel_client_dispatch() argument [all...] |
| /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)
|
| /linux/drivers/gpu/drm/ci/xfails/ |
| 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/Documentation/core-api/ |
| H A D | local_ops.rst | 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 87 How to use local atomic operations [all …]
|
| /linux/drivers/firmware/arm_scmi/ |
| H A D | clock.c | 183 u32 oem_val, bool atomic); 187 bool atomic); 794 bool atomic) in scmi_clock_config_set() argument 808 t->hdr.poll_completion = atomic; in scmi_clock_config_set() 885 bool atomic) in scmi_clock_config_set_v2() argument 901 t->hdr.poll_completion = atomic; in scmi_clock_config_set_v2() 921 bool atomic) in scmi_clock_enable() argument 934 NULL_OEM_TYPE, 0, atomic); in scmi_clock_enable() 938 bool atomic) in scmi_clock_disable() argument 951 NULL_OEM_TYPE, 0, atomic); in scmi_clock_disable() 958 scmi_clock_config_get_v2(const struct scmi_protocol_handle * ph,u32 clk_id,enum scmi_clock_oem_config oem_type,u32 * attributes,bool * enabled,u32 * oem_val,bool atomic) scmi_clock_config_get_v2() argument 1000 scmi_clock_config_get(const struct scmi_protocol_handle * ph,u32 clk_id,enum scmi_clock_oem_config oem_type,u32 * attributes,bool * enabled,u32 * oem_val,bool atomic) scmi_clock_config_get() argument 1028 scmi_clock_state_get(const struct scmi_protocol_handle * ph,u32 clk_id,bool * enabled,bool atomic) scmi_clock_state_get() argument 1039 scmi_clock_config_oem_set(const struct scmi_protocol_handle * ph,u32 clk_id,enum scmi_clock_oem_config oem_type,u32 oem_val,bool atomic) scmi_clock_config_oem_set() argument 1058 scmi_clock_config_oem_get(const struct scmi_protocol_handle * ph,u32 clk_id,enum scmi_clock_oem_config oem_type,u32 * oem_val,u32 * attributes,bool atomic) scmi_clock_config_oem_get() argument [all...] |
| /linux/drivers/i2c/busses/ |
| H A D | i2c-xiic.c | 82 * @atomic: Mode of transfer 83 * @atomic_lock: Lock for atomic transfer mode 109 bool atomic; member 110 spinlock_t atomic_lock; /* Lock for atomic transfer mode */ 415 if (!i2c->atomic) in xiic_setclk() 509 if (!i2c->atomic) in xiic_reinit() 610 if (!i2c->atomic) in xiic_read_rx() 707 if (!i2c->atomic) in xiic_fill_tx_fifo() 732 if (!i2c->atomic) in xiic_fill_tx_fifo() 737 if (i2c->atomic in xiic_fill_tx_fifo() [all...] |
| H A D | i2c-imx-lpi2c.c | 219 #define lpi2c_imx_read_msr_poll_timeout(atomic, val, cond) \ argument 220 (atomic ? readl_poll_timeout_atomic(lpi2c_imx->base + LPI2C_MSR, val, \ 231 static int lpi2c_imx_bus_busy(struct lpi2c_imx_struct *lpi2c_imx, bool atomic) in lpi2c_imx_bus_busy() argument 236 err = lpi2c_imx_read_msr_poll_timeout(atomic, temp, in lpi2c_imx_bus_busy() 281 struct i2c_msg *msgs, bool atomic) in lpi2c_imx_start() argument 293 return lpi2c_imx_bus_busy(lpi2c_imx, atomic); in lpi2c_imx_start() 296 static void lpi2c_imx_stop(struct lpi2c_imx_struct *lpi2c_imx, bool atomic) in lpi2c_imx_stop() argument 303 err = lpi2c_imx_read_msr_poll_timeout(atomic, temp, temp & MSR_SDF); in lpi2c_imx_stop() 421 static int lpi2c_imx_txfifo_empty(struct lpi2c_imx_struct *lpi2c_imx, bool atomic) in lpi2c_imx_txfifo_empty() argument 426 err = lpi2c_imx_read_msr_poll_timeout(atomic, tem in lpi2c_imx_txfifo_empty() 463 lpi2c_imx_write_txfifo(struct lpi2c_imx_struct * lpi2c_imx,bool atomic) lpi2c_imx_write_txfifo() argument 490 lpi2c_imx_read_rxfifo(struct lpi2c_imx_struct * lpi2c_imx,bool atomic) lpi2c_imx_read_rxfifo() argument 1115 lpi2c_imx_xfer_common(struct i2c_adapter * adapter,struct i2c_msg * msgs,int num,bool atomic) lpi2c_imx_xfer_common() argument [all...] |
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_vm_madvise.c | 136 xe_assert(vm->xe, op->atomic.val <= DRM_XE_ATOMIC_CPU); in madvise_atomic() 140 !(op->atomic.val == DRM_XE_ATOMIC_DEVICE && in madvise_atomic() 146 if (vmas[i]->attr.atomic_access == op->atomic.val) { in madvise_atomic() 150 vmas[i]->attr.atomic_access = op->atomic.val; in madvise_atomic() 154 if (!bo || bo->attr.atomic_access == op->atomic.val) in madvise_atomic() 159 bo->attr.atomic_access = op->atomic.val; in madvise_atomic() 384 if (XE_IOCTL_DBG(xe, args->atomic.val > DRM_XE_ATOMIC_CPU)) in madvise_args_are_sane() 387 if (XE_IOCTL_DBG(xe, args->atomic.pad)) in madvise_args_are_sane() 390 if (XE_IOCTL_DBG(xe, args->atomic.reserved)) in madvise_args_are_sane() 547 * NOTE: The following atomic check in check_bo_args_are_sane() [all...] |
| H A D | xe_pagefault.c | 149 struct xe_pagefault *pf, bool atomic) 160 needs_vram = xe_vma_need_vram_for_atomic(vm->xe, vma, atomic); in xe_pagefault_asid_to_vm() 180 vma->tile_invalidated) && !atomic) { in xe_pagefault_service() 274 bool atomic; in xe_pagefault_save_to_vm() 314 atomic = xe_pagefault_access_is_atomic(pf->consumer.access_type); in xe_pagefault_queue_work() 318 xe_pagefault_addr(pf), atomic); in xe_pagefault_queue_work() 320 err = xe_pagefault_handle_vma(gt, vma, pf, atomic); in xe_pagefault_queue_work() 81 xe_pagefault_handle_vma(struct xe_gt * gt,struct xe_vma * vma,bool atomic) xe_pagefault_handle_vma() argument 178 bool atomic; xe_pagefault_service() local
|
| /linux/Documentation/litmus-tests/ |
| H A D | README | 12 atomic (/atomic directory) 16 Test that an atomic RMW followed by a smp_mb__after_atomic() is 20 Atomic-RMW-ops-are-atomic-WRT-atomic_set.litmus 21 Test that atomic_set() cannot break the atomicity of atomic RMWs.
|
| /linux/scripts/atomic/fallbacks/ |
| H A D | set_release | 2 if (__native_word(${atomic}_t)) { 6 raw_${atomic}_set(v, i);
|
| H A D | read_acquire | 4 if (__native_word(${atomic}_t)) { 7 ret = raw_${atomic}_read(v);
|