Lines Matching refs:ttyname
14 const char *ttyname; member
32 if (trigger_data->ttyname) in ttyname_show()
33 len = sprintf(buf, "%s\n", trigger_data->ttyname); in ttyname_show()
45 char *ttyname; in ttyname_store() local
53 ttyname = kmemdup_nul(buf, size, GFP_KERNEL); in ttyname_store()
54 if (!ttyname) in ttyname_store()
57 ttyname = NULL; in ttyname_store()
62 running = trigger_data->ttyname != NULL; in ttyname_store()
64 kfree(trigger_data->ttyname); in ttyname_store()
68 trigger_data->ttyname = ttyname; in ttyname_store()
72 if (ttyname && !running) in ttyname_store()
77 static DEVICE_ATTR_RW(ttyname);
88 if (!trigger_data->ttyname) { in ledtrig_tty_work()
100 ret = tty_dev_name_to_number(trigger_data->ttyname, &devno); in ledtrig_tty_work()