Lines Matching refs:one
637 struct max310x_one *one = to_max310x_port(port);
640 .tx_buf = &one->wr_header,
641 .len = sizeof(one->wr_header),
652 struct max310x_one *one = to_max310x_port(port);
655 .tx_buf = &one->rd_header,
656 .len = sizeof(one->rd_header),
667 struct max310x_one *one = to_max310x_port(port);
683 max310x_batch_read(port, one->rx_buf, rxlen);
695 uart_insert_char(port, sts, 0, one->rx_buf[i], flag);
703 one->rx_buf[rxlen-1], flag);
785 * We could do that in one SPI transaction, but meh. */
803 struct max310x_one *one = to_max310x_port(port);
805 schedule_work(&one->tx_work);
864 struct max310x_one *one = container_of(ws, struct max310x_one, tx_work);
866 max310x_handle_tx(&one->port);
886 struct max310x_one *one = container_of(ws, struct max310x_one, md_work);
888 max310x_port_update(&one->port, MAX310X_MODE2_REG,
890 (one->port.mctrl & TIOCM_LOOP) ?
896 struct max310x_one *one = to_max310x_port(port);
898 schedule_work(&one->md_work);
1020 struct max310x_one *one = container_of(ws, struct max310x_one, rs_work);
1023 delay = (one->port.rs485.delay_rts_before_send << 4) |
1024 one->port.rs485.delay_rts_after_send;
1025 max310x_port_write(&one->port, MAX310X_HDPIXDELAY_REG, delay);
1027 if (one->port.rs485.flags & SER_RS485_ENABLED) {
1030 if (!(one->port.rs485.flags & SER_RS485_RX_DURING_TX))
1034 max310x_port_update(&one->port, MAX310X_MODE1_REG,
1036 max310x_port_update(&one->port, MAX310X_MODE2_REG,
1043 struct max310x_one *one = to_max310x_port(port);
1054 schedule_work(&one->rs_work);