| /linux/drivers/thermal/broadcom/ |
| H A D | sr-thermal.c | 1 // SPDX-License-Identifier: GPL-2.0 9 #include <linux/thermal.h> 12 * In stingray thermal IO memory, 36 struct sr_thermal *sr_thermal = tmon->priv; in sr_get_temp() 38 *temp = readl(sr_thermal->regs + SR_TMON_TEMP_BASE(tmon->tmon_id)); in sr_get_temp() 49 struct device *dev = &pdev->dev; in sr_thermal_probe() 60 return -ENOMEM; in sr_thermal_probe() 64 return -ENOENT; in sr_thermal_probe() 66 sr_thermal->regs = (void __iomem *)devm_memremap(&pdev->dev, res->start, in sr_thermal_probe() 69 if (IS_ERR(sr_thermal->regs)) { in sr_thermal_probe() [all …]
|
| H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0-only 2 obj-$(CONFIG_BCM2711_THERMAL) += bcm2711_thermal.o 3 obj-$(CONFIG_BCM2835_THERMAL) += bcm2835_thermal.o 4 obj-$(CONFIG_BRCMSTB_THERMAL) += brcmstb_thermal.o 5 obj-$(CONFIG_BCM_NS_THERMAL) += ns-thermal.o 6 obj-$(CONFIG_BCM_SR_THERMAL) += sr-thermal.o
|
| /linux/drivers/macintosh/ |
| H A D | windfarm_max6690_sensor.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Windfarm PowerMac thermal control. MAX6690 sensor. 34 static int wf_max6690_get(struct wf_sensor *sr, s32 *value) in wf_max6690_get() argument 36 struct wf_6690_sensor *max = wf_to_6690(sr); in wf_max6690_get() 39 if (max->i2c == NULL) in wf_max6690_get() 40 return -ENODEV; in wf_max6690_get() 43 data = i2c_smbus_read_byte_data(max->i2c, MAX6690_EXTERNAL_TEMP); in wf_max6690_get() 50 static void wf_max6690_release(struct wf_sensor *sr) in wf_max6690_release() argument 52 struct wf_6690_sensor *max = wf_to_6690(sr); in wf_max6690_release() 69 loc = of_get_property(client->dev.of_node, "hwsensor-location", NULL); in wf_max6690_probe() [all …]
|
| H A D | windfarm_lm75_sensor.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Windfarm PowerMac thermal control. LM75 sensor 43 static int wf_lm75_get(struct wf_sensor *sr, s32 *value) in wf_lm75_get() argument 45 struct wf_lm75_sensor *lm = wf_to_lm75(sr); in wf_lm75_get() 48 if (lm->i2c == NULL) in wf_lm75_get() 49 return -ENODEV; in wf_lm75_get() 52 if (!lm->inited) { in wf_lm75_get() 53 u8 cfg_new, cfg = (u8)i2c_smbus_read_byte_data(lm->i2c, 1); in wf_lm75_get() 56 sr->name, cfg); in wf_lm75_get() 62 i2c_smbus_write_byte_data(lm->i2c, 1, cfg_new); in wf_lm75_get() [all …]
|
| H A D | windfarm_lm87_sensor.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Windfarm PowerMac thermal control. LM87 sensor 60 return -EIO; in wf_lm87_read_reg() 66 static int wf_lm87_get(struct wf_sensor *sr, s32 *value) in wf_lm87_get() argument 68 struct wf_lm87_sensor *lm = sr->priv; in wf_lm87_get() 71 if (lm->i2c == NULL) in wf_lm87_get() 72 return -ENODEV; in wf_lm87_get() 77 temp = wf_lm87_read_reg(lm->i2c, LM87_INT_TEMP); in wf_lm87_get() 85 static void wf_lm87_release(struct wf_sensor *sr) in wf_lm87_release() argument 87 struct wf_lm87_sensor *lm = wf_to_lm87(sr); in wf_lm87_release() [all …]
|
| H A D | windfarm_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Windfarm PowerMac thermal control. Core 115 delay = next - jiffies; in wf_thread_func() 151 DBG("wf: Deleting control %s\n", ct->name); in wf_control_release() 153 if (ct->ops && ct->ops->release) in wf_control_release() 154 ct->ops->release(ct); in wf_control_release() 167 err = ctrl->ops->get_value(ctrl, &val); in wf_show_control() 169 if (err == -EFAULT) in wf_show_control() 173 switch(ctrl->type) { in wf_show_control() 199 if (endp - buf < count) in wf_store_control() [all …]
|
| H A D | windfarm.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Windfarm PowerMac thermal control. 63 s32 vmax = ct->ops->get_max(ct); in wf_control_set_max() 64 return ct->ops->set_value(ct, vmax); in wf_control_set_max() 69 s32 vmin = ct->ops->get_min(ct); in wf_control_set_min() 70 return ct->ops->set_value(ct, vmin); in wf_control_set_min() 75 return ct->ops->set_value(ct, val); in wf_control_set() 80 return ct->ops->get_value(ct, val); in wf_control_get() 85 return ct->ops->get_min(ct); in wf_control_get_min() 90 return ct->ops->get_max(ct); in wf_control_get_max() [all …]
|
| H A D | windfarm_smu_sensors.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Windfarm PowerMac thermal control. SMU based sensors 59 static void smu_ads_release(struct wf_sensor *sr) in smu_ads_release() argument 61 struct smu_ad_sensor *ads = to_smu_ads(sr); in smu_ads_release() 82 return -EIO; in smu_read_adc() 88 static int smu_cputemp_get(struct wf_sensor *sr, s32 *value) in smu_cputemp_get() argument 90 struct smu_ad_sensor *ads = to_smu_ads(sr); in smu_cputemp_get() 95 rc = smu_read_adc(ads->reg, &val); in smu_cputemp_get() 103 scaled = (s64)(((u64)val) * (u64)cpudiode->m_value); in smu_cputemp_get() 105 scaled += ((s64)cpudiode->b_value) << 9; in smu_cputemp_get() [all …]
|
| H A D | windfarm_pm112.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Windfarm PowerMac thermal control. 59 "cpu-rear-fan-0", 60 "cpu-rear-fan-1", 61 "cpu-front-fan-0", 62 "cpu-front-fan-1", 63 "cpu-pump-0", 64 "cpu-pump-1", 69 #define CPU_FANS_REQD (NR_CPU_FANS - 2) 119 #define LOW_OVER_CLEAR ((-10) << 16) [all …]
|
| H A D | windfarm_rm31.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Windfarm PowerMac thermal control. 93 #define LOW_OVER_CLEAR ((-10) << 16) 161 cpu_thist_total -= t_old; in cpu_check_overtemp() 187 /* High overtemp -> immediate shutdown */ in cpu_check_overtemp() 211 return -EIO; in read_one_cpu_vals() 220 return -EIO; in read_one_cpu_vals() 228 return -EIO; in read_one_cpu_vals() 256 wf_control_get(cpu_fans[cpu][0], &sp->target); in cpu_fans_tick() 275 DBG_LOTS(" CPU%d: target = %d RPM\n", cpu, sp->target); in cpu_fans_tick() [all …]
|
| H A D | windfarm_smu_sat.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Windfarm PowerMac thermal control. SMU "satellite" controller sensors. 60 /* TODO: Add the resulting partition to the device-tree */ in smu_sat_get_sdb_partition() 65 err = i2c_smbus_write_word_data(sat->i2c, 8, id << 8); in smu_sat_get_sdb_partition() 71 err = i2c_smbus_read_word_data(sat->i2c, 9); in smu_sat_get_sdb_partition() 89 err = i2c_smbus_read_i2c_block_data(sat->i2c, 0xa, 4, data); in smu_sat_get_sdb_partition() 119 err = i2c_smbus_read_i2c_block_data(sat->i2c, 0x3f, 16, sat->cache); in wf_sat_read_cache() 122 sat->last_read = jiffies; in wf_sat_read_cache() 129 16, 1, sat->cache, 16, false); in wf_sat_read_cache() 135 static int wf_sat_sensor_get(struct wf_sensor *sr, s32 *value) in wf_sat_sensor_get() argument [all …]
|
| H A D | windfarm_pm91.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Windfarm PowerMac thermal control. SMU based 1 CPU desktop control loops 11 * that none of the code has been re-used, it's a complete re-implementation 166 tmax = ((s32)fvt->maxtemp) << 16; in wf_smu_create_cpu_fans() 175 wf_smu_cpu_fans->ticks = 1; in wf_smu_create_cpu_fans() 179 pid_param.history_len = piddata->history_len; in wf_smu_create_cpu_fans() 182 "CPU control loop (%d)\n", piddata->history_len); in wf_smu_create_cpu_fans() 185 pid_param.gd = piddata->gd; in wf_smu_create_cpu_fans() 186 pid_param.gp = piddata->gp; in wf_smu_create_cpu_fans() 187 pid_param.gr = piddata->gr / pid_param.history_len; in wf_smu_create_cpu_fans() [all …]
|
| H A D | windfarm_pm72.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Windfarm PowerMac thermal control. 99 #define LOW_OVER_CLEAR ((-10) << 16) 167 cpu_thist_total -= t_old; in cpu_check_overtemp() 193 /* High overtemp -> immediate shutdown */ in cpu_check_overtemp() 217 return -EIO; in read_one_cpu_vals() 226 return -EIO; in read_one_cpu_vals() 234 return -EIO; in read_one_cpu_vals() 262 wf_control_get(cpu_rear_fans[cpu], &sp->target); in cpu_fans_tick_split() 264 DBG_LOTS(" CPU%d: cur_target = %d RPM\n", cpu, sp->target); in cpu_fans_tick_split() [all …]
|
| H A D | windfarm_ad7417_sensor.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Windfarm PowerMac thermal control. AD7417 sensors 36 static int wf_ad7417_temp_get(struct wf_sensor *sr, s32 *value) in wf_ad7417_temp_get() argument 38 struct wf_ad7417_priv *pv = sr->priv; in wf_ad7417_temp_get() 44 mutex_lock(&pv->lock); in wf_ad7417_temp_get() 48 rc = i2c_master_send(pv->i2c, buf, 1); in wf_ad7417_temp_get() 51 rc = i2c_master_recv(pv->i2c, buf, 2); in wf_ad7417_temp_get() 55 /* Read a a 16-bit signed value */ in wf_ad7417_temp_get() 58 /* Convert 8.8-bit to 16.16 fixed point */ in wf_ad7417_temp_get() 61 mutex_unlock(&pv->lock); in wf_ad7417_temp_get() [all …]
|
| H A D | windfarm_pm81.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Windfarm PowerMac thermal control. iMac G5 11 * that none of the code has been re-used, it's a complete re-implementation 24 * - the linked control (second control) gets the target value as-is 26 * - the main control (first control) gets the target value scaled with 28 * - the value of the target of the CPU Fan control loop is retrieved, 33 * controls : system-fan, drive-bay-fan 34 * sensors : hd-temp 41 * linear-factors : offset = 0xff38 scale = 0x0ccd 45 * controls : system-fan, drive-bay-fan [all …]
|
| H A D | windfarm_pm121.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Windfarm PowerMac thermal control. iMac G5 iSight 16 * that none of the code has been re-used, it's a complete 17 * re-implementation 21 * controls with a tiny difference. The control-ids of hard-drive-fan 22 * and cpu-fan is swapped. 34 * offset : -19563152 38 * offset : -15650652 44 * offset : -15650652 48 * offset : -19563152 [all …]
|
| /linux/arch/arm/boot/dts/ti/omap/ |
| H A D | omap34xx.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/ 8 #include <dt-bindings/bus/ti-sysc.h> 9 #include <dt-bindings/media/omap3-isp.h> 16 /* OMAP343x/OMAP35xx variants OPP1-6 */ 17 operating-points-v2 = <&cpu0_opp_table>; 19 clock-latency = <300000>; /* From legacy driver */ 20 #cooling-cells = <2>; 24 cpu0_opp_table: opp-table { 25 compatible = "operating-points-v2-ti-cpu"; [all …]
|
| /linux/arch/arm64/boot/dts/broadcom/stingray/ |
| H A D | stingray.dtsi | 4 * Copyright(c) 2015-2017 Broadcom. All rights reserved. 33 #include <dt-bindings/interrupt-controller/arm-gic.h> 37 interrupt-parent = <&gic>; 38 #address-cells = <2>; 39 #size-cells = <2>; 42 #address-cells = <2>; 43 #size-cells = <0>; 47 compatible = "arm,cortex-a72"; 49 enable-method = "psci"; 50 next-level-cache = <&CLUSTER0_L2>; [all …]
|
| /linux/arch/arm/boot/dts/allwinner/ |
| H A D | sun4i-a10.dtsi | 3 * Stefan Roese <sr@denx.de> 5 * This file is dual-licensed: you can use it either under the terms 44 #include <dt-bindings/thermal/thermal.h> 45 #include <dt-bindings/dma/sun4i-a10.h> 46 #include <dt-bindings/clock/sun4i-a10-ccu.h> 47 #include <dt-bindings/reset/sun4i-a10-ccu.h> 50 #address-cells = <1>; 51 #size-cells = <1>; 52 interrupt-parent = <&intc>; 59 #address-cells = <1>; [all …]
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | evergreen.c | 62 spin_lock_irqsave(&rdev->cg_idx_lock, flags); in eg_cg_rreg() 65 spin_unlock_irqrestore(&rdev->cg_idx_lock, flags); in eg_cg_rreg() 73 spin_lock_irqsave(&rdev->cg_idx_lock, flags); in eg_cg_wreg() 76 spin_unlock_irqrestore(&rdev->cg_idx_lock, flags); in eg_cg_wreg() 84 spin_lock_irqsave(&rdev->pif_idx_lock, flags); in eg_pif_phy0_rreg() 87 spin_unlock_irqrestore(&rdev->pif_idx_lock, flags); in eg_pif_phy0_rreg() 95 spin_lock_irqsave(&rdev->pif_idx_lock, flags); in eg_pif_phy0_wreg() 98 spin_unlock_irqrestore(&rdev->pif_idx_lock, flags); in eg_pif_phy0_wreg() 106 spin_lock_irqsave(&rdev->pif_idx_lock, flags); in eg_pif_phy1_rreg() 109 spin_unlock_irqrestore(&rdev->pif_idx_lock, flags); in eg_pif_phy1_rreg() [all …]
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_main.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2024 Intel Corporation. */ 66 "Copyright (c) 1999-2016 Intel Corporation."; 82 /* ixgbe_pci_tbl - PCI Device ID Table 162 …"Maximum number of virtual functions to allocate per physical function - default is zero and maxim… 168 "Allow unsupported and untested SFP+ modules on 82599-based adapters"); 171 static int debug = -1; 193 return dev && (dev->netdev_ops == &ixgbe_netdev_ops); in netif_is_ixgbe() 202 parent_bus = adapter->pdev->bus->parent; in ixgbe_read_pci_cfg_word_parent() 204 return -1; in ixgbe_read_pci_cfg_word_parent() [all …]
|
| /linux/Documentation/devicetree/bindings/arm/ |
| H A D | fsl.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Shawn Guo <shawnguo@kernel.org> 17 - description: i.MX1 based Boards 19 - enum: 20 - armadeus,imx1-apf9328 21 - fsl,imx1ads 22 - const: fsl,imx1 24 - description: i.MX23 based Boards [all …]
|
| /linux/Documentation/filesystems/ |
| H A D | proc.rst | 1 .. SPDX-License-Identifier: GPL-2.0 24 1.1 Process-Specific Subdirectories 36 3 Per-Process Parameters 37 3.1 /proc/<pid>/oom_adj & /proc/<pid>/oom_score_adj - Adjust the oom-killer 39 3.2 /proc/<pid>/oom_score - Display current oom-killer score 40 3.3 /proc/<pid>/io - Display the IO accounting fields 41 3.4 /proc/<pid>/coredump_filter - Core dump filtering settings 42 3.5 /proc/<pid>/mountinfo - Information about mounts 44 3.7 /proc/<pid>/task/<tid>/children - Information about task children 45 3.8 /proc/<pid>/fdinfo/<fd> - Information about opened file [all …]
|
| /linux/drivers/scsi/qla2xxx/ |
| H A D | qla_mbx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (c) 2003-2014 QLogic Corporation 35 if (cmd == e->cmd) in mb_to_str() 36 return e->str; in mb_to_str() 79 if (wc->cmd == cmd) in is_rom_cmd() 119 struct qla_hw_data *ha = vha->hw; in qla2x00_mailbox_command() 120 scsi_qla_host_t *base_vha = pci_get_drvdata(ha->pdev); in qla2x00_mailbox_command() 126 if (ha->pdev->error_state == pci_channel_io_perm_failure) { in qla2x00_mailbox_command() 132 if (vha->device_flags & DFLG_DEV_FAILED) { in qla2x00_mailbox_command() 139 if (test_bit(PFLG_DISCONNECTED, &base_vha->dpc_flags) && in qla2x00_mailbox_command() [all …]
|
| /linux/drivers/pci/ |
| H A D | quirks.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * This file contains work-arounds for many known PCI hardware bugs. 5 * should be handled in arch-specific code. 22 #include <linux/isa-dma.h> /* isa_dma_bridge_buggy */ 41 if (test_bit(PCI_LINK_LBMS_SEEN, &dev->priv_flags)) in pcie_lbms_seen() 102 int ret = -ENOTTY; in pcie_failed_link_retrain() 105 !pcie_cap_has_lnkctl2(dev) || !dev->link_active_reporting) in pcie_failed_link_retrain() 112 pci_info(dev, "broken device, retraining non-functional downstream link at 2.5GT/s\n"); in pcie_failed_link_retrain() 173 if ((f->class == (u32) (dev->class >> f->class_shift) || in pci_do_fixups() 174 f->class == (u32) PCI_ANY_ID) && in pci_do_fixups() [all …]
|