Lines Matching defs:line

167 	struct line *line = container_of(work, struct line, task.work);
169 if (!line->throttled)
170 chan_interrupt(line, line->read_irq);
173 int enable_chan(struct line *line)
179 INIT_DELAYED_WORK(&line->task, line_timer_cb);
181 list_for_each(ele, &line->chan_list) {
195 line, chan);
205 close_chan(line);
233 um_free_irq(chan->line->read_irq, chan);
236 um_free_irq(chan->line->write_irq, chan);
254 um_free_irq(chan->line->read_irq, chan);
257 um_free_irq(chan->line->write_irq, chan);
270 void close_chan(struct line *line)
279 list_for_each_entry_reverse(chan, &line->chan_list, list) {
317 int console_open_chan(struct line *line, struct console *co)
321 err = open_chan(&line->chan_list);
330 int chan_window_size(struct line *line, unsigned short *rows_out,
335 chan = line->chan_in;
342 chan = line->chan_out;
423 int chan_config_string(struct line *line, char *str, int size,
426 struct chan *in = line->chan_in, *out = line->chan_out;
477 static struct chan *parse_chan(struct line *line, char *str, int device,
515 .line = line,
528 int parse_chan_pair(char *str, struct line *line, int device,
531 struct list_head *chans = &line->chan_list;
536 line->chan_in = line->chan_out = NULL;
549 new = parse_chan(line, in, device, opts, error_out);
555 line->chan_in = new;
557 new = parse_chan(line, out, device, opts, error_out);
563 line->chan_out = new;
566 new = parse_chan(line, str, device, opts, error_out);
573 line->chan_in = line->chan_out = new;
578 void chan_interrupt(struct line *line, int irq)
580 struct tty_port *port = &line->port;
581 struct chan *chan = line->chan_in;
590 schedule_delayed_work(&line->task, 1);
600 tty_port_tty_hangup(&line->port, false);
601 if (line->chan_out != chan)
602 close_one_chan(line->chan_out, 1);