Searched refs:rsclp (Results 1 – 3 of 3) sorted by relevance
/linux-5.19.10/kernel/rcu/ |
D | rcu_segcblist.c | 82 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 static 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 …]
|
D | rcu_segcblist.h | 19 long rcu_segcblist_n_segment_cbs(struct rcu_segcblist *rsclp); 41 static inline bool rcu_segcblist_empty(struct rcu_segcblist *rsclp) in rcu_segcblist_empty() argument 43 return !READ_ONCE(rsclp->head); in rcu_segcblist_empty() 47 static inline long rcu_segcblist_n_cbs(struct rcu_segcblist *rsclp) in rcu_segcblist_n_cbs() argument 50 return atomic_long_read(&rsclp->len); in rcu_segcblist_n_cbs() 52 return READ_ONCE(rsclp->len); in rcu_segcblist_n_cbs() 56 static inline void rcu_segcblist_set_flags(struct rcu_segcblist *rsclp, in rcu_segcblist_set_flags() argument 59 WRITE_ONCE(rsclp->flags, rsclp->flags | flags); in rcu_segcblist_set_flags() 62 static inline void rcu_segcblist_clear_flags(struct rcu_segcblist *rsclp, in rcu_segcblist_clear_flags() argument 65 WRITE_ONCE(rsclp->flags, rsclp->flags & ~flags); in rcu_segcblist_clear_flags() [all …]
|
D | tree_nocb.h | 1387 struct rcu_segcblist *rsclp = &rdp->cblist; in show_rcu_nocb_state() local 1399 sprintf(bufw, "%ld", rsclp->gp_seq[RCU_WAIT_TAIL]); in show_rcu_nocb_state() 1400 sprintf(bufr, "%ld", rsclp->gp_seq[RCU_NEXT_READY_TAIL]); in show_rcu_nocb_state() 1413 ".D"[rcu_segcblist_ready_cbs(rsclp)], in show_rcu_nocb_state() 1414 ".W"[!rcu_segcblist_segempty(rsclp, RCU_WAIT_TAIL)], in show_rcu_nocb_state() 1415 rcu_segcblist_segempty(rsclp, RCU_WAIT_TAIL) ? "" : bufw, in show_rcu_nocb_state() 1416 ".R"[!rcu_segcblist_segempty(rsclp, RCU_NEXT_READY_TAIL)], in show_rcu_nocb_state() 1417 rcu_segcblist_segempty(rsclp, RCU_NEXT_READY_TAIL) ? "" : bufr, in show_rcu_nocb_state() 1418 ".N"[!rcu_segcblist_segempty(rsclp, RCU_NEXT_TAIL)], in show_rcu_nocb_state()
|