Lines Matching full:gen
51 u_int32_t ptr, pos, gen, next_gen; in dcons_ischar() local
57 gen = ptr >> DCONS_GEN_SHIFT; in dcons_ischar()
59 if (gen == ch->gen && pos == ch->pos) in dcons_ischar()
62 next_gen = DCONS_NEXT_GEN(ch->gen); in dcons_ischar()
64 if ((gen != ch->gen && gen != next_gen) in dcons_ischar()
65 || (gen == ch->gen && pos < ch->pos)) { in dcons_ischar()
68 ch->gen = gen; in dcons_ischar()
80 u_int32_t ptr, pos, gen, next_gen; in dcons_checkc() local
86 gen = ptr >> DCONS_GEN_SHIFT; in dcons_checkc()
88 if (gen == ch->gen && pos == ch->pos) in dcons_checkc()
91 next_gen = DCONS_NEXT_GEN(ch->gen); in dcons_checkc()
93 if ((gen != ch->gen && gen != next_gen) in dcons_checkc()
94 || (gen == ch->gen && pos < ch->pos)) { in dcons_checkc()
97 ch->gen = gen; in dcons_checkc()
105 ch->gen = next_gen; in dcons_checkc()
122 ch->gen = DCONS_NEXT_GEN(ch->gen); in dcons_putc()
143 dc->o.gen = dc->i.gen = 0; in dcons_init_port()
174 dc->o.gen = ntohl(buf->optr[port]) >> DCONS_GEN_SHIFT; in dcons_load_buffer()
175 dc->i.gen = ntohl(buf->iptr[port]) >> DCONS_GEN_SHIFT; in dcons_load_buffer()