Lines Matching defs:desc
99 char* desc; /**< driver specific description */
977 device_set_desc_internal(device_t dev, const char* desc, int copy)
979 if (dev->desc && (dev->flags & DF_DESCMALLOCED)) {
980 bsd_free(dev->desc, M_BUS);
982 dev->desc = NULL;
985 if (copy && desc) {
986 dev->desc = bsd_malloc(strlen(desc) + 1, M_BUS, M_NOWAIT);
987 if (dev->desc) {
988 if (strcpy_s(dev->desc, strlen(desc) + 1, desc) != EOK) {
989 PDEBUG(("desc internal copy desc failed!\n"));
995 dev->desc = (char *)(uintptr_t) desc;
1004 * The value of @c desc should be a string constant that will not
1009 device_set_desc(device_t dev, const char* desc)
1011 device_set_desc_internal(dev, desc, FALSE);
1017 * The string pointed to by @c desc is copied. Use this function if
1021 device_set_desc_copy(device_t dev, const char* desc)
1023 device_set_desc_internal(dev, desc, TRUE);
1032 return (dev->desc);
1379 dev->desc = NULL;
2775 root_bus->desc = "System root bus";
2893 dev->unit, dev->desc,