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()
611 rc = sysfs_merge_group(&dev->kobj, &power_attr_group); in add_power_attributes()
613 rc = sysfs_merge_group(&dev->kobj, in add_power_attributes()
617 rc = sysfs_merge_group(&dev->kobj, in add_power_attributes()
626 sysfs_unmerge_group(&dev->kobj, &usb2_hardware_lpm_attr_group); in remove_power_attributes()
627 sysfs_unmerge_group(&dev->kobj, &power_attr_group); in remove_power_attributes()
777 static umode_t dev_string_attrs_are_visible(struct kobject *kobj, in dev_string_attrs_are_visible() argument
780 struct device *dev = container_of(kobj, struct device, kobj); in dev_string_attrs_are_visible()
810 read_descriptors(struct file *filp, struct kobject *kobj, in read_descriptors() argument
814 struct device *dev = container_of(kobj, struct device, kobj); in read_descriptors()
1041 static umode_t intf_assoc_attrs_are_visible(struct kobject *kobj, in intf_assoc_attrs_are_visible() argument
1044 struct device *dev = container_of(kobj, struct device, kobj); in intf_assoc_attrs_are_visible()