Home
last modified time | relevance | path

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

12345678910

/linux-6.1.9/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-6.1.9/arch/sh/drivers/dma/
Ddma-sysfs.c54 return device_create_file(dma_subsys.dev_root, &dev_attr_devices); in dma_subsys_init()
134 ret |= device_create_file(dev, &dev_attr_dev_id); in dma_create_sysfs_files()
135 ret |= device_create_file(dev, &dev_attr_count); in dma_create_sysfs_files()
136 ret |= device_create_file(dev, &dev_attr_mode); in dma_create_sysfs_files()
137 ret |= device_create_file(dev, &dev_attr_flags); in dma_create_sysfs_files()
138 ret |= device_create_file(dev, &dev_attr_config); in dma_create_sysfs_files()
/linux-6.1.9/arch/powerpc/kernel/
Dsysfs.c226 device_create_file(cpu_subsys.dev_root, &dev_attr_dscr_default); in sysfs_create_dscr_default()
749 device_create_file(cpu_subsys.dev_root, &dev_attr_svm); in create_svm_file()
779 device_create_file(s, &dev_attr_idle_purr); in create_idle_purr_file()
809 device_create_file(s, &dev_attr_idle_spurr); in create_idle_spurr_file()
838 device_create_file(s, &dev_attr_smt_snooze_delay); in register_cpu_online()
872 device_create_file(s, &attrs[i]); in register_cpu_online()
876 device_create_file(s, &pmc_attrs[i]); in register_cpu_online()
881 device_create_file(s, &dev_attr_mmcra); in register_cpu_online()
884 device_create_file(s, &dev_attr_mmcr3); in register_cpu_online()
890 device_create_file(s, &dev_attr_purr); in register_cpu_online()
[all …]
Deeh_sysfs.c118 rc = device_create_file(&pdev->dev, &dev_attr_eeh_notify_resume); in eeh_notify_resume_add()
148 rc += device_create_file(&pdev->dev, &dev_attr_eeh_mode); in eeh_sysfs_add_device()
149 rc += device_create_file(&pdev->dev, &dev_attr_eeh_pe_config_addr); in eeh_sysfs_add_device()
150 rc += device_create_file(&pdev->dev, &dev_attr_eeh_pe_state); in eeh_sysfs_add_device()
/linux-6.1.9/drivers/hwmon/
Dw83627hf.c1716 if ((err = device_create_file(dev, in w83627hf_probe()
1718 || (err = device_create_file(dev, in w83627hf_probe()
1720 || (err = device_create_file(dev, in w83627hf_probe()
1722 || (err = device_create_file(dev, in w83627hf_probe()
1724 || (err = device_create_file(dev, in w83627hf_probe()
1726 || (err = device_create_file(dev, in w83627hf_probe()
1728 || (err = device_create_file(dev, in w83627hf_probe()
1730 || (err = device_create_file(dev, in w83627hf_probe()
1732 || (err = device_create_file(dev, in w83627hf_probe()
1734 || (err = device_create_file(dev, in w83627hf_probe()
[all …]
Di5k_amb.c290 res = device_create_file(&pdev->dev, in i5k_amb_hwmon_init()
305 res = device_create_file(&pdev->dev, in i5k_amb_hwmon_init()
321 res = device_create_file(&pdev->dev, in i5k_amb_hwmon_init()
337 res = device_create_file(&pdev->dev, in i5k_amb_hwmon_init()
353 res = device_create_file(&pdev->dev, in i5k_amb_hwmon_init()
368 res = device_create_file(&pdev->dev, in i5k_amb_hwmon_init()
376 res = device_create_file(&pdev->dev, &dev_attr_name); in i5k_amb_hwmon_init()
Dw83l785ts.c183 err = device_create_file(dev, &sensor_dev_attr_temp1_input.dev_attr); in w83l785ts_probe()
187 err = device_create_file(dev, &sensor_dev_attr_temp1_max.dev_attr); in w83l785ts_probe()
Dpcf8591.c205 err = device_create_file(&client->dev, &dev_attr_in2_input); in pcf8591_probe()
212 err = device_create_file(&client->dev, &dev_attr_in3_input); in pcf8591_probe()
/linux-6.1.9/drivers/acpi/
Ddevice_sysfs.c526 result = device_create_file(&dev->dev, &dev_attr_path); in acpi_device_setup_files()
532 result = device_create_file(&dev->dev, &dev_attr_hid); in acpi_device_setup_files()
536 result = device_create_file(&dev->dev, &dev_attr_modalias); in acpi_device_setup_files()
550 result = device_create_file(&dev->dev, &dev_attr_description); in acpi_device_setup_files()
556 result = device_create_file(&dev->dev, &dev_attr_adr); in acpi_device_setup_files()
558 result = device_create_file(&dev->dev, &dev_attr_uid); in acpi_device_setup_files()
561 result = device_create_file(&dev->dev, &dev_attr_sun); in acpi_device_setup_files()
567 result = device_create_file(&dev->dev, &dev_attr_hrv); in acpi_device_setup_files()
573 result = device_create_file(&dev->dev, &dev_attr_status); in acpi_device_setup_files()
583 result = device_create_file(&dev->dev, &dev_attr_eject); in acpi_device_setup_files()
[all …]
Dacpi_pad.c342 result = device_create_file(&device->dev, &dev_attr_idlecpus); in acpi_pad_add_sysfs()
345 result = device_create_file(&device->dev, &dev_attr_idlepct); in acpi_pad_add_sysfs()
350 result = device_create_file(&device->dev, &dev_attr_rrtime); in acpi_pad_add_sysfs()
/linux-6.1.9/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-6.1.9/drivers/mfd/
Ducb1x00-assabet.c63 device_create_file(&ucb->dev, &dev_attr_vbatt); in ucb1x00_assabet_add()
64 device_create_file(&ucb->dev, &dev_attr_vcharger); in ucb1x00_assabet_add()
65 device_create_file(&ucb->dev, &dev_attr_batt_temp); in ucb1x00_assabet_add()
Dtps65911-comparator.c132 ret = device_create_file(&pdev->dev, &dev_attr_comp1_threshold); in tps65911_comparator_probe()
136 ret = device_create_file(&pdev->dev, &dev_attr_comp2_threshold); in tps65911_comparator_probe()
Dwm831x-otp.c62 ret = device_create_file(wm831x->dev, &dev_attr_unique_id); in wm831x_otp_init()
/linux-6.1.9/arch/powerpc/platforms/pseries/
Dpseries_energy.c309 err = device_create_file(cpu_subsys.dev_root, in pseries_energy_init()
312 err = device_create_file(cpu_subsys.dev_root, in pseries_energy_init()
319 err = device_create_file(cpu_dev, in pseries_energy_init()
323 err = device_create_file(cpu_dev, in pseries_energy_init()
/linux-6.1.9/drivers/platform/x86/intel/
Drst.c105 error = device_create_file(&acpi->dev, &irst_timeout_attr); in irst_add()
109 error = device_create_file(&acpi->dev, &irst_wakeup_attr); in irst_add()
/linux-6.1.9/drivers/media/usb/pvrusb2/
Dpvrusb2-sysfs.c430 ret = device_create_file(sfp->class_dev,&dip->attr_debugcmd); in pvr2_sysfs_add_debugifc()
438 ret = device_create_file(sfp->class_dev,&dip->attr_debuginfo); in pvr2_sysfs_add_debugifc()
653 ret = device_create_file(sfp->class_dev, in class_dev_create()
668 ret = device_create_file(sfp->class_dev, in class_dev_create()
683 ret = device_create_file(sfp->class_dev,&sfp->attr_unit_number); in class_dev_create()
697 ret = device_create_file(sfp->class_dev, in class_dev_create()
712 ret = device_create_file(sfp->class_dev, in class_dev_create()
727 ret = device_create_file(sfp->class_dev, in class_dev_create()
/linux-6.1.9/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-6.1.9/drivers/net/wireless/ti/wlcore/
Dsysfs.c137 ret = device_create_file(wl->dev, &dev_attr_bt_coex_state); in wlcore_sysfs_init()
144 ret = device_create_file(wl->dev, &dev_attr_hw_pg_ver); in wlcore_sysfs_init()
/linux-6.1.9/drivers/net/wireless/broadcom/b43legacy/
Dsysfs.c206 err = device_create_file(dev, &dev_attr_interference); in b43legacy_sysfs_register()
209 err = device_create_file(dev, &dev_attr_shortpreamble); in b43legacy_sysfs_register()
/linux-6.1.9/drivers/staging/fbtft/
Dfbtft-sysfs.c210 device_create_file(par->info->dev, &debug_device_attr); in fbtft_sysfs_init()
212 device_create_file(par->info->dev, &gamma_device_attrs[0]); in fbtft_sysfs_init()
/linux-6.1.9/drivers/sh/intc/
Duserimask.c67 return device_create_file(intc_subsys.dev_root, &dev_attr_userimask); in userimask_sysdev_init()
/linux-6.1.9/arch/sparc/kernel/
Dsysfs.c158 device_create_file(s, &dev_attr_mmustat_enable); in register_mmu_stats()
215 device_create_file(s, &cpu_core_attrs[i]); in register_cpu_online()
/linux-6.1.9/drivers/eisa/
Deisa-bus.c234 rc = device_create_file(&edev->dev, &dev_attr_signature); in eisa_register_device()
237 rc = device_create_file(&edev->dev, &dev_attr_enabled); in eisa_register_device()
240 rc = device_create_file(&edev->dev, &dev_attr_modalias); in eisa_register_device()
/linux-6.1.9/drivers/thermal/
Dthermal_hwmon.c175 result = device_create_file(hwmon->device, &temp->temp_input.attr); in thermal_add_hwmon_sysfs()
187 result = device_create_file(hwmon->device, in thermal_add_hwmon_sysfs()

12345678910