Home
last modified time | relevance | path

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

/linux/drivers/base/
H A 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()
110 static void attribute_container_release(struct device *classdev) in attribute_container_release() argument
113 = container_of(classdev, struct internal_container, classdev); in attribute_container_release()
114 struct device *dev = classdev->parent; in attribute_container_release()
163 device_initialize(&ic->classdev); in attribute_container_add_device()
164 ic->classdev.parent = get_device(dev); in attribute_container_add_device()
[all …]
/linux/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()
/linux/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()
/linux/drivers/hwmon/
H A Dnsa320-hwmon.c161 struct device *classdev; in nsa320_hwmon_probe()
182 classdev = devm_hwmon_device_register_with_groups(&pdev->dev, in nsa320_hwmon_probe()
185 return PTR_ERR_OR_ZERO(classdev); in nsa320_hwmon_probe()
160 struct device *classdev; nsa320_hwmon_probe() local
/linux/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()
/linux/include/linux/platform_data/x86/
H A Dint3472.h128 struct led_classdev classdev; member
/linux/Documentation/leds/
H A Dleds-class.rst201 A driver wanting to register a LED classdev for use by other drivers /
210 led_classdev_notify_brightness_hw_changed on a classdev not registered with