Lines Matching full: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()
192 struct jsm_channel *channel = in jsm_tty_open() local
197 brd = channel->ch_bd; in jsm_tty_open()
200 * Allocate channel buffers for read/write/error. in jsm_tty_open()
203 channel->ch_flags |= (CH_OPENING); in jsm_tty_open()
207 if (!channel->ch_rqueue) { in jsm_tty_open()
208 channel->ch_rqueue = kzalloc(RQUEUESIZE, GFP_KERNEL); in jsm_tty_open()
209 if (!channel->ch_rqueue) { in jsm_tty_open()
210 jsm_dbg(INIT, &channel->ch_bd->pci_dev, in jsm_tty_open()
215 if (!channel->ch_equeue) { in jsm_tty_open()
216 channel->ch_equeue = kzalloc(EQUEUESIZE, GFP_KERNEL); in jsm_tty_open()
217 if (!channel->ch_equeue) { in jsm_tty_open()
218 jsm_dbg(INIT, &channel->ch_bd->pci_dev, in jsm_tty_open()
224 channel->ch_flags &= ~(CH_OPENING); in jsm_tty_open()
228 jsm_dbg(OPEN, &channel->ch_bd->pci_dev, in jsm_tty_open()
229 "jsm_open: initializing channel in open...\n"); in jsm_tty_open()
234 channel->ch_r_head = channel->ch_r_tail = 0; in jsm_tty_open()
235 channel->ch_e_head = channel->ch_e_tail = 0; in jsm_tty_open()
237 brd->bd_ops->flush_uart_write(channel); in jsm_tty_open()
238 brd->bd_ops->flush_uart_read(channel); in jsm_tty_open()
240 channel->ch_flags = 0; in jsm_tty_open()
241 channel->ch_cached_lsr = 0; in jsm_tty_open()
242 channel->ch_stops_sent = 0; in jsm_tty_open()
246 channel->ch_c_cflag = termios->c_cflag; in jsm_tty_open()
247 channel->ch_c_iflag = termios->c_iflag; in jsm_tty_open()
248 channel->ch_c_oflag = termios->c_oflag; in jsm_tty_open()
249 channel->ch_c_lflag = termios->c_lflag; in jsm_tty_open()
250 channel->ch_startc = termios->c_cc[VSTART]; in jsm_tty_open()
251 channel->ch_stopc = termios->c_cc[VSTOP]; in jsm_tty_open()
254 brd->bd_ops->uart_init(channel); in jsm_tty_open()
259 brd->bd_ops->param(channel); in jsm_tty_open()
261 jsm_carrier(channel); in jsm_tty_open()
263 channel->ch_open_count++; in jsm_tty_open()
266 jsm_dbg(OPEN, &channel->ch_bd->pci_dev, "finish\n"); in jsm_tty_open()
273 struct jsm_channel *channel = in jsm_tty_close() local
276 jsm_dbg(CLOSE, &channel->ch_bd->pci_dev, "start\n"); in jsm_tty_close()
278 bd = channel->ch_bd; in jsm_tty_close()
280 channel->ch_flags &= ~(CH_STOPI); in jsm_tty_close()
282 channel->ch_open_count--; in jsm_tty_close()
287 if (channel->ch_c_cflag & HUPCL) { in jsm_tty_close()
288 jsm_dbg(CLOSE, &channel->ch_bd->pci_dev, in jsm_tty_close()
292 channel->ch_mostat &= ~(UART_MCR_DTR | UART_MCR_RTS); in jsm_tty_close()
293 bd->bd_ops->assert_modem_signals(channel); in jsm_tty_close()
297 channel->ch_bd->bd_ops->uart_off(channel); in jsm_tty_close()
299 jsm_dbg(CLOSE, &channel->ch_bd->pci_dev, "finish\n"); in jsm_tty_close()
307 struct jsm_channel *channel = in jsm_tty_set_termios() local
311 channel->ch_c_cflag = termios->c_cflag; in jsm_tty_set_termios()
312 channel->ch_c_iflag = termios->c_iflag; in jsm_tty_set_termios()
313 channel->ch_c_oflag = termios->c_oflag; in jsm_tty_set_termios()
314 channel->ch_c_lflag = termios->c_lflag; in jsm_tty_set_termios()
315 channel->ch_startc = termios->c_cc[VSTART]; in jsm_tty_set_termios()
316 channel->ch_stopc = termios->c_cc[VSTOP]; in jsm_tty_set_termios()
318 channel->ch_bd->bd_ops->param(channel); in jsm_tty_set_termios()
319 jsm_carrier(channel); in jsm_tty_set_termios()
384 * Allocate channel memory that might not have been allocated in jsm_tty_init()
397 "%s:%d Unable to allocate memory for channel struct\n", in jsm_tty_init()
406 /* Set up channel variables */ in jsm_tty_init()
448 /* Set up channel variables */ in jsm_uart_port_init()
497 /* Set up channel variables */ in jsm_remove_uart_port()