Lines Matching full:parity
110 int parity; /* keeps track if we should send parity */ member
144 int parity; in max3100_do_parity() local
146 if (s->parity & MAX3100_PARITY_ODD) in max3100_do_parity()
147 parity = 1; in max3100_do_parity()
149 parity = 0; in max3100_do_parity()
151 if (s->parity & MAX3100_7BIT) in max3100_do_parity()
156 parity = parity ^ (hweight8(c) & 1); in max3100_do_parity()
157 return parity; in max3100_do_parity()
167 if (s->parity & MAX3100_7BIT) in max3100_calc_parity()
172 if (s->parity & MAX3100_PARITY_ON) in max3100_calc_parity()
227 ch = rx & (s->parity & MAX3100_7BIT ? 0x7f : 0xff); in max3100_handlerx_unlocked()
233 if (s->parity & MAX3100_PARITY_ON) { in max3100_handlerx_unlocked()
238 s->port.icount.parity++; in max3100_handlerx_unlocked()
441 u32 param_new, param_mask, parity = 0; in max3100_set_termios() local
499 parity &= ~MAX3100_7BIT; in max3100_set_termios()
502 parity |= MAX3100_7BIT; in max3100_set_termios()
515 parity |= MAX3100_PARITY_ON; in max3100_set_termios()
518 parity &= ~MAX3100_PARITY_ON; in max3100_set_termios()
523 parity |= MAX3100_PARITY_ODD; in max3100_set_termios()
525 parity &= ~MAX3100_PARITY_ODD; in max3100_set_termios()
545 s->parity = parity; in max3100_set_termios()
604 s->parity = 0; in max3100_startup()