Home
last modified time | relevance | path

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

12345678910>>...37

/linux/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()
102 WRITE_ONCE(pe->val[0], PASID_PTE_FPD); in pasid_clear_entry_with_fpd()
103 WRITE_ONCE(pe->val[1], 0); in pasid_clear_entry_with_fpd()
[all …]
/linux/include/net/
H A Dcodel_impl.h123 WRITE_ONCE(vars->ldelay, now - skb_time_func(skb)); in codel_should_drop()
126 WRITE_ONCE(stats->maxpacket, skb_len); in codel_should_drop()
162 WRITE_ONCE(vars->dropping, false); in codel_dequeue()
171 WRITE_ONCE(vars->dropping, false); in codel_dequeue()
186 WRITE_ONCE(vars->count, vars->count + 1); in codel_dequeue()
189 WRITE_ONCE(stats->ecn_mark, in codel_dequeue()
191 WRITE_ONCE(vars->drop_next, in codel_dequeue()
207 WRITE_ONCE(vars->dropping, false); in codel_dequeue()
210 WRITE_ONCE(vars->drop_next, in codel_dequeue()
221 WRITE_ONCE(stats->ecn_mark, stats->ecn_mark + 1); in codel_dequeue()
[all …]
/linux/kernel/rcu/
H A Drcu_segcblist.c33 WRITE_ONCE(rclp->len, rclp->len + 1); in rcu_cblist_enqueue()
60 WRITE_ONCE(srclp->len, 1); in rcu_cblist_flush_enqueue()
88 WRITE_ONCE(rsclp->len, v); in rcu_segcblist_set_len()
113 WRITE_ONCE(rsclp->seglen[seg], v); in rcu_segcblist_set_seglen()
119 WRITE_ONCE(rsclp->seglen[seg], rsclp->seglen[seg] + v); in rcu_segcblist_add_seglen()
219 WRITE_ONCE(rsclp->len, rsclp->len + v); in rcu_segcblist_add_len()
336 WRITE_ONCE(*rsclp->tails[RCU_NEXT_TAIL], rhp); in rcu_segcblist_enqueue()
337 WRITE_ONCE(rsclp->tails[RCU_NEXT_TAIL], &rhp->next); in rcu_segcblist_enqueue()
364 WRITE_ONCE(*rsclp->tails[i], rhp); in rcu_segcblist_entrain()
366 WRITE_ONCE(rsclp->tails[i], &rhp->next); in rcu_segcblist_entrain()
[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.c363 WRITE_ONCE(rdp->rcu_need_heavy_qs, false); in rcu_momentary_eqs()
466 WRITE_ONCE(jiffies_to_sched_qs, jiffies_till_sched_qs); in adjust_jiffies_till_sched_qs()
475 WRITE_ONCE(jiffies_to_sched_qs, j); in adjust_jiffies_till_sched_qs()
484 WRITE_ONCE(*(ulong *)kp->arg, (j > HZ) ? HZ : j); in param_set_first_fqs_jiffies()
496 WRITE_ONCE(*(ulong *)kp->arg, clamp_val(j, 1, HZ)); in param_set_next_fqs_jiffies()
692 WRITE_ONCE(rdp->rcu_forced_tick, true); in __rcu_irq_enter_check_tick()
725 WRITE_ONCE(rdp->rcu_urgent_qs, false); in rcu_disable_urgency_upon_qs()
726 WRITE_ONCE(rdp->rcu_need_heavy_qs, false); in rcu_disable_urgency_upon_qs()
729 WRITE_ONCE(rdp->rcu_forced_tick, false); in rcu_disable_urgency_upon_qs()
792 WRITE_ONCE(seq_gpwrap_lag, lag_seq_count); in rcu_set_gpwrap_lag()
[all …]
H A Dsrcutiny.c110 WRITE_ONCE(ssp->srcu_lock_nesting[idx], newval); in __srcu_read_unlock()
137 WRITE_ONCE(ssp->srcu_gp_running, true); in srcu_drive_gp()
144 WRITE_ONCE(ssp->srcu_idx, ssp->srcu_idx + 1); in srcu_drive_gp()
145 WRITE_ONCE(ssp->srcu_gp_waiting, true); /* srcu_read_unlock() wakes! */ in srcu_drive_gp()
154 WRITE_ONCE(ssp->srcu_gp_waiting, false); /* srcu_read_unlock() cheap. */ in srcu_drive_gp()
155 WRITE_ONCE(ssp->srcu_idx, ssp->srcu_idx + 1); in srcu_drive_gp()
175 WRITE_ONCE(ssp->srcu_gp_running, false); in srcu_drive_gp()
206 WRITE_ONCE(ssp->srcu_idx_max, cookie); in srcu_gp_start_if_needed()
/linux/tools/lib/
H A Drbtree.c39 * 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...]
/linux/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/net/sched/
H A Dsch_pie.c93 WRITE_ONCE(q->stats.overlimit, q->stats.overlimit + 1); in pie_qdisc_enqueue()
107 WRITE_ONCE(q->stats.ecn_mark, q->stats.ecn_mark + 1); in pie_qdisc_enqueue()
117 WRITE_ONCE(q->stats.packets_in, q->stats.packets_in + 1); in pie_qdisc_enqueue()
119 WRITE_ONCE(q->stats.maxq, qdisc_qlen(sch)); in pie_qdisc_enqueue()
125 WRITE_ONCE(q->stats.dropped, q->stats.dropped + 1); in pie_qdisc_enqueue()
162 WRITE_ONCE(q->params.target, in pie_change()
168 WRITE_ONCE(q->params.tupdate, in pie_change()
174 WRITE_ONCE(q->params.limit, limit); in pie_change()
175 WRITE_ONCE(sch->limit, limit); in pie_change()
179 WRITE_ONCE(q->params.alpha, nla_get_u32(tb[TCA_PIE_ALPHA])); in pie_change()
[all …]
H A Dsch_dualpi2.c193 WRITE_ONCE(q->ecn_mark, q->ecn_mark + 1); in dualpi2_mark()
201 WRITE_ONCE(q->c_protection_credit, q->c_protection_init); in dualpi2_reset_c_protection()
406 WRITE_ONCE(q->memory_used, q->memory_used + skb->truesize); in dualpi2_enqueue_skb()
408 WRITE_ONCE(q->max_memory_used, q->memory_used); in dualpi2_enqueue_skb()
411 WRITE_ONCE(q->maxq, qdisc_qlen(sch)); in dualpi2_enqueue_skb()
420 WRITE_ONCE(q->packets_in_l, q->packets_in_l + 1); in dualpi2_enqueue_skb()
422 WRITE_ONCE(q->l_head_ts, cb->ts); in dualpi2_enqueue_skb()
425 WRITE_ONCE(q->packets_in_c, q->packets_in_c + 1); in dualpi2_enqueue_skb()
427 WRITE_ONCE(q->c_head_ts, cb->ts); in dualpi2_enqueue_skb()
526 WRITE_ONCE(q->l_head_ts, head_enqueue_time(q->l_queue)); in dequeue_packet()
[all …]
H A Dsch_cake.c458 WRITE_ONCE(vars->p_drop, p_drop); in cobalt_queue_full()
459 WRITE_ONCE(vars->blue_timer, now); in cobalt_queue_full()
461 WRITE_ONCE(vars->dropping, true); in cobalt_queue_full()
462 WRITE_ONCE(vars->drop_next, now); in cobalt_queue_full()
464 WRITE_ONCE(vars->count, 1); in cobalt_queue_full()
481 WRITE_ONCE(vars->p_drop, 0); in cobalt_queue_empty()
483 WRITE_ONCE(vars->p_drop, vars->p_drop - p->p_dec); in cobalt_queue_empty()
484 WRITE_ONCE(vars->blue_timer, now); in cobalt_queue_empty()
487 WRITE_ONCE(vars->dropping, false); in cobalt_queue_empty()
490 WRITE_ONCE(var in cobalt_queue_empty()
[all...]
H A Dsch_fq_codel.c120 WRITE_ONCE(flow->head, skb->next); in dequeue_head()
130 WRITE_ONCE(flow->head, skb); in flow_queue_add()
176 WRITE_ONCE(flow->cvars.count, flow->cvars.count + i); in fq_codel_drop()
177 WRITE_ONCE(q->backlogs[idx], q->backlogs[idx] - len); in fq_codel_drop()
181 WRITE_ONCE(sch->q.qlen, sch->q.qlen - i); in fq_codel_drop()
207 WRITE_ONCE(q->backlogs[idx], q->backlogs[idx] + qdisc_pkt_len(skb)); in fq_codel_enqueue()
213 WRITE_ONCE(flow->deficit, q->quantum); in fq_codel_enqueue()
267 WRITE_ONCE(q->backlogs[flow - q->flows], in dequeue_func()
301 WRITE_ONCE(flow->deficit, flow->deficit + q->quantum); in __fq_codel_dequeue()
319 WRITE_ONCE(flo in __fq_codel_dequeue()
[all...]
/linux/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()
239 WRITE_ONCE(n->pprev, NULL); in hlist_del_init_rcu()
600 WRITE_ONCE(n->pprev, LIST_POISON2); in hlist_del_rcu()
618 WRITE_ONCE(new->pprev, old->pprev); in hlist_replace_rcu()
621 WRITE_ONCE(new->next->pprev, &new->next); in hlist_replace_rcu()
622 WRITE_ONCE(old->pprev, LIST_POISON2); in hlist_replace_rcu()
642 WRITE_ONCE(node2->pprev, &left->first); in hlists_swap_heads_rcu()
643 WRITE_ONCE(node1->pprev, &right->first); in hlists_swap_heads_rcu()
678 WRITE_ONCE(n->pprev, &h->first); in hlist_add_head_rcu()
[all …]
/linux/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()
72 WRITE_ONCE(*pprev, next); in __list_del()
76 WRITE_ONCE(next->pprev, pprev); in __list_del()
/linux/tools/testing/selftests/kvm/x86/
H A Dsync_regs_test.c95 WRITE_ONCE(events->exception.nr, UD_VECTOR); in race_events_inj_pen()
98 WRITE_ONCE(run->kvm_dirty_regs, KVM_SYNC_X86_EVENTS); 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()
119 WRITE_ONCE(run->kvm_dirty_regs, KVM_SYNC_X86_EVENTS); in race_events_exc()
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(event in race_events_exc()
[all...]
/linux/net/core/
H A Ddev.h209 WRITE_ONCE(dev->gso_max_size, size); in netif_set_gso_max_size()
211 WRITE_ONCE(dev->gso_ipv4_max_size, size); in netif_set_gso_max_size()
218 WRITE_ONCE(dev->gso_max_segs, segs); in netif_set_gso_max_segs()
225 WRITE_ONCE(dev->gro_max_size, size); in netif_set_gro_max_size()
227 WRITE_ONCE(dev->gro_ipv4_max_size, size); in netif_set_gro_max_size()
234 WRITE_ONCE(dev->gso_ipv4_max_size, size); in netif_set_gso_ipv4_max_size()
241 WRITE_ONCE(dev->gro_ipv4_max_size, size); in netif_set_gro_ipv4_max_size()
262 WRITE_ONCE(n->defer_hard_irqs, defer); in napi_set_defer_hard_irqs()
278 WRITE_ONCE(netdev->napi_defer_hard_irqs, defer); in netdev_set_defer_hard_irqs()
308 WRITE_ONCE(n->gro_flush_timeout, timeout); in napi_set_gro_flush_timeout()
[all …]
/linux/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);
H A 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);
H A 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);
H A 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/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/tools/memory-model/Documentation/
H A Dlocking.txt34 WRITE_ONCE(x, 1);
36 WRITE_ONCE(y, 1);
75 WRITE_ONCE(x, 1);
77 WRITE_ONCE(y, 1);
106 WRITE_ONCE(data, 1);
107 WRITE_ONCE(flag, 1);
117 no ordering between the two WRITE_ONCE() calls. It should therefore be
131 WRITE_ONCE(data, 1);
143 ordered after the WRITE_ONCE() to "data", solving the second problem.
163 WRITE_ONCE(x, 1);
[all …]
H A 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/drivers/net/bonding/
H A Dbond_options.c921 WRITE_ONCE(bond->params.arp_interval, 0); in bond_option_mode_set()
926 WRITE_ONCE(bond->params.miimon, BOND_DEFAULT_MIIMON); in bond_option_mode_set()
933 WRITE_ONCE(bond->params.tlb_dynamic_lb, 1); in bond_option_mode_set()
936 WRITE_ONCE(bond->params.arp_validate, BOND_ARP_VALIDATE_NONE); in bond_option_mode_set()
937 WRITE_ONCE(bond->params.mode, newval->value); in bond_option_mode_set()
944 WRITE_ONCE(bond->params.broadcast_neighbor, 0); in bond_option_mode_set()
1029 WRITE_ONCE(bond->params.miimon, newval->value); in bond_option_miimon_set()
1041 WRITE_ONCE(bond->params.arp_interval, 0); in bond_option_miimon_set()
1043 WRITE_ONCE(bond->params.arp_validate, in bond_option_miimon_set()
1087 WRITE_ONCE(*target, value / bond->params.miimon); in _bond_option_delay_set()
[all …]
/linux/net/batman-adv/
H A Dmesh-interface.c188 WRITE_ONCE(dev->mtu, new_mtu); in batadv_interface_change_mtu()
623 WRITE_ONCE(vlan->ap_isolation, 0); in batadv_meshif_create_vlan()
810 WRITE_ONCE(bat_priv->aggregated_ogms, 1); in batadv_meshif_init_late()
811 WRITE_ONCE(bat_priv->bonding, 0); in batadv_meshif_init_late()
813 WRITE_ONCE(bat_priv->bridge_loop_avoidance, 1); in batadv_meshif_init_late()
816 WRITE_ONCE(bat_priv->distributed_arp_table, 1); in batadv_meshif_init_late()
819 WRITE_ONCE(bat_priv->multicast_mode, 1); in batadv_meshif_init_late()
820 WRITE_ONCE(bat_priv->multicast_fanout, 16); in batadv_meshif_init_late()
826 WRITE_ONCE(bat_priv->gw.mode, BATADV_GW_MODE_OFF); in batadv_meshif_init_late()
827 WRITE_ONCE(bat_pri in batadv_meshif_init_late()
[all...]

12345678910>>...37