Lines Matching refs:tr_data
47 static struct tracerouter_data *tr_data; variable
66 if (tr_data->opencalled == 0) { in n_tracerouter_open()
68 tr_data->kref_tty = tty_kref_get(tty); in n_tracerouter_open()
69 if (tr_data->kref_tty == NULL) { in n_tracerouter_open()
72 tr_data->opencalled = 1; in n_tracerouter_open()
73 tty->disc_data = tr_data; in n_tracerouter_open()
94 WARN_ON(tptr->kref_tty != tr_data->kref_tty); in n_tracerouter_close()
96 tty_kref_put(tr_data->kref_tty); in n_tracerouter_close()
97 tr_data->kref_tty = NULL; in n_tracerouter_close()
98 tr_data->opencalled = 0; in n_tracerouter_close()
200 tr_data = kzalloc(sizeof(struct tracerouter_data), GFP_KERNEL); in n_tracerouter_init()
201 if (tr_data == NULL) in n_tracerouter_init()
209 kfree(tr_data); in n_tracerouter_init()
226 kfree(tr_data); in n_tracerouter_exit()