Lines Matching refs:sg
230 __IGNORE_WCASTALIGN(struct sgttyb *sg = (struct sgttyb *)data); in ttsetcompat()
231 if (sg->sg_ispeed < 0) { in ttsetcompat()
234 unsigned int ispeed = (unsigned int)sg->sg_ispeed; in ttsetcompat()
253 if (sg->sg_ospeed < 0) { in ttsetcompat()
256 unsigned int ospeed = (unsigned int)sg->sg_ospeed; in ttsetcompat()
266 term->c_cc[VERASE] = sg->sg_erase; in ttsetcompat()
267 term->c_cc[VKILL] = sg->sg_kill; in ttsetcompat()
268 tp->t_flags = (tp->t_flags & 0xffff0000) | (sg->sg_flags & 0xffff); in ttsetcompat()
420 __IGNORE_WCASTALIGN(struct sgttyb *sg = (struct sgttyb *)data); in ttcompat()
424 sg->sg_ospeed = (char)ttcompatspeedtab(tp->t_ospeed, compatspeeds); in ttcompat()
426 sg->sg_ispeed = sg->sg_ospeed; in ttcompat()
428 sg->sg_ispeed = (char)ttcompatspeedtab(tp->t_ispeed, compatspeeds); in ttcompat()
430 sg->sg_erase = cc[VERASE]; in ttcompat()
431 sg->sg_kill = cc[VKILL]; in ttcompat()
433 sg->sg_flags = (short)tp->t_flags; in ttcompat()