Lines Matching refs:channel
75 struct jsm_channel *channel = in jsm_tty_get_mctrl() local
78 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "start\n"); in jsm_tty_get_mctrl()
80 result = jsm_get_mstat(channel); in jsm_tty_get_mctrl()
85 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "finish\n"); in jsm_tty_get_mctrl()
97 struct jsm_channel *channel = in jsm_tty_set_mctrl() local
100 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "start\n"); in jsm_tty_set_mctrl()
103 channel->ch_mostat |= UART_MCR_RTS; in jsm_tty_set_mctrl()
105 channel->ch_mostat &= ~UART_MCR_RTS; in jsm_tty_set_mctrl()
108 channel->ch_mostat |= UART_MCR_DTR; in jsm_tty_set_mctrl()
110 channel->ch_mostat &= ~UART_MCR_DTR; in jsm_tty_set_mctrl()
112 channel->ch_bd->bd_ops->assert_modem_signals(channel); in jsm_tty_set_mctrl()
114 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "finish\n"); in jsm_tty_set_mctrl()
126 struct jsm_channel *channel; in jsm_tty_write() local
127 channel = container_of(port, struct jsm_channel, uart_port); in jsm_tty_write()
128 channel->ch_bd->bd_ops->copy_data_from_queue_to_uart(channel); in jsm_tty_write()
133 struct jsm_channel *channel = in jsm_tty_start_tx() local
136 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "start\n"); in jsm_tty_start_tx()
138 channel->ch_flags &= ~(CH_STOP); in jsm_tty_start_tx()
141 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "finish\n"); in jsm_tty_start_tx()
146 struct jsm_channel *channel = in jsm_tty_stop_tx() local
149 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "start\n"); in jsm_tty_stop_tx()
151 channel->ch_flags |= (CH_STOP); in jsm_tty_stop_tx()
153 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "finish\n"); in jsm_tty_stop_tx()
159 struct jsm_channel *channel = 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 = in jsm_tty_stop_rx() local
178 channel->ch_bd->bd_ops->disable_receiver(channel); in jsm_tty_stop_rx()
184 struct jsm_channel *channel = in jsm_tty_break() local
189 channel->ch_bd->bd_ops->send_break(channel); in jsm_tty_break()
191 channel->ch_bd->bd_ops->clear_break(channel); in jsm_tty_break()
199 struct jsm_channel *channel = in jsm_tty_open() local
204 brd = channel->ch_bd; in jsm_tty_open()
210 channel->ch_flags |= (CH_OPENING); in jsm_tty_open()
214 if (!channel->ch_rqueue) { in jsm_tty_open()
215 channel->ch_rqueue = kzalloc(RQUEUESIZE, GFP_KERNEL); in jsm_tty_open()
216 if (!channel->ch_rqueue) { in jsm_tty_open()
217 jsm_dbg(INIT, &channel->ch_bd->pci_dev, in jsm_tty_open()
222 if (!channel->ch_equeue) { in jsm_tty_open()
223 channel->ch_equeue = kzalloc(EQUEUESIZE, GFP_KERNEL); in jsm_tty_open()
224 if (!channel->ch_equeue) { in jsm_tty_open()
225 jsm_dbg(INIT, &channel->ch_bd->pci_dev, in jsm_tty_open()
231 channel->ch_flags &= ~(CH_OPENING); in jsm_tty_open()
235 jsm_dbg(OPEN, &channel->ch_bd->pci_dev, in jsm_tty_open()
241 channel->ch_r_head = channel->ch_r_tail = 0; in jsm_tty_open()
242 channel->ch_e_head = channel->ch_e_tail = 0; in jsm_tty_open()
244 brd->bd_ops->flush_uart_write(channel); in jsm_tty_open()
245 brd->bd_ops->flush_uart_read(channel); in jsm_tty_open()
247 channel->ch_flags = 0; in jsm_tty_open()
248 channel->ch_cached_lsr = 0; in jsm_tty_open()
249 channel->ch_stops_sent = 0; in jsm_tty_open()
252 channel->ch_c_cflag = termios->c_cflag; in jsm_tty_open()
253 channel->ch_c_iflag = termios->c_iflag; in jsm_tty_open()
254 channel->ch_c_oflag = termios->c_oflag; in jsm_tty_open()
255 channel->ch_c_lflag = termios->c_lflag; in jsm_tty_open()
256 channel->ch_startc = termios->c_cc[VSTART]; in jsm_tty_open()
257 channel->ch_stopc = termios->c_cc[VSTOP]; in jsm_tty_open()
260 brd->bd_ops->uart_init(channel); in jsm_tty_open()
265 brd->bd_ops->param(channel); in jsm_tty_open()
267 jsm_carrier(channel); in jsm_tty_open()
269 channel->ch_open_count++; in jsm_tty_open()
271 jsm_dbg(OPEN, &channel->ch_bd->pci_dev, "finish\n"); in jsm_tty_open()
279 struct jsm_channel *channel = in jsm_tty_close() local
282 jsm_dbg(CLOSE, &channel->ch_bd->pci_dev, "start\n"); in jsm_tty_close()
284 bd = channel->ch_bd; in jsm_tty_close()
287 channel->ch_flags &= ~(CH_STOPI); in jsm_tty_close()
289 channel->ch_open_count--; in jsm_tty_close()
294 if (channel->ch_c_cflag & HUPCL) { in jsm_tty_close()
295 jsm_dbg(CLOSE, &channel->ch_bd->pci_dev, in jsm_tty_close()
299 channel->ch_mostat &= ~(UART_MCR_DTR | UART_MCR_RTS); in jsm_tty_close()
300 bd->bd_ops->assert_modem_signals(channel); in jsm_tty_close()
304 channel->ch_bd->bd_ops->uart_off(channel); in jsm_tty_close()
306 jsm_dbg(CLOSE, &channel->ch_bd->pci_dev, "finish\n"); in jsm_tty_close()
314 struct jsm_channel *channel = 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()