Lines Matching refs:tr_data
57 static struct tracerouter_data *tr_data; variable
76 if (tr_data->opencalled == 0) { in n_tracerouter_open()
78 tr_data->kref_tty = tty_kref_get(tty); in n_tracerouter_open()
79 if (tr_data->kref_tty == NULL) { in n_tracerouter_open()
82 tr_data->opencalled = 1; in n_tracerouter_open()
83 tty->disc_data = tr_data; in n_tracerouter_open()
104 WARN_ON(tptr->kref_tty != tr_data->kref_tty); in n_tracerouter_close()
106 tty_kref_put(tr_data->kref_tty); in n_tracerouter_close()
107 tr_data->kref_tty = NULL; in n_tracerouter_close()
108 tr_data->opencalled = 0; in n_tracerouter_close()
208 tr_data = kzalloc(sizeof(struct tracerouter_data), GFP_KERNEL); in n_tracerouter_init()
209 if (tr_data == NULL) in n_tracerouter_init()
217 kfree(tr_data); in n_tracerouter_init()
234 kfree(tr_data); in n_tracerouter_exit()