Lines Matching refs:ldops
97 struct tty_ldisc_ops *ldops, *ret; in get_ldops() local
101 ldops = tty_ldiscs[disc]; in get_ldops()
102 if (ldops) { in get_ldops()
104 if (try_module_get(ldops->owner)) in get_ldops()
105 ret = ldops; in get_ldops()
111 static void put_ldops(struct tty_ldisc_ops *ldops) in put_ldops() argument
116 module_put(ldops->owner); in put_ldops()
143 struct tty_ldisc_ops *ldops; in tty_ldisc_get() local
152 ldops = get_ldops(disc); in tty_ldisc_get()
153 if (IS_ERR(ldops)) { in tty_ldisc_get()
157 ldops = get_ldops(disc); in tty_ldisc_get()
158 if (IS_ERR(ldops)) in tty_ldisc_get()
159 return ERR_CAST(ldops); in tty_ldisc_get()
167 ld->ops = ldops; in tty_ldisc_get()
206 struct tty_ldisc_ops *ldops; in tty_ldiscs_seq_show() local
208 ldops = get_ldops(i); in tty_ldiscs_seq_show()
209 if (IS_ERR(ldops)) in tty_ldiscs_seq_show()
211 seq_printf(m, "%-10s %2d\n", ldops->name ? ldops->name : "???", i); in tty_ldiscs_seq_show()
212 put_ldops(ldops); in tty_ldiscs_seq_show()