Home
last modified time | relevance | path

Searched refs:kobj (Results 1 – 25 of 668) sorted by relevance

12345678910>>...27

/drivers/cpuidle/
Dsysfs.c126 return sysfs_create_group(&dev->kobj, &cpuidle_attr_group); in cpuidle_add_interface()
135 sysfs_remove_group(&dev->kobj, &cpuidle_attr_group); in cpuidle_remove_interface()
149 struct kobject kobj; member
152 static inline struct cpuidle_device *to_cpuidle_device(struct kobject *kobj) in to_cpuidle_device() argument
155 container_of(kobj, struct cpuidle_device_kobj, kobj); in to_cpuidle_device()
160 static ssize_t cpuidle_show(struct kobject *kobj, struct attribute *attr, in cpuidle_show() argument
164 struct cpuidle_device *dev = to_cpuidle_device(kobj); in cpuidle_show()
175 static ssize_t cpuidle_store(struct kobject *kobj, struct attribute *attr, in cpuidle_store() argument
179 struct cpuidle_device *dev = to_cpuidle_device(kobj); in cpuidle_store()
195 static void cpuidle_sysfs_release(struct kobject *kobj) in cpuidle_sysfs_release() argument
[all …]
/drivers/gpu/drm/i915/gt/
Dsysfs_engines.c19 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 sprintf(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 sprintf(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 sprintf(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 sprintf(buf, "0x%x\n", kobj_to_engine(kobj)->mmio_base); in mmio_show()
[all …]
/drivers/vfio/mdev/
Dmdev_sysfs.c21 static ssize_t mdev_type_attr_show(struct kobject *kobj, in mdev_type_attr_show() argument
25 struct mdev_type *type = to_mdev_type(kobj); in mdev_type_attr_show()
29 ret = attr->show(kobj, type->parent->dev, buf); in mdev_type_attr_show()
33 static ssize_t mdev_type_attr_store(struct kobject *kobj, in mdev_type_attr_store() argument
38 struct mdev_type *type = to_mdev_type(kobj); in mdev_type_attr_store()
42 ret = attr->store(&type->kobj, type->parent->dev, buf, count); in mdev_type_attr_store()
51 static ssize_t create_store(struct kobject *kobj, struct device *dev, in create_store() argument
70 ret = mdev_device_create(kobj, dev, &uuid); in create_store()
79 static void mdev_type_release(struct kobject *kobj) in mdev_type_release() argument
81 struct mdev_type *type = to_mdev_type(kobj); in mdev_type_release()
[all …]
/drivers/edac/
Dedac_device_sysfs.c23 #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()
201 static void edac_device_ctrl_master_release(struct kobject *kobj) in edac_device_ctrl_master_release() argument
203 struct edac_device_ctl_info *edac_dev = to_edacdev(kobj); in edac_device_ctrl_master_release()
245 memset(&edac_dev->kobj, 0, sizeof(struct kobject)); in edac_device_register_sysfs_main_kobj()
258 err = kobject_init_and_add(&edac_dev->kobj, &ktype_device_ctrl, in edac_device_register_sysfs_main_kobj()
[all …]
/drivers/infiniband/ulp/rtrs/
Drtrs-srv-sysfs.c16 static void rtrs_srv_release(struct kobject *kobj) in rtrs_srv_release() argument
20 sess = container_of(kobj, struct rtrs_srv_sess, kobj); in rtrs_srv_release()
29 static ssize_t rtrs_srv_disconnect_show(struct kobject *kobj, in rtrs_srv_disconnect_show() argument
37 static ssize_t rtrs_srv_disconnect_store(struct kobject *kobj, in rtrs_srv_disconnect_store() argument
45 sess = container_of(kobj, struct rtrs_srv_sess, kobj); in rtrs_srv_disconnect_store()
57 sysfs_remove_file_self(&sess->kobj, &attr->attr); in rtrs_srv_disconnect_store()
67 static ssize_t rtrs_srv_hca_port_show(struct kobject *kobj, in rtrs_srv_hca_port_show() argument
74 sess = container_of(kobj, typeof(*sess), kobj); in rtrs_srv_hca_port_show()
84 static ssize_t rtrs_srv_hca_name_show(struct kobject *kobj, in rtrs_srv_hca_name_show() argument
90 sess = container_of(kobj, struct rtrs_srv_sess, kobj); in rtrs_srv_hca_name_show()
[all …]
Drtrs-clt-sysfs.c19 static void rtrs_clt_sess_release(struct kobject *kobj) in rtrs_clt_sess_release() argument
23 sess = container_of(kobj, struct rtrs_clt_sess, kobj); in rtrs_clt_sess_release()
33 static void rtrs_clt_sess_stats_release(struct kobject *kobj) in rtrs_clt_sess_stats_release() argument
37 stats = container_of(kobj, struct rtrs_clt_stats, kobj_stats); in rtrs_clt_sess_stats_release()
180 static ssize_t rtrs_clt_state_show(struct kobject *kobj, in rtrs_clt_state_show() argument
185 sess = container_of(kobj, struct rtrs_clt_sess, kobj); in rtrs_clt_state_show()
195 static ssize_t rtrs_clt_reconnect_show(struct kobject *kobj, in rtrs_clt_reconnect_show() argument
203 static ssize_t rtrs_clt_reconnect_store(struct kobject *kobj, in rtrs_clt_reconnect_store() argument
210 sess = container_of(kobj, struct rtrs_clt_sess, kobj); in rtrs_clt_reconnect_store()
227 static ssize_t rtrs_clt_disconnect_show(struct kobject *kobj, in rtrs_clt_disconnect_show() argument
[all …]
/drivers/block/rnbd/
Drnbd-srv-sysfs.c27 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()
58 bdev_kobj = &disk_to_dev(bdev->bd_disk)->kobj; in rnbd_srv_create_dev_sysfs()
81 static ssize_t read_only_show(struct kobject *kobj, struct kobj_attribute *attr, in read_only_show() argument
86 sess_dev = container_of(kobj, struct rnbd_srv_sess_dev, kobj); in read_only_show()
95 static ssize_t access_mode_show(struct kobject *kobj, in access_mode_show() argument
101 sess_dev = container_of(kobj, struct rnbd_srv_sess_dev, kobj); in access_mode_show()
110 static ssize_t mapping_path_show(struct kobject *kobj, in mapping_path_show() argument
115 sess_dev = container_of(kobj, struct rnbd_srv_sess_dev, kobj); in mapping_path_show()
136 sysfs_remove_group(&sess_dev->kobj, in rnbd_srv_destroy_dev_session_sysfs()
[all …]
Drnbd-clt-sysfs.c206 static ssize_t state_show(struct kobject *kobj, in state_show() argument
211 dev = container_of(kobj, struct rnbd_clt_dev, kobj); in state_show()
231 static ssize_t mapping_path_show(struct kobject *kobj, in mapping_path_show() argument
236 dev = container_of(kobj, struct rnbd_clt_dev, kobj); in mapping_path_show()
244 static ssize_t access_mode_show(struct kobject *kobj, in access_mode_show() argument
249 dev = container_of(kobj, struct rnbd_clt_dev, kobj); in access_mode_show()
258 static ssize_t rnbd_clt_unmap_dev_show(struct kobject *kobj, in rnbd_clt_unmap_dev_show() argument
265 static ssize_t rnbd_clt_unmap_dev_store(struct kobject *kobj, in rnbd_clt_unmap_dev_store() argument
279 dev = container_of(kobj, struct rnbd_clt_dev, kobj); in rnbd_clt_unmap_dev_store()
328 static ssize_t rnbd_clt_resize_dev_show(struct kobject *kobj, in rnbd_clt_resize_dev_show() argument
[all …]
/drivers/w1/slaves/
Dw1_ds2408.c67 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/dma-buf/
Ddma-buf-sysfs-stats.c18 #define to_dma_buf_entry_from_kobj(x) container_of(x, struct dma_buf_sysfs_entry, kobj)
27 static ssize_t dma_buf_stats_attribute_show(struct kobject *kobj, in dma_buf_stats_attribute_show() argument
36 sysfs_entry = to_dma_buf_entry_from_kobj(kobj); in dma_buf_stats_attribute_show()
74 static void dma_buf_sysfs_release(struct kobject *kobj) in dma_buf_sysfs_release() argument
78 sysfs_entry = to_dma_buf_entry_from_kobj(kobj); in dma_buf_sysfs_release()
96 kobject_del(&sysfs_entry->kobj); in dma_buf_stats_teardown()
97 kobject_put(&sysfs_entry->kobj); in dma_buf_stats_teardown()
103 static int dmabuf_sysfs_uevent_filter(struct kset *kset, struct kobject *kobj) in dmabuf_sysfs_uevent_filter() argument
124 &dma_buf_stats_kset->kobj); in dma_buf_init_sysfs_statistics()
146 container_of((struct kobject *)work, struct dma_buf_sysfs_entry, kobj); in sysfs_add_workfn()
[all …]
/drivers/of/
Dkobj.c10 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/base/
Dclass.c25 static ssize_t class_attr_show(struct kobject *kobj, struct attribute *attr, in class_attr_show() argument
29 struct subsys_private *cp = to_subsys_private(kobj); in class_attr_show()
37 static ssize_t class_attr_store(struct kobject *kobj, struct attribute *attr, in class_attr_store() argument
41 struct subsys_private *cp = to_subsys_private(kobj); in class_attr_store()
49 static void class_release(struct kobject *kobj) in class_release() argument
51 struct subsys_private *cp = to_subsys_private(kobj); in class_release()
65 static const struct kobj_ns_type_operations *class_child_ns_type(struct kobject *kobj) in class_child_ns_type() argument
67 struct subsys_private *cp = to_subsys_private(kobj); in class_child_ns_type()
94 error = sysfs_create_file_ns(&cls->p->subsys.kobj, in class_create_file_ns()
105 sysfs_remove_file_ns(&cls->p->subsys.kobj, &attr->attr, ns); in class_remove_file_ns()
[all …]
Dcore.c521 ret = sysfs_create_link(&link->link_dev.kobj, &sup->kobj, "supplier"); in devlink_add_symlinks()
525 ret = sysfs_create_link(&link->link_dev.kobj, &con->kobj, "consumer"); in devlink_add_symlinks()
530 ret = sysfs_create_link(&sup->kobj, &link->link_dev.kobj, buf); in devlink_add_symlinks()
535 ret = sysfs_create_link(&con->kobj, &link->link_dev.kobj, buf); in devlink_add_symlinks()
543 sysfs_remove_link(&sup->kobj, buf); in devlink_add_symlinks()
545 sysfs_remove_link(&link->link_dev.kobj, "consumer"); in devlink_add_symlinks()
547 sysfs_remove_link(&link->link_dev.kobj, "supplier"); in devlink_add_symlinks()
562 sysfs_remove_link(&link->link_dev.kobj, "consumer"); in devlink_remove_symlinks()
563 sysfs_remove_link(&link->link_dev.kobj, "supplier"); in devlink_remove_symlinks()
577 sysfs_remove_link(&con->kobj, buf); in devlink_remove_symlinks()
[all …]
Dbus.c57 static ssize_t drv_attr_show(struct kobject *kobj, struct attribute *attr, in drv_attr_show() argument
61 struct driver_private *drv_priv = to_driver(kobj); in drv_attr_show()
69 static ssize_t drv_attr_store(struct kobject *kobj, struct attribute *attr, in drv_attr_store() argument
73 struct driver_private *drv_priv = to_driver(kobj); in drv_attr_store()
86 static void driver_release(struct kobject *kobj) in driver_release() argument
88 struct driver_private *drv_priv = to_driver(kobj); in driver_release()
90 pr_debug("driver: '%s': %s\n", kobject_name(kobj), __func__); in driver_release()
102 static ssize_t bus_attr_show(struct kobject *kobj, struct attribute *attr, in bus_attr_show() argument
106 struct subsys_private *subsys_priv = to_subsys_private(kobj); in bus_attr_show()
114 static ssize_t bus_attr_store(struct kobject *kobj, struct attribute *attr, in bus_attr_store() argument
[all …]
Dswnode.c16 struct kobject kobj; member
32 #define kobj_to_swnode(_kobj_) container_of(_kobj_, struct swnode, kobj)
367 kobject_get(&swnode->kobj); in software_node_get()
376 kobject_put(&swnode->kobj); in software_node_put()
416 return kobject_name(&swnode->kobj); in software_node_get_name()
484 if (!strcmp(childname, kobject_name(&child->kobj))) { in software_node_get_named_child_node()
485 kobject_get(&child->kobj); in software_node_get_named_child_node()
600 kobject_get(&swnode->kobj); in software_node_find_by_name()
627 static void software_node_release(struct kobject *kobj) in software_node_release() argument
629 struct swnode *swnode = kobj_to_swnode(kobj); in software_node_release()
[all …]
/drivers/pci/
Dslot.c18 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()
156 result = kobject_rename(&slot->kobj, slot_name); in rename_slot()
180 kobject_get(&slot->kobj); in get_slot()
248 kobject_put(&slot->kobj); in pci_create_slot()
266 slot->kobj.kset = pci_slots_kset; in pci_create_slot()
[all …]
/drivers/firmware/efi/
Druntime-map.c18 struct kobject kobj; /* kobject for each entry */ member
51 static inline struct efi_runtime_map_entry *to_map_entry(struct kobject *kobj) in to_map_entry() argument
53 return container_of(kobj, struct efi_runtime_map_entry, kobj); in to_map_entry()
56 static ssize_t map_attr_show(struct kobject *kobj, struct attribute *attr, in map_attr_show() argument
59 struct efi_runtime_map_entry *entry = to_map_entry(kobj); in map_attr_show()
87 static void map_release(struct kobject *kobj) in map_release() argument
91 entry = to_map_entry(kobj); in map_release()
104 add_sysfs_runtime_map_entry(struct kobject *kobj, int nr, in add_sysfs_runtime_map_entry() argument
111 map_kset = kset_create_and_add("runtime-map", NULL, kobj); in add_sysfs_runtime_map_entry()
125 kobject_init(&entry->kobj, &map_ktype); in add_sysfs_runtime_map_entry()
[all …]
/drivers/infiniband/core/
Dsysfs.c52 struct kobject kobj; member
57 struct kobject kobj; member
90 ssize_t (*show)(struct kobject *kobj,
92 ssize_t (*store)(struct kobject *kobj,
100 static ssize_t port_attr_show(struct kobject *kobj, in port_attr_show() argument
105 struct ib_port *p = container_of(kobj, struct ib_port, kobj); in port_attr_show()
113 static ssize_t port_attr_store(struct kobject *kobj, in port_attr_store() argument
119 struct ib_port *p = container_of(kobj, struct ib_port, kobj); in port_attr_store()
131 static ssize_t gid_attr_show(struct kobject *kobj, in gid_attr_show() argument
136 struct ib_port *p = container_of(kobj, struct gid_attr_group, in gid_attr_show()
[all …]
/drivers/gpu/drm/ttm/
Dttm_memory.c48 struct kobject kobj; member
79 static void ttm_mem_zone_kobj_release(struct kobject *kobj) in ttm_mem_zone_kobj_release() argument
82 container_of(kobj, struct ttm_mem_zone, kobj); in ttm_mem_zone_kobj_release()
89 static ssize_t ttm_mem_zone_show(struct kobject *kobj, in ttm_mem_zone_show() argument
94 container_of(kobj, struct ttm_mem_zone, kobj); in ttm_mem_zone_show()
116 static ssize_t ttm_mem_zone_store(struct kobject *kobj, in ttm_mem_zone_store() argument
122 container_of(kobj, struct ttm_mem_zone, kobj); in ttm_mem_zone_store()
179 static ssize_t ttm_mem_global_show(struct kobject *kobj, in ttm_mem_global_show() argument
184 container_of(kobj, struct ttm_mem_global, kobj); in ttm_mem_global_show()
196 static ssize_t ttm_mem_global_store(struct kobject *kobj, in ttm_mem_global_store() argument
[all …]
/drivers/parisc/
Dpdc_stable.c93 struct kobject kobj; member
124 #define to_pdcspath_entry(obj) container_of(obj, struct pdcspath_entry, kobj)
322 sysfs_remove_link(&entry->kobj, "device"); in pdcspath_hwpath_write()
325 ret = sysfs_create_link(&entry->kobj, &entry->dev->kobj, "device"); in pdcspath_hwpath_write()
435 pdcspath_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) in pdcspath_attr_show() argument
437 struct pdcspath_entry *entry = to_pdcspath_entry(kobj); in pdcspath_attr_show()
455 pdcspath_attr_store(struct kobject *kobj, struct attribute *attr, in pdcspath_attr_store() argument
458 struct pdcspath_entry *entry = to_pdcspath_entry(kobj); in pdcspath_attr_store()
515 static ssize_t pdcs_size_read(struct kobject *kobj, in pdcs_size_read() argument
535 static ssize_t pdcs_auto_read(struct kobject *kobj, in pdcs_auto_read() argument
[all …]
/drivers/platform/x86/
Dintel-uncore-frequency.c40 struct kobject kobj; member
49 #define to_uncore_data(a) container_of(a, struct uncore_data, kobj)
66 ssize_t (*show)(struct kobject *kobj,
68 ssize_t (*store)(struct kobject *kobj,
81 static ssize_t show_##member_name(struct kobject *kobj, \
85 struct uncore_data *data = to_uncore_data(kobj); \
158 static ssize_t store_min_max_freq_khz(struct kobject *kobj, in store_min_max_freq_khz() argument
163 struct uncore_data *data = to_uncore_data(kobj); in store_min_max_freq_khz()
174 static ssize_t show_min_max_freq_khz(struct kobject *kobj, in show_min_max_freq_khz() argument
178 struct uncore_data *data = to_uncore_data(kobj); in show_min_max_freq_khz()
[all …]
/drivers/staging/greybus/
Daudio_manager_sysfs.c14 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()
/drivers/scsi/
Discsi_boot_sysfs.c32 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/
Dmemmap.c35 struct kobject kobj; /* kobject for each entry */ member
41 static ssize_t memmap_attr_show(struct kobject *kobj,
92 to_memmap_entry(struct kobject *kobj) in to_memmap_entry() argument
94 return container_of(kobj, struct firmware_map_entry, kobj); in to_memmap_entry()
97 static void __meminit release_firmware_map_entry(struct kobject *kobj) in release_firmware_map_entry() argument
99 struct firmware_map_entry *entry = to_memmap_entry(kobj); in release_firmware_map_entry()
151 kobject_init(&entry->kobj, &memmap_ktype); in firmware_map_add_entry()
180 if (entry->kobj.state_in_sysfs) in add_sysfs_fw_map_entry()
189 entry->kobj.kset = mmap_kset; in add_sysfs_fw_map_entry()
190 if (kobject_add(&entry->kobj, NULL, "%d", map_entries_nr++)) in add_sysfs_fw_map_entry()
[all …]
/drivers/md/bcache/
Dstats.c56 container_of(kobj, struct cache_stats, kobj); in SHOW()
99 int ret = kobject_add(&acc->total.kobj, parent, in bch_cache_accounting_add_kobjs()
101 ret = ret ?: kobject_add(&acc->five_minute.kobj, parent, in bch_cache_accounting_add_kobjs()
103 ret = ret ?: kobject_add(&acc->hour.kobj, parent, in bch_cache_accounting_add_kobjs()
105 ret = ret ?: kobject_add(&acc->day.kobj, parent, in bch_cache_accounting_add_kobjs()
123 kobject_put(&acc->total.kobj); in bch_cache_accounting_destroy()
124 kobject_put(&acc->five_minute.kobj); in bch_cache_accounting_destroy()
125 kobject_put(&acc->hour.kobj); in bch_cache_accounting_destroy()
126 kobject_put(&acc->day.kobj); in bch_cache_accounting_destroy()
238 kobject_init(&acc->total.kobj, &bch_stats_ktype); in bch_cache_accounting_init()
[all …]

12345678910>>...27