Lines Matching refs:lcr
95 u8 lcr; member
148 struct ch341_private *priv, u8 lcr) in ch341_set_baudrate_lcr() argument
181 r = ch341_control_out(dev, CH341_REQ_WRITE_REG, 0x2518, lcr); in ch341_set_baudrate_lcr()
238 r = ch341_set_baudrate_lcr(dev, priv, priv->lcr); in ch341_configure()
263 priv->lcr = CH341_LCR_ENABLE_RX | CH341_LCR_ENABLE_TX | CH341_LCR_CS8; in ch341_port_probe()
360 u8 lcr; in ch341_set_termios() local
369 lcr = CH341_LCR_ENABLE_RX | CH341_LCR_ENABLE_TX; in ch341_set_termios()
373 lcr |= CH341_LCR_CS5; in ch341_set_termios()
376 lcr |= CH341_LCR_CS6; in ch341_set_termios()
379 lcr |= CH341_LCR_CS7; in ch341_set_termios()
382 lcr |= CH341_LCR_CS8; in ch341_set_termios()
387 lcr |= CH341_LCR_ENABLE_PAR; in ch341_set_termios()
389 lcr |= CH341_LCR_PAR_EVEN; in ch341_set_termios()
391 lcr |= CH341_LCR_MARK_SPACE; in ch341_set_termios()
395 lcr |= CH341_LCR_STOP_BITS_2; in ch341_set_termios()
400 r = ch341_set_baudrate_lcr(port->serial->dev, priv, lcr); in ch341_set_termios()
405 priv->lcr = lcr; in ch341_set_termios()