Home
last modified time | relevance | path

Searched refs:classdev (Results 1 – 10 of 10) sorted by relevance

/Linux-v5.4/drivers/base/
Dattribute_container.c28 struct device classdev; member
35 get_device(&ic->classdev); in internal_container_klist_get()
42 put_device(&ic->classdev); in internal_container_klist_put()
54 attribute_container_classdev_to_container(struct device *classdev) in attribute_container_classdev_to_container() argument
57 container_of(classdev, struct internal_container, classdev); in attribute_container_classdev_to_container()
112 static void attribute_container_release(struct device *classdev) in attribute_container_release() argument
115 = container_of(classdev, struct internal_container, classdev); in attribute_container_release()
116 struct device *dev = classdev->parent; in attribute_container_release()
165 device_initialize(&ic->classdev); in attribute_container_add_device()
166 ic->classdev.parent = get_device(dev); in attribute_container_add_device()
[all …]
Dtransport_class.c118 struct device *classdev) in transport_setup_classdev() argument
124 tclass->setup(tcont, dev, classdev); in transport_setup_classdev()
152 struct device *classdev) in transport_add_class_device() argument
154 int error = attribute_container_add_class_device(classdev); in transport_add_class_device()
159 error = sysfs_create_group(&classdev->kobj, tcont->statistics); in transport_add_class_device()
215 struct device *classdev) in transport_remove_classdev() argument
222 tclass->remove(tcont, dev, classdev); in transport_remove_classdev()
226 sysfs_remove_group(&classdev->kobj, tcont->statistics); in transport_remove_classdev()
227 attribute_container_class_device_del(classdev); in transport_remove_classdev()
254 struct device *classdev) in transport_destroy_classdev() argument
[all …]
/Linux-v5.4/include/linux/
Dattribute_container.h60 int attribute_container_add_attrs(struct device *classdev);
61 int attribute_container_add_class_device(struct device *classdev);
64 struct device *classdev);
65 void attribute_container_remove_attrs(struct device *classdev);
66 void attribute_container_class_device_del(struct device *classdev);
69 struct device_attribute **attribute_container_classdev_to_attrs(const struct device *classdev);
/Linux-v5.4/drivers/net/
Dmacvtap.c149 struct device *classdev; in macvtap_device_event() local
171 classdev = device_create(&macvtap_class, &dev->dev, devt, in macvtap_device_event()
173 if (IS_ERR(classdev)) { in macvtap_device_event()
175 return notifier_from_errno(PTR_ERR(classdev)); in macvtap_device_event()
177 err = sysfs_create_link(&dev->dev.kobj, &classdev->kobj, in macvtap_device_event()
/Linux-v5.4/drivers/net/ipvlan/
Dipvtap.c142 struct device *classdev; in ipvtap_device_event() local
164 classdev = device_create(&ipvtap_class, &dev->dev, devt, in ipvtap_device_event()
166 if (IS_ERR(classdev)) { in ipvtap_device_event()
168 return notifier_from_errno(PTR_ERR(classdev)); in ipvtap_device_event()
170 err = sysfs_create_link(&dev->dev.kobj, &classdev->kobj, in ipvtap_device_event()
/Linux-v5.4/drivers/hwmon/
Dnsa320-hwmon.c162 struct device *classdev; in nsa320_hwmon_probe() local
183 classdev = devm_hwmon_device_register_with_groups(&pdev->dev, in nsa320_hwmon_probe()
186 return PTR_ERR_OR_ZERO(classdev); in nsa320_hwmon_probe()
/Linux-v5.4/drivers/usb/mon/
Dusb_mon.h28 struct device *classdev; /* Device in usbmon class */ member
Dmon_bin.c1355 mbus->classdev = dev; in mon_bin_add()
1361 device_destroy(mon_bin_class, mbus->classdev->devt); in mon_bin_del()
/Linux-v5.4/Documentation/leds/
Dleds-class.rst138 A driver wanting to register a LED classdev for use by other drivers /
147 led_classdev_notify_brightness_hw_changed on a classdev not registered with
/Linux-v5.4/include/linux/mfd/wm8350/
Dcore.h590 struct device *classdev; member