Lines Matching refs:cookie
161 unsigned long cookie;
163 cookie = get_state_synchronize_srcu(ssp);
164 if (ULONG_CMP_GE(READ_ONCE(ssp->srcu_idx_max), cookie))
166 WRITE_ONCE(ssp->srcu_idx_max, cookie);
222 * get_state_synchronize_srcu - Provide an end-of-grace-period cookie
236 * start_poll_synchronize_srcu - Provide cookie and start grace period
252 * poll_state_synchronize_srcu - Has cookie's grace period ended?
254 bool poll_state_synchronize_srcu(struct srcu_struct *ssp, unsigned long cookie)
259 return ULONG_CMP_GE(cur_s, cookie) || ULONG_CMP_LT(cur_s, cookie - 3);