Lines Matching defs:name

558 	.name = "devlink",
2414 * dev_driver_string - Return a device's driver name, if at all possible
2415 * @dev: struct device to get the name of
2417 * Will return the device's driver's name if it is bound to a device. If
2418 * the device is not bound to a driver, it will return the name of the bus
2431 return drv ? drv->name : dev_bus_name(dev);
2633 return dev->bus->name;
2635 return dev->class->name;
2647 const char *name;
2654 name = device_get_devnode(dev, &mode, &uid, &gid, &tmp);
2655 if (name) {
2656 add_uevent_var(env, "DEVNAME=%s", name);
2667 if (dev->type && dev->type->name)
2668 add_uevent_var(env, "DEVTYPE=%s", dev->type->name);
2671 add_uevent_var(env, "DRIVER=%s", dev->driver->name);
2707 .name = dev_uevent_name,
3082 attr->attr.name);
3085 attr->attr.name);
3263 retval = kobject_add(&dir->kobj, parent_kobj, "%s", sp->class->name);
3513 * dev_set_name - set a device name
3515 * @fmt: format string for the device's name
3623 * some day, we need to initialize the name. We prevent reading back
3624 * the name, and force the use of dev_name()
3657 /* we require the name to be set before, and pass NULL */
3991 * a name. This memory is returned in tmp and needs to be
4002 /* the device type may provide a specific name */
4008 /* the class may provide a specific name */
4014 /* return name without allocation, tmp == NULL */
4018 /* replace '!' in the name with '/' */
4123 * @name: name of the child device
4126 * returns a reference to a device that has the name @name.
4131 const char *name)
4141 if (sysfs_streq(dev_name(child), name) && get_device(child))
4297 * @name: root device name
4307 * any device which should appear under /sys/devices/{name}
4309 * The /sys/devices/{name} directory will also contain a
4317 struct device *__root_device_register(const char *name, struct module *owner)
4326 err = dev_set_name(&root->dev, "%s", name);
4429 * @fmt: string for the device's name
4465 * @fmt: string for the device's name
4522 * @new_name: the new name of the device
4541 * In the meantime, during renaming, your target name might be taken by another
4542 * driver, creating conflicts. Or the old name is taken directly after you
4548 * Make up a "real" name in the driver before you register anything, or add
4740 error = sysfs_file_change_owner(kobj, dev_attr_online.attr.name,
4784 error = sysfs_file_change_owner(kobj, dev_attr_uevent.attr.name, kuid,
4907 subsys = dev->class->name;
4909 subsys = dev->bus->name;
5172 int device_match_name(struct device *dev, const void *name)
5174 return sysfs_streq(dev_name(dev), name);