Lines Matching refs:lines
358 void close_lines(struct line *lines, int nlines) in close_lines() argument
363 close_chan(&lines[i]); in close_lines()
366 int setup_one_line(struct line *lines, int n, char *init, in setup_one_line() argument
369 struct line *line = &lines[n]; in setup_one_line()
460 int line_config(struct line *lines, unsigned int num, char *str, in line_config() argument
481 return setup_one_line(lines, n, end, opts, error_out); in line_config()
484 int line_get_config(char *name, struct line *lines, unsigned int num, char *str, in line_get_config() argument
502 line = &lines[dev]; in line_get_config()
534 int line_remove(struct line *lines, unsigned int num, int n, char **error_out) in line_remove() argument
540 return setup_one_line(lines, n, "none", NULL, error_out); in line_remove()
545 struct line *lines, int nlines) in register_lines() argument
565 tty_port_init(&lines[i].port); in register_lines()
566 lines[i].port.ops = &line_port_ops; in register_lines()
567 spin_lock_init(&lines[i].lock); in register_lines()
568 lines[i].driver = line_driver; in register_lines()
569 INIT_LIST_HEAD(&lines[i].chan_list); in register_lines()
579 tty_port_destroy(&lines[i].port); in register_lines()