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()
223 ch = rx & (s->parity & MAX3100_7BIT ? 0x7f : 0xff); in max3100_handlerx()
229 if (s->parity & MAX3100_PARITY_ON) { in max3100_handlerx()
234 s->port.icount.parity++; in max3100_handlerx()
428 u32 param_new, param_mask, parity = 0; in max3100_set_termios() local
486 parity &= ~MAX3100_7BIT; in max3100_set_termios()
489 parity |= MAX3100_7BIT; in max3100_set_termios()
502 parity |= MAX3100_PARITY_ON; in max3100_set_termios()
505 parity &= ~MAX3100_PARITY_ON; in max3100_set_termios()
510 parity |= MAX3100_PARITY_ODD; in max3100_set_termios()
512 parity &= ~MAX3100_PARITY_ODD; in max3100_set_termios()
532 s->parity = parity; in max3100_set_termios()
592 s->parity = 0; in max3100_startup()