Lines Matching refs:channel
80 struct jsm_channel *channel = (struct jsm_channel *)port; in jsm_tty_get_mctrl() local
82 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "start\n"); in jsm_tty_get_mctrl()
84 result = jsm_get_mstat(channel); in jsm_tty_get_mctrl()
89 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "finish\n"); in jsm_tty_get_mctrl()
101 struct jsm_channel *channel = (struct jsm_channel *)port; in jsm_tty_set_mctrl() local
103 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "start\n"); in jsm_tty_set_mctrl()
106 channel->ch_mostat |= UART_MCR_RTS; in jsm_tty_set_mctrl()
108 channel->ch_mostat &= ~UART_MCR_RTS; in jsm_tty_set_mctrl()
111 channel->ch_mostat |= UART_MCR_DTR; in jsm_tty_set_mctrl()
113 channel->ch_mostat &= ~UART_MCR_DTR; in jsm_tty_set_mctrl()
115 channel->ch_bd->bd_ops->assert_modem_signals(channel); in jsm_tty_set_mctrl()
117 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "finish\n"); in jsm_tty_set_mctrl()
129 struct jsm_channel *channel; in jsm_tty_write() local
130 channel = container_of(port, struct jsm_channel, uart_port); in jsm_tty_write()
131 channel->ch_bd->bd_ops->copy_data_from_queue_to_uart(channel); in jsm_tty_write()
136 struct jsm_channel *channel = (struct jsm_channel *)port; in jsm_tty_start_tx() local
138 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "start\n"); in jsm_tty_start_tx()
140 channel->ch_flags &= ~(CH_STOP); in jsm_tty_start_tx()
143 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "finish\n"); in jsm_tty_start_tx()
148 struct jsm_channel *channel = (struct jsm_channel *)port; in jsm_tty_stop_tx() local
150 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "start\n"); in jsm_tty_stop_tx()
152 channel->ch_flags |= (CH_STOP); in jsm_tty_stop_tx()
154 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "finish\n"); in jsm_tty_stop_tx()
160 struct jsm_channel *channel = (struct jsm_channel *)port; in jsm_tty_send_xchar() local
166 channel->ch_bd->bd_ops->send_start_character(channel); in jsm_tty_send_xchar()
169 channel->ch_bd->bd_ops->send_stop_character(channel); in jsm_tty_send_xchar()
175 struct jsm_channel *channel = (struct jsm_channel *)port; in jsm_tty_stop_rx() local
177 channel->ch_bd->bd_ops->disable_receiver(channel); in jsm_tty_stop_rx()
188 struct jsm_channel *channel = (struct jsm_channel *)port; in jsm_tty_break() local
192 channel->ch_bd->bd_ops->send_break(channel); in jsm_tty_break()
194 channel->ch_bd->bd_ops->clear_break(channel, 0); in jsm_tty_break()
202 struct jsm_channel *channel = (struct jsm_channel *)port; in jsm_tty_open() local
206 brd = channel->ch_bd; in jsm_tty_open()
212 channel->ch_flags |= (CH_OPENING); in jsm_tty_open()
216 if (!channel->ch_rqueue) { in jsm_tty_open()
217 channel->ch_rqueue = kzalloc(RQUEUESIZE, GFP_KERNEL); in jsm_tty_open()
218 if (!channel->ch_rqueue) { in jsm_tty_open()
219 jsm_dbg(INIT, &channel->ch_bd->pci_dev, in jsm_tty_open()
224 if (!channel->ch_equeue) { in jsm_tty_open()
225 channel->ch_equeue = kzalloc(EQUEUESIZE, GFP_KERNEL); in jsm_tty_open()
226 if (!channel->ch_equeue) { in jsm_tty_open()
227 jsm_dbg(INIT, &channel->ch_bd->pci_dev, in jsm_tty_open()
233 channel->ch_flags &= ~(CH_OPENING); in jsm_tty_open()
237 jsm_dbg(OPEN, &channel->ch_bd->pci_dev, in jsm_tty_open()
243 channel->ch_r_head = channel->ch_r_tail = 0; in jsm_tty_open()
244 channel->ch_e_head = channel->ch_e_tail = 0; in jsm_tty_open()
246 brd->bd_ops->flush_uart_write(channel); in jsm_tty_open()
247 brd->bd_ops->flush_uart_read(channel); in jsm_tty_open()
249 channel->ch_flags = 0; in jsm_tty_open()
250 channel->ch_cached_lsr = 0; in jsm_tty_open()
251 channel->ch_stops_sent = 0; in jsm_tty_open()
254 channel->ch_c_cflag = termios->c_cflag; in jsm_tty_open()
255 channel->ch_c_iflag = termios->c_iflag; in jsm_tty_open()
256 channel->ch_c_oflag = termios->c_oflag; in jsm_tty_open()
257 channel->ch_c_lflag = termios->c_lflag; in jsm_tty_open()
258 channel->ch_startc = termios->c_cc[VSTART]; in jsm_tty_open()
259 channel->ch_stopc = termios->c_cc[VSTOP]; in jsm_tty_open()
262 brd->bd_ops->uart_init(channel); in jsm_tty_open()
267 brd->bd_ops->param(channel); in jsm_tty_open()
269 jsm_carrier(channel); in jsm_tty_open()
271 channel->ch_open_count++; in jsm_tty_open()
273 jsm_dbg(OPEN, &channel->ch_bd->pci_dev, "finish\n"); in jsm_tty_open()
281 struct jsm_channel *channel = (struct jsm_channel *)port; in jsm_tty_close() local
283 jsm_dbg(CLOSE, &channel->ch_bd->pci_dev, "start\n"); in jsm_tty_close()
285 bd = channel->ch_bd; in jsm_tty_close()
288 channel->ch_flags &= ~(CH_STOPI); in jsm_tty_close()
290 channel->ch_open_count--; in jsm_tty_close()
295 if (channel->ch_c_cflag & HUPCL) { in jsm_tty_close()
296 jsm_dbg(CLOSE, &channel->ch_bd->pci_dev, in jsm_tty_close()
300 channel->ch_mostat &= ~(UART_MCR_DTR | UART_MCR_RTS); in jsm_tty_close()
301 bd->bd_ops->assert_modem_signals(channel); in jsm_tty_close()
305 channel->ch_bd->bd_ops->uart_off(channel); in jsm_tty_close()
307 jsm_dbg(CLOSE, &channel->ch_bd->pci_dev, "finish\n"); in jsm_tty_close()
315 struct jsm_channel *channel = (struct jsm_channel *)port; in jsm_tty_set_termios() local
318 channel->ch_c_cflag = termios->c_cflag; in jsm_tty_set_termios()
319 channel->ch_c_iflag = termios->c_iflag; in jsm_tty_set_termios()
320 channel->ch_c_oflag = termios->c_oflag; in jsm_tty_set_termios()
321 channel->ch_c_lflag = termios->c_lflag; in jsm_tty_set_termios()
322 channel->ch_startc = termios->c_cc[VSTART]; in jsm_tty_set_termios()
323 channel->ch_stopc = termios->c_cc[VSTOP]; in jsm_tty_set_termios()
325 channel->ch_bd->bd_ops->param(channel); in jsm_tty_set_termios()
326 jsm_carrier(channel); in jsm_tty_set_termios()