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

/linux-master/drivers/base/
H A Dattribute_container.c23 /* This is a private structure used to tie the classdev and the
28 struct device classdev; member in struct:internal_container
35 get_device(&ic->classdev);
42 put_device(&ic->classdev);
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) argument
57 container_of(classdev, struct internal_container, classdev);
112 attribute_container_release(struct device *classdev) argument
417 attribute_container_add_attrs(struct device *classdev) argument
452 attribute_container_add_class_device(struct device *classdev) argument
472 attribute_container_add_class_device_adapter(struct attribute_container *cont, struct device *dev, struct device *classdev) argument
486 attribute_container_remove_attrs(struct device *classdev) argument
514 attribute_container_class_device_del(struct device *classdev) argument
[all...]
H A Dtransport_class.c35 struct device *classdev);
122 struct device *classdev)
128 tclass->setup(tcont, dev, classdev);
156 struct device *classdev)
159 int error = attribute_container_add_class_device(classdev);
167 error = sysfs_create_group(&classdev->kobj, tcont->statistics);
175 attribute_container_class_device_del(classdev);
178 tclass->remove(tcont, dev, classdev);
235 struct device *classdev)
242 tclass->remove(tcont, dev, classdev);
120 transport_setup_classdev(struct attribute_container *cont, struct device *dev, struct device *classdev) argument
154 transport_add_class_device(struct attribute_container *cont, struct device *dev, struct device *classdev) argument
233 transport_remove_classdev(struct attribute_container *cont, struct device *dev, struct device *classdev) argument
272 transport_destroy_classdev(struct attribute_container *cont, struct device *dev, struct device *classdev) argument
[all...]
/linux-master/drivers/platform/x86/intel/int3472/
H A Dled.c13 container_of(led_cdev, struct int3472_discrete_device, pled.classdev);
24 if (int3472->pled.classdev.dev)
36 int3472->pled.classdev.name = int3472->pled.name;
37 int3472->pled.classdev.max_brightness = 1;
38 int3472->pled.classdev.brightness_set_blocking = int3472_pled_set;
40 ret = led_classdev_register(int3472->dev, &int3472->pled.classdev);
54 if (IS_ERR_OR_NULL(int3472->pled.classdev.dev))
58 led_classdev_unregister(&int3472->pled.classdev);
H A Dcommon.h101 struct led_classdev classdev; member in struct:int3472_discrete_device::int3472_pled
/linux-master/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);
/linux-master/drivers/net/
H A Dmacvtap.c154 struct device *classdev; local
176 classdev = device_create(&macvtap_class, &dev->dev, devt,
178 if (IS_ERR(classdev)) {
180 return notifier_from_errno(PTR_ERR(classdev));
182 err = sysfs_create_link(&dev->dev.kobj, &classdev->kobj,
/linux-master/drivers/net/ipvlan/
H A Dipvtap.c141 struct device *classdev; local
163 classdev = device_create(&ipvtap_class, &dev->dev, devt,
165 if (IS_ERR(classdev)) {
167 return notifier_from_errno(PTR_ERR(classdev));
169 err = sysfs_create_link(&dev->dev.kobj, &classdev->kobj,
/linux-master/drivers/hwmon/
H A Dnsa320-hwmon.c160 struct device *classdev; local
181 classdev = devm_hwmon_device_register_with_groups(&pdev->dev,
184 return PTR_ERR_OR_ZERO(classdev);
/linux-master/drivers/usb/mon/
H A Dusb_mon.h28 struct device *classdev; /* Device in usbmon class */ member in struct:mon_bus
H A Dmon_bin.c1377 mbus->classdev = dev;
1383 device_destroy(&mon_bin_class, mbus->classdev->devt);
/linux-master/include/linux/mfd/wm8350/
H A Dcore.h590 struct device *classdev; member in struct:wm8350_hwmon

Completed in 180 milliseconds