Home | History | Annotate | Download | only in kern

Lines Matching refs:gen

158 	volatile unsigned gen;	/* even when stable, odd when changing */
446 u_int lgen, gen;
485 gen = th->th_generation;
490 } while (gen == 0 || gen != th->th_generation);
551 u_int gen;
556 gen = th->th_generation;
560 } while (gen == 0 || gen != th->th_generation);
567 u_int gen;
572 gen = th->th_generation;
576 } while (gen == 0 || gen != th->th_generation);
583 u_int gen;
588 gen = th->th_generation;
592 } while (gen == 0 || gen != th->th_generation);
600 u_int gen;
605 gen = th->th_generation;
609 } while (gen == 0 || gen != th->th_generation);
618 u_int gen;
623 gen = th->th_generation;
627 } while (gen == 0 || gen != th->th_generation);
650 u_int gen;
655 gen = th->th_generation;
659 } while (gen == 0 || gen != th->th_generation);
684 unsigned gen;
688 while ((gen = atomic_load_relaxed(&timebase.gen)) & 1)
697 } while (gen != atomic_load_relaxed(&timebase.gen));
890 timebase.gen |= 1; /* change in progress */
894 timebase.gen++; /* commit change */
984 timebase.gen |= 1; /* change in progress */
988 timebase.gen++; /* commit change */
1207 int foff, gen;
1221 gen = th->th_generation;
1223 if (gen != th->th_generation)
1224 gen = 0;
1229 gen == 0 ||
1230 gen != pps->capgen) {