Home
last modified time | relevance | path

Searched refs:device_create_file (Results 1 – 25 of 296) sorted by relevance

12345678910>>...12

/Linux-v4.19/drivers/dio/
Ddio-sysfs.c73 if ((error = device_create_file(dev, &dev_attr_id)) || in dio_create_sysfs_dev_files()
74 (error = device_create_file(dev, &dev_attr_ipl)) || in dio_create_sysfs_dev_files()
75 (error = device_create_file(dev, &dev_attr_secid)) || in dio_create_sysfs_dev_files()
76 (error = device_create_file(dev, &dev_attr_name)) || in dio_create_sysfs_dev_files()
77 (error = device_create_file(dev, &dev_attr_resource))) in dio_create_sysfs_dev_files()
/Linux-v4.19/arch/sh/drivers/dma/
Ddma-sysfs.c57 return device_create_file(dma_subsys.dev_root, &dev_attr_devices); in dma_subsys_init()
137 ret |= device_create_file(dev, &dev_attr_dev_id); in dma_create_sysfs_files()
138 ret |= device_create_file(dev, &dev_attr_count); in dma_create_sysfs_files()
139 ret |= device_create_file(dev, &dev_attr_mode); in dma_create_sysfs_files()
140 ret |= device_create_file(dev, &dev_attr_flags); in dma_create_sysfs_files()
141 ret |= device_create_file(dev, &dev_attr_config); in dma_create_sysfs_files()
/Linux-v4.19/drivers/soc/versatile/
Dsoc-integrator.c141 device_create_file(dev, &integrator_manf_attr); in integrator_soc_init()
142 device_create_file(dev, &integrator_arch_attr); in integrator_soc_init()
143 device_create_file(dev, &integrator_fpga_attr); in integrator_soc_init()
144 device_create_file(dev, &integrator_build_attr); in integrator_soc_init()
Dsoc-realview.c119 device_create_file(soc_device_to_device(soc_dev), &realview_manf_attr); in realview_soc_probe()
120 device_create_file(soc_device_to_device(soc_dev), &realview_board_attr); in realview_soc_probe()
121 device_create_file(soc_device_to_device(soc_dev), &realview_arch_attr); in realview_soc_probe()
122 device_create_file(soc_device_to_device(soc_dev), &realview_build_attr); in realview_soc_probe()
/Linux-v4.19/drivers/acpi/
Ddevice_sysfs.c525 result = device_create_file(&dev->dev, &dev_attr_path); in acpi_device_setup_files()
531 result = device_create_file(&dev->dev, &dev_attr_hid); in acpi_device_setup_files()
535 result = device_create_file(&dev->dev, &dev_attr_modalias); in acpi_device_setup_files()
549 result = device_create_file(&dev->dev, &dev_attr_description); in acpi_device_setup_files()
555 result = device_create_file(&dev->dev, &dev_attr_adr); in acpi_device_setup_files()
557 result = device_create_file(&dev->dev, &dev_attr_uid); in acpi_device_setup_files()
560 result = device_create_file(&dev->dev, &dev_attr_sun); in acpi_device_setup_files()
566 result = device_create_file(&dev->dev, &dev_attr_hrv); in acpi_device_setup_files()
572 result = device_create_file(&dev->dev, &dev_attr_status); in acpi_device_setup_files()
582 result = device_create_file(&dev->dev, &dev_attr_eject); in acpi_device_setup_files()
[all …]
/Linux-v4.19/arch/powerpc/kernel/
Dsysfs.c600 err = device_create_file(cpu_subsys.dev_root, &dev_attr_dscr_default); in sysfs_create_dscr_default()
730 device_create_file(s, &dev_attr_smt_snooze_delay); in register_cpu_online()
764 device_create_file(s, &attrs[i]); in register_cpu_online()
768 device_create_file(s, &pmc_attrs[i]); in register_cpu_online()
772 device_create_file(s, &dev_attr_mmcra); in register_cpu_online()
777 device_create_file(s, &dev_attr_purr); in register_cpu_online()
781 device_create_file(s, &dev_attr_spurr); in register_cpu_online()
784 device_create_file(s, &dev_attr_dscr); in register_cpu_online()
787 device_create_file(s, &dev_attr_pir); in register_cpu_online()
791 device_create_file(s, &dev_attr_tscr); in register_cpu_online()
[all …]
Deeh_sysfs.c133 rc = device_create_file(&pdev->dev, &dev_attr_eeh_notify_resume); in eeh_notify_resume_add()
163 rc += device_create_file(&pdev->dev, &dev_attr_eeh_mode); in eeh_sysfs_add_device()
164 rc += device_create_file(&pdev->dev, &dev_attr_eeh_pe_config_addr); in eeh_sysfs_add_device()
165 rc += device_create_file(&pdev->dev, &dev_attr_eeh_pe_state); in eeh_sysfs_add_device()
/Linux-v4.19/drivers/hwmon/
Dw83627hf.c1471 if ((err = device_create_file(dev, in w83627hf_probe()
1473 || (err = device_create_file(dev, in w83627hf_probe()
1475 || (err = device_create_file(dev, in w83627hf_probe()
1477 || (err = device_create_file(dev, in w83627hf_probe()
1479 || (err = device_create_file(dev, in w83627hf_probe()
1481 || (err = device_create_file(dev, in w83627hf_probe()
1483 || (err = device_create_file(dev, in w83627hf_probe()
1485 || (err = device_create_file(dev, in w83627hf_probe()
1487 || (err = device_create_file(dev, in w83627hf_probe()
1489 || (err = device_create_file(dev, in w83627hf_probe()
[all …]
Dk8temp.c253 err = device_create_file(&pdev->dev, in k8temp_probe()
260 err = device_create_file(&pdev->dev, in k8temp_probe()
268 err = device_create_file(&pdev->dev, in k8temp_probe()
273 err = device_create_file(&pdev->dev, in k8temp_probe()
281 err = device_create_file(&pdev->dev, &dev_attr_name); in k8temp_probe()
Di5k_amb.c303 res = device_create_file(&pdev->dev, in i5k_amb_hwmon_init()
318 res = device_create_file(&pdev->dev, in i5k_amb_hwmon_init()
334 res = device_create_file(&pdev->dev, in i5k_amb_hwmon_init()
350 res = device_create_file(&pdev->dev, in i5k_amb_hwmon_init()
366 res = device_create_file(&pdev->dev, in i5k_amb_hwmon_init()
381 res = device_create_file(&pdev->dev, in i5k_amb_hwmon_init()
389 res = device_create_file(&pdev->dev, &dev_attr_name); in i5k_amb_hwmon_init()
Dw83627ehf.c2372 err = device_create_file(dev, &dev_attr_cpu0_vid); in w83627ehf_probe()
2411 err = device_create_file(dev, &dev_attr_cpu0_vid); in w83627ehf_probe()
2451 err = device_create_file(dev, &sda_sf3_arrays[i].dev_attr); in w83627ehf_probe()
2461 err = device_create_file(dev, &attr->dev_attr); in w83627ehf_probe()
2469 err = device_create_file(dev, in w83627ehf_probe()
2476 err = device_create_file(dev, in w83627ehf_probe()
2485 if ((err = device_create_file(dev, &sda_in_input[i].dev_attr)) in w83627ehf_probe()
2486 || (err = device_create_file(dev, in w83627ehf_probe()
2488 || (err = device_create_file(dev, in w83627ehf_probe()
2490 || (err = device_create_file(dev, in w83627ehf_probe()
[all …]
Dw83l785ts.c198 err = device_create_file(dev, &sensor_dev_attr_temp1_input.dev_attr); in w83l785ts_probe()
202 err = device_create_file(dev, &sensor_dev_attr_temp1_max.dev_attr); in w83l785ts_probe()
/Linux-v4.19/drivers/macintosh/
Dtherm_adt746x.c429 err = device_create_file(dev, &dev_attr_sensor1_temperature); in thermostat_create_files()
430 err |= device_create_file(dev, &dev_attr_sensor2_temperature); in thermostat_create_files()
431 err |= device_create_file(dev, &dev_attr_sensor1_limit); in thermostat_create_files()
432 err |= device_create_file(dev, &dev_attr_sensor2_limit); in thermostat_create_files()
433 err |= device_create_file(dev, &dev_attr_sensor1_location); in thermostat_create_files()
434 err |= device_create_file(dev, &dev_attr_sensor2_location); in thermostat_create_files()
435 err |= device_create_file(dev, &dev_attr_limit_adjust); in thermostat_create_files()
436 err |= device_create_file(dev, &dev_attr_specified_fan_speed); in thermostat_create_files()
437 err |= device_create_file(dev, &dev_attr_sensor1_fan_speed); in thermostat_create_files()
439 err |= device_create_file(dev, &dev_attr_sensor2_fan_speed); in thermostat_create_files()
/Linux-v4.19/drivers/mfd/
Ducb1x00-assabet.c66 device_create_file(&ucb->dev, &dev_attr_vbatt); in ucb1x00_assabet_add()
67 device_create_file(&ucb->dev, &dev_attr_vcharger); in ucb1x00_assabet_add()
68 device_create_file(&ucb->dev, &dev_attr_batt_temp); in ucb1x00_assabet_add()
Dtps65911-comparator.c137 ret = device_create_file(&pdev->dev, &dev_attr_comp1_threshold); in tps65911_comparator_probe()
141 ret = device_create_file(&pdev->dev, &dev_attr_comp2_threshold); in tps65911_comparator_probe()
/Linux-v4.19/arch/mips/txx9/generic/
D7segled.c99 error = device_create_file(tx_7segled_subsys.dev_root, &dev_attr_map_seg7); in tx_7segled_init_sysfs()
117 device_create_file(dev, &dev_attr_ascii); in tx_7segled_init_sysfs()
118 device_create_file(dev, &dev_attr_raw); in tx_7segled_init_sysfs()
/Linux-v4.19/drivers/usb/misc/
Dcytherm.c325 retval = device_create_file(&interface->dev, &dev_attr_brightness); in cytherm_probe()
328 retval = device_create_file(&interface->dev, &dev_attr_temp); in cytherm_probe()
331 retval = device_create_file(&interface->dev, &dev_attr_button); in cytherm_probe()
334 retval = device_create_file(&interface->dev, &dev_attr_port0); in cytherm_probe()
337 retval = device_create_file(&interface->dev, &dev_attr_port1); in cytherm_probe()
/Linux-v4.19/arch/powerpc/platforms/pseries/
Dpseries_energy.c306 err = device_create_file(cpu_subsys.dev_root, in pseries_energy_init()
309 err = device_create_file(cpu_subsys.dev_root, in pseries_energy_init()
316 err = device_create_file(cpu_dev, in pseries_energy_init()
320 err = device_create_file(cpu_dev, in pseries_energy_init()
/Linux-v4.19/drivers/platform/x86/
Dintel-rst.c124 error = device_create_file(&acpi->dev, &irst_timeout_attr); in irst_add()
128 error = device_create_file(&acpi->dev, &irst_wakeup_attr); in irst_add()
Dhp-wmi.c885 err = device_create_file(&device->dev, &dev_attr_display); in hp_wmi_bios_setup()
888 err = device_create_file(&device->dev, &dev_attr_hddtemp); in hp_wmi_bios_setup()
891 err = device_create_file(&device->dev, &dev_attr_als); in hp_wmi_bios_setup()
894 err = device_create_file(&device->dev, &dev_attr_dock); in hp_wmi_bios_setup()
897 err = device_create_file(&device->dev, &dev_attr_tablet); in hp_wmi_bios_setup()
900 err = device_create_file(&device->dev, &dev_attr_postcode); in hp_wmi_bios_setup()
/Linux-v4.19/drivers/usb/host/
Dehci-sysfs.c156 i = device_create_file(controller, &dev_attr_companion); in create_sysfs_files()
160 i = device_create_file(controller, &dev_attr_uframe_periodic_max); in create_sysfs_files()
/Linux-v4.19/drivers/media/usb/pvrusb2/
Dpvrusb2-sysfs.c440 ret = device_create_file(sfp->class_dev,&dip->attr_debugcmd); in pvr2_sysfs_add_debugifc()
448 ret = device_create_file(sfp->class_dev,&dip->attr_debuginfo); in pvr2_sysfs_add_debugifc()
663 ret = device_create_file(sfp->class_dev, in class_dev_create()
678 ret = device_create_file(sfp->class_dev, in class_dev_create()
693 ret = device_create_file(sfp->class_dev,&sfp->attr_unit_number); in class_dev_create()
707 ret = device_create_file(sfp->class_dev, in class_dev_create()
722 ret = device_create_file(sfp->class_dev, in class_dev_create()
737 ret = device_create_file(sfp->class_dev, in class_dev_create()
/Linux-v4.19/drivers/net/wireless/ti/wlcore/
Dsysfs.c155 ret = device_create_file(wl->dev, &dev_attr_bt_coex_state); in wlcore_sysfs_init()
162 ret = device_create_file(wl->dev, &dev_attr_hw_pg_ver); in wlcore_sysfs_init()
/Linux-v4.19/drivers/net/wireless/broadcom/b43legacy/
Dsysfs.c218 err = device_create_file(dev, &dev_attr_interference); in b43legacy_sysfs_register()
221 err = device_create_file(dev, &dev_attr_shortpreamble); in b43legacy_sysfs_register()
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/
Damdgpu_pm.c1802 ret = device_create_file(adev->dev, &dev_attr_power_dpm_state); in amdgpu_pm_sysfs_init()
1807 ret = device_create_file(adev->dev, &dev_attr_power_dpm_force_performance_level); in amdgpu_pm_sysfs_init()
1814 ret = device_create_file(adev->dev, &dev_attr_pp_num_states); in amdgpu_pm_sysfs_init()
1819 ret = device_create_file(adev->dev, &dev_attr_pp_cur_state); in amdgpu_pm_sysfs_init()
1824 ret = device_create_file(adev->dev, &dev_attr_pp_force_state); in amdgpu_pm_sysfs_init()
1829 ret = device_create_file(adev->dev, &dev_attr_pp_table); in amdgpu_pm_sysfs_init()
1835 ret = device_create_file(adev->dev, &dev_attr_pp_dpm_sclk); in amdgpu_pm_sysfs_init()
1840 ret = device_create_file(adev->dev, &dev_attr_pp_dpm_mclk); in amdgpu_pm_sysfs_init()
1845 ret = device_create_file(adev->dev, &dev_attr_pp_dpm_pcie); in amdgpu_pm_sysfs_init()
1850 ret = device_create_file(adev->dev, &dev_attr_pp_sclk_od); in amdgpu_pm_sysfs_init()
[all …]

12345678910>>...12