Lines Matching refs:parity
107 int parity; /* keeps track if we should send parity */ member
141 int parity; in max3100_do_parity() local
143 if (s->parity & MAX3100_PARITY_ODD) in max3100_do_parity()
144 parity = 1; in max3100_do_parity()
146 parity = 0; in max3100_do_parity()
148 if (s->parity & MAX3100_7BIT) in max3100_do_parity()
153 parity = parity ^ (hweight8(c) & 1); in max3100_do_parity()
154 return parity; in max3100_do_parity()
164 if (s->parity & MAX3100_7BIT) in max3100_calc_parity()
169 if (s->parity & MAX3100_PARITY_ON) in max3100_calc_parity()
224 ch = rx & (s->parity & MAX3100_7BIT ? 0x7f : 0xff); in max3100_handlerx()
230 if (s->parity & MAX3100_PARITY_ON) { in max3100_handlerx()
235 s->port.icount.parity++; in max3100_handlerx()
427 u32 param_new, param_mask, parity = 0; in max3100_set_termios() local
485 parity &= ~MAX3100_7BIT; in max3100_set_termios()
488 parity |= MAX3100_7BIT; in max3100_set_termios()
501 parity |= MAX3100_PARITY_ON; in max3100_set_termios()
504 parity &= ~MAX3100_PARITY_ON; in max3100_set_termios()
509 parity |= MAX3100_PARITY_ODD; in max3100_set_termios()
511 parity &= ~MAX3100_PARITY_ODD; in max3100_set_termios()
531 s->parity = parity; in max3100_set_termios()
590 s->parity = 0; in max3100_startup()