Home
last modified time | relevance | path

Searched refs:classdev (Results 1 - 20 of 20) sorted by relevance

/kernel/linux/linux-5.10/drivers/base/
H A Dattribute_container.c23 /* This is a private structure used to tie the classdev and the
28 struct device classdev; member
35 get_device(&ic->classdev); in internal_container_klist_get()
42 put_device(&ic->classdev); in internal_container_klist_put()
47 * attribute_container_classdev_to_container - given a classdev, return the container
49 * @classdev: the class device created by attribute_container_add_device.
51 * Returns the container associated with this classdev.
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 attribute_container_release(struct device *classdev) attribute_container_release() argument
417 attribute_container_add_attrs(struct device *classdev) attribute_container_add_attrs() argument
452 attribute_container_add_class_device(struct device *classdev) attribute_container_add_class_device() argument
468 attribute_container_add_class_device_adapter(struct attribute_container *cont, struct device *dev, struct device *classdev) attribute_container_add_class_device_adapter() argument
482 attribute_container_remove_attrs(struct device *classdev) attribute_container_remove_attrs() argument
510 attribute_container_class_device_del(struct device *classdev) attribute_container_class_device_del() argument
[all...]
H A Dtransport_class.c35 struct device *classdev);
122 struct device *classdev) in transport_setup_classdev()
128 tclass->setup(tcont, dev, classdev); in transport_setup_classdev()
156 struct device *classdev) in transport_add_class_device()
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()
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()
120 transport_setup_classdev(struct attribute_container *cont, struct device *dev, struct device *classdev) transport_setup_classdev() argument
154 transport_add_class_device(struct attribute_container *cont, struct device *dev, struct device *classdev) transport_add_class_device() argument
218 transport_remove_classdev(struct attribute_container *cont, struct device *dev, struct device *classdev) transport_remove_classdev() argument
257 transport_destroy_classdev(struct attribute_container *cont, struct device *dev, struct device *classdev) transport_destroy_classdev() argument
[all...]
/kernel/linux/linux-6.6/drivers/base/
H A Dattribute_container.c23 /* This is a private structure used to tie the classdev and the
28 struct device classdev; member
35 get_device(&ic->classdev); in internal_container_klist_get()
42 put_device(&ic->classdev); in internal_container_klist_put()
47 * attribute_container_classdev_to_container - given a classdev, return the container
49 * @classdev: the class device created by attribute_container_add_device.
51 * Returns the container associated with this classdev.
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 attribute_container_release(struct device *classdev) attribute_container_release() argument
417 attribute_container_add_attrs(struct device *classdev) attribute_container_add_attrs() argument
452 attribute_container_add_class_device(struct device *classdev) attribute_container_add_class_device() argument
472 attribute_container_add_class_device_adapter(struct attribute_container *cont, struct device *dev, struct device *classdev) attribute_container_add_class_device_adapter() argument
486 attribute_container_remove_attrs(struct device *classdev) attribute_container_remove_attrs() argument
514 attribute_container_class_device_del(struct device *classdev) attribute_container_class_device_del() argument
[all...]
H A Dtransport_class.c35 struct device *classdev);
122 struct device *classdev) in transport_setup_classdev()
128 tclass->setup(tcont, dev, classdev); in transport_setup_classdev()
156 struct device *classdev) in transport_add_class_device()
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()
242 tclass->remove(tcont, dev, classdev); in transport_remove_classdev()
120 transport_setup_classdev(struct attribute_container *cont, struct device *dev, struct device *classdev) transport_setup_classdev() argument
154 transport_add_class_device(struct attribute_container *cont, struct device *dev, struct device *classdev) transport_add_class_device() argument
233 transport_remove_classdev(struct attribute_container *cont, struct device *dev, struct device *classdev) transport_remove_classdev() argument
272 transport_destroy_classdev(struct attribute_container *cont, struct device *dev, struct device *classdev) transport_destroy_classdev() argument
[all...]
/kernel/linux/linux-6.6/drivers/platform/x86/intel/int3472/
H A 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()
H A Dcommon.h101 struct led_classdev classdev; member
/kernel/linux/linux-5.10/include/linux/
H A 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);
/kernel/linux/linux-6.6/include/linux/
H A 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);
/kernel/linux/linux-5.10/drivers/net/
H A 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()
/kernel/linux/linux-5.10/drivers/net/ipvlan/
H A 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()
/kernel/linux/linux-6.6/drivers/net/
H A 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()
/kernel/linux/linux-6.6/drivers/net/ipvlan/
H A 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()
/kernel/linux/linux-5.10/drivers/hwmon/
H A 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()
/kernel/linux/linux-6.6/drivers/hwmon/
H A 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()
/kernel/linux/linux-5.10/drivers/usb/mon/
H A Dusb_mon.h28 struct device *classdev; /* Device in usbmon class */ member
H A Dmon_bin.c1375 mbus->classdev = dev; in mon_bin_add()
1381 device_destroy(mon_bin_class, mbus->classdev->devt); in mon_bin_del()
/kernel/linux/linux-6.6/drivers/usb/mon/
H A Dusb_mon.h28 struct device *classdev; /* Device in usbmon class */ member
H A Dmon_bin.c1377 mbus->classdev = dev; in mon_bin_add()
1383 device_destroy(&mon_bin_class, mbus->classdev->devt); in mon_bin_del()
/kernel/linux/linux-5.10/include/linux/mfd/wm8350/
H A Dcore.h590 struct device *classdev; member
/kernel/linux/linux-6.6/include/linux/mfd/wm8350/
H A Dcore.h590 struct device *classdev; member

Completed in 13 milliseconds