Lines Matching refs:ldops
96 struct tty_ldisc_ops *ldops, *ret; in get_ldops() local
100 ldops = tty_ldiscs[disc]; in get_ldops()
101 if (ldops) { in get_ldops()
103 if (try_module_get(ldops->owner)) in get_ldops()
104 ret = ldops; in get_ldops()
110 static void put_ldops(struct tty_ldisc_ops *ldops) in put_ldops() argument
115 module_put(ldops->owner); in put_ldops()
142 struct tty_ldisc_ops *ldops; in tty_ldisc_get() local
151 ldops = get_ldops(disc); in tty_ldisc_get()
152 if (IS_ERR(ldops)) { in tty_ldisc_get()
156 ldops = get_ldops(disc); in tty_ldisc_get()
157 if (IS_ERR(ldops)) in tty_ldisc_get()
158 return ERR_CAST(ldops); in tty_ldisc_get()
166 ld->ops = ldops; in tty_ldisc_get()
205 struct tty_ldisc_ops *ldops; in tty_ldiscs_seq_show() local
207 ldops = get_ldops(i); in tty_ldiscs_seq_show()
208 if (IS_ERR(ldops)) in tty_ldiscs_seq_show()
210 seq_printf(m, "%-10s %2d\n", ldops->name ? ldops->name : "???", i); in tty_ldiscs_seq_show()
211 put_ldops(ldops); in tty_ldiscs_seq_show()