/kernel/linux/linux-5.10/kernel/rcu/ |
H A D | rcu_segcblist.c | 32 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() 106 WRITE_ONCE(rsclp->len, rsclp->len + v); in rcu_segcblist_add_len() 136 WRITE_ONCE(rsclp->len, v); in rcu_segcblist_xchg_len() 238 * field may be accessed locklessly, hence the WRITE_ONCE(). 250 WRITE_ONCE(*rsclp->tails[RCU_NEXT_TAIL], rhp); in rcu_segcblist_enqueue() 251 WRITE_ONCE(rsclp->tails[RCU_NEXT_TAIL], &rhp->next); in rcu_segcblist_enqueue() 277 WRITE_ONCE(*rsclp->tails[i], rhp); in rcu_segcblist_entrain() 279 WRITE_ONCE(rscl in rcu_segcblist_entrain() [all...] |
H A D | sync.c | 86 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()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/ |
H A D | ar9003_mac.c | 42 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(ad in ar9003_set_txdesc() [all...] |
H A D | ar9002_mac.c | 223 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(ad in ar9002_set_txdesc() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath9k/ |
H A D | ar9003_mac.c | 42 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(ad in ar9003_set_txdesc() [all...] |
H A D | ar9002_mac.c | 223 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(ad in ar9002_set_txdesc() [all...] |
/kernel/linux/linux-5.10/arch/xtensa/platforms/xtfpga/ |
H A D | lcd.c | 37 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()
|
/kernel/linux/linux-6.6/arch/xtensa/platforms/xtfpga/ |
H A D | lcd.c | 37 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()
|
/kernel/linux/linux-5.10/net/mptcp/ |
H A D | pm.c | 22 WRITE_ONCE(msk->pm.add_addr_echo, echo); in mptcp_pm_announce_addr() 23 WRITE_ONCE(msk->pm.add_addr_signal, true); in mptcp_pm_announce_addr() 32 WRITE_ONCE(msk->pm.rm_addr_signal, true); in mptcp_pm_remove_addr() 54 WRITE_ONCE(pm->server_side, server_side); in mptcp_pm_new_connection() 73 WRITE_ONCE(pm->accept_subflow, false); in mptcp_pm_allow_new_subflow() 192 WRITE_ONCE(msk->pm.add_addr_signal, false); in mptcp_pm_add_addr_signal() 215 WRITE_ONCE(msk->pm.rm_addr_signal, false); in mptcp_pm_rm_addr_signal() 235 WRITE_ONCE(msk->pm.work_pending, false); in mptcp_pm_data_init() 236 WRITE_ONCE(msk->pm.add_addr_signal, false); in mptcp_pm_data_init() 237 WRITE_ONCE(ms in mptcp_pm_data_init() [all...] |
/kernel/linux/linux-6.6/kernel/rcu/ |
H A D | rcu_segcblist.c | 32 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() 334 * field may be accessed locklessly, hence the WRITE_ONCE(). 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(*rscl in rcu_segcblist_entrain() [all...] |
H A D | sync.c | 86 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()
|
/kernel/linux/linux-5.10/tools/lib/ |
H A D | rbtree.c | 39 * WRITE_ONCE(). And we must not inadvertently cause (temporary) loops in the 155 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(paren in ____rb_erase_color() [all...] |
/kernel/linux/linux-5.10/lib/ |
H A D | rbtree.c | 39 * WRITE_ONCE(). And we must not inadvertently cause (temporary) loops in the 155 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(paren in ____rb_erase_color() [all...] |
/kernel/linux/linux-6.6/tools/lib/ |
H A D | rbtree.c | 39 * WRITE_ONCE(). And we must not inadvertently cause (temporary) loops in the 155 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(paren in ____rb_erase_color() [all...] |
/kernel/linux/linux-6.6/lib/ |
H A D | rbtree.c | 39 * WRITE_ONCE(). And we must not inadvertently cause (temporary) loops in the 155 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(paren in ____rb_erase_color() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/x86_64/ |
H A D | sync_regs_test.c | 94 WRITE_ONCE(events->exception.nr, UD_VECTOR); in race_events_inj_pen() 97 WRITE_ONCE(run->kvm_dirty_regs, KVM_SYNC_X86_EVENTS); in race_events_inj_pen() 98 WRITE_ONCE(events->flags, 0); in race_events_inj_pen() 99 WRITE_ONCE(events->exception.injected, 1); in race_events_inj_pen() 100 WRITE_ONCE(events->exception.pending, 1); in race_events_inj_pen() 118 WRITE_ONCE(run->kvm_dirty_regs, KVM_SYNC_X86_EVENTS); in race_events_exc() 119 WRITE_ONCE(events->flags, 0); in race_events_exc() 120 WRITE_ONCE(events->exception.nr, UD_VECTOR); in race_events_exc() 121 WRITE_ONCE(events->exception.pending, 1); in race_events_exc() 122 WRITE_ONCE(event in race_events_exc() [all...] |
/kernel/linux/linux-6.6/net/core/ |
H A D | dev.h | 109 WRITE_ONCE(dev->gso_max_size, size); in netif_set_gso_max_size() 111 WRITE_ONCE(dev->gso_ipv4_max_size, size); in netif_set_gso_max_size() 118 WRITE_ONCE(dev->gso_max_segs, segs); in netif_set_gso_max_segs() 125 WRITE_ONCE(dev->gro_max_size, size); in netif_set_gro_max_size() 127 WRITE_ONCE(dev->gro_ipv4_max_size, size); in netif_set_gro_max_size() 134 WRITE_ONCE(dev->gso_ipv4_max_size, size); in netif_set_gso_ipv4_max_size() 141 WRITE_ONCE(dev->gro_ipv4_max_size, size); in netif_set_gro_ipv4_max_size()
|
/kernel/linux/linux-6.6/net/mptcp/ |
H A D | pm.c | 41 WRITE_ONCE(msk->pm.addr_signal, add_addr); in mptcp_pm_announce_addr() 59 WRITE_ONCE(msk->pm.addr_signal, rm_addr); in mptcp_pm_remove_addr() 82 WRITE_ONCE(pm->server_side, server_side); in mptcp_pm_new_connection() 115 WRITE_ONCE(pm->accept_subflow, false); in mptcp_pm_allow_new_subflow() 326 WRITE_ONCE(subflow->fail_tout, 0); in mptcp_pm_mp_fail_received() 371 WRITE_ONCE(msk->pm.addr_signal, add_addr); in mptcp_pm_add_addr_signal() 394 WRITE_ONCE(msk->pm.addr_signal, rm_addr); in mptcp_pm_rm_addr_signal() 401 WRITE_ONCE(msk->pm.addr_signal, rm_addr); in mptcp_pm_rm_addr_signal() 508 WRITE_ONCE(pm->pm_type, pm_type); in mptcp_pm_data_reset() 516 WRITE_ONCE(p in mptcp_pm_data_reset() [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | rculist.h | 33 WRITE_ONCE(list->next, list); in INIT_LIST_HEAD_RCU() 34 WRITE_ONCE(list->prev, list); in INIT_LIST_HEAD_RCU() 194 WRITE_ONCE(n->pprev, NULL); in hlist_del_init_rcu() 515 WRITE_ONCE(n->pprev, LIST_POISON2); in hlist_del_rcu() 531 WRITE_ONCE(new->pprev, old->pprev); in hlist_replace_rcu() 534 WRITE_ONCE(new->next->pprev, &new->next); in hlist_replace_rcu() 535 WRITE_ONCE(old->pprev, LIST_POISON2); in hlist_replace_rcu() 555 WRITE_ONCE(node2->pprev, &left->first); in hlists_swap_heads_rcu() 556 WRITE_ONCE(node1->pprev, &right->first); in hlists_swap_heads_rcu() 591 WRITE_ONCE( in hlist_add_head_rcu() [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | rculist.h | 24 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( in hlist_add_head_rcu() [all...] |
H A D | list.h | 37 WRITE_ONCE(list->next, list); in INIT_LIST_HEAD() 38 WRITE_ONCE(list->prev, list); in INIT_LIST_HEAD() 156 WRITE_ONCE(prev->next, new); in __list_add() 196 WRITE_ONCE(prev->next, next); in __list_del() 204 * WRITE_ONCE() overhead of a regular list_del_init(). The code that uses this 390 WRITE_ONCE(entry->prev, entry); in list_del_init_careful() 959 * various WRITE_ONCE() in hlist helpers that are defined below. 980 WRITE_ONCE(*pprev, next); in __hlist_del() 982 WRITE_ONCE(next->pprev, pprev); in __hlist_del() 1024 WRITE_ONCE( in hlist_add_head() [all...] |
H A D | rculist_nulls.h | 37 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()
|
/kernel/linux/linux-6.6/arch/x86/include/asm/ |
H A D | pgtable-3level.h | 38 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()
|
/kernel/linux/linux-5.10/include/vdso/ |
H A D | helpers.h | 33 * WRITE_ONCE it is required otherwise the compiler can validly tear in vdso_write_begin() 37 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() 46 * WRITE_ONCE it is required otherwise the compiler can validly tear in vdso_write_end() 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()
|
/kernel/linux/linux-6.6/include/vdso/ |
H A D | helpers.h | 33 * WRITE_ONCE it is required otherwise the compiler can validly tear in vdso_write_begin() 37 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() 46 * WRITE_ONCE it is required otherwise the compiler can validly tear in vdso_write_end() 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()
|