Lines Matching refs:name

375 	.name = "devlink",
1669 * dev_driver_string - Return a device's driver name, if at all possible
1670 * @dev: struct device to get the name of
1672 * Will return the device's driver's name if it is bound to a device. If
1673 * the device is not bound to a driver, it will return the name of the bus
1686 return drv ? drv->name : dev_bus_name(dev);
1888 return dev->bus->name;
1890 return dev->class->name;
1904 const char *name;
1911 name = device_get_devnode(dev, &mode, &uid, &gid, &tmp);
1912 if (name) {
1913 add_uevent_var(env, "DEVNAME=%s", name);
1924 if (dev->type && dev->type->name)
1925 add_uevent_var(env, "DEVTYPE=%s", dev->type->name);
1931 add_uevent_var(env, "DRIVER=%s", driver->name);
1968 .name = dev_uevent_name,
2368 attr->attr.name);
2371 attr->attr.name);
2551 retval = kobject_add(&dir->kobj, parent_kobj, "%s", class->name);
2775 * dev_set_name - set a device name
2777 * @fmt: format string for the device's name
2898 * some day, we need to initialize the name. We prevent reading back
2899 * the name, and force the use of dev_name()
2931 /* we require the name to be set before, and pass NULL */
3252 * a name. This memory is returned in tmp and needs to be
3263 /* the device type may provide a specific name */
3269 /* the class may provide a specific name */
3275 /* return name without allocation, tmp == NULL */
3279 /* replace '!' in the name with '/' */
3385 * @name: name of the child device
3388 * returns a reference to a device that has the name @name.
3393 const char *name)
3403 if (sysfs_streq(dev_name(child), name) && get_device(child))
3534 * @name: root device name
3544 * any device which should appear under /sys/devices/{name}
3546 * The /sys/devices/{name} directory will also contain a
3554 struct device *__root_device_register(const char *name, struct module *owner)
3563 err = dev_set_name(&root->dev, "%s", name);
3666 * @fmt: string for the device's name
3705 * @fmt: string for the device's name
3765 * @new_name: the new name of the device
3781 * In the meantime, during renaming, your target name might be taken by another
3782 * driver, creating conflicts. Or the old name is taken directly after you
3792 * be allowed to some other name than eth[0-9]*, for the aforementioned
3795 * Make up a "real" name in the driver before you register anything, or add
3980 error = sysfs_file_change_owner(kobj, dev_attr_online.attr.name,
4023 error = sysfs_file_change_owner(kobj, dev_attr_uevent.attr.name, kuid,
4148 subsys = dev->class->name;
4150 subsys = dev->bus->name;
4396 int device_match_name(struct device *dev, const void *name)
4398 return sysfs_streq(dev_name(dev), name);