Home
last modified time | relevance | path

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

12345678910>>...27

/linux-6.1.9/kernel/rcu/
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()
118 WRITE_ONCE(rsclp->seglen[seg], rsclp->seglen[seg] + v); in rcu_segcblist_add_seglen()
218 WRITE_ONCE(rsclp->len, rsclp->len + v); in rcu_segcblist_add_len()
346 WRITE_ONCE(*rsclp->tails[RCU_NEXT_TAIL], rhp); in rcu_segcblist_enqueue()
347 WRITE_ONCE(rsclp->tails[RCU_NEXT_TAIL], &rhp->next); in rcu_segcblist_enqueue()
374 WRITE_ONCE(*rsclp->tails[i], rhp); in rcu_segcblist_entrain()
376 WRITE_ONCE(rsclp->tails[i], &rhp->next); in rcu_segcblist_entrain()
[all …]
Dsync.c86 WRITE_ONCE(rsp->gp_state, GP_PASSED); in rcu_sync_func()
93 WRITE_ONCE(rsp->gp_state, GP_EXIT); in rcu_sync_func()
101 WRITE_ONCE(rsp->gp_state, GP_IDLE); in rcu_sync_func()
128 WRITE_ONCE(rsp->gp_state, GP_ENTER); in rcu_sync_enter()
176 WRITE_ONCE(rsp->gp_state, GP_EXIT); in rcu_sync_exit()
179 WRITE_ONCE(rsp->gp_state, GP_REPLAY); in rcu_sync_exit()
198 WRITE_ONCE(rsp->gp_state, GP_EXIT); in rcu_sync_dtor()
Dtree.c450 WRITE_ONCE(jiffies_to_sched_qs, jiffies_till_sched_qs); in adjust_jiffies_till_sched_qs()
459 WRITE_ONCE(jiffies_to_sched_qs, j); in adjust_jiffies_till_sched_qs()
468 WRITE_ONCE(*(ulong *)kp->arg, (j > HZ) ? HZ : j); in param_set_first_fqs_jiffies()
480 WRITE_ONCE(*(ulong *)kp->arg, (j > HZ) ? HZ : (j ?: 1)); in param_set_next_fqs_jiffies()
663 WRITE_ONCE(rdp->rcu_forced_tick, true); in __rcu_irq_enter_check_tick()
695 WRITE_ONCE(rdp->rcu_urgent_qs, false); in rcu_disable_urgency_upon_qs()
696 WRITE_ONCE(rdp->rcu_need_heavy_qs, false); in rcu_disable_urgency_upon_qs()
699 WRITE_ONCE(rdp->rcu_forced_tick, false); in rcu_disable_urgency_upon_qs()
795 WRITE_ONCE(rdp->gpwrap, true); in rcu_gpnum_ovf()
891 WRITE_ONCE(rdp->rcu_need_heavy_qs, true); in rcu_implicit_dynticks_qs()
[all …]
Dsrcutiny.c101 WRITE_ONCE(ssp->srcu_lock_nesting[idx], newval); in __srcu_read_unlock()
124 WRITE_ONCE(ssp->srcu_gp_running, true); in srcu_drive_gp()
131 WRITE_ONCE(ssp->srcu_idx, ssp->srcu_idx + 1); in srcu_drive_gp()
132 WRITE_ONCE(ssp->srcu_gp_waiting, true); /* srcu_read_unlock() wakes! */ in srcu_drive_gp()
134 WRITE_ONCE(ssp->srcu_gp_waiting, false); /* srcu_read_unlock() cheap. */ in srcu_drive_gp()
135 WRITE_ONCE(ssp->srcu_idx, ssp->srcu_idx + 1); in srcu_drive_gp()
152 WRITE_ONCE(ssp->srcu_gp_running, false); in srcu_drive_gp()
165 WRITE_ONCE(ssp->srcu_idx_max, cookie); in srcu_gp_start_if_needed()
/linux-6.1.9/Documentation/translations/ko_KR/
Dmemory-barriers.txt277 a = READ_ONCE(*X); WRITE_ONCE(*X, b);
285 WRITE_ONCE(*X, c); d = READ_ONCE(*X);
296 (*) 컴파일러가 READ_ONCE() 나 WRITE_ONCE() 로 보호되지 않은 메모리 액세스를
592 WRITE_ONCE(P, &B)
619 WRITE_ONCE(P, &B);
649 WRITE_ONCE(P, &B);
651 WRITE_ONCE(*Q, 5);
714 WRITE_ONCE(b, 1);
718 하나, READ_ONCE() 도 WRITE_ONCE() 도 선택사항이 아니라 필수사항임을 부디
720 또다른 로드와 조합할 수 있습니다. WRITE_ONCE() 가 없다면, 컴파일러는 'b' 로의
[all …]
/linux-6.1.9/tools/lib/
Drbtree.c155 WRITE_ONCE(parent->rb_right, tmp); in __rb_insert()
156 WRITE_ONCE(node->rb_left, parent); in __rb_insert()
176 WRITE_ONCE(gparent->rb_left, tmp); /* == parent->rb_right */ in __rb_insert()
177 WRITE_ONCE(parent->rb_right, gparent); in __rb_insert()
199 WRITE_ONCE(parent->rb_left, tmp); in __rb_insert()
200 WRITE_ONCE(node->rb_right, parent); in __rb_insert()
211 WRITE_ONCE(gparent->rb_right, tmp); /* == parent->rb_left */ in __rb_insert()
212 WRITE_ONCE(parent->rb_left, gparent); in __rb_insert()
253 WRITE_ONCE(parent->rb_right, tmp1); in ____rb_erase_color()
254 WRITE_ONCE(sibling->rb_left, parent); in ____rb_erase_color()
[all …]
/linux-6.1.9/lib/
Drbtree.c155 WRITE_ONCE(parent->rb_right, tmp); in __rb_insert()
156 WRITE_ONCE(node->rb_left, parent); in __rb_insert()
176 WRITE_ONCE(gparent->rb_left, tmp); /* == parent->rb_right */ in __rb_insert()
177 WRITE_ONCE(parent->rb_right, gparent); in __rb_insert()
199 WRITE_ONCE(parent->rb_left, tmp); in __rb_insert()
200 WRITE_ONCE(node->rb_right, parent); in __rb_insert()
211 WRITE_ONCE(gparent->rb_right, tmp); /* == parent->rb_left */ in __rb_insert()
212 WRITE_ONCE(parent->rb_left, gparent); in __rb_insert()
253 WRITE_ONCE(parent->rb_right, tmp1); in ____rb_erase_color()
254 WRITE_ONCE(sibling->rb_left, parent); in ____rb_erase_color()
[all …]
/linux-6.1.9/drivers/net/wireless/ath/ath9k/
Dar9003_mac.c42 WRITE_ONCE(ads->info, val); in ar9003_set_txdesc()
45 WRITE_ONCE(ads->link, i->link); in ar9003_set_txdesc()
48 WRITE_ONCE(ads->data0, i->buf_addr[0]); in ar9003_set_txdesc()
50 WRITE_ONCE(ads->data1, i->buf_addr[1]); in ar9003_set_txdesc()
52 WRITE_ONCE(ads->data2, i->buf_addr[2]); in ar9003_set_txdesc()
54 WRITE_ONCE(ads->data3, i->buf_addr[3]); 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()
[all …]
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()
238 WRITE_ONCE(ads->ds_ctl2, set11nTries(i->rates, 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()
282 WRITE_ONCE(ads->ds_ctl0, (i->pkt_len & AR_FrameLen) in ar9002_set_txdesc()
[all …]
/linux-6.1.9/arch/xtensa/platforms/xtfpga/
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.1.9/include/linux/
Drculist.h24 WRITE_ONCE(list->next, list); in INIT_LIST_HEAD_RCU()
25 WRITE_ONCE(list->prev, list); in INIT_LIST_HEAD_RCU()
185 WRITE_ONCE(n->pprev, NULL); in hlist_del_init_rcu()
514 WRITE_ONCE(n->pprev, LIST_POISON2); in hlist_del_rcu()
530 WRITE_ONCE(new->pprev, old->pprev); in hlist_replace_rcu()
533 WRITE_ONCE(new->next->pprev, &new->next); in hlist_replace_rcu()
534 WRITE_ONCE(old->pprev, LIST_POISON2); in hlist_replace_rcu()
554 WRITE_ONCE(node2->pprev, &left->first); in hlists_swap_heads_rcu()
555 WRITE_ONCE(node1->pprev, &right->first); in hlists_swap_heads_rcu()
590 WRITE_ONCE(n->pprev, &h->first); in hlist_add_head_rcu()
[all …]
Dlist.h37 WRITE_ONCE(list->next, list); in INIT_LIST_HEAD()
38 WRITE_ONCE(list->prev, list); in INIT_LIST_HEAD()
75 WRITE_ONCE(prev->next, new); in __list_add()
115 WRITE_ONCE(prev->next, next); in __list_del()
309 WRITE_ONCE(entry->prev, entry); in list_del_init_careful()
884 WRITE_ONCE(*pprev, next); in __hlist_del()
886 WRITE_ONCE(next->pprev, pprev); in __hlist_del()
928 WRITE_ONCE(n->next, first); in hlist_add_head()
930 WRITE_ONCE(first->pprev, &n->next); in hlist_add_head()
931 WRITE_ONCE(h->first, n); in hlist_add_head()
[all …]
Dlist_nulls.h97 WRITE_ONCE(n->pprev, &h->first); in hlist_nulls_add_head()
100 WRITE_ONCE(first->pprev, &n->next); in hlist_nulls_add_head()
108 WRITE_ONCE(*pprev, next); in __hlist_nulls_del()
110 WRITE_ONCE(next->pprev, pprev); in __hlist_nulls_del()
116 WRITE_ONCE(n->pprev, LIST_POISON2); in hlist_nulls_del()
/linux-6.1.9/net/mptcp/
Dpm.c40 WRITE_ONCE(msk->pm.addr_signal, add_addr); in mptcp_pm_announce_addr()
57 WRITE_ONCE(msk->pm.addr_signal, rm_addr); in mptcp_pm_remove_addr()
80 WRITE_ONCE(pm->server_side, server_side); in mptcp_pm_new_connection()
106 WRITE_ONCE(pm->accept_subflow, false); in mptcp_pm_allow_new_subflow()
316 WRITE_ONCE(subflow->fail_tout, 0); in mptcp_pm_mp_fail_received()
361 WRITE_ONCE(msk->pm.addr_signal, add_addr); in mptcp_pm_add_addr_signal()
384 WRITE_ONCE(msk->pm.addr_signal, rm_addr); in mptcp_pm_rm_addr_signal()
391 WRITE_ONCE(msk->pm.addr_signal, rm_addr); in mptcp_pm_rm_addr_signal()
459 WRITE_ONCE(pm->pm_type, pm_type); in mptcp_pm_data_reset()
467 WRITE_ONCE(pm->work_pending, in mptcp_pm_data_reset()
[all …]
/linux-6.1.9/tools/memory-model/litmus-tests/
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);
DISA2+poonceonces.litmus8 * smp_store_release() invocations are replaced by WRITE_ONCE() and all
16 WRITE_ONCE(*x, 1);
17 WRITE_ONCE(*y, 1);
25 WRITE_ONCE(*z, 1);
DZ6.0+pooncelock+poonceLock+pombonce.litmus17 WRITE_ONCE(*x, 1);
18 WRITE_ONCE(*y, 1);
29 WRITE_ONCE(*z, 1);
37 WRITE_ONCE(*z, 2);
DZ6.0+pooncelock+pooncelock+pombonce.litmus16 WRITE_ONCE(*x, 1);
17 WRITE_ONCE(*y, 1);
27 WRITE_ONCE(*z, 1);
35 WRITE_ONCE(*z, 2);
/linux-6.1.9/kernel/locking/
Dspinlock_debug.c93 WRITE_ONCE(lock->owner_cpu, raw_smp_processor_id()); in debug_spin_lock_after()
94 WRITE_ONCE(lock->owner, current); in debug_spin_lock_after()
104 WRITE_ONCE(lock->owner, SPINLOCK_OWNER_INIT); in debug_spin_unlock()
105 WRITE_ONCE(lock->owner_cpu, -1); in debug_spin_unlock()
193 WRITE_ONCE(lock->owner_cpu, raw_smp_processor_id()); in debug_write_lock_after()
194 WRITE_ONCE(lock->owner, current); in debug_write_lock_after()
203 WRITE_ONCE(lock->owner, SPINLOCK_OWNER_INIT); in debug_write_unlock()
204 WRITE_ONCE(lock->owner_cpu, -1); in debug_write_unlock()
Dosq_lock.c126 WRITE_ONCE(prev->next, node); in osq_lock()
201 WRITE_ONCE(next->prev, prev); in osq_lock()
202 WRITE_ONCE(prev->next, next); in osq_lock()
225 WRITE_ONCE(next->locked, 1); in osq_unlock()
231 WRITE_ONCE(next->locked, 1); in osq_unlock()
Dqspinlock_paravirt.h111 WRITE_ONCE(lock->pending, 1); in set_pending()
221 WRITE_ONCE(he->node, node); in pv_hash()
248 WRITE_ONCE(he->lock, NULL); in pv_unhash()
391 WRITE_ONCE(lock->locked, _Q_SLOW_VAL); in pv_kick_node()
427 WRITE_ONCE(pn->state, vcpu_running); in pv_wait_head_or_lock()
462 WRITE_ONCE(lock->locked, _Q_LOCKED_VAL); in pv_wait_head_or_lock()
463 WRITE_ONCE(*lp, NULL); in pv_wait_head_or_lock()
467 WRITE_ONCE(pn->state, vcpu_hashed); in pv_wait_head_or_lock()
/linux-6.1.9/drivers/iommu/intel/
Dpasid.c226 WRITE_ONCE(pe->val[0], 0); in pasid_clear_entry()
227 WRITE_ONCE(pe->val[1], 0); in pasid_clear_entry()
228 WRITE_ONCE(pe->val[2], 0); in pasid_clear_entry()
229 WRITE_ONCE(pe->val[3], 0); in pasid_clear_entry()
230 WRITE_ONCE(pe->val[4], 0); in pasid_clear_entry()
231 WRITE_ONCE(pe->val[5], 0); in pasid_clear_entry()
232 WRITE_ONCE(pe->val[6], 0); in pasid_clear_entry()
233 WRITE_ONCE(pe->val[7], 0); in pasid_clear_entry()
238 WRITE_ONCE(pe->val[0], PASID_PTE_FPD); in pasid_clear_entry_with_fpd()
239 WRITE_ONCE(pe->val[1], 0); in pasid_clear_entry_with_fpd()
[all …]
/linux-6.1.9/include/vdso/
Dhelpers.h37 WRITE_ONCE(vd[CS_HRES_COARSE].seq, vd[CS_HRES_COARSE].seq + 1); in vdso_write_begin()
38 WRITE_ONCE(vd[CS_RAW].seq, vd[CS_RAW].seq + 1); in vdso_write_begin()
50 WRITE_ONCE(vd[CS_HRES_COARSE].seq, vd[CS_HRES_COARSE].seq + 1); in vdso_write_end()
51 WRITE_ONCE(vd[CS_RAW].seq, vd[CS_RAW].seq + 1); in vdso_write_end()
/linux-6.1.9/tools/memory-model/Documentation/
Dcontrol-dependencies.txt37 WRITE_ONCE(b, 1);
41 WRITE_ONCE() are optional. Without the READ_ONCE(), the compiler might
42 fuse the load from "a" with other loads. Without the WRITE_ONCE(),
55 So don't leave out either the READ_ONCE() or the WRITE_ONCE().
65 WRITE_ONCE(b, 1);
69 WRITE_ONCE(b, 1);
78 WRITE_ONCE(b, 1); /* BUG: No ordering vs. load from a!!! */
80 /* WRITE_ONCE(b, 1); -- moved up, BUG!!! */
83 /* WRITE_ONCE(b, 1); -- moved up, BUG!!! */
108 WRITE_ONCE(b, 1);
[all …]
/linux-6.1.9/kernel/
Dcontext_tracking.c45 WRITE_ONCE(current->rcu_tasks_idle_cpu, smp_processor_id()); in rcu_dynticks_task_enter()
53 WRITE_ONCE(current->rcu_tasks_idle_cpu, -1); in rcu_dynticks_task_exit()
129 WRITE_ONCE(ct->dynticks_nmi_nesting, 0); in ct_kernel_exit()
148 WRITE_ONCE(ct->dynticks_nesting, 0); /* Avoid irq-access tearing. */ in ct_kernel_exit()
187 WRITE_ONCE(ct->dynticks_nesting, 1); in ct_kernel_enter()
189 WRITE_ONCE(ct->dynticks_nmi_nesting, DYNTICK_IRQ_NONIDLE); in ct_kernel_enter()
224 WRITE_ONCE(ct->dynticks_nmi_nesting, /* No store tearing. */ in ct_nmi_exit()
232 WRITE_ONCE(ct->dynticks_nmi_nesting, 0); /* Avoid store tearing. */ in ct_nmi_exit()
301 WRITE_ONCE(ct->dynticks_nmi_nesting, /* Prevent store tearing. */ in ct_nmi_enter()

12345678910>>...27