Home
last modified time | relevance | path

Searched refs:sysfs_create_file (Results 1 – 25 of 68) sorted by relevance

123

/linux-6.1.9/drivers/acpi/
Dfan_attr.c83 status = sysfs_create_file(&device->dev.kobj, &fan->fine_grain_control.attr); in acpi_fan_create_attributes()
93 status = sysfs_create_file(&device->dev.kobj, &fan->fst_speed.attr); in acpi_fan_create_attributes()
106 status = sysfs_create_file(&device->dev.kobj, &fps->dev_attr.attr); in acpi_fan_create_attributes()
/linux-6.1.9/drivers/pci/hotplug/
Dpci_hotplug_core.c300 retval = sysfs_create_file(&pci_slot->kobj, in fs_add_slot()
307 retval = sysfs_create_file(&pci_slot->kobj, in fs_add_slot()
314 retval = sysfs_create_file(&pci_slot->kobj, in fs_add_slot()
321 retval = sysfs_create_file(&pci_slot->kobj, in fs_add_slot()
328 retval = sysfs_create_file(&pci_slot->kobj, in fs_add_slot()
/linux-6.1.9/drivers/gpu/drm/i915/gt/
Dsysfs_engines.c478 sysfs_create_file(&ke->base, &timeslice_duration_def.attr)) in add_defaults()
482 sysfs_create_file(&ke->base, &preempt_timeout_def.attr)) in add_defaults()
522 sysfs_create_file(kobj, &timeslice_duration_attr.attr)) in intel_engines_add_sysfs()
526 sysfs_create_file(kobj, &preempt_timeout_attr.attr)) in intel_engines_add_sysfs()
/linux-6.1.9/arch/mips/loongson64/
Dboardinfo.c46 return sysfs_create_file(lefi_kobj, &boardinfo_attr.attr); in boardinfo_init()
/linux-6.1.9/drivers/misc/
Dad525x_dpot.c641 int err = sysfs_create_file(&dev->kobj, in ad_dpot_add_files()
644 err |= sysfs_create_file(&dev->kobj, in ad_dpot_add_files()
647 err |= sysfs_create_file(&dev->kobj, in ad_dpot_add_files()
650 err |= sysfs_create_file(&dev->kobj, in ad_dpot_add_files()
652 err |= sysfs_create_file(&dev->kobj, in ad_dpot_add_files()
Dpch_phub.c713 ret = sysfs_create_file(&pdev->dev.kobj, in pch_phub_probe()
776 ret = sysfs_create_file(&pdev->dev.kobj, in pch_phub_probe()
793 ret = sysfs_create_file(&pdev->dev.kobj, in pch_phub_probe()
/linux-6.1.9/arch/powerpc/platforms/pseries/
Dpower.c69 return (sysfs_create_file(power_kobj, &auto_poweron_attr.attr)); in apo_pm_init()
Dmobility.c824 rc = sysfs_create_file(mobility_kobj, &class_attr_migration.attr); in mobility_sysfs_init()
828 rc = sysfs_create_file(mobility_kobj, &class_attr_api_version.attr.attr); in mobility_sysfs_init()
/linux-6.1.9/arch/loongarch/kernel/
Denv.c74 return sysfs_create_file(loongson_kobj, &boardinfo_attr.attr); in boardinfo_init()
/linux-6.1.9/drivers/platform/x86/
Duv_sysfs.c616 ret = sysfs_create_file(&top_obj->kobj, &uv_pci_type_attribute.attr); in init_pci_top_obj()
621 ret = sysfs_create_file(&top_obj->kobj, &uv_pci_location_attribute.attr); in init_pci_top_obj()
626 ret = sysfs_create_file(&top_obj->kobj, &uv_pci_iio_stack_attribute.attr); in init_pci_top_obj()
631 ret = sysfs_create_file(&top_obj->kobj, &uv_pci_ppb_addr_attribute.attr); in init_pci_top_obj()
636 ret = sysfs_create_file(&top_obj->kobj, &uv_pci_slot_attribute.attr); in init_pci_top_obj()
/linux-6.1.9/drivers/gpu/drm/amd/amdkfd/
Dkfd_topology.c717 ret = sysfs_create_file(dev->kobj_node, &dev->attr_gpuid); in kfd_build_sysfs_node_entry()
720 ret = sysfs_create_file(dev->kobj_node, &dev->attr_name); in kfd_build_sysfs_node_entry()
723 ret = sysfs_create_file(dev->kobj_node, &dev->attr_props); in kfd_build_sysfs_node_entry()
742 ret = sysfs_create_file(mem->kobj, &mem->attr); in kfd_build_sysfs_node_entry()
763 ret = sysfs_create_file(cache->kobj, &cache->attr); in kfd_build_sysfs_node_entry()
784 ret = sysfs_create_file(iolink->kobj, &iolink->attr); in kfd_build_sysfs_node_entry()
805 ret = sysfs_create_file(p2plink->kobj, &p2plink->attr); in kfd_build_sysfs_node_entry()
892 ret = sysfs_create_file(sys_props.kobj_topology, in kfd_topology_update_sysfs()
900 ret = sysfs_create_file(sys_props.kobj_topology, in kfd_topology_update_sysfs()
1386 ret = sysfs_create_file(p2plink->kobj, &p2plink->attr); in kfd_build_p2p_node_entry()
/linux-6.1.9/drivers/xen/
Dsys-hypervisor.c46 return sysfs_create_file(hypervisor_kobj, &type_attr.attr); in xen_sysfs_type_init()
75 return sysfs_create_file(hypervisor_kobj, &guest_type_attr.attr); in xen_sysfs_guest_type_init()
172 return sysfs_create_file(hypervisor_kobj, &uuid_attr.attr); in xen_sysfs_uuid_init()
/linux-6.1.9/drivers/staging/greybus/
Daudio_manager_sysfs.c89 err = sysfs_create_file(kobj, &kattr->attr); in manager_sysfs_init_attribute()
/linux-6.1.9/drivers/platform/x86/dell/dell-wmi-sysman/
Dsysman.c213 ret = sysfs_create_file(&wmi_priv.main_dir_kset->kobj, &reset_bios.attr); in create_attributes_level_sysfs_files()
217 ret = sysfs_create_file(&wmi_priv.main_dir_kset->kobj, &pending_reboot.attr); in create_attributes_level_sysfs_files()
/linux-6.1.9/drivers/infiniband/hw/mlx4/
Dsysfs.c192 ret = sysfs_create_file(vdentry->kobj, &vdentry->dentry.attr); in create_sysfs_entry()
208 ret = sysfs_create_file(port->mcgs_parent, attr); in add_sysfs_port_mcg_attr()
593 ret = sysfs_create_file(&p->kobj, &p->smi_enabled.attr); in add_vf_smi_entries()
604 ret = sysfs_create_file(&p->kobj, &p->enable_smi_admin.attr); in add_vf_smi_entries()
/linux-6.1.9/arch/x86/platform/olpc/
Dolpc-xo15-sci.c164 r = sysfs_create_file(&device->dev.kobj, &lid_wake_on_close_attr.attr); in xo15_sci_add()
/linux-6.1.9/arch/powerpc/platforms/powernv/
Dopal-psr.c158 if (sysfs_create_file(psr_kobj, &psr_attrs[i].attr.attr)) { in opal_psr_init()
Dopal-sysparam.c265 if (sysfs_create_file(sysparam_kobj, &attr[i].kobj_attr.attr)) { in opal_sys_param_init()
/linux-6.1.9/drivers/base/
Ddriver.c182 error = sysfs_create_file(&drv->p->kobj, &attr->attr); in driver_create_file()
/linux-6.1.9/arch/powerpc/kernel/
Dsecvar-sysfs.c227 rc = sysfs_create_file(secvar_kobj, &format_attr.attr); in secvar_sysfs_init()
/linux-6.1.9/arch/powerpc/platforms/ps3/
Dsetup.c207 result = sysfs_create_file(kobj, &attr.attr); in ps3_setup_sysfs()
/linux-6.1.9/net/netfilter/
Dxt_IDLETIMER.c159 ret = sysfs_create_file(idletimer_tg_kobj, &info->timer->attr.attr); in idletimer_tg_create()
208 ret = sysfs_create_file(idletimer_tg_kobj, &info->timer->attr.attr); in idletimer_tg_create_v1()
/linux-6.1.9/arch/powerpc/platforms/4xx/
Dcpm.c173 ret = sysfs_create_file(&dev->kobj, in cpm_idle_config_sysfs()
/linux-6.1.9/kernel/module/
Ddecompress.c268 error = sysfs_create_file(&module_kset->kobj, in module_decompress_sysfs_init()
/linux-6.1.9/drivers/soc/xilinx/
Dzynqmp_power.c263 ret = sysfs_create_file(&pdev->dev.kobj, &dev_attr_suspend_mode.attr); in zynqmp_pm_probe()

123