Home
last modified time | relevance | path

Searched refs:smp_load_acquire (Results 1 – 25 of 175) sorted by relevance

1234567

/openbmc/linux/Documentation/litmus-tests/locking/
H A DDCL-fixed.litmus7 * reliable given proper use of smp_load_acquire() and smp_store_release()
22 r0 = smp_load_acquire(flag);
41 r0 = smp_load_acquire(flag);
/openbmc/linux/include/asm-generic/
H A Dbarrier.h175 #ifndef smp_load_acquire
176 #define smp_load_acquire(p) __smp_load_acquire(p) macro
202 #ifndef smp_load_acquire
203 #define smp_load_acquire(p) \ macro
/openbmc/linux/Documentation/translations/zh_CN/core-api/
H A Dcircular-buffers.rst180 unsigned long head = smp_load_acquire(buffer->head);
200 请注意,使用READ_ONCE()和smp_load_acquire()来读取反向(head)索引。这可以防止编译
202 的。smp_load_acquire()还可以强制CPU对后续的内存引用进行排序。类似地,两种算法都使
/openbmc/linux/tools/include/asm/
H A Dbarrier.h56 #ifndef smp_load_acquire
57 # define smp_load_acquire(p) \ macro
/openbmc/linux/tools/memory-model/litmus-tests/
H A DMP+pooncerelease+poacquireonce.litmus7 * smp_load_acquire() provide sufficient ordering for the message-passing
24 r0 = smp_load_acquire(flag);
H A DMP+polockmbonce+poacquiresilsil.litmus9 * returns false and the second true, we know that the smp_load_acquire()
29 r1 = smp_load_acquire(x);
H A DMP+polockonce+poacquiresilsil.litmus9 * the smp_load_acquire() executed before the lock was acquired (loosely
28 r1 = smp_load_acquire(x);
H A DISA2+pooncerelease+poacquirerelease+poacquireonce.litmus26 r0 = smp_load_acquire(y);
35 r0 = smp_load_acquire(z);
/openbmc/linux/drivers/infiniband/sw/rxe/
H A Drxe_queue.h108 prod = smp_load_acquire(&q->buf->producer_index); in queue_get_producer()
120 prod = smp_load_acquire(&q->buf->producer_index); in queue_get_producer()
139 cons = smp_load_acquire(&q->buf->consumer_index); in queue_get_consumer()
143 cons = smp_load_acquire(&q->buf->consumer_index); in queue_get_consumer()
/openbmc/linux/drivers/net/wireguard/
H A Dqueueing.c82 struct sk_buff *tail = queue->tail, *next = smp_load_acquire(&NEXT(tail)); in wg_prev_queue_dequeue()
89 next = smp_load_acquire(&NEXT(next)); in wg_prev_queue_dequeue()
99 next = smp_load_acquire(&NEXT(tail)); in wg_prev_queue_dequeue()
/openbmc/linux/kernel/bpf/
H A Dringbuf.c299 cons_pos = smp_load_acquire(&rb->consumer_pos); in ringbuf_avail_data_sz()
300 prod_pos = smp_load_acquire(&rb->producer_pos); in ringbuf_avail_data_sz()
417 cons_pos = smp_load_acquire(&rb->consumer_pos); in __bpf_ringbuf_reserve()
505 cons_pos = smp_load_acquire(&rb->consumer_pos) & rb->mask; in bpf_ringbuf_commit()
579 return smp_load_acquire(&rb->consumer_pos); in BPF_CALL_2()
581 return smp_load_acquire(&rb->producer_pos); in BPF_CALL_2()
679 prod_pos = smp_load_acquire(&rb->producer_pos); in __bpf_user_ringbuf_peek()
684 cons_pos = smp_load_acquire(&rb->consumer_pos); in __bpf_user_ringbuf_peek()
690 hdr_len = smp_load_acquire(hdr); in __bpf_user_ringbuf_peek()
/openbmc/linux/include/linux/
H A Dfreelist.h81 struct freelist_node *prev, *next, *head = smp_load_acquire(&list->head); in freelist_try_get()
89 head = smp_load_acquire(&list->head); in freelist_try_get()
/openbmc/linux/drivers/net/netdevsim/
H A Dbus.c69 if (!smp_load_acquire(&nsim_bus_dev->init)) in new_port_store()
90 if (!smp_load_acquire(&nsim_bus_dev->init)) in del_port_store()
162 if (!smp_load_acquire(&nsim_bus_enable)) { in new_device_store()
211 if (!smp_load_acquire(&nsim_bus_enable)) { in del_device_store()
/openbmc/linux/drivers/tty/
H A Dtty_buffer.c233 while ((next = smp_load_acquire(&buf->head->next)) != NULL) { in tty_buffer_flush()
410 next = smp_load_acquire(&head->next); in lookahead_bufs()
415 count = smp_load_acquire(&head->commit) - head->lookahead; in lookahead_bufs()
482 next = smp_load_acquire(&head->next); in flush_to_ldisc()
486 count = smp_load_acquire(&head->commit) - head->read; in flush_to_ldisc()
/openbmc/linux/tools/lib/bpf/
H A Dringbuf.c236 cons_pos = smp_load_acquire(r->consumer_pos); in ringbuf_process_ring()
239 prod_pos = smp_load_acquire(r->producer_pos); in ringbuf_process_ring()
242 len = smp_load_acquire(len_ptr); in ringbuf_process_ring()
496 cons_pos = smp_load_acquire(rb->consumer_pos); in user_ring_buffer__reserve()
498 prod_pos = smp_load_acquire(rb->producer_pos); in user_ring_buffer__reserve()
/openbmc/linux/arch/arm/include/asm/
H A Dmcs_spinlock.h13 while (!(smp_load_acquire(lock))) \
/openbmc/linux/kernel/rcu/
H A Dtasks.h349 bool havekthread = smp_load_acquire(&rtp->kthread_ptr); in call_rcu_tasks_generic()
436 if (cpu >= smp_load_acquire(&rtp->percpu_dequeue_lim)) in rcu_barrier_tasks_generic()
465 dequeue_limit = smp_load_acquire(&rtp->percpu_dequeue_lim); in rcu_tasks_need_gpcb()
549 if (rtpcp_next->cpu < smp_load_acquire(&rtp->percpu_dequeue_lim)) { in rcu_tasks_invoke_cbs()
555 if (rtpcp_next->cpu < smp_load_acquire(&rtp->percpu_dequeue_lim)) { in rcu_tasks_invoke_cbs()
1421 return smp_load_acquire(&t->trc_reader_special.b.need_qs); in rcu_ld_need_qs()
1462 trs = smp_load_acquire(&t->trc_reader_special); in rcu_read_unlock_trace_special()
1612 if (smp_load_acquire(&t->trc_ipi_to_cpu) != -1) // Order IPI in trc_wait_for_one_reader()
1841 if (smp_load_acquire(&t->trc_ipi_to_cpu) == -1 && in check_all_holdout_tasks_trace()
1874 if (WARN_ON_ONCE(smp_load_acquire(per_cpu_ptr(&trc_ipi_to_cpu, cpu)))) in rcu_tasks_trace_postgp()
/openbmc/linux/lib/
H A Dstackdepot.c230 if (!smp_load_acquire(&next_pool_required)) in depot_init_pool()
390 found = find_stack(smp_load_acquire(bucket), entries, nr_entries, hash); in __stack_depot_save()
401 if (unlikely(can_alloc && smp_load_acquire(&next_pool_required))) { in __stack_depot_save()
/openbmc/linux/fs/crypto/
H A Dfscrypt_private.h367 return smp_load_acquire(&prep_key->blk_key) != NULL; in fscrypt_is_key_prepared()
368 return smp_load_acquire(&prep_key->tfm) != NULL; in fscrypt_is_key_prepared()
403 return smp_load_acquire(&prep_key->tfm) != NULL; in fscrypt_is_key_prepared()
/openbmc/linux/net/rxrpc/
H A Dtxbuf.c108 rxrpc_seq_t hard_ack = smp_load_acquire(&call->acks_hard_ack); in rxrpc_shrink_call_tx_buffer()
115 hard_ack = smp_load_acquire(&call->acks_hard_ack); in rxrpc_shrink_call_tx_buffer()
/openbmc/linux/scripts/atomic/fallbacks/
H A Dread_acquire5 ret = smp_load_acquire(&(v)->counter);
/openbmc/linux/tools/arch/ia64/include/asm/
H A Dbarrier.h52 #define smp_load_acquire(p) \ macro
/openbmc/linux/tools/arch/s390/include/asm/
H A Dbarrier.h37 #define smp_load_acquire(p) \ macro
/openbmc/linux/tools/include/linux/
H A Dring_buffer.h59 return smp_load_acquire(&base->data_head); in ring_buffer_read_head()
/openbmc/linux/tools/arch/sparc/include/asm/
H A Dbarrier_64.h49 #define smp_load_acquire(p) \ macro

1234567