/linux-master/include/linux/ |
H A D | livepatch.h | 32 * @kobj: kobject for sysfs resources 71 struct kobject kobj; member in struct:klp_func 109 * @kobj: kobject for sysfs resources 124 struct kobject kobj; member in struct:klp_object 151 * @kobj: kobject for sysfs resources 167 struct kobject kobj; member in struct:klp_patch
|
/linux-master/net/bridge/ |
H A D | br_if.c | 259 static void release_nbp(struct kobject *kobj) argument 262 = container_of(kobj, struct net_bridge_port, kobj); 266 static void brport_get_ownership(const struct kobject *kobj, kuid_t *uid, kgid_t *gid) argument 268 struct net_bridge_port *p = kobj_to_brport(kobj); 289 kobject_put(&p->kobj); 371 kobject_uevent(&p->kobj, KOBJ_REMOVE); 372 kobject_del(&p->kobj); 613 err = kobject_init_and_add(&p->kobj, &brport_ktype, &(dev->dev.kobj), [all...] |
/linux-master/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_topology.h | 88 struct kobject *kobj; member in struct:kfd_mem_properties 106 struct kobject *kobj; member in struct:kfd_cache_properties 126 struct kobject *kobj; member in struct:kfd_iolink_properties
|
/linux-master/drivers/thermal/intel/int340x_thermal/ |
H A D | processor_thermal_wt_hint.c | 218 sysfs_notify(&pdev->dev.kobj, "workload_hint", "workload_type_index"); 228 ret = sysfs_create_group(&pdev->dev.kobj, &workload_hint_attribute_group); 248 sysfs_remove_group(&pdev->dev.kobj, &workload_hint_attribute_group);
|
/linux-master/drivers/base/ |
H A D | base.h | 61 #define to_subsys_private(obj) container_of_const(obj, struct subsys_private, subsys.kobj) 79 struct kobject kobj; member in struct:driver_private 85 #define to_driver(obj) container_of(obj, struct driver_private, kobj)
|
/linux-master/fs/xfs/ |
H A D | xfs_sysfs.c | 341 struct xfs_kobj *kobj = to_kobj(kobject); local 343 return container_of(kobj, struct xstats, xs_kobj); 397 struct xfs_kobj *kobj = to_kobj(kobject); local 399 return container_of(kobj, struct xlog, l_kobj); 491 struct xfs_kobj *kobj = to_kobj(kobject); local 492 return container_of(kobj, struct xfs_error_cfg, kobj); 498 struct xfs_kobj *kobj = to_kobj(kobject); local 499 return container_of(kobj, struct xfs_mount, m_error_kobj); 689 error = xfs_sysfs_init(&cfg->kobj, [all...] |
/linux-master/drivers/gpu/drm/xe/ |
H A D | xe_gt_ccs_mode.c | 87 struct xe_gt *gt = kobj_to_gt(&kdev->kobj); 98 struct xe_gt *gt = kobj_to_gt(&kdev->kobj); 107 struct xe_gt *gt = kobj_to_gt(&kdev->kobj);
|
/linux-master/drivers/acpi/ |
H A D | glue.c | 292 retval = sysfs_create_link(&acpi_dev->dev.kobj, &dev->kobj, 298 retval = sysfs_create_link(&dev->kobj, &acpi_dev->dev.kobj, 337 sysfs_remove_link(&acpi_dev->dev.kobj, physnode_name); 338 sysfs_remove_link(&dev->kobj, "firmware_node");
|
H A D | device_sysfs.c | 58 #define to_data_node(k) container_of(k, struct acpi_data_node, kobj) 61 static ssize_t acpi_data_node_attr_show(struct kobject *kobj, argument 64 struct acpi_data_node *dn = to_data_node(kobj); 74 static void acpi_data_node_release(struct kobject *kobj) argument 76 struct acpi_data_node *dn = to_data_node(kobj); 87 static void acpi_expose_nondev_subnodes(struct kobject *kobj, argument 100 ret = kobject_init_and_add(&dn->kobj, &acpi_data_node_ktype, 101 kobj, "%s", dn->name); 103 acpi_expose_nondev_subnodes(&dn->kobj, &dn->data); 119 kobject_put(&dn->kobj); [all...] |
/linux-master/drivers/rapidio/ |
H A D | rio-sysfs.c | 116 rio_read_config(struct file *filp, struct kobject *kobj, argument 120 struct rio_dev *dev = to_rio_dev(kobj_to_dev(kobj)); 187 rio_write_config(struct file *filp, struct kobject *kobj, argument 191 struct rio_dev *dev = to_rio_dev(kobj_to_dev(kobj)); 259 static umode_t rio_dev_is_attr_visible(struct kobject *kobj, argument 262 struct rio_dev *rdev = to_rio_dev(kobj_to_dev(kobj));
|
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_xgmi.c | 330 static ssize_t amdgpu_xgmi_show_attrs(struct kobject *kobj, argument 334 kobj, struct amdgpu_hive_info, kobj); 342 static void amdgpu_xgmi_hive_release(struct kobject *kobj) argument 345 kobj, struct amdgpu_hive_info, kobj); 531 if (hive->kobj.parent != (&adev->dev->kobj)) { 532 ret = sysfs_create_link(&adev->dev->kobj, &hive->kobj, [all...] |
/linux-master/drivers/uio/ |
H A D | uio_hv_generic.c | 126 static int hv_uio_ring_mmap(struct file *filp, struct kobject *kobj, argument 131 = container_of(kobj, struct vmbus_channel, kobj); 171 ret = sysfs_create_bin_file(&new_sc->kobj, &ring_buffer_bin_attr); 345 ret = sysfs_create_bin_file(&channel->kobj, &ring_buffer_bin_attr); 370 sysfs_remove_bin_file(&dev->channel->kobj, &ring_buffer_bin_attr);
|
/linux-master/drivers/zorro/ |
H A D | zorro-sysfs.c | 83 static ssize_t zorro_read_config(struct file *filp, struct kobject *kobj, argument 87 struct zorro_dev *z = to_zorro_dev(kobj_to_dev(kobj));
|
/linux-master/drivers/scsi/qedi/ |
H A D | qedi_dbg.c | 113 ret = sysfs_create_bin_file(&shost->shost_gendev.kobj, 126 sysfs_remove_bin_file(&shost->shost_gendev.kobj, iter->attr);
|
/linux-master/drivers/pci/ |
H A D | host-bridge.c | 33 kobject_get(&bridge->kobj); 39 kobject_put(&dev->kobj);
|
H A D | iov.c | 186 rc = sysfs_create_link(&dev->dev.kobj, &virtfn->dev.kobj, buf); 189 rc = sysfs_create_link(&virtfn->dev.kobj, &dev->dev.kobj, "physfn"); 193 kobject_uevent(&virtfn->dev.kobj, KOBJ_CHANGE); 198 sysfs_remove_link(&dev->dev.kobj, buf); 271 static umode_t sriov_vf_attrs_are_visible(struct kobject *kobj, argument 274 struct device *dev = kobj_to_dev(kobj); 367 sysfs_remove_link(&dev->dev.kobj, buf); 373 if (virtfn->dev.kobj 550 sriov_pf_attrs_are_visible(struct kobject *kobj, struct attribute *a, int n) argument [all...] |
/linux-master/drivers/net/wireless/ath/ath5k/ |
H A D | sysfs.c | 108 err = sysfs_create_group(&dev->kobj, &ath5k_attribute_group_ani); 122 sysfs_remove_group(&dev->kobj, &ath5k_attribute_group_ani);
|
/linux-master/drivers/scsi/qla4xxx/ |
H A D | ql4_attr.c | 12 qla4_8xxx_sysfs_read_fw_dump(struct file *filep, struct kobject *kobj, argument 16 struct scsi_qla_host *ha = to_qla_host(dev_to_shost(container_of(kobj, 17 struct device, kobj))); 30 qla4_8xxx_sysfs_write_fw_dump(struct file *filep, struct kobject *kobj, argument 34 struct scsi_qla_host *ha = to_qla_host(dev_to_shost(container_of(kobj, 35 struct device, kobj))); 132 ret = sysfs_create_bin_file(&host->shost_gendev.kobj, 147 sysfs_remove_bin_file(&host->shost_gendev.kobj,
|
/linux-master/drivers/hid/ |
H A D | hid-vivaldi-common.c | 119 static umode_t vivaldi_is_visible(struct kobject *kobj, struct attribute *attr, argument 122 struct hid_device *hdev = to_hid_device(kobj_to_dev(kobj));
|
H A D | hid-roccat-arvo.c | 186 struct kobject *kobj, void const *buf, 189 struct device *dev = kobj_to_dev(kobj)->parent->parent; 205 struct kobject *kobj, void *buf, loff_t off, 208 struct device *dev = kobj_to_dev(kobj)->parent->parent; 227 struct kobject *kobj, struct bin_attribute *attr, char *buf, 230 return arvo_sysfs_write(fp, kobj, buf, off, count, 237 struct kobject *kobj, struct bin_attribute *attr, char *buf, 240 return arvo_sysfs_read(fp, kobj, buf, off, count, 185 arvo_sysfs_write(struct file *fp, struct kobject *kobj, void const *buf, loff_t off, size_t count, size_t real_size, uint command) argument 204 arvo_sysfs_read(struct file *fp, struct kobject *kobj, void *buf, loff_t off, size_t count, size_t real_size, uint command) argument 226 arvo_sysfs_write_button(struct file *fp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument 236 arvo_sysfs_read_info(struct file *fp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument
|
H A D | hid-roccat-isku.c | 115 static ssize_t isku_sysfs_read(struct file *fp, struct kobject *kobj, argument 119 struct device *dev = kobj_to_dev(kobj)->parent->parent; 137 static ssize_t isku_sysfs_write(struct file *fp, struct kobject *kobj, argument 141 struct device *dev = kobj_to_dev(kobj)->parent->parent; 158 static ssize_t isku_sysfs_write_ ## thingy(struct file *fp, struct kobject *kobj, \ 162 return isku_sysfs_write(fp, kobj, buf, off, count, \ 167 static ssize_t isku_sysfs_read_ ## thingy(struct file *fp, struct kobject *kobj, \ 171 return isku_sysfs_read(fp, kobj, buf, off, count, \
|
/linux-master/drivers/misc/ |
H A D | hmc6352.c | 108 res = sysfs_create_group(&client->dev.kobj, &m_compass_gr); 120 sysfs_remove_group(&client->dev.kobj, &m_compass_gr);
|
/linux-master/block/ |
H A D | holder.c | 108 ret = add_symlink(bdev->bd_holder_dir, &disk_to_dev(disk)->kobj); 149 del_symlink(holder->holder_dir, &disk_to_dev(disk)->kobj);
|
/linux-master/drivers/scsi/esas2r/ |
H A D | esas2r_main.c | 60 static struct esas2r_adapter *esas2r_adapter_from_kobj(struct kobject *kobj) argument 62 struct device *dev = container_of(kobj, struct device, kobj); 68 static ssize_t read_fw(struct file *file, struct kobject *kobj, argument 72 struct esas2r_adapter *a = esas2r_adapter_from_kobj(kobj); 77 static ssize_t write_fw(struct file *file, struct kobject *kobj, argument 81 struct esas2r_adapter *a = esas2r_adapter_from_kobj(kobj); 86 static ssize_t read_fs(struct file *file, struct kobject *kobj, argument 90 struct esas2r_adapter *a = esas2r_adapter_from_kobj(kobj); 95 static ssize_t write_fs(struct file *file, struct kobject *kobj, argument 111 read_vda(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument 120 write_vda(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument 129 read_live_nvram(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument 140 write_live_nvram(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument 160 read_default_nvram(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument 171 read_hw(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument 189 write_hw(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument [all...] |
/linux-master/drivers/usb/core/ |
H A D | port.c | 70 kn = sysfs_break_active_protection(&dev->kobj, &attr->attr); 123 kn = sysfs_break_active_protection(&dev->kobj, &attr->attr); 504 rc = sysfs_create_link(&left->dev.kobj, &right->dev.kobj, "peer"); 507 rc = sysfs_create_link(&right->dev.kobj, &left->dev.kobj, "peer"); 509 sysfs_remove_link(&left->dev.kobj, "peer"); 584 sysfs_remove_link(&left->dev.kobj, "peer"); 586 sysfs_remove_link(&right->dev.kobj, "peer"); 693 ret = sysfs_create_link(&dev->kobj, [all...] |