Home
last modified time | relevance | path

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

/linux/kernel/rcu/
H A 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()
92 long rcu_segcblist_get_seglen(struct rcu_segcblist *rsclp, int seg) in rcu_segcblist_get_seglen() argument
94 return READ_ONCE(rsclp->seglen[seg]); in rcu_segcblist_get_seglen()
98 long rcu_segcblist_n_segment_cbs(struct rcu_segcblist *rsclp) in rcu_segcblist_n_segment_cbs() argument
104 len += rcu_segcblist_get_seglen(rsclp, i); in rcu_segcblist_n_segment_cbs()
110 static void rcu_segcblist_set_seglen(struct rcu_segcblist *rsclp, int seg, long v) in rcu_segcblist_set_seglen() argument
112 WRITE_ONCE(rsclp->seglen[seg], v); in rcu_segcblist_set_seglen()
116 static void rcu_segcblist_add_seglen(struct rcu_segcblist *rsclp, int seg, long v) in rcu_segcblist_add_seglen() argument
[all …]
H A Drcu_segcblist.h18 long rcu_segcblist_get_seglen(struct rcu_segcblist *rsclp, int seg);
21 long rcu_segcblist_n_segment_cbs(struct rcu_segcblist *rsclp);
43 static inline bool rcu_segcblist_empty(struct rcu_segcblist *rsclp) in rcu_segcblist_empty() argument
45 return !READ_ONCE(rsclp->head); in rcu_segcblist_empty()
49 static inline long rcu_segcblist_n_cbs(struct rcu_segcblist *rsclp) in rcu_segcblist_n_cbs() argument
52 return atomic_long_read(&rsclp->len); in rcu_segcblist_n_cbs()
54 return READ_ONCE(rsclp->len); in rcu_segcblist_n_cbs()
58 static inline void rcu_segcblist_set_flags(struct rcu_segcblist *rsclp, in rcu_segcblist_set_flags() argument
61 WRITE_ONCE(rsclp->flags, rsclp->flags | flags); in rcu_segcblist_set_flags()
64 static inline void rcu_segcblist_clear_flags(struct rcu_segcblist *rsclp, in rcu_segcblist_clear_flags() argument
[all …]
H A Dtree_nocb.h1552 struct rcu_segcblist *rsclp = &rdp->cblist; in show_rcu_nocb_state() local
1564 sprintf(bufw, "%ld", rsclp->gp_seq[RCU_WAIT_TAIL]); in show_rcu_nocb_state()
1565 sprintf(bufr, "%ld", rsclp->gp_seq[RCU_NEXT_READY_TAIL]); in show_rcu_nocb_state()
1577 ".D"[rcu_segcblist_ready_cbs(rsclp)], in show_rcu_nocb_state()
1578 ".W"[!rcu_segcblist_segempty(rsclp, RCU_WAIT_TAIL)], in show_rcu_nocb_state()
1579 rcu_segcblist_segempty(rsclp, RCU_WAIT_TAIL) ? "" : bufw, in show_rcu_nocb_state()
1580 ".R"[!rcu_segcblist_segempty(rsclp, RCU_NEXT_READY_TAIL)], in show_rcu_nocb_state()
1581 rcu_segcblist_segempty(rsclp, RCU_NEXT_READY_TAIL) ? "" : bufr, in show_rcu_nocb_state()
1582 ".N"[!rcu_segcblist_segempty(rsclp, RCU_NEXT_TAIL)], in show_rcu_nocb_state()