Lines Matching refs:cookie
173 unsigned long cookie;
176 cookie = get_state_synchronize_srcu(ssp);
177 if (ULONG_CMP_GE(READ_ONCE(ssp->srcu_idx_max), cookie)) {
181 WRITE_ONCE(ssp->srcu_idx_max, cookie);
240 * get_state_synchronize_srcu - Provide an end-of-grace-period cookie
254 * start_poll_synchronize_srcu - Provide cookie and start grace period
273 * poll_state_synchronize_srcu - Has cookie's grace period ended?
275 bool poll_state_synchronize_srcu(struct srcu_struct *ssp, unsigned long cookie)
280 return ULONG_CMP_GE(cur_s, cookie) || ULONG_CMP_LT(cur_s, cookie - 3);