Lines Matching refs:units
77 static unit_t units[MAX_CHASSIS+1][MAX_GEOSLOT+1]; /* we use indexes of 1 through 8, but we reserv… variable
151 if (units[chassis][geoslot].ip != NULL) in dump_unit_table()
152 …printf("%d:%d %2d %s\n", chassis, geoslot, units[chassis][geoslot].fd, units[chassis][geoslot].ip); in dump_unit_table()
153 p = units[chassis][geoslot].iface; in dump_unit_table()
169 if (units[c][s].fd == fd || units[c][s].find_fd == fd) { in find_unit_by_fd()
172 if (unit_ptr) *unit_ptr = &units[c][s]; in find_unit_by_fd()
209 unit_t *u = &units[chassis][geoslot];
225 if (units[chassis][geoslot].ip != NULL) {
226 … free(units[chassis][geoslot].ip); /* get rid of the malloc'ed space that holds the IP address */
227 units[chassis][geoslot].ip = 0; /* then set the pointer to NULL */
242 if (units[chassis][geoslot].ip != NULL) {
243 p = units[chassis][geoslot].iface;
298 u = &units[chassis][geoslot];
346 if (flag == LIVE) id = &units[chassis][geoslot].fd;
347 else id = &units[chassis][geoslot].find_fd;
374 if (units[chassis][geoslot].fd == fd) close_with_IOP(chassis, geoslot, LIVE);
375 else if (units[chassis][geoslot].find_fd == fd) close_with_IOP(chassis, geoslot, FIND);
577 u = &units[chassis][geoslot];
779 u = &units[chassis][geoslot];
824 u = &units[chassis][geoslot];