Lines Matching defs:maxunit
107 int maxunit; /* size of devices array */
658 for (i = 0; i < dc->maxunit; i++)
792 for (i = 0; i < dc->maxunit; i++) {
937 for (i = 0; i < dc->maxunit; i++) {
991 if (dc == NULL || unit < 0 || unit >= dc->maxunit)
1046 for (i = 0; i < dc->maxunit; i++) {
1111 for (i = 0; i < dc->maxunit; i++)
1131 return (dc->maxunit);
1149 while (unit < dc->maxunit && dc->devices[unit] != NULL)
1227 if (unit < dc->maxunit && dc->devices[unit] != NULL) {
1238 if (unit < dc->maxunit && dc->devices[unit] != NULL)
1252 * too large. We constrain maxunit below to be <= INT_MAX. This means we
1253 * can treat unit and maxunit as normal integers with normal math
1263 if (unit >= dc->maxunit) {
1269 memset(dc->devices + dc->maxunit, 0,
1270 sizeof(device_t) * (newsize - dc->maxunit));
1271 dc->maxunit = newsize;
2774 if (unit < dc->maxunit && dc->devices[unit])
5462 indentprintf(("devclass %s: max units = %d\n", dc->name, dc->maxunit));
5478 for (i = 0; i < dc->maxunit; i++)