Searched refs:kobj (Results 201 - 225 of 995) sorted by path

1234567891011>>

/linux-master/drivers/dax/
H A Dbus.c590 static umode_t dax_region_visible(struct kobject *kobj, struct attribute *a, argument
593 struct device *dev = container_of(kobj, struct device, kobj);
631 sysfs_remove_groups(&dax_region->dev->kobj,
673 if (sysfs_create_groups(&parent->kobj, dax_region_attribute_groups)) {
1367 static umode_t dev_dax_visible(struct kobject *kobj, struct attribute *a, int n) argument
1369 struct device *dev = container_of(kobj, struct device, kobj);
H A Ddevice.c456 cdev_set_parent(cdev, &dev->kobj);
/linux-master/drivers/devfreq/
H A Ddevfreq.c1920 ret = sysfs_create_file(&df->dev.kobj, &dev_attr_##name.attr); \
1942 sysfs_remove_file(&devfreq->dev.kobj,
1945 sysfs_remove_file(&devfreq->dev.kobj, &dev_attr_timer.attr);
H A Dgovernor_userspace.c96 err = sysfs_create_group(&devfreq->dev.kobj, &dev_attr_group);
107 if (devfreq->dev.kobj.sd)
108 sysfs_remove_group(&devfreq->dev.kobj, &dev_attr_group);
/linux-master/drivers/dma-buf/
H A Ddma-buf-sysfs-stats.c17 #define to_dma_buf_entry_from_kobj(x) container_of(x, struct dma_buf_sysfs_entry, kobj)
60 static ssize_t dma_buf_stats_attribute_show(struct kobject *kobj, argument
69 sysfs_entry = to_dma_buf_entry_from_kobj(kobj);
107 static void dma_buf_sysfs_release(struct kobject *kobj) argument
111 sysfs_entry = to_dma_buf_entry_from_kobj(kobj);
129 kobject_del(&sysfs_entry->kobj);
130 kobject_put(&sysfs_entry->kobj);
135 static int dmabuf_sysfs_uevent_filter(const struct kobject *kobj) argument
156 &dma_buf_stats_kset->kobj);
185 sysfs_entry->kobj
[all...]
/linux-master/drivers/dma/
H A Ddmaengine.c866 if (sysfs_create_link(&chan->dev->device.kobj, &dev->kobj,
869 if (sysfs_create_link(&dev->kobj, &chan->dev->device.kobj, chan->name))
914 sysfs_remove_link(&chan->dev->device.kobj, DMA_SLAVE_NAME);
915 sysfs_remove_link(&chan->slave->kobj, chan->name);
/linux-master/drivers/dma/idxd/
H A Dcdev.c97 static umode_t cdev_file_attr_visible(struct kobject *kobj, struct attribute *a, int n) argument
99 struct device *dev = container_of(kobj, typeof(*dev), kobj);
H A Dperfmon.h109 static ssize_t __perfmon_idxd_##_name##_show(struct kobject *kobj, \
H A Dsysfs.c547 static umode_t idxd_group_attr_visible(struct kobject *kobj, argument
550 struct device *dev = container_of(kobj, struct device, kobj);
1353 static umode_t idxd_wq_attr_visible(struct kobject *kobj, argument
1356 struct device *dev = container_of(kobj, struct device, kobj);
1751 static umode_t idxd_device_attr_visible(struct kobject *kobj, argument
1754 struct device *dev = container_of(kobj, struct device, kobj);
/linux-master/drivers/dma/ioat/
H A Ddma.h113 struct kobject kobj; member in struct:ioatdma_chan
H A Dsysfs.c42 ioat_attr_show(struct kobject *kobj, struct attribute *attr, char *page) argument
48 ioat_chan = container_of(kobj, struct ioatdma_chan, kobj);
56 ioat_attr_store(struct kobject *kobj, struct attribute *attr, argument
63 ioat_chan = container_of(kobj, struct ioatdma_chan, kobj);
82 struct kobject *parent = &c->dev->device.kobj;
85 err = kobject_init_and_add(&ioat_chan->kobj, type,
90 kobject_put(&ioat_chan->kobj);
105 kobject_del(&ioat_chan->kobj);
[all...]
/linux-master/drivers/edac/
H A Damd64_edac.c808 static umode_t inj_is_visible(struct kobject *kobj, struct attribute *attr, int idx) argument
810 struct device *dev = kobj_to_dev(kobj);
H A Ddebugfs.c61 parent = debugfs_create_dir(mci->dev.kobj.name, edac_debugfs);
H A Dedac_device.h119 struct kobject kobj; member in struct:edac_device_block
133 struct kobject kobj; member in struct:edac_device_instance
215 struct kobject kobj; member in struct:edac_device_ctl_info
H A 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, argument
120 struct edac_device_ctl_info *edac_dev = to_ctl_info(kobj);
129 static ssize_t edac_dev_ctl_info_store(struct kobject *kobj, argument
133 struct edac_device_ctl_info *edac_dev = to_ctl_info(kobj);
178 * called when the reference count for the 'main' kobj
183 * That main kobj is initially set to one AND
187 * Each new internal kobj (in instances and blocks) then
191 * the 'main' kobj
202 edac_device_ctrl_master_release(struct kobject *kobj) argument
325 edac_device_ctrl_instance_release(struct kobject *kobj) argument
346 edac_dev_instance_show(struct kobject *kobj, struct attribute *attr, char *buffer) argument
358 edac_dev_instance_store(struct kobject *kobj, struct attribute *attr, const char *buffer, size_t count) argument
415 block_ue_count_show(struct kobject *kobj, struct attribute *attr, char *data) argument
423 block_ce_count_show(struct kobject *kobj, struct attribute *attr, char *data) argument
432 edac_device_ctrl_block_release(struct kobject *kobj) argument
449 edac_dev_block_show(struct kobject *kobj, struct attribute *attr, char *buffer) argument
[all...]
H A Dedac_mc_sysfs.c369 static umode_t csrow_dev_is_visible(struct kobject *kobj, argument
372 struct device *dev = kobj_to_dev(kobj);
894 static umode_t mci_attr_is_visible(struct kobject *kobj, argument
897 struct device *dev = kobj_to_dev(kobj);
H A Dedac_pci.h87 struct kobject kobj; member in struct:edac_pci_ctl_info
178 * this control struct's kobj. When that kobj's ref count
H A Dedac_pci_sysfs.c70 #define to_instance(k) container_of(k, struct edac_pci_ctl_info, kobj)
74 static void edac_pci_instance_release(struct kobject *kobj) argument
81 pci = to_instance(kobj);
83 /* decrement reference count on top main kobj */
97 static ssize_t edac_pci_instance_show(struct kobject *kobj, argument
100 struct edac_pci_ctl_info *pci = to_instance(kobj);
109 static ssize_t edac_pci_instance_store(struct kobject *kobj, argument
113 struct edac_pci_ctl_info *pci = to_instance(kobj);
164 /* First bump the ref count on the top main kobj, which will
174 /* And now register this new kobject under the main kobj */
239 edac_pci_dev_show(struct kobject *kobj, struct attribute *attr, char *buffer) argument
250 edac_pci_dev_store(struct kobject *kobj, struct attribute *attr, const char *buffer, size_t count) argument
316 edac_pci_release_main_kobj(struct kobject *kobj) argument
[all...]
H A Dthunderx_edac.c1427 ocx->debugfs = edac_debugfs_create_dir(pdev->dev.kobj.name);
2056 l2c->debugfs = edac_debugfs_create_dir(pdev->dev.kobj.name);
H A Dxgene_edac.c1934 edac->dfs = edac_debugfs_create_dir(pdev->dev.kobj.name);
/linux-master/drivers/extcon/
H A Dextcon.c472 kobject_uevent(&edev->dev.kobj, KOBJ_CHANGE);
496 kobject_uevent_env(&edev->dev.kobj, KOBJ_CHANGE, envp);
/linux-master/drivers/firewire/
H A Dcore-device.c1240 kobject_uevent(&device->device.kobj, KOBJ_CHANGE);
/linux-master/drivers/firmware/
H A Ddmi-sysfs.c36 struct kobject kobj; member in struct:dmi_sysfs_entry
83 static void dmi_entry_free(struct kobject *kobj) argument
85 kfree(kobj);
88 static struct dmi_sysfs_entry *to_entry(struct kobject *kobj) argument
90 return container_of(kobj, struct dmi_sysfs_entry, kobj);
98 static ssize_t dmi_sysfs_attr_show(struct kobject *kobj, argument
101 struct dmi_sysfs_entry *entry = to_entry(kobj);
215 static ssize_t dmi_entry_attr_show(struct kobject *kobj, argument
225 return find_dmi_entry(to_entry(kobj
434 dmi_sel_raw_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t pos, size_t count) argument
540 dmi_entry_raw_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t pos, size_t count) argument
560 dmi_sysfs_entry_release(struct kobject *kobj) argument
[all...]
H A Dedd.c51 struct kobject kobj; member in struct:edd_device
102 #define to_edd_device(obj) container_of(obj,struct edd_device,kobj)
105 edd_attr_show(struct kobject * kobj, struct attribute *attr, char *buf) argument
107 struct edd_device *dev = to_edd_device(kobj);
598 * @kobj: kobject of edd structure
605 static void edd_release(struct kobject * kobj) argument
607 struct edd_device * dev = to_edd_device(kobj);
670 ret = sysfs_create_link(&edev->kobj,&pci_dev->dev.kobj,"pci_dev");
678 kobject_put(&edev->kobj);
[all...]
/linux-master/drivers/firmware/efi/
H A Defi.c129 static ssize_t systab_show(struct kobject *kobj, argument
134 if (!kobj || !buf)
159 static ssize_t fw_platform_size_show(struct kobject *kobj, argument
180 umode_t __weak efi_attr_is_visible(struct kobject *kobj, struct attribute *attr, argument

Completed in 439 milliseconds

1234567891011>>