Lines Matching refs:channel

66 	struct jsm_channel *channel =  in jsm_tty_get_mctrl()  local
69 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "start\n"); in jsm_tty_get_mctrl()
71 result = jsm_get_mstat(channel); in jsm_tty_get_mctrl()
76 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "finish\n"); in jsm_tty_get_mctrl()
88 struct jsm_channel *channel = in jsm_tty_set_mctrl() local
91 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "start\n"); in jsm_tty_set_mctrl()
94 channel->ch_mostat |= UART_MCR_RTS; in jsm_tty_set_mctrl()
96 channel->ch_mostat &= ~UART_MCR_RTS; in jsm_tty_set_mctrl()
99 channel->ch_mostat |= UART_MCR_DTR; in jsm_tty_set_mctrl()
101 channel->ch_mostat &= ~UART_MCR_DTR; in jsm_tty_set_mctrl()
103 channel->ch_bd->bd_ops->assert_modem_signals(channel); in jsm_tty_set_mctrl()
105 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "finish\n"); in jsm_tty_set_mctrl()
117 struct jsm_channel *channel; in jsm_tty_write() local
119 channel = container_of(port, struct jsm_channel, uart_port); in jsm_tty_write()
120 channel->ch_bd->bd_ops->copy_data_from_queue_to_uart(channel); in jsm_tty_write()
125 struct jsm_channel *channel = in jsm_tty_start_tx() local
128 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "start\n"); in jsm_tty_start_tx()
130 channel->ch_flags &= ~(CH_STOP); in jsm_tty_start_tx()
133 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "finish\n"); in jsm_tty_start_tx()
138 struct jsm_channel *channel = in jsm_tty_stop_tx() local
141 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "start\n"); in jsm_tty_stop_tx()
143 channel->ch_flags |= (CH_STOP); in jsm_tty_stop_tx()
145 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "finish\n"); in jsm_tty_stop_tx()
151 struct jsm_channel *channel = in jsm_tty_send_xchar() local
158 channel->ch_bd->bd_ops->send_start_character(channel); in jsm_tty_send_xchar()
161 channel->ch_bd->bd_ops->send_stop_character(channel); in jsm_tty_send_xchar()
167 struct jsm_channel *channel = in jsm_tty_stop_rx() local
170 channel->ch_bd->bd_ops->disable_receiver(channel); in jsm_tty_stop_rx()
176 struct jsm_channel *channel = in jsm_tty_break() local
181 channel->ch_bd->bd_ops->send_break(channel); in jsm_tty_break()
183 channel->ch_bd->bd_ops->clear_break(channel); in jsm_tty_break()
191 struct jsm_channel *channel = in jsm_tty_open() local
196 brd = channel->ch_bd; in jsm_tty_open()
202 channel->ch_flags |= (CH_OPENING); in jsm_tty_open()
206 if (!channel->ch_rqueue) { in jsm_tty_open()
207 channel->ch_rqueue = kzalloc(RQUEUESIZE, GFP_KERNEL); in jsm_tty_open()
208 if (!channel->ch_rqueue) { in jsm_tty_open()
209 jsm_dbg(INIT, &channel->ch_bd->pci_dev, in jsm_tty_open()
214 if (!channel->ch_equeue) { in jsm_tty_open()
215 channel->ch_equeue = kzalloc(EQUEUESIZE, GFP_KERNEL); in jsm_tty_open()
216 if (!channel->ch_equeue) { in jsm_tty_open()
217 jsm_dbg(INIT, &channel->ch_bd->pci_dev, in jsm_tty_open()
223 channel->ch_flags &= ~(CH_OPENING); in jsm_tty_open()
227 jsm_dbg(OPEN, &channel->ch_bd->pci_dev, in jsm_tty_open()
233 channel->ch_r_head = channel->ch_r_tail = 0; in jsm_tty_open()
234 channel->ch_e_head = channel->ch_e_tail = 0; in jsm_tty_open()
236 brd->bd_ops->flush_uart_write(channel); in jsm_tty_open()
237 brd->bd_ops->flush_uart_read(channel); in jsm_tty_open()
239 channel->ch_flags = 0; in jsm_tty_open()
240 channel->ch_cached_lsr = 0; in jsm_tty_open()
241 channel->ch_stops_sent = 0; in jsm_tty_open()
244 channel->ch_c_cflag = termios->c_cflag; in jsm_tty_open()
245 channel->ch_c_iflag = termios->c_iflag; in jsm_tty_open()
246 channel->ch_c_oflag = termios->c_oflag; in jsm_tty_open()
247 channel->ch_c_lflag = termios->c_lflag; in jsm_tty_open()
248 channel->ch_startc = termios->c_cc[VSTART]; in jsm_tty_open()
249 channel->ch_stopc = termios->c_cc[VSTOP]; in jsm_tty_open()
252 brd->bd_ops->uart_init(channel); in jsm_tty_open()
257 brd->bd_ops->param(channel); in jsm_tty_open()
259 jsm_carrier(channel); in jsm_tty_open()
261 channel->ch_open_count++; in jsm_tty_open()
263 jsm_dbg(OPEN, &channel->ch_bd->pci_dev, "finish\n"); in jsm_tty_open()
270 struct jsm_channel *channel = in jsm_tty_close() local
273 jsm_dbg(CLOSE, &channel->ch_bd->pci_dev, "start\n"); in jsm_tty_close()
275 bd = channel->ch_bd; in jsm_tty_close()
277 channel->ch_flags &= ~(CH_STOPI); in jsm_tty_close()
279 channel->ch_open_count--; in jsm_tty_close()
284 if (channel->ch_c_cflag & HUPCL) { in jsm_tty_close()
285 jsm_dbg(CLOSE, &channel->ch_bd->pci_dev, in jsm_tty_close()
289 channel->ch_mostat &= ~(UART_MCR_DTR | UART_MCR_RTS); in jsm_tty_close()
290 bd->bd_ops->assert_modem_signals(channel); in jsm_tty_close()
294 channel->ch_bd->bd_ops->uart_off(channel); in jsm_tty_close()
296 jsm_dbg(CLOSE, &channel->ch_bd->pci_dev, "finish\n"); in jsm_tty_close()
304 struct jsm_channel *channel = in jsm_tty_set_termios() local
308 channel->ch_c_cflag = termios->c_cflag; in jsm_tty_set_termios()
309 channel->ch_c_iflag = termios->c_iflag; in jsm_tty_set_termios()
310 channel->ch_c_oflag = termios->c_oflag; in jsm_tty_set_termios()
311 channel->ch_c_lflag = termios->c_lflag; in jsm_tty_set_termios()
312 channel->ch_startc = termios->c_cc[VSTART]; in jsm_tty_set_termios()
313 channel->ch_stopc = termios->c_cc[VSTOP]; in jsm_tty_set_termios()
315 channel->ch_bd->bd_ops->param(channel); in jsm_tty_set_termios()
316 jsm_carrier(channel); in jsm_tty_set_termios()