/linux-6.3-rc2/drivers/hwmon/ |
A D | da9052-hwmon.c | 403 if (!hwmon) in da9052_hwmon_probe() 413 hwmon->tsi_as_adc = in da9052_hwmon_probe() 428 hwmon->tsiref_mv = regulator_get_voltage(hwmon->tsiref); in da9052_hwmon_probe() 438 if (hwmon->tsiref_mv < 1800 || hwmon->tsiref_mv > 2600) { in da9052_hwmon_probe() 440 hwmon->tsiref_mv); in da9052_hwmon_probe() 455 hwmon); in da9052_hwmon_probe() 464 hwmon, in da9052_hwmon_probe() 473 if (hwmon->tsi_as_adc) in da9052_hwmon_probe() 474 da9052_free_irq(hwmon->da9052, DA9052_IRQ_TSIREADY, hwmon); in da9052_hwmon_probe() 476 if (hwmon->tsiref) in da9052_hwmon_probe() [all …]
|
A D | nsa320-hwmon.c | 76 mcu_data = hwmon->mcu_data; in nsa320_hwmon_update() 99 hwmon->mcu_data = mcu_data; in nsa320_hwmon_update() 161 struct nsa320_hwmon *hwmon; in nsa320_hwmon_probe() local 164 hwmon = devm_kzalloc(&pdev->dev, sizeof(*hwmon), GFP_KERNEL); in nsa320_hwmon_probe() 165 if (!hwmon) in nsa320_hwmon_probe() 170 if (IS_ERR(hwmon->act)) in nsa320_hwmon_probe() 171 return PTR_ERR(hwmon->act); in nsa320_hwmon_probe() 174 if (IS_ERR(hwmon->clk)) in nsa320_hwmon_probe() 175 return PTR_ERR(hwmon->clk); in nsa320_hwmon_probe() 178 if (IS_ERR(hwmon->data)) in nsa320_hwmon_probe() [all …]
|
A D | lan966x-hwmon.c | 284 struct lan966x_hwmon *hwmon = data; in lan966x_hwmon_disable() local 292 struct lan966x_hwmon *hwmon) in lan966x_hwmon_enable() argument 341 clk_disable_unprepare(hwmon->clk); in lan966x_clk_disable() 358 struct lan966x_hwmon *hwmon; in lan966x_hwmon_probe() local 362 hwmon = devm_kzalloc(dev, sizeof(*hwmon), GFP_KERNEL); in lan966x_hwmon_probe() 363 if (!hwmon) in lan966x_hwmon_probe() 367 if (IS_ERR(hwmon->clk)) in lan966x_hwmon_probe() 375 hwmon->clk_rate = clk_get_rate(hwmon->clk); in lan966x_hwmon_probe() 378 if (IS_ERR(hwmon->regmap_pvt)) in lan966x_hwmon_probe() 383 if (IS_ERR(hwmon->regmap_fan)) in lan966x_hwmon_probe() [all …]
|
A D | gsc-hwmon.c | 330 hwmon = devm_kzalloc(dev, sizeof(*hwmon), GFP_KERNEL); in gsc_hwmon_probe() 331 if (!hwmon) in gsc_hwmon_probe() 333 hwmon->gsc = gsc; in gsc_hwmon_probe() 334 hwmon->pdata = pdata; in gsc_hwmon_probe() 386 hwmon->chip.info = hwmon->info; in gsc_hwmon_probe() 387 hwmon->info[0] = &hwmon->temp_info; in gsc_hwmon_probe() 388 hwmon->info[1] = &hwmon->in_info; in gsc_hwmon_probe() 389 hwmon->info[2] = &hwmon->fan_info; in gsc_hwmon_probe() 391 hwmon->temp_info.config = hwmon->temp_config; in gsc_hwmon_probe() 393 hwmon->in_info.config = hwmon->in_config; in gsc_hwmon_probe() [all …]
|
A D | da9055-hwmon.c | 67 mutex_lock(&hwmon->irq_lock); in da9055_adc_manual_read() 102 mutex_unlock(&hwmon->irq_lock); in da9055_adc_manual_read() 110 complete(&hwmon->done); in da9055_auxadc_irq() 146 mutex_lock(&hwmon->hwmon_lock); in da9055_auto_ch_show() 237 struct da9055_hwmon *hwmon; in da9055_hwmon_probe() local 242 if (!hwmon) in da9055_hwmon_probe() 245 mutex_init(&hwmon->hwmon_lock); in da9055_hwmon_probe() 246 mutex_init(&hwmon->irq_lock); in da9055_hwmon_probe() 248 init_completion(&hwmon->done); in da9055_hwmon_probe() 258 "adc-irq", hwmon); in da9055_hwmon_probe() [all …]
|
A D | sparx5-temp.c | 31 u32 val = readl(hwmon->base + TEMP_CFG); in s5_temp_enable() 38 writel(val, hwmon->base + TEMP_CFG); in s5_temp_enable() 108 struct s5_hwmon *hwmon; in s5_temp_probe() local 110 hwmon = devm_kzalloc(&pdev->dev, sizeof(*hwmon), GFP_KERNEL); in s5_temp_probe() 111 if (!hwmon) in s5_temp_probe() 115 if (IS_ERR(hwmon->base)) in s5_temp_probe() 116 return PTR_ERR(hwmon->base); in s5_temp_probe() 119 if (IS_ERR(hwmon->clk)) in s5_temp_probe() 120 return PTR_ERR(hwmon->clk); in s5_temp_probe() 122 s5_temp_enable(hwmon); in s5_temp_probe() [all …]
|
A D | as370-hwmon.c | 31 static void init_pvt(struct as370_hwmon *hwmon) in init_pvt() argument 34 void __iomem *addr = hwmon->base + CTRL; in init_pvt() 50 struct as370_hwmon *hwmon = dev_get_drvdata(dev); in as370_hwmon_read() local 54 val = readl_relaxed(hwmon->base + STS) & BN_MASK; in as370_hwmon_read() 97 struct as370_hwmon *hwmon; in as370_hwmon_probe() local 100 hwmon = devm_kzalloc(dev, sizeof(*hwmon), GFP_KERNEL); in as370_hwmon_probe() 101 if (!hwmon) in as370_hwmon_probe() 105 if (IS_ERR(hwmon->base)) in as370_hwmon_probe() 106 return PTR_ERR(hwmon->base); in as370_hwmon_probe() 108 init_pvt(hwmon); in as370_hwmon_probe() [all …]
|
A D | sl28cpld-hwmon.c | 37 struct sl28cpld_hwmon *hwmon = dev_get_drvdata(dev); in sl28cpld_hwmon_read() local 43 ret = regmap_read(hwmon->regmap, hwmon->offset + FAN_INPUT, in sl28cpld_hwmon_read() 87 struct sl28cpld_hwmon *hwmon; in sl28cpld_hwmon_probe() local 94 hwmon = devm_kzalloc(&pdev->dev, sizeof(*hwmon), GFP_KERNEL); in sl28cpld_hwmon_probe() 95 if (!hwmon) in sl28cpld_hwmon_probe() 98 hwmon->regmap = dev_get_regmap(pdev->dev.parent, NULL); in sl28cpld_hwmon_probe() 99 if (!hwmon->regmap) in sl28cpld_hwmon_probe() 102 ret = device_property_read_u32(&pdev->dev, "reg", &hwmon->offset); in sl28cpld_hwmon_probe() 107 "sl28cpld_hwmon", hwmon, in sl28cpld_hwmon_probe()
|
A D | smpro-hwmon.c | 208 struct smpro_hwmon *hwmon = dev_get_drvdata(dev); in smpro_read_temp() local 233 struct smpro_hwmon *hwmon = dev_get_drvdata(dev); in smpro_read_in() local 252 struct smpro_hwmon *hwmon = dev_get_drvdata(dev); in smpro_read_curr() local 271 struct smpro_hwmon *hwmon = dev_get_drvdata(dev); in smpro_read_power() local 277 ret = regmap_read(hwmon->regmap, power[channel].reg, &val); in smpro_read_power() 363 const struct smpro_hwmon *hwmon = data; in smpro_is_visible() local 437 struct smpro_hwmon *hwmon; in smpro_hwmon_probe() local 441 if (!hwmon) in smpro_hwmon_probe() 444 hwmon->regmap = dev_get_regmap(pdev->dev.parent, NULL); in smpro_hwmon_probe() 445 if (!hwmon->regmap) in smpro_hwmon_probe() [all …]
|
A D | Makefile | 6 obj-$(CONFIG_HWMON) += hwmon.o 7 obj-$(CONFIG_HWMON_VID) += hwmon-vid.o 52 obj-$(CONFIG_SENSORS_ARM_SCMI) += scmi-hwmon.o 53 obj-$(CONFIG_SENSORS_ARM_SCPI) += scpi-hwmon.o 54 obj-$(CONFIG_SENSORS_AS370) += as370-hwmon.o 64 obj-$(CONFIG_SENSORS_DA9055)+= da9055-hwmon.o 84 obj-$(CONFIG_SENSORS_GSC) += gsc-hwmon.o 168 obj-$(CONFIG_SENSORS_NSA320) += nsa320-hwmon.o 192 obj-$(CONFIG_SENSORS_SMPRO) += smpro-hwmon.o 217 obj-$(CONFIG_SENSORS_WM831X) += wm831x-hwmon.o [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/i915/ |
A D | i915_hwmon.c | 69 struct i915_hwmon *hwmon = ddat->hwmon; in hwm_locked_with_pm_intel_uncore_rmw() local 140 struct i915_hwmon *hwmon = ddat->hwmon; in hwm_energy() local 172 struct i915_hwmon *hwmon = ddat->hwmon; in hwm_power1_max_interval_show() local 203 struct i915_hwmon *hwmon = ddat->hwmon; in hwm_power1_max_interval_store() local 262 struct i915_hwmon *hwmon = ddat->hwmon; in hwm_attributes_visible() local 326 struct i915_hwmon *hwmon = ddat->hwmon; in hwm_in_read() local 346 struct i915_hwmon *hwmon = ddat->hwmon; in hwm_power_is_visible() local 371 struct i915_hwmon *hwmon = ddat->hwmon; in hwm_power_max_read() local 710 i915->hwmon = hwmon; in i915_hwmon_register() 714 ddat->hwmon = hwmon; in i915_hwmon_register() [all …]
|
/linux-6.3-rc2/Documentation/ABI/stable/ |
A D | sysfs-driver-mlxreg-io | 1 What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/asic_health 10 What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld1_version 11 What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld2_version 20 What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/fan_dir 30 What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld3_version 39 What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/jtag_enable 48 What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/select_iio 59 What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/psu1_on 60 /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/psu2_on 61 /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/pwr_cycle [all …]
|
/linux-6.3-rc2/drivers/thermal/ |
A D | thermal_hwmon.c | 108 return hwmon; in thermal_hwmon_lookup_by_type() 148 if (hwmon) { in thermal_add_hwmon_sysfs() 153 hwmon = kzalloc(sizeof(*hwmon), GFP_KERNEL); in thermal_add_hwmon_sysfs() 154 if (!hwmon) in thermal_add_hwmon_sysfs() 161 hwmon->type, hwmon); in thermal_add_hwmon_sysfs() 162 if (IS_ERR(hwmon->device)) { in thermal_add_hwmon_sysfs() 175 hwmon->count++; in thermal_add_hwmon_sysfs() 217 kfree(hwmon); in thermal_add_hwmon_sysfs() 229 if (unlikely(!hwmon)) { in thermal_remove_hwmon_sysfs() 253 list_del(&hwmon->node); in thermal_remove_hwmon_sysfs() [all …]
|
/linux-6.3-rc2/Documentation/ABI/testing/ |
A D | sysfs-class-hwmon | 1 What: /sys/class/hwmon/hwmonX/name 12 What: /sys/class/hwmon/hwmonX/label 30 What: /sys/class/hwmon/hwmonX/inY_min 38 What: /sys/class/hwmon/hwmonX/inY_lcrit 50 What: /sys/class/hwmon/hwmonX/inY_max 58 What: /sys/class/hwmon/hwmonX/inY_crit 70 What: /sys/class/hwmon/hwmonX/inY_input 152 What: /sys/class/hwmon/hwmonX/cpuY_vid 162 What: /sys/class/hwmon/hwmonX/vrm 191 What: /sys/class/hwmon/hwmonX/fanY_min [all …]
|
A D | sysfs-driver-intel-i915-hwmon | 1 What: /sys/devices/.../hwmon/hwmon<i>/in0_input 9 What: /sys/devices/.../hwmon/hwmon<i>/power1_max 21 What: /sys/devices/.../hwmon/hwmon<i>/power1_rated_max 29 What: /sys/devices/.../hwmon/hwmon<i>/power1_max_interval 38 What: /sys/devices/.../hwmon/hwmon<i>/power1_crit 51 What: /sys/devices/.../hwmon/hwmon<i>/curr1_crit 64 What: /sys/devices/.../hwmon/hwmon<i>/energy1_input 70 For i915 device level hwmon devices (name "i915") this 72 hwmon devices (name "i915_gtN") this reflects energy input
|
/linux-6.3-rc2/drivers/net/ethernet/sfc/siena/ |
A D | mcdi_mon.c | 286 struct efx_mcdi_mon_attribute *attr = &hwmon->attrs[hwmon->n_attrs]; in efx_mcdi_mon_add_attr() 300 hwmon->group.attrs[hwmon->n_attrs++] = &attr->dev_attr.attr; in efx_mcdi_mon_add_attr() 353 hwmon->attrs = kcalloc(n_attrs, sizeof(*hwmon->attrs), GFP_KERNEL); in efx_siena_mcdi_mon_probe() 354 if (!hwmon->attrs) { in efx_siena_mcdi_mon_probe() 360 if (!hwmon->group.attrs) { in efx_siena_mcdi_mon_probe() 504 hwmon->groups[0] = &hwmon->group; in efx_siena_mcdi_mon_probe() 507 hwmon->groups); in efx_siena_mcdi_mon_probe() 508 if (IS_ERR(hwmon->device)) { in efx_siena_mcdi_mon_probe() 524 if (hwmon->device) in efx_siena_mcdi_mon_remove() 526 kfree(hwmon->attrs); in efx_siena_mcdi_mon_remove() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/sfc/ |
A D | mcdi_mon.c | 286 struct efx_mcdi_mon_attribute *attr = &hwmon->attrs[hwmon->n_attrs]; in efx_mcdi_mon_add_attr() 300 hwmon->group.attrs[hwmon->n_attrs++] = &attr->dev_attr.attr; in efx_mcdi_mon_add_attr() 339 efx, &hwmon->dma_buf, in efx_mcdi_mon_probe() 353 hwmon->attrs = kcalloc(n_attrs, sizeof(*hwmon->attrs), GFP_KERNEL); in efx_mcdi_mon_probe() 354 if (!hwmon->attrs) { in efx_mcdi_mon_probe() 360 if (!hwmon->group.attrs) { in efx_mcdi_mon_probe() 504 hwmon->groups[0] = &hwmon->group; in efx_mcdi_mon_probe() 507 hwmon->groups); in efx_mcdi_mon_probe() 524 if (hwmon->device) in efx_mcdi_mon_remove() 526 kfree(hwmon->attrs); in efx_mcdi_mon_remove() [all …]
|
/linux-6.3-rc2/drivers/hwmon/occ/ |
A D | Makefile | 2 occ-hwmon-common-objs := common.o sysfs.o 3 occ-p8-hwmon-objs := p8_i2c.o 4 occ-p9-hwmon-objs := p9_sbe.o 6 obj-$(CONFIG_SENSORS_OCC) += occ-hwmon-common.o 7 obj-$(CONFIG_SENSORS_OCC_P8_I2C) += occ-p8-hwmon.o 8 obj-$(CONFIG_SENSORS_OCC_P9_SBE) += occ-p9-hwmon.o
|
/linux-6.3-rc2/Documentation/devicetree/bindings/hwmon/ |
A D | ibm,p8-occ-hwmon.txt | 1 Device-tree bindings for I2C-based On-Chip Controller hwmon device 5 - compatible = "ibm,p8-occ-hwmon"; 16 occ-hwmon@1 { 17 compatible = "ibm,p8-occ-hwmon"; 21 occ-hwmon@2 { 22 compatible = "ibm,p8-occ-hwmon";
|
A D | ibm,occ-hwmon.yaml | 4 $id: http://devicetree.org/schemas/hwmon/ibm,occ-hwmon.yaml# 16 through hwmon. 21 - ibm,p9-occ-hwmon 22 - ibm,p10-occ-hwmon 36 hwmon { 37 compatible = "ibm,p10-occ-hwmon";
|
A D | iio-hwmon.yaml | 4 $id: "http://devicetree.org/schemas/hwmon/iio-hwmon.yaml#" 18 const: iio-hwmon 34 iio-hwmon { 35 compatible = "iio-hwmon";
|
A D | microchip,lan966x.yaml | 4 $id: http://devicetree.org/schemas/hwmon/microchip,lan966x.yaml# 18 - microchip,lan9668-hwmon 46 hwmon: hwmon@e2010180 { 47 compatible = "microchip,lan9668-hwmon";
|
/linux-6.3-rc2/Documentation/hwmon/ |
A D | index.rst | 10 hwmon-kernel-api 59 dell-smm-hwmon 76 gsc-hwmon 87 intel-m10-bmc-hwmon 181 raspberrypi-hwmon 186 scpi-hwmon 195 smpro-hwmon 201 sy7636a-hwmon 216 twl4030-madc-hwmon 234 xgene-hwmon
|
/linux-6.3-rc2/arch/arm/boot/dts/ |
A D | aspeed-bmc-opp-mowgli.dts | 180 iio-hwmon-12v { 181 compatible = "iio-hwmon"; 185 iio-hwmon-5v { 190 iio-hwmon-3v { 195 iio-hwmon-vdd { 200 iio-hwmon-vcs { 205 iio-hwmon-vdn { 210 iio-hwmon-vio { 215 iio-hwmon-vddra { 220 iio-hwmon-battery { [all …]
|
A D | aspeed-bmc-opp-vesnin.dts | 166 occ-hwmon@50 { 167 compatible = "ibm,p8-occ-hwmon"; 175 occ-hwmon@51 { 176 compatible = "ibm,p8-occ-hwmon"; 193 occ-hwmon@56 { 194 compatible = "ibm,p8-occ-hwmon"; 210 occ-hwmon@57 { 211 compatible = "ibm,p8-occ-hwmon";
|