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