• Home
  • Raw
  • Download

Lines Matching refs:maxunit

70         int             maxunit;        /* size of devices array */  member
395 for (i = 0; i < dc->maxunit; i++) in devclass_driver_added()
512 for (i = 0; i < dc->maxunit; i++) { in devclass_driver_deleted()
654 for (i = 0; i < dc->maxunit; i++) { in devclass_quiesce_driver()
708 if (dc == NULL || unit < 0 || unit >= dc->maxunit) in devclass_get_device()
763 for (i = 0; i < dc->maxunit; i++) { in devclass_get_devices()
828 for (i = 0; i < dc->maxunit; i++) in devclass_get_count()
848 return (dc->maxunit); in devclass_get_maxunit()
865 while (unit < dc->maxunit && dc->devices[unit] != NULL) in devclass_find_free_unit()
925 if (unit >= 0 && unit < dc->maxunit && dc->devices[unit] != NULL) { in devclass_alloc_unit()
935 if (unit < dc->maxunit && dc->devices[unit] != NULL) in devclass_alloc_unit()
947 if (unit >= dc->maxunit) { in devclass_alloc_unit()
957 PDEBUG(("start memcpy, size %d", sizeof(device_t) * dc->maxunit)); in devclass_alloc_unit()
959 … (void)memcpy_s(newlist, sizeof(device_t) * dc->maxunit, oldlist, sizeof(device_t) * dc->maxunit); in devclass_alloc_unit()
960 …PDEBUG(("start memset, maxunit %d, size %d", dc->maxunit, sizeof(device_t) * (newsize - dc->maxuni… in devclass_alloc_unit()
961 (void)memset_s(newlist + dc->maxunit, sizeof(device_t) * (newsize - dc->maxunit), 0, in devclass_alloc_unit()
962 sizeof(device_t) * (newsize - dc->maxunit)); in devclass_alloc_unit()
964 dc->maxunit = newsize; in devclass_alloc_unit()
2990 indentprintf(("devclass %s: max units = %d\n", dc->name, dc->maxunit)); in print_devclass_short()
3006 for (i = 0; i < dc->maxunit; i++) in print_devclass()