Home
last modified time | relevance | path

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

/linux-6.6.21/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
159 int error = attribute_container_add_class_device(classdev); in transport_add_class_device()
167 error = sysfs_create_group(&classdev->kobj, tcont->statistics); in transport_add_class_device()
175 attribute_container_class_device_del(classdev); in transport_add_class_device()
178 tclass->remove(tcont, dev, classdev); in transport_add_class_device()
235 struct device *classdev) in transport_remove_classdev() argument
242 tclass->remove(tcont, dev, classdev); in transport_remove_classdev()
[all …]
/linux-6.6.21/drivers/platform/x86/intel/int3472/
Dled.c13 container_of(led_cdev, struct int3472_discrete_device, pled.classdev); in int3472_pled_set()
25 if (int3472->pled.classdev.dev) in skl_int3472_register_pled()
47 int3472->pled.classdev.name = int3472->pled.name; in skl_int3472_register_pled()
48 int3472->pled.classdev.max_brightness = 1; in skl_int3472_register_pled()
49 int3472->pled.classdev.brightness_set_blocking = int3472_pled_set; in skl_int3472_register_pled()
51 ret = led_classdev_register(int3472->dev, &int3472->pled.classdev); in skl_int3472_register_pled()
69 if (IS_ERR_OR_NULL(int3472->pled.classdev.dev)) in skl_int3472_unregister_pled()
73 led_classdev_unregister(&int3472->pled.classdev); in skl_int3472_unregister_pled()
Dcommon.h101 struct led_classdev classdev; member
/linux-6.6.21/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.6.21/drivers/net/ipvlan/
Dipvtap.c141 struct device *classdev; in ipvtap_device_event() local
163 classdev = device_create(&ipvtap_class, &dev->dev, devt, in ipvtap_device_event()
165 if (IS_ERR(classdev)) { in ipvtap_device_event()
167 return notifier_from_errno(PTR_ERR(classdev)); in ipvtap_device_event()
169 err = sysfs_create_link(&dev->dev.kobj, &classdev->kobj, in ipvtap_device_event()
/linux-6.6.21/drivers/net/
Dmacvtap.c154 struct device *classdev; in macvtap_device_event() local
176 classdev = device_create(&macvtap_class, &dev->dev, devt, in macvtap_device_event()
178 if (IS_ERR(classdev)) { in macvtap_device_event()
180 return notifier_from_errno(PTR_ERR(classdev)); in macvtap_device_event()
182 err = sysfs_create_link(&dev->dev.kobj, &classdev->kobj, in macvtap_device_event()
/linux-6.6.21/drivers/hwmon/
Dnsa320-hwmon.c160 struct device *classdev; in nsa320_hwmon_probe() local
181 classdev = devm_hwmon_device_register_with_groups(&pdev->dev, in nsa320_hwmon_probe()
184 return PTR_ERR_OR_ZERO(classdev); in nsa320_hwmon_probe()
/linux-6.6.21/drivers/usb/mon/
Dusb_mon.h28 struct device *classdev; /* Device in usbmon class */ member
Dmon_bin.c1377 mbus->classdev = dev; in mon_bin_add()
1383 device_destroy(&mon_bin_class, mbus->classdev->devt); in mon_bin_del()
/linux-6.6.21/include/linux/mfd/wm8350/
Dcore.h590 struct device *classdev; member
/linux-6.6.21/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