Lines Matching refs:kobj
324 rc = sysfs_add_file_to_group(&dev->kobj, in add_persist_attributes()
333 sysfs_remove_file_from_group(&dev->kobj, in remove_persist_attributes()
563 rc = sysfs_merge_group(&dev->kobj, &power_attr_group); in add_power_attributes()
565 rc = sysfs_merge_group(&dev->kobj, in add_power_attributes()
574 sysfs_unmerge_group(&dev->kobj, &usb2_hardware_lpm_attr_group); in remove_power_attributes()
575 sysfs_unmerge_group(&dev->kobj, &power_attr_group); in remove_power_attributes()
725 static umode_t dev_string_attrs_are_visible(struct kobject *kobj, in dev_string_attrs_are_visible() argument
728 struct device *dev = container_of(kobj, struct device, kobj); in dev_string_attrs_are_visible()
758 read_descriptors(struct file *filp, struct kobject *kobj, in read_descriptors() argument
762 struct device *dev = container_of(kobj, struct device, kobj); in read_descriptors()
953 static umode_t intf_assoc_attrs_are_visible(struct kobject *kobj, in intf_assoc_attrs_are_visible() argument
956 struct device *dev = container_of(kobj, struct device, kobj); in intf_assoc_attrs_are_visible()