Lines Matching refs:rx
113 int rx_enabled; /* if we should rx chars */
194 static int max3100_sr(struct max3100_port *s, u16 tx, u16 *rx)
213 *rx = be16_to_cpu(erx);
214 s->tx_empty = (*rx & MAX3100_T) > 0;
215 dev_dbg(&s->spi->dev, "%04x - %04x\n", tx, *rx);
219 static int max3100_handlerx(struct max3100_port *s, u16 rx)
224 if (rx & MAX3100_R && s->rx_enabled) {
226 ch = rx & (s->parity & MAX3100_7BIT ? 0x7f : 0xff);
227 if (rx & MAX3100_RAFE) {
233 if (max3100_check_parity(s, rx)) {
234 s->port.icount.rx++;
242 s->port.icount.rx++;
250 cts = (rx & MAX3100_CTS) > 0;
263 u16 tx, rx;
280 max3100_sr(s, MAX3100_WC | conf, &rx);
283 (s->rts ? MAX3100_RTS : 0), &rx);
284 rxchars += max3100_handlerx(s, rx);
287 max3100_sr(s, MAX3100_RD, &rx);
288 rxchars += max3100_handlerx(s, rx);
290 if (rx & MAX3100_T) {
306 max3100_sr(s, tx, &rx);
307 rxchars += max3100_handlerx(s, rx);
320 ((rx & MAX3100_R) ||
576 u16 tx, rx;
579 max3100_sr(s, tx, &rx);
621 u16 tx, rx;
623 max3100_sr(s, tx, &rx);
746 u16 tx, rx;
812 max3100_sr(max3100s[i], tx, &rx);
865 u16 tx, rx;
868 max3100_sr(s, tx, &rx);