Searched refs:classdev (Results 1 – 10 of 10) sorted by relevance
/Linux-v5.4/drivers/base/ |
D | attribute_container.c | 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() 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 …]
|
D | transport_class.c | 118 struct device *classdev) in transport_setup_classdev() argument 124 tclass->setup(tcont, dev, classdev); in transport_setup_classdev() 152 struct device *classdev) in transport_add_class_device() argument 154 int error = attribute_container_add_class_device(classdev); in transport_add_class_device() 159 error = sysfs_create_group(&classdev->kobj, tcont->statistics); in transport_add_class_device() 215 struct device *classdev) in transport_remove_classdev() argument 222 tclass->remove(tcont, dev, classdev); in transport_remove_classdev() 226 sysfs_remove_group(&classdev->kobj, tcont->statistics); in transport_remove_classdev() 227 attribute_container_class_device_del(classdev); in transport_remove_classdev() 254 struct device *classdev) in transport_destroy_classdev() argument [all …]
|
/Linux-v5.4/include/linux/ |
D | attribute_container.h | 60 int attribute_container_add_attrs(struct device *classdev); 61 int attribute_container_add_class_device(struct device *classdev); 64 struct device *classdev); 65 void attribute_container_remove_attrs(struct device *classdev); 66 void attribute_container_class_device_del(struct device *classdev); 69 struct device_attribute **attribute_container_classdev_to_attrs(const struct device *classdev);
|
/Linux-v5.4/drivers/net/ |
D | macvtap.c | 149 struct device *classdev; in macvtap_device_event() local 171 classdev = device_create(&macvtap_class, &dev->dev, devt, in macvtap_device_event() 173 if (IS_ERR(classdev)) { in macvtap_device_event() 175 return notifier_from_errno(PTR_ERR(classdev)); in macvtap_device_event() 177 err = sysfs_create_link(&dev->dev.kobj, &classdev->kobj, in macvtap_device_event()
|
/Linux-v5.4/drivers/net/ipvlan/ |
D | ipvtap.c | 142 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-v5.4/drivers/hwmon/ |
D | nsa320-hwmon.c | 162 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()
|
/Linux-v5.4/drivers/usb/mon/ |
D | usb_mon.h | 28 struct device *classdev; /* Device in usbmon class */ member
|
D | mon_bin.c | 1355 mbus->classdev = dev; in mon_bin_add() 1361 device_destroy(mon_bin_class, mbus->classdev->devt); in mon_bin_del()
|
/Linux-v5.4/Documentation/leds/ |
D | leds-class.rst | 138 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
|
/Linux-v5.4/include/linux/mfd/wm8350/ |
D | core.h | 590 struct device *classdev; member
|