Lines Matching refs:sg
227 register struct sgttyb *sg = (struct sgttyb *)data;
230 if ((speed = sg->sg_ispeed) > MAX_SPEED || speed < 0)
236 if ((speed = sg->sg_ospeed) > MAX_SPEED || speed < 0)
242 term->c_cc[VERASE] = sg->sg_erase;
243 term->c_cc[VKILL] = sg->sg_kill;
244 tp->t_flags = (tp->t_flags&0xffff0000) | (sg->sg_flags&0xffff);
390 register struct sgttyb *sg = (struct sgttyb *)data;
393 sg->sg_ospeed = ttcompatspeedtab(tp->t_ospeed, compatspeeds);
395 sg->sg_ispeed = sg->sg_ospeed;
397 sg->sg_ispeed = ttcompatspeedtab(tp->t_ispeed, compatspeeds);
398 sg->sg_erase = cc[VERASE];
399 sg->sg_kill = cc[VKILL];
400 sg->sg_flags = tp->t_flags = ttcompatgetflags(tp);