Home
last modified time | relevance | path

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

/linux-6.1.9/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.c35 struct device *classdev);
122 struct device *classdev) in transport_setup_classdev() argument
128 tclass->setup(tcont, dev, classdev); in transport_setup_classdev()
156 struct device *classdev) in transport_add_class_device() argument
158 int error = attribute_container_add_class_device(classdev); in transport_add_class_device()
163 error = sysfs_create_group(&classdev->kobj, tcont->statistics); in transport_add_class_device()
220 struct device *classdev) in transport_remove_classdev() argument
227 tclass->remove(tcont, dev, classdev); in transport_remove_classdev()
231 sysfs_remove_group(&classdev->kobj, tcont->statistics); in transport_remove_classdev()
232 attribute_container_class_device_del(classdev); in transport_remove_classdev()
[all …]
/linux-6.1.9/include/linux/
Dattribute_container.h67 int attribute_container_add_attrs(struct device *classdev);
68 int attribute_container_add_class_device(struct device *classdev);
71 struct device *classdev);
72 void attribute_container_remove_attrs(struct device *classdev);
73 void attribute_container_class_device_del(struct device *classdev);
76 struct device_attribute **attribute_container_classdev_to_attrs(const struct device *classdev);
/linux-6.1.9/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-6.1.9/drivers/net/
Dmacvtap.c155 struct device *classdev; in macvtap_device_event() local
177 classdev = device_create(&macvtap_class, &dev->dev, devt, in macvtap_device_event()
179 if (IS_ERR(classdev)) { in macvtap_device_event()
181 return notifier_from_errno(PTR_ERR(classdev)); in macvtap_device_event()
183 err = sysfs_create_link(&dev->dev.kobj, &classdev->kobj, in macvtap_device_event()
/linux-6.1.9/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-6.1.9/drivers/usb/mon/
Dusb_mon.h28 struct device *classdev; /* Device in usbmon class */ member
Dmon_bin.c1370 mbus->classdev = dev; in mon_bin_add()
1376 device_destroy(mon_bin_class, mbus->classdev->devt); in mon_bin_del()
/linux-6.1.9/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-6.1.9/include/linux/mfd/wm8350/
Dcore.h590 struct device *classdev; member