Lines Matching defs:groups

2731 int device_add_groups(struct device *dev, const struct attribute_group **groups)
2733 return sysfs_create_groups(&dev->kobj, groups);
2738 const struct attribute_group **groups)
2740 sysfs_remove_groups(&dev->kobj, groups);
2746 const struct attribute_group **groups;
2761 const struct attribute_group **groups = devres->groups;
2763 dev_dbg(dev, "%s: removing groups %p\n", __func__, groups);
2764 sysfs_remove_groups(&dev->kobj, groups);
2800 * devm_device_add_groups - create a bunch of managed attribute groups
2802 * @groups: The attribute groups to create, NULL terminated
2804 * This function creates a bunch of managed attribute groups. If an error
2805 * occurs when creating a group, all previously created groups will be
2813 const struct attribute_group **groups)
2823 error = sysfs_create_groups(&dev->kobj, groups);
2829 devres->groups = groups;
2848 error = device_add_groups(dev, type->groups);
2853 error = device_add_groups(dev, dev->groups);
2891 device_remove_groups(dev, dev->groups);
2894 device_remove_groups(dev, type->groups);
2915 device_remove_groups(dev, dev->groups);
2918 device_remove_groups(dev, type->groups);
4291 const struct attribute_group **groups,
4310 dev->groups = groups;
4370 * @groups: NULL-terminated list of attribute groups to be created
4375 * Additional attributes specified in the groups parameter will also
4391 const struct attribute_group **groups,
4398 dev = device_create_groups_vargs(class, parent, devt, drvdata, groups,
4619 * Change the device groups of the device class for @dev to
4630 * Change the device groups of the device type for @dev to
4633 error = sysfs_groups_change_owner(kobj, type->groups, kuid,
4639 /* Change the device groups of @dev to @kuid/@kgid. */
4640 error = sysfs_groups_change_owner(kobj, dev->groups, kuid, kgid);
4678 * Change the kobject and the default attributes and groups of the
4696 * Change the device groups, the device groups associated with the
4697 * device class, and the groups associated with the device type of @dev