Lines Matching refs:tmn
60 tty_map_node *tmn; in load_drivers() local
68 tmn = calloc(1, sizeof(tty_map_node)); in load_drivers()
69 tmn->next = tty_map; in load_drivers()
70 tty_map = tmn; in load_drivers()
75 tmn->devfs_type = 1; in load_drivers()
77 strncpy(tmn->name, p, len); in load_drivers()
81 tmn->major_number = atoi(p); in load_drivers()
85 switch (sscanf(p, "%d-%d", &tmn->minor_first, &tmn->minor_last)) { in load_drivers()
89 free(tmn); in load_drivers()
92 tmn->minor_last = tmn->minor_first; in load_drivers()
109 tty_map_node *tmn; in driver_name() local
114 tmn = tty_map; in driver_name()
116 if (!tmn) in driver_name()
118 if (tmn->major_number == maj && tmn->minor_first <= min in driver_name()
119 && tmn->minor_last >= min) in driver_name()
121 tmn = tmn->next; in driver_name()
123 sprintf(buf, "/dev/%s%d", tmn->name, min); /* like "/dev/ttyZZ255" */ in driver_name()
125 if (tmn->devfs_type) in driver_name()
127 sprintf(buf, "/dev/%s", tmn->name); /* like "/dev/ttyZZ255" */ in driver_name()