Lines Matching refs:lines
354 void close_lines(struct line *lines, int nlines) in close_lines() argument
359 close_chan(&lines[i]); in close_lines()
362 int setup_one_line(struct line *lines, int n, char *init, in setup_one_line() argument
365 struct line *line = &lines[n]; in setup_one_line()
454 int line_config(struct line *lines, unsigned int num, char *str, in line_config() argument
475 return setup_one_line(lines, n, end, opts, error_out); in line_config()
478 int line_get_config(char *name, struct line *lines, unsigned int num, char *str, in line_get_config() argument
496 line = &lines[dev]; in line_get_config()
528 int line_remove(struct line *lines, unsigned int num, int n, char **error_out) in line_remove() argument
534 return setup_one_line(lines, n, "none", NULL, error_out); in line_remove()
539 struct line *lines, int nlines) in register_lines() argument
559 tty_port_init(&lines[i].port); in register_lines()
560 lines[i].port.ops = &line_port_ops; in register_lines()
561 spin_lock_init(&lines[i].lock); in register_lines()
562 lines[i].driver = line_driver; in register_lines()
563 INIT_LIST_HEAD(&lines[i].chan_list); in register_lines()
573 tty_port_destroy(&lines[i].port); in register_lines()