Searched refs:classdev (Results 1 – 7 of 7) sorted by relevance
/drivers/base/ |
D | attribute_container.c | 30 struct device classdev; member 37 get_device(&ic->classdev); in internal_container_klist_get() 44 put_device(&ic->classdev); in internal_container_klist_put() 56 attribute_container_classdev_to_container(struct device *classdev) in attribute_container_classdev_to_container() argument 59 container_of(classdev, struct internal_container, classdev); in attribute_container_classdev_to_container() 113 static void attribute_container_release(struct device *classdev) in attribute_container_release() argument 116 = container_of(classdev, struct internal_container, classdev); in attribute_container_release() 117 struct device *dev = classdev->parent; in attribute_container_release() 166 device_initialize(&ic->classdev); in attribute_container_add_device() 167 ic->classdev.parent = get_device(dev); in attribute_container_add_device() [all …]
|
D | transport_class.c | 119 struct device *classdev) in transport_setup_classdev() argument 125 tclass->setup(tcont, dev, classdev); in transport_setup_classdev() 153 struct device *classdev) in transport_add_class_device() argument 155 int error = attribute_container_add_class_device(classdev); in transport_add_class_device() 160 error = sysfs_create_group(&classdev->kobj, tcont->statistics); in transport_add_class_device() 216 struct device *classdev) in transport_remove_classdev() argument 223 tclass->remove(tcont, dev, classdev); in transport_remove_classdev() 227 sysfs_remove_group(&classdev->kobj, tcont->statistics); in transport_remove_classdev() 228 attribute_container_class_device_del(classdev); in transport_remove_classdev() 255 struct device *classdev) in transport_destroy_classdev() argument [all …]
|
/drivers/hwmon/ |
D | wm8350-hwmon.c | 103 wm8350->hwmon.classdev = hwmon_device_register(&pdev->dev); in wm8350_hwmon_probe() 104 if (IS_ERR(wm8350->hwmon.classdev)) { in wm8350_hwmon_probe() 105 ret = PTR_ERR(wm8350->hwmon.classdev); in wm8350_hwmon_probe() 121 hwmon_device_unregister(wm8350->hwmon.classdev); in wm8350_hwmon_remove()
|
D | wm831x-hwmon.c | 34 struct device *classdev; member 177 hwmon->classdev = hwmon_device_register(&pdev->dev); in wm831x_hwmon_probe() 178 if (IS_ERR(hwmon->classdev)) { in wm831x_hwmon_probe() 179 ret = PTR_ERR(hwmon->classdev); in wm831x_hwmon_probe() 196 hwmon_device_unregister(hwmon->classdev); in wm831x_hwmon_remove()
|
/drivers/usb/mon/ |
D | usb_mon.h | 27 struct device *classdev; /* Device in usbmon class */ member
|
D | mon_bin.c | 1344 mbus->classdev = dev; in mon_bin_add() 1350 device_destroy(mon_bin_class, mbus->classdev->devt); in mon_bin_del()
|
/drivers/net/ |
D | macvtap.c | 1060 struct device *classdev; in macvtap_device_event() local 1080 classdev = device_create(macvtap_class, &dev->dev, devt, in macvtap_device_event() 1082 if (IS_ERR(classdev)) { in macvtap_device_event() 1084 return notifier_from_errno(PTR_ERR(classdev)); in macvtap_device_event()
|