Home
last modified time | relevance | path

Searched refs:rsclp (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.10/kernel/rcu/
Drcu_segcblist.c82 static void rcu_segcblist_set_len(struct rcu_segcblist *rsclp, long v) in rcu_segcblist_set_len() argument
85 atomic_long_set(&rsclp->len, v); in rcu_segcblist_set_len()
87 WRITE_ONCE(rsclp->len, v); in rcu_segcblist_set_len()
98 static void rcu_segcblist_add_len(struct rcu_segcblist *rsclp, long v) in rcu_segcblist_add_len() argument
102 atomic_long_add(v, &rsclp->len); in rcu_segcblist_add_len()
106 WRITE_ONCE(rsclp->len, rsclp->len + v); in rcu_segcblist_add_len()
117 void rcu_segcblist_inc_len(struct rcu_segcblist *rsclp) in rcu_segcblist_inc_len() argument
119 rcu_segcblist_add_len(rsclp, 1); in rcu_segcblist_inc_len()
128 static long rcu_segcblist_xchg_len(struct rcu_segcblist *rsclp, long v) in rcu_segcblist_xchg_len() argument
131 return atomic_long_xchg(&rsclp->len, v); in rcu_segcblist_xchg_len()
[all …]
Drcu_segcblist.h38 static inline bool rcu_segcblist_empty(struct rcu_segcblist *rsclp) in rcu_segcblist_empty() argument
40 return !READ_ONCE(rsclp->head); in rcu_segcblist_empty()
44 static inline long rcu_segcblist_n_cbs(struct rcu_segcblist *rsclp) in rcu_segcblist_n_cbs() argument
47 return atomic_long_read(&rsclp->len); in rcu_segcblist_n_cbs()
49 return READ_ONCE(rsclp->len); in rcu_segcblist_n_cbs()
57 static inline bool rcu_segcblist_is_enabled(struct rcu_segcblist *rsclp) in rcu_segcblist_is_enabled() argument
59 return rsclp->enabled; in rcu_segcblist_is_enabled()
63 static inline bool rcu_segcblist_is_offloaded(struct rcu_segcblist *rsclp) in rcu_segcblist_is_offloaded() argument
65 return rsclp->offloaded; in rcu_segcblist_is_offloaded()
73 static inline bool rcu_segcblist_restempty(struct rcu_segcblist *rsclp, int seg) in rcu_segcblist_restempty() argument
[all …]
Dtree_plugin.h2412 struct rcu_segcblist *rsclp = &rdp->cblist; in show_rcu_nocb_state() local
2431 ".D"[rcu_segcblist_ready_cbs(rsclp)], in show_rcu_nocb_state()
2432 ".W"[!rcu_segcblist_restempty(rsclp, RCU_DONE_TAIL)], in show_rcu_nocb_state()
2433 ".R"[!rcu_segcblist_restempty(rsclp, RCU_WAIT_TAIL)], in show_rcu_nocb_state()
2434 ".N"[!rcu_segcblist_restempty(rsclp, RCU_NEXT_READY_TAIL)], in show_rcu_nocb_state()