/linux-4.1.27/drivers/hwmon/ |
D | jz4740-hwmon.c | 36 struct device *hwmon; member 51 struct jz4740_hwmon *hwmon = data; in jz4740_hwmon_irq() local 53 complete(&hwmon->read_completion); in jz4740_hwmon_irq() 60 struct jz4740_hwmon *hwmon = dev_get_drvdata(dev); in jz4740_hwmon_read_adcin() local 61 struct completion *completion = &hwmon->read_completion; in jz4740_hwmon_read_adcin() 66 mutex_lock(&hwmon->lock); in jz4740_hwmon_read_adcin() 70 enable_irq(hwmon->irq); in jz4740_hwmon_read_adcin() 71 hwmon->cell->enable(to_platform_device(dev)); in jz4740_hwmon_read_adcin() 76 val = readw(hwmon->base) & 0xfff; in jz4740_hwmon_read_adcin() 83 hwmon->cell->disable(to_platform_device(dev)); in jz4740_hwmon_read_adcin() [all …]
|
D | da9055-hwmon.c | 60 static int da9055_adc_manual_read(struct da9055_hwmon *hwmon, in da9055_adc_manual_read() argument 67 struct da9055 *da9055 = hwmon->da9055; in da9055_adc_manual_read() 72 mutex_lock(&hwmon->irq_lock); in da9055_adc_manual_read() 82 if (!wait_for_completion_timeout(&hwmon->done, in da9055_adc_manual_read() 107 mutex_unlock(&hwmon->irq_lock); in da9055_adc_manual_read() 113 struct da9055_hwmon *hwmon = irq_data; in da9055_auxadc_irq() local 115 complete(&hwmon->done); in da9055_auxadc_irq() 146 struct da9055_hwmon *hwmon = dev_get_drvdata(dev); in da9055_read_auto_ch() local 150 mutex_lock(&hwmon->hwmon_lock); in da9055_read_auto_ch() 152 ret = da9055_enable_auto_mode(hwmon->da9055, channel); in da9055_read_auto_ch() [all …]
|
D | da9052-hwmon.c | 78 struct da9052_hwmon *hwmon = dev_get_drvdata(dev); in da9052_read_vddout() local 81 mutex_lock(&hwmon->hwmon_lock); in da9052_read_vddout() 83 ret = da9052_enable_vddout_channel(hwmon->da9052); in da9052_read_vddout() 87 vdd = da9052_reg_read(hwmon->da9052, DA9052_VDD_RES_REG); in da9052_read_vddout() 93 ret = da9052_disable_vddout_channel(hwmon->da9052); in da9052_read_vddout() 97 mutex_unlock(&hwmon->hwmon_lock); in da9052_read_vddout() 101 da9052_disable_vddout_channel(hwmon->da9052); in da9052_read_vddout() 103 mutex_unlock(&hwmon->hwmon_lock); in da9052_read_vddout() 110 struct da9052_hwmon *hwmon = dev_get_drvdata(dev); in da9052_read_ich() local 113 ret = da9052_reg_read(hwmon->da9052, DA9052_ICHG_AV_REG); in da9052_read_ich() [all …]
|
D | s3c-hwmon.c | 71 struct s3c_hwmon *hwmon, int channel) in s3c_hwmon_read_ch() argument 75 ret = mutex_lock_interruptible(&hwmon->lock); in s3c_hwmon_read_ch() 81 ret = s3c_adc_read(hwmon->client, channel); in s3c_hwmon_read_ch() 82 mutex_unlock(&hwmon->lock); in s3c_hwmon_read_ch() 167 struct s3c_hwmon *hwmon = platform_get_drvdata(to_platform_device(dev)); in s3c_hwmon_ch_show() local 174 ret = s3c_hwmon_read_ch(dev, hwmon, sen_attr->index); in s3c_hwmon_ch_show() 278 struct s3c_hwmon *hwmon; in s3c_hwmon_probe() local 287 hwmon = devm_kzalloc(&dev->dev, sizeof(struct s3c_hwmon), GFP_KERNEL); in s3c_hwmon_probe() 288 if (hwmon == NULL) in s3c_hwmon_probe() 291 platform_set_drvdata(dev, hwmon); in s3c_hwmon_probe() [all …]
|
D | Makefile | 5 obj-$(CONFIG_HWMON) += hwmon.o 6 obj-$(CONFIG_HWMON_VID) += hwmon-vid.o 50 obj-$(CONFIG_SENSORS_DA9052_ADC)+= da9052-hwmon.o 51 obj-$(CONFIG_SENSORS_DA9055)+= da9055-hwmon.o 81 obj-$(CONFIG_SENSORS_JZ4740) += jz4740-hwmon.o 130 obj-$(CONFIG_SENSORS_S3C) += s3c-hwmon.o 148 obj-$(CONFIG_SENSORS_TWL4030_MADC)+= twl4030-madc-hwmon.o 157 obj-$(CONFIG_SENSORS_WM831X) += wm831x-hwmon.o 158 obj-$(CONFIG_SENSORS_WM8350) += wm8350-hwmon.o
|
D | twl4030-madc-hwmon.c | 98 struct device *hwmon; in twl4030_madc_hwmon_probe() local 100 hwmon = devm_hwmon_device_register_with_groups(&pdev->dev, in twl4030_madc_hwmon_probe() 103 return PTR_ERR_OR_ZERO(hwmon); in twl4030_madc_hwmon_probe()
|
D | pwm-fan.c | 218 struct device *hwmon; in pwm_fan_probe() local 253 hwmon = devm_hwmon_device_register_with_groups(&pdev->dev, "pwmfan", in pwm_fan_probe() 255 if (IS_ERR(hwmon)) { in pwm_fan_probe() 258 return PTR_ERR(hwmon); in pwm_fan_probe()
|
D | Kconfig | 20 <file:Documentation/hwmon/userspace-tools> for details. 23 will be called hwmon. 65 Documentation/hwmon/abituguru 79 revision see Documentation/hwmon/abituguru3 382 will be called da9052-hwmon. 392 will be called da9055-hwmon. 574 map allows IIO devices to provide basic hwmon functionality 594 are supported. Check Documentation/hwmon/coretemp for details. 617 called jz4740-hwmon. 1173 source drivers/hwmon/pmbus/Kconfig [all …]
|
/linux-4.1.27/drivers/thermal/ |
D | thermal_hwmon.c | 64 struct thermal_hwmon_device *hwmon = dev_get_drvdata(dev); in name_show() local 65 return sprintf(buf, "%s\n", hwmon->type); in name_show() 112 struct thermal_hwmon_device *hwmon; in thermal_hwmon_lookup_by_type() local 115 list_for_each_entry(hwmon, &thermal_hwmon_list, node) in thermal_hwmon_lookup_by_type() 116 if (!strcmp(hwmon->type, tz->type)) { in thermal_hwmon_lookup_by_type() 118 return hwmon; in thermal_hwmon_lookup_by_type() 127 thermal_hwmon_lookup_temp(const struct thermal_hwmon_device *hwmon, in thermal_hwmon_lookup_temp() argument 133 list_for_each_entry(temp, &hwmon->tz_list, hwmon_node) in thermal_hwmon_lookup_temp() 151 struct thermal_hwmon_device *hwmon; in thermal_add_hwmon_sysfs() local 156 hwmon = thermal_hwmon_lookup_by_type(tz); in thermal_add_hwmon_sysfs() [all …]
|
D | Kconfig | 20 prompt "Expose thermal sensors as hwmon device" 26 as a hwmon. The sensor will then have the common 27 hwmon sysfs interface. 30 have hwmon sysfs interface too.
|
/linux-4.1.27/drivers/net/ethernet/sfc/ |
D | mcdi_mon.c | 149 struct efx_mcdi_mon *hwmon = efx_mcdi_mon(efx); in efx_mcdi_mon_update() local 154 hwmon->dma_buf.dma_addr); in efx_mcdi_mon_update() 155 MCDI_SET_DWORD(inbuf, READ_SENSORS_EXT_IN_LENGTH, hwmon->dma_buf.len); in efx_mcdi_mon_update() 160 hwmon->last_update = jiffies; in efx_mcdi_mon_update() 168 struct efx_mcdi_mon *hwmon = efx_mcdi_mon(efx); in efx_mcdi_mon_get_entry() local 173 mutex_lock(&hwmon->update_lock); in efx_mcdi_mon_get_entry() 176 if (time_before(jiffies, hwmon->last_update + HZ)) in efx_mcdi_mon_get_entry() 182 *entry = ((efx_dword_t *)hwmon->dma_buf.addr)[index]; in efx_mcdi_mon_get_entry() 184 mutex_unlock(&hwmon->update_lock); in efx_mcdi_mon_get_entry() 288 struct efx_mcdi_mon *hwmon = efx_mcdi_mon(efx); in efx_mcdi_mon_add_attr() local [all …]
|
D | Kconfig | 25 bool "Solarflare SFC9000/SFC9100-family hwmon support"
|
D | mcdi.h | 109 struct efx_mcdi_mon hwmon; member 124 return &efx->mcdi->hwmon; in efx_mcdi_mon()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/ |
D | nouveau_hwmon.c | 565 struct nouveau_hwmon *hwmon; in nouveau_hwmon_init() local 569 hwmon = drm->hwmon = kzalloc(sizeof(*hwmon), GFP_KERNEL); in nouveau_hwmon_init() 570 if (!hwmon) in nouveau_hwmon_init() 572 hwmon->dev = dev; in nouveau_hwmon_init() 616 hwmon->hwmon = hwmon_dev; in nouveau_hwmon_init() 623 hwmon->hwmon = NULL; in nouveau_hwmon_init() 634 struct nouveau_hwmon *hwmon = nouveau_hwmon(dev); in nouveau_hwmon_fini() local 636 if (hwmon->hwmon) { in nouveau_hwmon_fini() 637 sysfs_remove_group(&hwmon->hwmon->kobj, &hwmon_default_attrgroup); in nouveau_hwmon_fini() 638 sysfs_remove_group(&hwmon->hwmon->kobj, &hwmon_temp_attrgroup); in nouveau_hwmon_fini() [all …]
|
D | nouveau_hwmon.h | 30 struct device *hwmon; member 36 return nouveau_drm(dev)->hwmon; in nouveau_hwmon()
|
D | nouveau_drm.h | 164 struct nouveau_hwmon *hwmon; member
|
/linux-4.1.27/Documentation/hwmon/ |
D | hwmon-kernel-api.txt | 12 This document does not describe what a hardware monitoring (hwmon) Driver or 15 then please read the following file: Documentation/hwmon/sysfs-interface. 17 For additional guidelines on how to write and improve hwmon drivers, please 18 also read Documentation/hwmon/submitting-patches. 22 Each hardware monitoring driver must #include <linux/hwmon.h> and, in most 23 cases, <linux/hwmon-sysfs.h>. linux/hwmon.h declares the following 49 it has additional parameters. The name parameter is a pointer to the hwmon 53 to the newly allocated hwmon device. The pointer can be retrieved by the driver 54 using dev_get_drvdata() on the hwmon device pointer. The groups parameter is 56 hwmon_device_register_with_groups creates the hwmon device with name attribute [all …]
|
D | sch5636 | 17 their own custom hwmon solution based upon the SCH5636. 20 hwmon solution. The sch5636 driver runs a sanity check on loading to ensure 22 hwmon solution. 29 The Fujitsu Theseus hwmon solution also contains an integrated watchdog.
|
D | abituguru3 | 11 it to behave as a hwmon IC. There are many different revisions of the 35 succeed. If the uGuru can't be read the actual hwmon 36 driver will not load and thus no hwmon device will get
|
D | submitting-patches | 5 drivers for the hwmon subsystem. Following these suggestions will greatly 36 * Make sure the documentation in Documentation/hwmon/<driver_name> is up to 58 * Document the driver in Documentation/hwmon/<driver_name>. 93 with the hwmon subsystem. 101 Standard attributes are specified in Documentation/hwmon/sysfs-interface.
|
D | ibmpowernv | 16 for sensor devices during the __init phase and registers them with the 'hwmon'. 17 'hwmon' populates the 'sysfs' tree having attribute files, each for a given
|
D | abituguru | 14 it to behave as a hwmon IC. There are many different revisions of the 48 succeed. If the uGuru can't be read the actual hwmon 49 driver will not load and thus no hwmon device will get
|
D | ab8500 | 17 See also Documentation/hwmon/abx500. This is the ST-Ericsson AB8500 specific
|
D | adm1275 | 33 Documentation/hwmon/pmbus for details on PMBus client drivers. 52 Documentation/hwmon/pmbus for details.
|
D | wm8350 | 1 Kernel driver wm8350-hwmon
|
D | tmp103 | 25 Documentation/hwmon/sysfs-interface under Temperatures).
|
D | pwm-fan | 17 the hwmon's sysfs interface.
|
D | tmp102 | 26 Documentation/hwmon/sysfs-interface under Temperatures).
|
D | abx500 | 18 this is kernel hwmon driver for ABx500.
|
D | wm831x | 1 Kernel driver wm831x-hwmon
|
D | g762 | 10 bindings are described in Documentation/hwmon/sysfs-interface. 20 documented in Documentation/devicetree/bindings/hwmon/g762.txt or
|
D | ucd9200 | 31 Documentation/hwmon/pmbus for details on PMBus client drivers. 46 Documentation/hwmon/pmbus for details.
|
D | ucd9000 | 47 Documentation/hwmon/pmbus for details on PMBus client drivers. 62 Documentation/hwmon/pmbus for details.
|
D | vexpress | 34 in Documentation/devicetree/bindings/hwmon/vexpress.txt.
|
D | tps40422 | 20 Please see Documentation/hwmon/pmbus for details on PMBus client drivers.
|
D | lm70 | 46 Jean Delvare <jdelvare@suse.de> for mentoring the hwmon-side driver
|
D | zl6100 | 67 Documentation/hwmon/pmbus and Documentation.hwmon/pmbus-core for details
|
D | ads1015 | 76 Documentation/devicetree/bindings/hwmon/ads1015.txt
|
D | tmp401 | 42 Documentation/hwmon/sysfs-interface under Temperatures).
|
D | max16064 | 20 Please see Documentation/hwmon/pmbus for details on PMBus client drivers.
|
D | max8688 | 20 Documentation/hwmon/pmbus for details on PMBus client drivers.
|
D | ina2xx | 60 Documentation/hwmon/sysfs-interface. Internally the interval is the sum of
|
D | acpi_power_meter | 21 of Documentation/hwmon/sysfs-interface.
|
D | lm25066 | 44 Documentation/hwmon/pmbus for details on PMBus client drivers.
|
D | sysfs-interface | 35 /sys/class/hwmon/hwmon*. 39 in the hwmon "class" device directory are also supported. Complex drivers 63 When setting values of hwmon sysfs attributes, the string representation of 714 hwmon sysfs attributes always contain numbers, so the first thing to do is to
|
D | w83627hf | 82 # Select the hwmon logical device
|
D | coretemp | 25 directory inside hwmon.
|
D | max34440 | 44 Documentation/hwmon/pmbus for details on PMBus client drivers.
|
D | w83791d | 94 *_beep files as described in .../Documentation/hwmon/sysfs-interface.
|
D | w83627ehf | 99 name - this is a standard hwmon device entry, it contains the name of
|
D | pmbus-core | 65 drivers/hwmon/pmbus/pmbus.h. In addition to the internal API, pmbus.h defines
|
/linux-4.1.27/Documentation/thermal/ |
D | sysfs-api.txt | 152 .no_hwmon: a boolean to indicate if the thermal to hwmon sysfs interface 153 is required. when no_hwmon == false, a hwmon sysfs interface 155 In case the thermal_zone_params is NULL, the hwmon interface 166 Hwmon sysfs I/F extension is also available under /sys/class/hwmon 167 if hwmon is compiled in or built as a module. 197 the generic thermal driver also creates a hwmon sysfs I/F for each _type_ 198 of thermal zone device. E.g. the generic thermal driver registers one hwmon 199 class device and build the associated hwmon sysfs I/F for all the registered 202 /sys/class/hwmon/hwmon[0-*]: 207 Please read Documentation/hwmon/sysfs-interface for additional information. [all …]
|
/linux-4.1.27/drivers/input/touchscreen/ |
D | sun4i-ts.c | 249 struct device *hwmon; in sun4i_ts_probe() local 364 hwmon = devm_hwmon_device_register_with_groups(ts->dev, "sun4i_ts", in sun4i_ts_probe() 366 if (IS_ERR(hwmon)) in sun4i_ts_probe() 367 return PTR_ERR(hwmon); in sun4i_ts_probe()
|
D | ads7846.c | 104 struct device *hwmon; member 530 ts->hwmon = hwmon_device_register_with_groups(&spi->dev, spi->modalias, in ads784x_hwmon_register() 532 if (IS_ERR(ts->hwmon)) in ads784x_hwmon_register() 533 return PTR_ERR(ts->hwmon); in ads784x_hwmon_register() 541 if (ts->hwmon) in ads784x_hwmon_unregister() 542 hwmon_device_unregister(ts->hwmon); in ads784x_hwmon_unregister()
|
D | Kconfig | 41 on your board, you will also get hwmon interfaces for the voltage
|
/linux-4.1.27/arch/arm/boot/dts/ |
D | zynq-zc702.dts | 141 hwmon@52 { 145 hwmon@53 { 149 hwmon@54 {
|
D | imx23.dtsi | 533 compatible = "iio-hwmon";
|
D | imx28.dtsi | 1247 compatible = "iio-hwmon";
|
/linux-4.1.27/Documentation/devicetree/bindings/hwmon/ |
D | vexpress.txt | 1 Versatile Express hwmon sensors
|
D | ntc_thermistor.txt | 1 NTC Thermistor hwmon sensors
|
D | g762.txt | 24 in Documentation/hwmon/g762. A detailed datasheet for the device is available
|
/linux-4.1.27/drivers/staging/iio/Documentation/ |
D | overview.txt | 8 The aim is to fill the gap between the somewhat similar hwmon and 21 hwmon with simple polled access to device channels via sysfs.
|
/linux-4.1.27/net/dsa/ |
D | Kconfig | 26 via the hwmon sysfs interface and exposes the onboard sensors.
|
/linux-4.1.27/Documentation/spi/ |
D | spi-lm70llp | 20 LM70 driver (drivers/hwmon/lm70.c). 54 the bound "hwmon/lm70" protocol driver through its sysfs hook, using a
|
/linux-4.1.27/arch/powerpc/boot/dts/ |
D | ge_imp3a.dts | 134 hwmon@48 { 139 hwmon@4c {
|
D | uc101.dts | 93 hwmon@2c {
|
D | a4m072.dts | 94 hwmon@2e {
|
D | gef_sbc610.dts | 195 hwmon@48 { 200 hwmon@4c {
|
D | gef_ppc9a.dts | 197 hwmon@48 { 202 hwmon@4c {
|
D | mpc5121ads.dts | 91 hwmon@4a {
|
D | gef_sbc310.dts | 210 hwmon@48 { 215 hwmon@4c {
|
D | mucmc52.dts | 93 hwmon@2c {
|
D | mvme2500.dts | 36 hwmon@4c {
|
D | sequoia.dts | 290 hwmon@48 {
|
/linux-4.1.27/drivers/platform/x86/ |
D | eeepc-laptop.c | 1098 ATTRIBUTE_GROUPS(hwmon); 1103 struct device *hwmon; in eeepc_hwmon_init() local 1105 hwmon = devm_hwmon_device_register_with_groups(dev, "eeepc", NULL, in eeepc_hwmon_init() 1107 if (IS_ERR(hwmon)) { in eeepc_hwmon_init() 1109 return PTR_ERR(hwmon); in eeepc_hwmon_init()
|
D | asus-wmi.c | 1132 struct device *hwmon; in asus_wmi_hwmon_init() local 1134 hwmon = hwmon_device_register_with_groups(&asus->platform_device->dev, in asus_wmi_hwmon_init() 1137 if (IS_ERR(hwmon)) { in asus_wmi_hwmon_init() 1139 return PTR_ERR(hwmon); in asus_wmi_hwmon_init()
|
/linux-4.1.27/drivers/mfd/ |
D | wm8350-core.c | 430 &(wm8350->hwmon.pdev)); in wm8350_device_init() 458 platform_device_unregister(wm8350->hwmon.pdev); in wm8350_device_exit()
|
D | Kconfig | 364 This driver is necessary for jz4740-battery and jz4740-hwmon driver.
|
/linux-4.1.27/Documentation/devicetree/bindings/mfd/ |
D | da9055.txt | 11 da9055-hwmon : : ADC
|
/linux-4.1.27/Documentation/laptops/ |
D | thinkpad-acpi.txt | 123 looking for a hwmon device with the name attribute of "thinkpad", or 841 sysfs device attributes: (hwmon "thinkpad") temp*_input 906 thinkpad-acpi thermal sensors are reported through the hwmon 907 subsystem, and follow all of the hwmon guidelines at 908 Documentation/hwmon. 1136 sysfs device attributes: (hwmon "thinkpad") fan1_input, pwm1, 1138 sysfs hwmon driver attributes: fan_watchdog 1206 commands, or the hwmon fan control sysfs interface. 1248 The sysfs interface follows the hwmon subsystem guidelines for the most 1259 hwmon device attribute pwm1_enable: [all …]
|
/linux-4.1.27/ |
D | MAINTAINERS | 234 F: drivers/hwmon/abituguru.c 240 F: drivers/hwmon/abituguru3.c 371 F: Documentation/hwmon/adm1025 372 F: drivers/hwmon/adm1025.c 378 F: drivers/hwmon/adm1029.c 423 F: Documentation/hwmon/ads1015 424 F: drivers/hwmon/ads1015.c 436 F: Documentation/hwmon/adt7475 437 F: drivers/hwmon/adt7475.c 606 F: Documentation/hwmon/fam15h_power [all …]
|
D | CREDITS | 1554 D: hwmon subsystem core 1555 D: hwmon subsystem maintainer 3721 D: Author of PCA9532 LED and Fintek f75375s hwmon driver
|
/linux-4.1.27/drivers/ |
D | Makefile | 108 obj-$(CONFIG_HWMON) += hwmon/
|
D | Kconfig | 71 source "drivers/hwmon/Kconfig"
|
/linux-4.1.27/Documentation/devicetree/bindings/iio/ |
D | iio-bindings.txt | 86 compatible = "iio-hwmon";
|
/linux-4.1.27/drivers/net/ethernet/qlogic/ |
D | Kconfig | 78 This data is available via the hwmon sysfs interface.
|
/linux-4.1.27/Documentation/devicetree/bindings/arm/samsung/ |
D | exynos-adc.txt | 89 /* NTC thermistor is a hwmon device */
|
/linux-4.1.27/include/linux/mfd/wm8350/ |
D | core.h | 617 struct wm8350_hwmon hwmon; member
|
/linux-4.1.27/drivers/net/ethernet/intel/ |
D | Kconfig | 120 This data is available via the hwmon sysfs interface and exposes 212 our cards, via a hwmon sysfs interface.
|
/linux-4.1.27/arch/arm/plat-samsung/ |
D | Kconfig | 75 for drivers such as the touchscreen and hwmon to use to share
|
/linux-4.1.27/Documentation/i2c/ |
D | instantiating-devices | 182 See lm90_driver and lm90_detect() in drivers/hwmon/lm90.c
|
/linux-4.1.27/drivers/iio/adc/ |
D | Kconfig | 163 of SoCs for drivers such as the touchscreen and hwmon to use to share
|
/linux-4.1.27/Documentation/ |
D | 00-INDEX | 216 hwmon/
|
/linux-4.1.27/drivers/char/ |
D | Kconfig | 483 hwmon/pc87360 driver. Tested with PC-87366
|