Lines Matching refs:name

541 	.name = "devlink",
2325 * dev_driver_string - Return a device's driver name, if at all possible
2326 * @dev: struct device to get the name of
2328 * Will return the device's driver's name if it is bound to a device. If
2329 * the device is not bound to a driver, it will return the name of the bus
2342 return drv ? drv->name : dev_bus_name(dev);
2544 return dev->bus->name;
2546 return dev->class->name;
2558 const char *name;
2565 name = device_get_devnode(dev, &mode, &uid, &gid, &tmp);
2566 if (name) {
2567 add_uevent_var(env, "DEVNAME=%s", name);
2578 if (dev->type && dev->type->name)
2579 add_uevent_var(env, "DEVTYPE=%s", dev->type->name);
2582 add_uevent_var(env, "DRIVER=%s", dev->driver->name);
2618 .name = dev_uevent_name,
2993 attr->attr.name);
2996 attr->attr.name);
3174 retval = kobject_add(&dir->kobj, parent_kobj, "%s", sp->class->name);
3424 * dev_set_name - set a device name
3426 * @fmt: format string for the device's name
3534 * some day, we need to initialize the name. We prevent reading back
3535 * the name, and force the use of dev_name()
3568 /* we require the name to be set before, and pass NULL */
3902 * a name. This memory is returned in tmp and needs to be
3913 /* the device type may provide a specific name */
3919 /* the class may provide a specific name */
3925 /* return name without allocation, tmp == NULL */
3929 /* replace '!' in the name with '/' */
4034 * @name: name of the child device
4037 * returns a reference to a device that has the name @name.
4042 const char *name)
4052 if (sysfs_streq(dev_name(child), name) && get_device(child))
4203 * @name: root device name
4213 * any device which should appear under /sys/devices/{name}
4215 * The /sys/devices/{name} directory will also contain a
4223 struct device *__root_device_register(const char *name, struct module *owner)
4232 err = dev_set_name(&root->dev, "%s", name);
4335 * @fmt: string for the device's name
4371 * @fmt: string for the device's name
4428 * @new_name: the new name of the device
4447 * In the meantime, during renaming, your target name might be taken by another
4448 * driver, creating conflicts. Or the old name is taken directly after you
4454 * Make up a "real" name in the driver before you register anything, or add
4646 error = sysfs_file_change_owner(kobj, dev_attr_online.attr.name,
4690 error = sysfs_file_change_owner(kobj, dev_attr_uevent.attr.name, kuid,
4813 subsys = dev->class->name;
4815 subsys = dev->bus->name;
5077 int device_match_name(struct device *dev, const void *name)
5079 return sysfs_streq(dev_name(dev), name);