classdev 28 drivers/base/attribute_container.c struct device classdev; classdev 35 drivers/base/attribute_container.c get_device(&ic->classdev); classdev 42 drivers/base/attribute_container.c put_device(&ic->classdev); classdev 54 drivers/base/attribute_container.c attribute_container_classdev_to_container(struct device *classdev) classdev 57 drivers/base/attribute_container.c container_of(classdev, struct internal_container, classdev); classdev 112 drivers/base/attribute_container.c static void attribute_container_release(struct device *classdev) classdev 115 drivers/base/attribute_container.c = container_of(classdev, struct internal_container, classdev); classdev 116 drivers/base/attribute_container.c struct device *dev = classdev->parent; classdev 165 drivers/base/attribute_container.c device_initialize(&ic->classdev); classdev 166 drivers/base/attribute_container.c ic->classdev.parent = get_device(dev); classdev 167 drivers/base/attribute_container.c ic->classdev.class = cont->class; classdev 169 drivers/base/attribute_container.c dev_set_name(&ic->classdev, "%s", dev_name(dev)); classdev 171 drivers/base/attribute_container.c fn(cont, dev, &ic->classdev); classdev 173 drivers/base/attribute_container.c attribute_container_add_class_device(&ic->classdev); classdev 225 drivers/base/attribute_container.c if (dev != ic->classdev.parent) classdev 229 drivers/base/attribute_container.c fn(cont, dev, &ic->classdev); classdev 231 drivers/base/attribute_container.c attribute_container_remove_attrs(&ic->classdev); classdev 232 drivers/base/attribute_container.c device_unregister(&ic->classdev); classdev 271 drivers/base/attribute_container.c if (dev == ic->classdev.parent) classdev 272 drivers/base/attribute_container.c fn(cont, dev, &ic->classdev); classdev 314 drivers/base/attribute_container.c attribute_container_add_attrs(struct device *classdev) classdev 317 drivers/base/attribute_container.c attribute_container_classdev_to_container(classdev); classdev 327 drivers/base/attribute_container.c return sysfs_create_group(&classdev->kobj, cont->grp); classdev 331 drivers/base/attribute_container.c error = device_create_file(classdev, attrs[i]); classdev 349 drivers/base/attribute_container.c attribute_container_add_class_device(struct device *classdev) classdev 351 drivers/base/attribute_container.c int error = device_add(classdev); classdev 355 drivers/base/attribute_container.c return attribute_container_add_attrs(classdev); classdev 367 drivers/base/attribute_container.c struct device *classdev) classdev 369 drivers/base/attribute_container.c return attribute_container_add_class_device(classdev); classdev 379 drivers/base/attribute_container.c attribute_container_remove_attrs(struct device *classdev) classdev 382 drivers/base/attribute_container.c attribute_container_classdev_to_container(classdev); classdev 390 drivers/base/attribute_container.c sysfs_remove_group(&classdev->kobj, cont->grp); classdev 395 drivers/base/attribute_container.c device_remove_file(classdev, attrs[i]); classdev 407 drivers/base/attribute_container.c attribute_container_class_device_del(struct device *classdev) classdev 409 drivers/base/attribute_container.c attribute_container_remove_attrs(classdev); classdev 410 drivers/base/attribute_container.c device_del(classdev); classdev 431 drivers/base/attribute_container.c if (ic->classdev.parent == dev) { classdev 432 drivers/base/attribute_container.c cdev = &ic->classdev; classdev 118 drivers/base/transport_class.c struct device *classdev) classdev 124 drivers/base/transport_class.c tclass->setup(tcont, dev, classdev); classdev 152 drivers/base/transport_class.c struct device *classdev) classdev 154 drivers/base/transport_class.c int error = attribute_container_add_class_device(classdev); classdev 159 drivers/base/transport_class.c error = sysfs_create_group(&classdev->kobj, tcont->statistics); classdev 215 drivers/base/transport_class.c struct device *classdev) classdev 222 drivers/base/transport_class.c tclass->remove(tcont, dev, classdev); classdev 226 drivers/base/transport_class.c sysfs_remove_group(&classdev->kobj, tcont->statistics); classdev 227 drivers/base/transport_class.c attribute_container_class_device_del(classdev); classdev 254 drivers/base/transport_class.c struct device *classdev) classdev 259 drivers/base/transport_class.c put_device(classdev); classdev 162 drivers/hwmon/nsa320-hwmon.c struct device *classdev; classdev 183 drivers/hwmon/nsa320-hwmon.c classdev = devm_hwmon_device_register_with_groups(&pdev->dev, classdev 186 drivers/hwmon/nsa320-hwmon.c return PTR_ERR_OR_ZERO(classdev); classdev 142 drivers/net/ipvlan/ipvtap.c struct device *classdev; classdev 164 drivers/net/ipvlan/ipvtap.c classdev = device_create(&ipvtap_class, &dev->dev, devt, classdev 166 drivers/net/ipvlan/ipvtap.c if (IS_ERR(classdev)) { classdev 168 drivers/net/ipvlan/ipvtap.c return notifier_from_errno(PTR_ERR(classdev)); classdev 170 drivers/net/ipvlan/ipvtap.c err = sysfs_create_link(&dev->dev.kobj, &classdev->kobj, classdev 149 drivers/net/macvtap.c struct device *classdev; classdev 171 drivers/net/macvtap.c classdev = device_create(&macvtap_class, &dev->dev, devt, classdev 173 drivers/net/macvtap.c if (IS_ERR(classdev)) { classdev 175 drivers/net/macvtap.c return notifier_from_errno(PTR_ERR(classdev)); classdev 177 drivers/net/macvtap.c err = sysfs_create_link(&dev->dev.kobj, &classdev->kobj, classdev 1365 drivers/usb/mon/mon_bin.c mbus->classdev = dev; classdev 1371 drivers/usb/mon/mon_bin.c device_destroy(mon_bin_class, mbus->classdev->devt); classdev 28 drivers/usb/mon/usb_mon.h struct device *classdev; /* Device in usbmon class */ classdev 60 include/linux/attribute_container.h int attribute_container_add_attrs(struct device *classdev); classdev 61 include/linux/attribute_container.h int attribute_container_add_class_device(struct device *classdev); classdev 64 include/linux/attribute_container.h struct device *classdev); classdev 65 include/linux/attribute_container.h void attribute_container_remove_attrs(struct device *classdev); classdev 66 include/linux/attribute_container.h void attribute_container_class_device_del(struct device *classdev); classdev 69 include/linux/attribute_container.h struct device_attribute **attribute_container_classdev_to_attrs(const struct device *classdev); classdev 590 include/linux/mfd/wm8350/core.h struct device *classdev;