/drivers/gpu/drm/i915/gt/ |
D | sysfs_engines.c | 19 static struct intel_engine_cs *kobj_to_engine(struct kobject *kobj) in kobj_to_engine() argument 21 return container_of(kobj, struct kobj_engine, base)->engine; in kobj_to_engine() 25 name_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in name_show() argument 27 return sysfs_emit(buf, "%s\n", kobj_to_engine(kobj)->name); in name_show() 34 class_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in class_show() argument 36 return sysfs_emit(buf, "%d\n", kobj_to_engine(kobj)->uabi_class); in class_show() 43 inst_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in inst_show() argument 45 return sysfs_emit(buf, "%d\n", kobj_to_engine(kobj)->uabi_instance); in inst_show() 52 mmio_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in mmio_show() argument 54 return sysfs_emit(buf, "0x%x\n", kobj_to_engine(kobj)->mmio_base); in mmio_show() [all …]
|
D | intel_gt_sysfs_pm.c | 28 sysfs_gt_attribute_w_func(struct kobject *kobj, struct attribute *attr, in sysfs_gt_attribute_w_func() argument 34 if (!is_object_gt(kobj)) { in sysfs_gt_attribute_w_func() 36 struct device *dev = kobj_to_dev(kobj); in sysfs_gt_attribute_w_func() 45 gt = intel_gt_sysfs_get_drvdata(kobj, attr->name); in sysfs_gt_attribute_w_func() 53 sysfs_gt_attribute_r_func(struct kobject *kobj, struct attribute *attr, in sysfs_gt_attribute_r_func() argument 62 if (!is_object_gt(kobj)) { in sysfs_gt_attribute_r_func() 64 struct device *dev = kobj_to_dev(kobj); in sysfs_gt_attribute_r_func() 83 gt = intel_gt_sysfs_get_drvdata(kobj, attr->name); in sysfs_gt_attribute_r_func() 99 static ssize_t _name##_show_common(struct kobject *kobj, \ 102 u32 val = sysfs_gt_attribute_r_##_attr_type##_func(kobj, attr, \ [all …]
|
D | intel_gt_sysfs.c | 21 bool is_object_gt(struct kobject *kobj) in is_object_gt() argument 23 return !strncmp(kobj->name, "gt", 2); in is_object_gt() 26 struct intel_gt *intel_gt_sysfs_get_drvdata(struct kobject *kobj, in intel_gt_sysfs_get_drvdata() argument 39 if (!is_object_gt(kobj)) { in intel_gt_sysfs_get_drvdata() 40 struct device *dev = kobj_to_dev(kobj); in intel_gt_sysfs_get_drvdata() 46 return kobj_to_gt(kobj); in intel_gt_sysfs_get_drvdata() 51 return >->i915->drm.primary->kdev->kobj; in gt_get_parent_obj() 54 static ssize_t id_show(struct kobject *kobj, in id_show() argument 58 struct intel_gt *gt = intel_gt_sysfs_get_drvdata(kobj, attr->attr.name); in id_show() 71 static void kobj_gt_release(struct kobject *kobj) in kobj_gt_release() argument
|
/drivers/cpuidle/ |
D | sysfs.c | 131 retval = sysfs_create_group(&dev_root->kobj, &cpuidle_attr_group); in cpuidle_add_interface() 142 sysfs_remove_group(&dev->kobj, &cpuidle_attr_group); in cpuidle_remove_interface() 156 struct kobject kobj; member 159 static inline struct cpuidle_device *to_cpuidle_device(struct kobject *kobj) in to_cpuidle_device() argument 162 container_of(kobj, struct cpuidle_device_kobj, kobj); in to_cpuidle_device() 167 static ssize_t cpuidle_show(struct kobject *kobj, struct attribute *attr, in cpuidle_show() argument 171 struct cpuidle_device *dev = to_cpuidle_device(kobj); in cpuidle_show() 182 static ssize_t cpuidle_store(struct kobject *kobj, struct attribute *attr, in cpuidle_store() argument 186 struct cpuidle_device *dev = to_cpuidle_device(kobj); in cpuidle_store() 202 static void cpuidle_sysfs_release(struct kobject *kobj) in cpuidle_sysfs_release() argument [all …]
|
/drivers/edac/ |
D | edac_device_sysfs.c | 23 #define to_edacdev(k) container_of(k, struct edac_device_ctl_info, kobj) 113 #define to_ctl_info(k) container_of(k, struct edac_device_ctl_info, kobj) 117 static ssize_t edac_dev_ctl_info_show(struct kobject *kobj, in edac_dev_ctl_info_show() argument 120 struct edac_device_ctl_info *edac_dev = to_ctl_info(kobj); in edac_dev_ctl_info_show() 129 static ssize_t edac_dev_ctl_info_store(struct kobject *kobj, in edac_dev_ctl_info_store() argument 133 struct edac_device_ctl_info *edac_dev = to_ctl_info(kobj); in edac_dev_ctl_info_store() 202 static void edac_device_ctrl_master_release(struct kobject *kobj) in edac_device_ctrl_master_release() argument 204 struct edac_device_ctl_info *edac_dev = to_edacdev(kobj); in edac_device_ctrl_master_release() 244 memset(&edac_dev->kobj, 0, sizeof(struct kobject)); in edac_device_register_sysfs_main_kobj() 257 err = kobject_init_and_add(&edac_dev->kobj, &ktype_device_ctrl, in edac_device_register_sysfs_main_kobj() [all …]
|
/drivers/block/rnbd/ |
D | rnbd-srv-sysfs.c | 27 static void rnbd_srv_dev_release(struct kobject *kobj) in rnbd_srv_dev_release() argument 31 dev = container_of(kobj, struct rnbd_srv_dev, dev_kobj); in rnbd_srv_dev_release() 61 bdev_kobj = &disk_to_dev(bdev->bd_disk)->kobj; in rnbd_srv_create_dev_sysfs() 85 static ssize_t read_only_show(struct kobject *kobj, struct kobj_attribute *attr, in read_only_show() argument 90 sess_dev = container_of(kobj, struct rnbd_srv_sess_dev, kobj); in read_only_show() 98 static ssize_t access_mode_show(struct kobject *kobj, in access_mode_show() argument 104 sess_dev = container_of(kobj, struct rnbd_srv_sess_dev, kobj); in access_mode_show() 113 static ssize_t mapping_path_show(struct kobject *kobj, in mapping_path_show() argument 118 sess_dev = container_of(kobj, struct rnbd_srv_sess_dev, kobj); in mapping_path_show() 126 static ssize_t rnbd_srv_dev_session_force_close_show(struct kobject *kobj, in rnbd_srv_dev_session_force_close_show() argument [all …]
|
D | rnbd-clt-sysfs.c | 225 static ssize_t state_show(struct kobject *kobj, in state_show() argument 230 dev = container_of(kobj, struct rnbd_clt_dev, kobj); in state_show() 250 static ssize_t nr_poll_queues_show(struct kobject *kobj, in nr_poll_queues_show() argument 255 dev = container_of(kobj, struct rnbd_clt_dev, kobj); in nr_poll_queues_show() 263 static ssize_t mapping_path_show(struct kobject *kobj, in mapping_path_show() argument 268 dev = container_of(kobj, struct rnbd_clt_dev, kobj); in mapping_path_show() 276 static ssize_t access_mode_show(struct kobject *kobj, in access_mode_show() argument 281 dev = container_of(kobj, struct rnbd_clt_dev, kobj); in access_mode_show() 289 static ssize_t rnbd_clt_unmap_dev_show(struct kobject *kobj, in rnbd_clt_unmap_dev_show() argument 296 static ssize_t rnbd_clt_unmap_dev_store(struct kobject *kobj, in rnbd_clt_unmap_dev_store() argument [all …]
|
/drivers/infiniband/ulp/rtrs/ |
D | rtrs-clt-sysfs.c | 19 static void rtrs_clt_path_release(struct kobject *kobj) in rtrs_clt_path_release() argument 23 clt_path = container_of(kobj, struct rtrs_clt_path, kobj); in rtrs_clt_path_release() 33 static void rtrs_clt_path_stats_release(struct kobject *kobj) in rtrs_clt_path_stats_release() argument 37 stats = container_of(kobj, struct rtrs_clt_stats, kobj_stats); in rtrs_clt_path_stats_release() 198 static ssize_t rtrs_clt_state_show(struct kobject *kobj, in rtrs_clt_state_show() argument 203 clt_path = container_of(kobj, struct rtrs_clt_path, kobj); in rtrs_clt_state_show() 213 static ssize_t rtrs_clt_reconnect_show(struct kobject *kobj, in rtrs_clt_reconnect_show() argument 219 static ssize_t rtrs_clt_reconnect_store(struct kobject *kobj, in rtrs_clt_reconnect_store() argument 226 clt_path = container_of(kobj, struct rtrs_clt_path, kobj); in rtrs_clt_reconnect_store() 243 static ssize_t rtrs_clt_disconnect_show(struct kobject *kobj, in rtrs_clt_disconnect_show() argument [all …]
|
D | rtrs-srv-sysfs.c | 16 static void rtrs_srv_release(struct kobject *kobj) in rtrs_srv_release() argument 20 srv_path = container_of(kobj, struct rtrs_srv_path, kobj); in rtrs_srv_release() 29 static ssize_t rtrs_srv_disconnect_show(struct kobject *kobj, in rtrs_srv_disconnect_show() argument 35 static ssize_t rtrs_srv_disconnect_store(struct kobject *kobj, in rtrs_srv_disconnect_store() argument 43 srv_path = container_of(kobj, struct rtrs_srv_path, kobj); in rtrs_srv_disconnect_store() 56 sysfs_remove_file_self(&srv_path->kobj, &attr->attr); in rtrs_srv_disconnect_store() 66 static ssize_t rtrs_srv_hca_port_show(struct kobject *kobj, in rtrs_srv_hca_port_show() argument 73 srv_path = container_of(kobj, typeof(*srv_path), kobj); in rtrs_srv_hca_port_show() 82 static ssize_t rtrs_srv_hca_name_show(struct kobject *kobj, in rtrs_srv_hca_name_show() argument 88 srv_path = container_of(kobj, struct rtrs_srv_path, kobj); in rtrs_srv_hca_name_show() [all …]
|
/drivers/platform/x86/ |
D | think-lmi.c | 178 #define to_tlmi_pwd_setting(kobj) container_of(kobj, struct tlmi_pwd_setting, kobj) argument 179 #define to_tlmi_attr_setting(kobj) container_of(kobj, struct tlmi_attr_setting, kobj) argument 390 static ssize_t is_enabled_show(struct kobject *kobj, struct kobj_attribute *attr, in is_enabled_show() argument 393 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in is_enabled_show() 400 static ssize_t current_password_store(struct kobject *kobj, in current_password_store() argument 404 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in current_password_store() 420 static ssize_t new_password_store(struct kobject *kobj, in new_password_store() argument 424 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in new_password_store() 508 static ssize_t min_password_length_show(struct kobject *kobj, struct kobj_attribute *attr, in min_password_length_show() argument 511 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in min_password_length_show() [all …]
|
D | uv_sysfs.c | 113 struct kobject kobj; member 118 #define to_uv_hub(kobj_ptr) container_of(kobj_ptr, struct uv_hub, kobj) 180 static void hub_release(struct kobject *kobj) in hub_release() argument 182 struct uv_hub *hub = to_uv_hub(kobj); in hub_release() 187 static ssize_t hub_type_show(struct kobject *kobj, struct attribute *attr, in hub_type_show() argument 190 struct uv_hub *hub = to_uv_hub(kobj); in hub_type_show() 261 uv_hubs[i]->kobj.kset = uv_hubs_kset; in uv_hubs_init() 263 ret = kobject_init_and_add(&uv_hubs[i]->kobj, &hub_attr_type, in uv_hubs_init() 267 kobject_uevent(&uv_hubs[i]->kobj, KOBJ_ADD); in uv_hubs_init() 273 kobject_put(&uv_hubs[i]->kobj); in uv_hubs_init() [all …]
|
/drivers/vfio/mdev/ |
D | mdev_sysfs.c | 31 static ssize_t mdev_type_attr_show(struct kobject *kobj, in mdev_type_attr_show() argument 35 struct mdev_type *type = to_mdev_type(kobj); in mdev_type_attr_show() 43 static ssize_t mdev_type_attr_store(struct kobject *kobj, in mdev_type_attr_store() argument 48 struct mdev_type *type = to_mdev_type(kobj); in mdev_type_attr_store() 135 static umode_t mdev_types_core_is_visible(struct kobject *kobj, in mdev_types_core_is_visible() argument 139 !to_mdev_type(kobj)->parent->mdev_driver->show_description) in mdev_types_core_is_visible() 154 static void mdev_type_release(struct kobject *kobj) in mdev_type_release() argument 156 struct mdev_type *type = to_mdev_type(kobj); in mdev_type_release() 158 pr_debug("Releasing group %s\n", kobj->name); in mdev_type_release() 173 type->kobj.kset = parent->mdev_types_kset; in mdev_type_add() [all …]
|
/drivers/w1/slaves/ |
D | w1_ds2408.c | 67 static ssize_t state_read(struct file *filp, struct kobject *kobj, in state_read() argument 71 dev_dbg(&kobj_to_w1_slave(kobj)->dev, in state_read() 73 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); in state_read() 76 return _read_reg(kobj_to_w1_slave(kobj), W1_F29_REG_LOGIG_STATE, buf); in state_read() 79 static ssize_t output_read(struct file *filp, struct kobject *kobj, in output_read() argument 83 dev_dbg(&kobj_to_w1_slave(kobj)->dev, in output_read() 85 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); in output_read() 88 return _read_reg(kobj_to_w1_slave(kobj), in output_read() 92 static ssize_t activity_read(struct file *filp, struct kobject *kobj, in activity_read() argument 96 dev_dbg(&kobj_to_w1_slave(kobj)->dev, in activity_read() [all …]
|
/drivers/base/ |
D | class.c | 45 struct kobject *kobj; in class_to_subsys() local 55 list_for_each_entry(kobj, &class_kset->list, entry) { in class_to_subsys() 56 struct kset *kset = container_of(kobj, struct kset, kobj); in class_to_subsys() 69 static ssize_t class_attr_show(struct kobject *kobj, struct attribute *attr, in class_attr_show() argument 73 struct subsys_private *cp = to_subsys_private(kobj); in class_attr_show() 81 static ssize_t class_attr_store(struct kobject *kobj, struct attribute *attr, in class_attr_store() argument 85 struct subsys_private *cp = to_subsys_private(kobj); in class_attr_store() 93 static void class_release(struct kobject *kobj) in class_release() argument 95 struct subsys_private *cp = to_subsys_private(kobj); in class_release() 110 static const struct kobj_ns_type_operations *class_child_ns_type(const struct kobject *kobj) in class_child_ns_type() argument [all …]
|
D | core.c | 579 ret = sysfs_create_link(&link->link_dev.kobj, &sup->kobj, "supplier"); in devlink_add_symlinks() 583 ret = sysfs_create_link(&link->link_dev.kobj, &con->kobj, "consumer"); in devlink_add_symlinks() 588 ret = sysfs_create_link(&sup->kobj, &link->link_dev.kobj, buf); in devlink_add_symlinks() 593 ret = sysfs_create_link(&con->kobj, &link->link_dev.kobj, buf); in devlink_add_symlinks() 601 sysfs_remove_link(&sup->kobj, buf); in devlink_add_symlinks() 603 sysfs_remove_link(&link->link_dev.kobj, "consumer"); in devlink_add_symlinks() 605 sysfs_remove_link(&link->link_dev.kobj, "supplier"); in devlink_add_symlinks() 619 sysfs_remove_link(&link->link_dev.kobj, "consumer"); in devlink_remove_symlinks() 620 sysfs_remove_link(&link->link_dev.kobj, "supplier"); in devlink_remove_symlinks() 634 sysfs_remove_link(&con->kobj, buf); in devlink_remove_symlinks() [all …]
|
/drivers/of/ |
D | kobj.c | 10 return node && node->kobj.state_initialized; in of_node_is_initialized() 16 return node && node->kobj.state_in_sysfs; in of_node_is_attached() 21 static void of_node_release(struct kobject *kobj) in of_node_release() argument 31 static ssize_t of_node_property_read(struct file *filp, struct kobject *kobj, in of_node_property_read() argument 40 static const char *safe_name(struct kobject *kobj, const char *orig_name) in safe_name() argument 47 while (i < 16 && (kn = sysfs_get_dirent(kobj->sd, name))) { in safe_name() 58 kobject_name(kobj), name); in safe_name() 77 pp->attr.attr.name = safe_name(&np->kobj, pp->name); in __of_add_property_sysfs() 82 rc = sysfs_create_bin_file(&np->kobj, &pp->attr); in __of_add_property_sysfs() 92 sysfs_remove_bin_file(&np->kobj, &prop->attr); in __of_sysfs_remove_bin_file() [all …]
|
/drivers/pci/ |
D | slot.c | 18 static ssize_t pci_slot_attr_show(struct kobject *kobj, in pci_slot_attr_show() argument 21 struct pci_slot *slot = to_pci_slot(kobj); in pci_slot_attr_show() 26 static ssize_t pci_slot_attr_store(struct kobject *kobj, in pci_slot_attr_store() argument 29 struct pci_slot *slot = to_pci_slot(kobj); in pci_slot_attr_store() 67 static void pci_slot_release(struct kobject *kobj) in pci_slot_release() argument 70 struct pci_slot *slot = to_pci_slot(kobj); in pci_slot_release() 157 result = kobject_rename(&slot->kobj, slot_name); in rename_slot() 181 kobject_get(&slot->kobj); in get_slot() 249 kobject_put(&slot->kobj); in pci_create_slot() 267 slot->kobj.kset = pci_slots_kset; in pci_create_slot() [all …]
|
/drivers/dma-buf/ |
D | dma-buf-sysfs-stats.c | 18 #define to_dma_buf_entry_from_kobj(x) container_of(x, struct dma_buf_sysfs_entry, kobj) 61 static ssize_t dma_buf_stats_attribute_show(struct kobject *kobj, in dma_buf_stats_attribute_show() argument 70 sysfs_entry = to_dma_buf_entry_from_kobj(kobj); in dma_buf_stats_attribute_show() 108 static void dma_buf_sysfs_release(struct kobject *kobj) in dma_buf_sysfs_release() argument 112 sysfs_entry = to_dma_buf_entry_from_kobj(kobj); in dma_buf_sysfs_release() 130 kobject_del(&sysfs_entry->kobj); in dma_buf_stats_teardown() 131 kobject_put(&sysfs_entry->kobj); in dma_buf_stats_teardown() 136 static int dmabuf_sysfs_uevent_filter(const struct kobject *kobj) in dmabuf_sysfs_uevent_filter() argument 157 &dma_buf_stats_kset->kobj); in dma_buf_init_sysfs_statistics() 191 memset(&dmabuf->sysfs_entry->kobj, 0, sizeof(dmabuf->sysfs_entry->kobj)); in sysfs_add_workfn() [all …]
|
/drivers/parisc/ |
D | pdc_stable.c | 93 struct kobject kobj; member 124 #define to_pdcspath_entry(obj) container_of(obj, struct pdcspath_entry, kobj) 321 sysfs_remove_link(&entry->kobj, "device"); in pdcspath_hwpath_write() 324 ret = sysfs_create_link(&entry->kobj, &entry->dev->kobj, "device"); in pdcspath_hwpath_write() 433 pdcspath_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) in pdcspath_attr_show() argument 435 struct pdcspath_entry *entry = to_pdcspath_entry(kobj); in pdcspath_attr_show() 453 pdcspath_attr_store(struct kobject *kobj, struct attribute *attr, in pdcspath_attr_store() argument 456 struct pdcspath_entry *entry = to_pdcspath_entry(kobj); in pdcspath_attr_store() 516 static ssize_t pdcs_size_read(struct kobject *kobj, in pdcs_size_read() argument 538 static ssize_t pdcs_auto_read(struct kobject *kobj, in pdcs_auto_read() argument [all …]
|
/drivers/scsi/ |
D | iscsi_boot_sysfs.c | 32 static ssize_t iscsi_boot_show_attribute(struct kobject *kobj, in iscsi_boot_show_attribute() argument 36 container_of(kobj, struct iscsi_boot_kobj, kobj); in iscsi_boot_show_attribute() 54 static void iscsi_boot_kobj_release(struct kobject *kobj) in iscsi_boot_kobj_release() argument 57 container_of(kobj, struct iscsi_boot_kobj, kobj); in iscsi_boot_kobj_release() 107 static umode_t iscsi_boot_tgt_attr_is_visible(struct kobject *kobj, in iscsi_boot_tgt_attr_is_visible() argument 111 container_of(kobj, struct iscsi_boot_kobj, kobj); in iscsi_boot_tgt_attr_is_visible() 190 static umode_t iscsi_boot_eth_attr_is_visible(struct kobject *kobj, in iscsi_boot_eth_attr_is_visible() argument 194 container_of(kobj, struct iscsi_boot_kobj, kobj); in iscsi_boot_eth_attr_is_visible() 265 static umode_t iscsi_boot_ini_attr_is_visible(struct kobject *kobj, in iscsi_boot_ini_attr_is_visible() argument 269 container_of(kobj, struct iscsi_boot_kobj, kobj); in iscsi_boot_ini_attr_is_visible() [all …]
|
/drivers/firmware/ |
D | memmap.c | 35 struct kobject kobj; /* kobject for each entry */ member 41 static ssize_t memmap_attr_show(struct kobject *kobj, 93 to_memmap_entry(struct kobject *kobj) in to_memmap_entry() argument 95 return container_of(kobj, struct firmware_map_entry, kobj); in to_memmap_entry() 98 static void __meminit release_firmware_map_entry(struct kobject *kobj) in release_firmware_map_entry() argument 100 struct firmware_map_entry *entry = to_memmap_entry(kobj); in release_firmware_map_entry() 152 kobject_init(&entry->kobj, &memmap_ktype); in firmware_map_add_entry() 181 if (entry->kobj.state_in_sysfs) in add_sysfs_fw_map_entry() 190 entry->kobj.kset = mmap_kset; in add_sysfs_fw_map_entry() 191 if (kobject_add(&entry->kobj, NULL, "%d", map_entries_nr++)) in add_sysfs_fw_map_entry() [all …]
|
/drivers/staging/greybus/ |
D | audio_manager_sysfs.c | 14 static ssize_t manager_sysfs_add_store(struct kobject *kobj, in manager_sysfs_add_store() argument 39 static ssize_t manager_sysfs_remove_store(struct kobject *kobj, in manager_sysfs_remove_store() argument 60 static ssize_t manager_sysfs_dump_store(struct kobject *kobj, in manager_sysfs_dump_store() argument 84 static void manager_sysfs_init_attribute(struct kobject *kobj, in manager_sysfs_init_attribute() argument 89 err = sysfs_create_file(kobj, &kattr->attr); in manager_sysfs_init_attribute() 96 void gb_audio_manager_sysfs_init(struct kobject *kobj) in gb_audio_manager_sysfs_init() argument 98 manager_sysfs_init_attribute(kobj, &manager_add_attribute); in gb_audio_manager_sysfs_init() 99 manager_sysfs_init_attribute(kobj, &manager_remove_attribute); in gb_audio_manager_sysfs_init() 100 manager_sysfs_init_attribute(kobj, &manager_dump_attribute); in gb_audio_manager_sysfs_init()
|
D | audio_manager_module.c | 16 static inline struct gb_audio_manager_module *to_gb_audio_module(struct kobject *kobj) in to_gb_audio_module() argument 18 return container_of(kobj, struct gb_audio_manager_module, kobj); in to_gb_audio_module() 31 static ssize_t gb_audio_module_attr_show(struct kobject *kobj, in gb_audio_module_attr_show() argument 38 module = to_gb_audio_module(kobj); in gb_audio_module_attr_show() 46 static ssize_t gb_audio_module_attr_store(struct kobject *kobj, in gb_audio_module_attr_store() argument 54 module = to_gb_audio_module(kobj); in gb_audio_module_attr_store() 67 static void gb_audio_module_release(struct kobject *kobj) in gb_audio_module_release() argument 69 struct gb_audio_manager_module *module = to_gb_audio_module(kobj); in gb_audio_module_release() 181 kobject_uevent_env(&module->kobj, KOBJ_ADD, envp); in send_add_uevent() 205 m->kobj.kset = manager_kset; in gb_audio_manager_module_create() [all …]
|
/drivers/md/bcache/ |
D | stats.c | 55 container_of(kobj, struct cache_stats, kobj); in SHOW() 97 int ret = kobject_add(&acc->total.kobj, parent, in bch_cache_accounting_add_kobjs() 99 ret = ret ?: kobject_add(&acc->five_minute.kobj, parent, in bch_cache_accounting_add_kobjs() 101 ret = ret ?: kobject_add(&acc->hour.kobj, parent, in bch_cache_accounting_add_kobjs() 103 ret = ret ?: kobject_add(&acc->day.kobj, parent, in bch_cache_accounting_add_kobjs() 120 kobject_put(&acc->total.kobj); in bch_cache_accounting_destroy() 121 kobject_put(&acc->five_minute.kobj); in bch_cache_accounting_destroy() 122 kobject_put(&acc->hour.kobj); in bch_cache_accounting_destroy() 123 kobject_put(&acc->day.kobj); in bch_cache_accounting_destroy() 225 kobject_init(&acc->total.kobj, &bch_stats_ktype); in bch_cache_accounting_init() [all …]
|
/drivers/base/power/ |
D | sysfs.c | 702 rc = sysfs_create_group(&dev->kobj, &pm_attr_group); in dpm_sysfs_add() 707 rc = sysfs_merge_group(&dev->kobj, &pm_runtime_attr_group); in dpm_sysfs_add() 712 rc = sysfs_merge_group(&dev->kobj, &pm_wakeup_attr_group); in dpm_sysfs_add() 717 rc = sysfs_merge_group(&dev->kobj, in dpm_sysfs_add() 728 sysfs_unmerge_group(&dev->kobj, &pm_qos_latency_tolerance_attr_group); in dpm_sysfs_add() 730 sysfs_unmerge_group(&dev->kobj, &pm_wakeup_attr_group); in dpm_sysfs_add() 732 sysfs_unmerge_group(&dev->kobj, &pm_runtime_attr_group); in dpm_sysfs_add() 734 sysfs_remove_group(&dev->kobj, &pm_attr_group); in dpm_sysfs_add() 745 rc = sysfs_group_change_owner(&dev->kobj, &pm_attr_group, kuid, kgid); in dpm_sysfs_change_owner() 751 &dev->kobj, &pm_runtime_attr_group, kuid, kgid); in dpm_sysfs_change_owner() [all …]
|