Lines Matching refs:ldops
113 struct tty_ldisc_ops *ldops, *ret;
117 ldops = tty_ldiscs[disc];
118 if (ldops) {
120 if (try_module_get(ldops->owner)) {
121 ldops->refcount++;
122 ret = ldops;
129 static void put_ldops(struct tty_ldisc_ops *ldops)
134 ldops->refcount--;
135 module_put(ldops->owner);
164 struct tty_ldisc_ops *ldops;
173 ldops = get_ldops(disc);
174 if (IS_ERR(ldops)) {
178 ldops = get_ldops(disc);
179 if (IS_ERR(ldops))
180 return ERR_CAST(ldops);
188 ld->ops = ldops;
226 struct tty_ldisc_ops *ldops;
228 ldops = get_ldops(i);
229 if (IS_ERR(ldops))
231 seq_printf(m, "%-10s %2d\n", ldops->name ? ldops->name : "???", i);
232 put_ldops(ldops);