Lines Matching refs:nameunit
99 char* nameunit; /**< name+unit e.g. foodev0 */ member
1256 return (dev->nameunit); in device_get_nameunit()
1285 dev->nameunit = bsd_malloc(buflen, M_BUS, M_NOWAIT|M_ZERO); in devclass_add_device()
1286 if (!dev->nameunit) in devclass_add_device()
1290 bsd_free(dev->nameunit, M_BUS); in devclass_add_device()
1291 dev->nameunit = NULL; in devclass_add_device()
1296 if (snprintf_s(dev->nameunit, buflen, buflen - 1, "%s%d", dc->name, dev->unit) < 0) { in devclass_add_device()
1297 bsd_free(dev->nameunit, M_BUS); in devclass_add_device()
1298 dev->nameunit = NULL; in devclass_add_device()
1301 PDEBUG(("dev->nameunit : %s", dev->nameunit)); in devclass_add_device()
1332 bsd_free(dev->nameunit, M_BUS); in devclass_delete_device()
1333 dev->nameunit = NULL; in devclass_delete_device()
1379 dev->nameunit = NULL; in make_device()