Home
last modified time | relevance | path

Searched refs:WRITE_ONCE (Results 1 – 25 of 1141) sorted by relevance

12345678910>>...46

/linux-6.15/drivers/iommu/intel/
H A Dpasid.h90 WRITE_ONCE(pe->val[0], 0); in pasid_clear_entry()
91 WRITE_ONCE(pe->val[1], 0); in pasid_clear_entry()
92 WRITE_ONCE(pe->val[2], 0); in pasid_clear_entry()
93 WRITE_ONCE(pe->val[3], 0); in pasid_clear_entry()
94 WRITE_ONCE(pe->val[4], 0); in pasid_clear_entry()
95 WRITE_ONCE(pe->val[5], 0); in pasid_clear_entry()
96 WRITE_ONCE(pe->val[6], 0); in pasid_clear_entry()
97 WRITE_ONCE(pe->val[7], 0); in pasid_clear_entry()
103 WRITE_ONCE(pe->val[1], 0); in pasid_clear_entry_with_fpd()
104 WRITE_ONCE(pe->val[2], 0); in pasid_clear_entry_with_fpd()
[all …]
/linux-6.15/kernel/rcu/
H A Drcu_segcblist.c32 WRITE_ONCE(rclp->len, rclp->len + 1); in rcu_cblist_enqueue()
59 WRITE_ONCE(srclp->len, 1); in rcu_cblist_flush_enqueue()
87 WRITE_ONCE(rsclp->len, v); in rcu_segcblist_set_len()
112 WRITE_ONCE(rsclp->seglen[seg], v); in rcu_segcblist_set_seglen()
218 WRITE_ONCE(rsclp->len, rsclp->len + v); in rcu_segcblist_add_len()
335 WRITE_ONCE(*rsclp->tails[RCU_NEXT_TAIL], rhp); in rcu_segcblist_enqueue()
363 WRITE_ONCE(*rsclp->tails[i], rhp); in rcu_segcblist_entrain()
365 WRITE_ONCE(rsclp->tails[i], &rhp->next); in rcu_segcblist_entrain()
388 WRITE_ONCE(rsclp->tails[i], &rsclp->head); in rcu_segcblist_extract_done_cbs()
440 WRITE_ONCE(rsclp->head, rclp->head); in rcu_segcblist_insert_done_cbs()
[all …]
H A Dsync.c70 WRITE_ONCE(rsp->gp_state, GP_PASSED); in rcu_sync_func()
77 WRITE_ONCE(rsp->gp_state, GP_EXIT); in rcu_sync_func()
85 WRITE_ONCE(rsp->gp_state, GP_IDLE); in rcu_sync_func()
112 WRITE_ONCE(rsp->gp_state, GP_ENTER); in rcu_sync_enter()
160 WRITE_ONCE(rsp->gp_state, GP_EXIT); in rcu_sync_exit()
163 WRITE_ONCE(rsp->gp_state, GP_REPLAY); in rcu_sync_exit()
182 WRITE_ONCE(rsp->gp_state, GP_EXIT); in rcu_sync_dtor()
H A Dtree.c458 WRITE_ONCE(jiffies_to_sched_qs, j); in adjust_jiffies_till_sched_qs()
708 WRITE_ONCE(rdp->rcu_urgent_qs, false); in rcu_disable_urgency_upon_qs()
772 WRITE_ONCE(rdp->gpwrap, true); in rcu_gpnum_ovf()
888 WRITE_ONCE(rdp->rcu_urgent_qs, true); in rcu_watching_snap_recheck()
902 WRITE_ONCE(rdp->rcu_urgent_qs, true); in rcu_watching_snap_recheck()
1308 WRITE_ONCE(rdp->gpwrap, false); in __note_gp_changes()
1991 WRITE_ONCE(rcu_state.jiffies_stall, in rcu_gp_fqs()
2146 WRITE_ONCE(rnp->gp_seq, new_gp_seq); in rcu_gp_cleanup()
2904 WRITE_ONCE(*j, jiffies); in rcu_cpu_kthread()
2909 WRITE_ONCE(*workp, 0); in rcu_cpu_kthread()
[all …]
H A Dsrcutiny.c107 WRITE_ONCE(ssp->srcu_lock_nesting[idx], newval); in __srcu_read_unlock()
134 WRITE_ONCE(ssp->srcu_gp_running, true); in srcu_drive_gp()
141 WRITE_ONCE(ssp->srcu_idx, ssp->srcu_idx + 1); in srcu_drive_gp()
142 WRITE_ONCE(ssp->srcu_gp_waiting, true); /* srcu_read_unlock() wakes! */ in srcu_drive_gp()
146 WRITE_ONCE(ssp->srcu_gp_waiting, false); /* srcu_read_unlock() cheap. */ in srcu_drive_gp()
147 WRITE_ONCE(ssp->srcu_idx, ssp->srcu_idx + 1); in srcu_drive_gp()
167 WRITE_ONCE(ssp->srcu_gp_running, false); in srcu_drive_gp()
185 WRITE_ONCE(ssp->srcu_idx_max, cookie); in srcu_gp_start_if_needed()
/linux-6.15/Documentation/translations/ko_KR/
H A Dmemory-barriers.txt600 WRITE_ONCE(P, &B)
630 WRITE_ONCE(P, &B);
660 WRITE_ONCE(P, &B);
819 WRITE_ONCE(b, 2);
854 WRITE_ONCE(b, 1);
953 WRITE_ONCE(a, 1);
1709 WRITE_ONCE() 가 좀 더 안목 높은 선택입니다: READ_ONCE() 와 WRITE_ONCE()는
2281 WRITE_ONCE(*A, a); WRITE_ONCE(*E, e);
2283 WRITE_ONCE(*B, b); WRITE_ONCE(*F, f);
2284 WRITE_ONCE(*C, c); WRITE_ONCE(*G, g);
[all …]
/linux-6.15/tools/lib/
H A Drbtree.c155 WRITE_ONCE(parent->rb_right, tmp); in __rb_insert()
156 WRITE_ONCE(node->rb_left, parent); in __rb_insert()
199 WRITE_ONCE(parent->rb_left, tmp); in __rb_insert()
200 WRITE_ONCE(node->rb_right, parent); in __rb_insert()
253 WRITE_ONCE(parent->rb_right, tmp1); in ____rb_erase_color()
320 WRITE_ONCE(sibling->rb_left, tmp1); in ____rb_erase_color()
322 WRITE_ONCE(parent->rb_right, tmp2); in ____rb_erase_color()
343 WRITE_ONCE(parent->rb_right, tmp2); in ____rb_erase_color()
357 WRITE_ONCE(parent->rb_left, tmp1); in ____rb_erase_color()
386 WRITE_ONCE(parent->rb_left, tmp2); in ____rb_erase_color()
[all …]
/linux-6.15/lib/
H A Drbtree.c155 WRITE_ONCE(parent->rb_right, tmp); in __rb_insert()
156 WRITE_ONCE(node->rb_left, parent); in __rb_insert()
199 WRITE_ONCE(parent->rb_left, tmp); in __rb_insert()
200 WRITE_ONCE(node->rb_right, parent); in __rb_insert()
253 WRITE_ONCE(parent->rb_right, tmp1); in ____rb_erase_color()
320 WRITE_ONCE(sibling->rb_left, tmp1); in ____rb_erase_color()
322 WRITE_ONCE(parent->rb_right, tmp2); in ____rb_erase_color()
343 WRITE_ONCE(parent->rb_right, tmp2); in ____rb_erase_color()
357 WRITE_ONCE(parent->rb_left, tmp1); in ____rb_erase_color()
386 WRITE_ONCE(parent->rb_left, tmp2); in ____rb_erase_color()
[all …]
/linux-6.15/arch/xtensa/platforms/xtfpga/
H A Dlcd.c37 WRITE_ONCE(*addr, data); in lcd_put_byte()
39 WRITE_ONCE(*addr, data & 0xf0); in lcd_put_byte()
40 WRITE_ONCE(*addr, (data << 4) & 0xf0); in lcd_put_byte()
46 WRITE_ONCE(*LCD_INSTR_ADDR, LCD_DISPLAY_MODE8BIT); in lcd_init()
48 WRITE_ONCE(*LCD_INSTR_ADDR, LCD_DISPLAY_MODE8BIT); in lcd_init()
50 WRITE_ONCE(*LCD_INSTR_ADDR, LCD_DISPLAY_MODE8BIT); in lcd_init()
53 WRITE_ONCE(*LCD_INSTR_ADDR, LCD_DISPLAY_MODE4BIT); in lcd_init()
/linux-6.15/drivers/net/wireless/ath/ath9k/
H A Dar9003_mac.c42 WRITE_ONCE(ads->info, val); in ar9003_set_txdesc()
57 WRITE_ONCE(ads->ctl3, val); in ar9003_set_txdesc()
59 WRITE_ONCE(ads->ctl5, val); in ar9003_set_txdesc()
61 WRITE_ONCE(ads->ctl7, val); in ar9003_set_txdesc()
63 WRITE_ONCE(ads->ctl9, val); in ar9003_set_txdesc()
81 WRITE_ONCE(ads->ctl13, 0); in ar9003_set_txdesc()
82 WRITE_ONCE(ads->ctl14, 0); in ar9003_set_txdesc()
92 WRITE_ONCE(ads->ctl11, 0); in ar9003_set_txdesc()
94 WRITE_ONCE(ads->ctl15, 0); in ar9003_set_txdesc()
95 WRITE_ONCE(ads->ctl16, 0); in ar9003_set_txdesc()
[all …]
H A Dar9002_mac.c223 WRITE_ONCE(ads->ds_link, i->link); in ar9002_set_txdesc()
224 WRITE_ONCE(ads->ds_data, i->buf_addr[0]); in ar9002_set_txdesc()
245 WRITE_ONCE(ads->ds_ctl3, set11nRate(i->rates, 0) in ar9002_set_txdesc()
250 WRITE_ONCE(ads->ds_ctl2, 0); in ar9002_set_txdesc()
251 WRITE_ONCE(ads->ds_ctl3, 0); in ar9002_set_txdesc()
255 WRITE_ONCE(ads->ds_ctl0, 0); in ar9002_set_txdesc()
256 WRITE_ONCE(ads->ds_ctl1, ctl1); in ar9002_set_txdesc()
257 WRITE_ONCE(ads->ds_ctl6, ctl6); in ar9002_set_txdesc()
292 WRITE_ONCE(ads->ds_ctl1, ctl1); in ar9002_set_txdesc()
293 WRITE_ONCE(ads->ds_ctl6, ctl6); in ar9002_set_txdesc()
[all …]
/linux-6.15/include/linux/
H A Drculist.h24 WRITE_ONCE(list->next, list); in INIT_LIST_HEAD_RCU()
25 WRITE_ONCE(list->prev, list); in INIT_LIST_HEAD_RCU()
229 WRITE_ONCE(n->pprev, NULL); in hlist_del_init_rcu()
561 WRITE_ONCE(n->pprev, LIST_POISON2); in hlist_del_rcu()
579 WRITE_ONCE(new->pprev, old->pprev); in hlist_replace_rcu()
639 WRITE_ONCE(n->pprev, &h->first); in hlist_add_head_rcu()
642 WRITE_ONCE(first->pprev, &n->next); in hlist_add_head_rcu()
675 WRITE_ONCE(n->pprev, &last->next); in hlist_add_tail_rcu()
703 WRITE_ONCE(n->pprev, next->pprev); in hlist_add_before_rcu()
706 WRITE_ONCE(next->pprev, &n->next); in hlist_add_before_rcu()
[all …]
H A Drculist_nulls.h37 WRITE_ONCE(n->pprev, NULL); in hlist_nulls_del_init_rcu()
77 WRITE_ONCE(n->pprev, LIST_POISON2); in hlist_nulls_del_rcu()
104 WRITE_ONCE(n->next, first); in hlist_nulls_add_head_rcu()
105 WRITE_ONCE(n->pprev, &h->first); in hlist_nulls_add_head_rcu()
108 WRITE_ONCE(first->pprev, &n->next); in hlist_nulls_add_head_rcu()
140 WRITE_ONCE(n->next, last->next); in hlist_nulls_add_tail_rcu()
H A Dlist_nulls.h98 WRITE_ONCE(n->pprev, &h->first); in hlist_nulls_add_head()
101 WRITE_ONCE(first->pprev, &n->next); in hlist_nulls_add_head()
109 WRITE_ONCE(*pprev, next); in __hlist_nulls_del()
111 WRITE_ONCE(next->pprev, pprev); in __hlist_nulls_del()
117 WRITE_ONCE(n->pprev, LIST_POISON2); in hlist_nulls_del()
/linux-6.15/net/core/
H A Ddev.h154 WRITE_ONCE(dev->gso_max_size, size); in netif_set_gso_max_size()
156 WRITE_ONCE(dev->gso_ipv4_max_size, size); in netif_set_gso_max_size()
163 WRITE_ONCE(dev->gso_max_segs, segs); in netif_set_gso_max_segs()
170 WRITE_ONCE(dev->gro_max_size, size); in netif_set_gro_max_size()
172 WRITE_ONCE(dev->gro_ipv4_max_size, size); in netif_set_gro_max_size()
179 WRITE_ONCE(dev->gso_ipv4_max_size, size); in netif_set_gso_ipv4_max_size()
186 WRITE_ONCE(dev->gro_ipv4_max_size, size); in netif_set_gro_ipv4_max_size()
207 WRITE_ONCE(n->defer_hard_irqs, defer); in napi_set_defer_hard_irqs()
253 WRITE_ONCE(n->gro_flush_timeout, timeout); in napi_set_gro_flush_timeout()
269 WRITE_ONCE(netdev->gro_flush_timeout, timeout); in netdev_set_gro_flush_timeout()
[all …]
/linux-6.15/tools/testing/selftests/bpf/
H A Dbpf_arena_list.h49 WRITE_ONCE(n->next, first); in list_add_head()
54 WRITE_ONCE(first->pprev, tmp); in list_add_head()
57 WRITE_ONCE(h->first, n); in list_add_head()
62 WRITE_ONCE(n->pprev, tmp); in list_add_head()
74 WRITE_ONCE(tmp, next); in __list_del()
78 WRITE_ONCE(next->pprev, pprev); in __list_del()
/linux-6.15/tools/testing/selftests/kvm/x86/
H A Dsync_regs_test.c95 WRITE_ONCE(events->exception.nr, UD_VECTOR); in race_events_inj_pen()
99 WRITE_ONCE(events->flags, 0); in race_events_inj_pen()
100 WRITE_ONCE(events->exception.injected, 1); in race_events_inj_pen()
101 WRITE_ONCE(events->exception.pending, 1); in race_events_inj_pen()
120 WRITE_ONCE(events->flags, 0); in race_events_exc()
121 WRITE_ONCE(events->exception.nr, UD_VECTOR); in race_events_exc()
122 WRITE_ONCE(events->exception.pending, 1); in race_events_exc()
123 WRITE_ONCE(events->exception.nr, 255); in race_events_exc()
143 WRITE_ONCE(run->kvm_dirty_regs, KVM_SYNC_X86_SREGS); in race_sregs_cr4()
144 WRITE_ONCE(*cr4, pae_enabled); in race_sregs_cr4()
[all …]
/linux-6.15/kernel/locking/
H A Dspinlock_debug.c94 WRITE_ONCE(lock->owner_cpu, raw_smp_processor_id()); in debug_spin_lock_after()
95 WRITE_ONCE(lock->owner, current); in debug_spin_lock_after()
105 WRITE_ONCE(lock->owner, SPINLOCK_OWNER_INIT); in debug_spin_unlock()
106 WRITE_ONCE(lock->owner_cpu, -1); in debug_spin_unlock()
194 WRITE_ONCE(lock->owner_cpu, raw_smp_processor_id()); in debug_write_lock_after()
195 WRITE_ONCE(lock->owner, current); in debug_write_lock_after()
204 WRITE_ONCE(lock->owner, SPINLOCK_OWNER_INIT); in debug_write_unlock()
205 WRITE_ONCE(lock->owner_cpu, -1); in debug_write_unlock()
/linux-6.15/tools/memory-model/litmus-tests/
H A DS+poonceonces.litmus8 * is replaced by WRITE_ONCE() and the smp_load_acquire() replaced by
16 WRITE_ONCE(*x, 2);
17 WRITE_ONCE(*y, 1);
25 WRITE_ONCE(*x, 1);
/linux-6.15/arch/x86/include/asm/
H A Dpgtable-3level.h38 WRITE_ONCE(ptep->pte_high, pte.pte_high); in native_set_pte()
40 WRITE_ONCE(ptep->pte_low, pte.pte_low); in native_set_pte()
69 WRITE_ONCE(ptep->pte_low, 0); in native_pte_clear()
71 WRITE_ONCE(ptep->pte_high, 0); in native_pte_clear()
76 WRITE_ONCE(pmdp->pmd_low, 0); in native_pmd_clear()
78 WRITE_ONCE(pmdp->pmd_high, 0); in native_pmd_clear()
139 WRITE_ONCE(pmdp->pmd_high, pmd.pmd_high); in pmdp_establish()
/linux-6.15/tools/memory-model/Documentation/
H A Dlocking.txt29 WRITE_ONCE(x, 1);
31 WRITE_ONCE(y, 1);
70 WRITE_ONCE(x, 1);
72 WRITE_ONCE(y, 1);
158 WRITE_ONCE(x, 1);
159 WRITE_ONCE(y, 1);
167 WRITE_ONCE(z, 1);
173 WRITE_ONCE(z, 2);
191 WRITE_ONCE(x, 1);
192 WRITE_ONCE(y, 1);
[all …]
H A Dcontrol-dependencies.txt37 WRITE_ONCE(b, 1);
65 WRITE_ONCE(b, 1);
69 WRITE_ONCE(b, 1);
108 WRITE_ONCE(b, 1);
111 WRITE_ONCE(b, 2);
125 WRITE_ONCE(b, 1);
128 WRITE_ONCE(b, 2);
138 WRITE_ONCE(b, 2);
151 WRITE_ONCE(b, 1);
154 WRITE_ONCE(b, 2);
[all …]
/linux-6.15/include/vdso/
H A Dhelpers.h40 WRITE_ONCE(vc[CS_HRES_COARSE].seq, vc[CS_HRES_COARSE].seq + 1); in vdso_write_begin()
41 WRITE_ONCE(vc[CS_RAW].seq, vc[CS_RAW].seq + 1); in vdso_write_begin()
55 WRITE_ONCE(vc[CS_HRES_COARSE].seq, vc[CS_HRES_COARSE].seq + 1); in vdso_write_end()
56 WRITE_ONCE(vc[CS_RAW].seq, vc[CS_RAW].seq + 1); in vdso_write_end()
/linux-6.15/fs/smb/server/
H A Dconnection.h213 WRITE_ONCE(conn->status, KSMBD_SESS_NEW); in ksmbd_conn_set_new()
218 WRITE_ONCE(conn->status, KSMBD_SESS_GOOD); in ksmbd_conn_set_good()
223 WRITE_ONCE(conn->status, KSMBD_SESS_NEED_NEGOTIATE); in ksmbd_conn_set_need_negotiate()
228 WRITE_ONCE(conn->status, KSMBD_SESS_NEED_SETUP); in ksmbd_conn_set_need_setup()
233 WRITE_ONCE(conn->status, KSMBD_SESS_NEED_RECONNECT); in ksmbd_conn_set_need_reconnect()
238 WRITE_ONCE(conn->status, KSMBD_SESS_EXITING); in ksmbd_conn_set_exiting()
243 WRITE_ONCE(conn->status, KSMBD_SESS_RELEASING); in ksmbd_conn_set_releasing()
/linux-6.15/kernel/
H A Dcontext_tracking.c45 WRITE_ONCE(current->rcu_tasks_idle_cpu, smp_processor_id()); in rcu_task_exit()
53 WRITE_ONCE(current->rcu_tasks_idle_cpu, -1); in rcu_task_enter()
128 WRITE_ONCE(ct->nmi_nesting, 0); in ct_kernel_exit()
147 WRITE_ONCE(ct->nesting, 0); /* Avoid irq-access tearing. */ in ct_kernel_exit()
186 WRITE_ONCE(ct->nesting, 1); in ct_kernel_enter()
188 WRITE_ONCE(ct->nmi_nesting, CT_NESTING_IRQ_NONIDLE); in ct_kernel_enter()
223 WRITE_ONCE(ct->nmi_nesting, /* No store tearing. */ in ct_nmi_exit()
231 WRITE_ONCE(ct->nmi_nesting, 0); /* Avoid store tearing. */ in ct_nmi_exit()
300 WRITE_ONCE(ct->nmi_nesting, /* Prevent store tearing. */ in ct_nmi_enter()

12345678910>>...46