Home
last modified time | relevance | path

Searched +full:cold +full:- +full:temp (Results 1 – 25 of 55) sorted by relevance

123

/Linux-v6.6/Documentation/devicetree/bindings/power/supply/
Dmaxim,max17042.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Sebastian Reichel <sre@kernel.org>
13 - $ref: power-supply.yaml#
18 - maxim,max17042
19 - maxim,max17047
20 - maxim,max17050
21 - maxim,max17055
22 - maxim,max77849-battery
[all …]
Dcharger-manager.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/power/supply/charger-manager.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Sebastian Reichel <sre@kernel.org>
18 const: charger-manager
20 cm-chargers:
22 $ref: /schemas/types.yaml#/definitions/string-array
24 cm-num-chargers:
28 cm-fuel-gauge:
[all …]
/Linux-v6.6/Documentation/devicetree/bindings/iio/temperature/
Dadi,ltc2983.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Analog Devices LTC2983, LTC2986, LTM2985 Multi-sensor Temperature system
10 - Nuno Sá <nuno.sa@analog.com>
13 Analog Devices LTC2983, LTC2984, LTC2986, LTM2985 Multi-Sensor Digital
16 https://www.analog.com/media/en/technical-documentation/data-sheets/2983fc.pdf
17 https://www.analog.com/media/en/technical-documentation/data-sheets/2984fb.pdf
18 https://www.analog.com/media/en/technical-documentation/data-sheets/29861fa.pdf
19 https://www.analog.com/media/en/technical-documentation/data-sheets/ltm2985.pdf
[all …]
/Linux-v6.6/drivers/media/usb/dvb-usb/
Daf9005.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * USB1.1 DVB-T receiver.
9 * see Documentation/driver-api/media/drivers/dvb-usb.rst for more information
17 "set debugging level (1=info,xfer=2,rc=4,reg=8,i2c=16,fw=32 (or-able))."
48 struct af9005_device_state *st = d->priv; in af9005_generic_read_write()
54 return -EINVAL; in af9005_generic_read_write()
58 return -EINVAL; in af9005_generic_read_write()
61 mutex_lock(&d->data_mutex); in af9005_generic_read_write()
62 st->data[0] = 14; /* rest of buffer length low */ in af9005_generic_read_write()
63 st->data[1] = 0; /* rest of buffer length high */ in af9005_generic_read_write()
[all …]
/Linux-v6.6/drivers/iio/temperature/
Dmax31856.c1 // SPDX-License-Identifier: GPL-2.0
6 * Copyright (C) 2018-2019 Rockwell Collins
20 #include <dt-bindings/iio/temperature/thermocouple.h>
65 { /* Cold Junction Temperature */
90 return spi_write_then_read(data->spi, &reg, 1, val, read_size); in max31856_read()
101 return spi_write(data->spi, buf, 2); in max31856_write()
128 reg_cr1_val |= data->thermocouple_type; in max31856_init()
131 reg_cr1_val |= data->averaging << MAX31856_AVERAGING_SHIFT; in max31856_init()
149 if (data->filter_50hz) in max31856_init()
164 switch (chan->channel2) { in max31856_thermocouple_read()
[all …]
Dltc2983.c1 // SPDX-License-Identifier: GPL-2.0
3 * Analog Devices LTC2983 Multi-Sensor Digital Temperature Measurement System
57 (((chan - 1) * 4) + LTC2983_CHAN_ASSIGN_START_REG)
59 (((chan - 1) * 4) + LTC2983_TEMP_RES_START_REG)
127 /* cold junction for thermocouples and rsense for rtd's and thermistor's */
233 __be32 temp __aligned(IIO_DMA_MINALIGN);
308 * instance a resolution of 2^-10 means we have 10 fractional bits.
322 s64 __res = -(s32)val; in __convert_to_raw_sign()
326 return (u32)-__res; in __convert_to_raw_sign()
333 const struct device *dev = &st->spi->dev; in __ltc2983_fault_handler()
[all …]
/Linux-v6.6/drivers/sbus/char/
Dbbc_envctrl.c1 // SPDX-License-Identifier: GPL-2.0
2 /* bbc_envctrl.c: UltraSPARC-III environment control driver.
26 /* Two temperature sensors exist in the SunBLADE-1000 enclosure.
31 * The max1617 is capable of being programmed with power-off
44 * disabled/enabled when entering/exiting the lowest power-saving
59 * before the hardware based power-off event is triggered.
63 * if we cannot interrogate the cpu-fru SEEPROM.
71 { 100, 85, 80, 5, -5, -10 },
72 { 100, 85, 80, 5, -5, -10 },
76 { 65, 55, 40, 5, -5, -10 },
[all …]
/Linux-v6.6/drivers/hwmon/
Dadm9240.c1 // SPDX-License-Identifier: GPL-2.0-or-later
21 * Alarms 16-bit map of active alarms
26 * Test hardware: Intel SE440BX-2 desktop motherboard --Grant
28 * LM81 extended temp reading not implemented
36 #include <linux/hwmon-sysfs.h>
38 #include <linux/hwmon-vid.h>
74 return (val * mul - div / 2) / div; in SCALE()
93 /* temperature range: -40..125, 127 disables temperature alarm */
96 val = clamp_val(val, -40000, 127000); in TEMP_TO_REG()
104 return -1; in FAN_FROM_REG()
[all …]
/Linux-v6.6/drivers/power/supply/
Dcharger-manager.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * during suspend-to-mem.
23 #include <linux/power/charger-manager.h>
35 { "USB-HOST", EXTCON_USB_HOST },
40 { "FAST-CHARGER", EXTCON_CHG_USB_FAST },
41 { "SLOW-CHARGER", EXTCON_CHG_USB_SLOW },
49 { "CHARGE-DOWNSTREAM", EXTCON_CHG_USB_CDP },
78 /* About in-suspend (suspend-again) monitoring */
92 * is_batt_present - See if the battery presents in place.
102 switch (cm->desc->battery_present) { in is_batt_present()
[all …]
Dbq24190_charger.c1 // SPDX-License-Identifier: GPL-2.0-only
19 #include <linux/extcon-provider.h>
32 #define BQ24190_REG_POC 0x01 /* Power-On Configuration */
57 #define BQ24190_REG_PCTCC 0x03 /* Pre-charge/Termination Current Cntl */
190 * The tables below provide a 2-way mapping for the value that goes in
191 * the register field and the real-world value that it represents.
193 * number at that index in the array is the real-world value that it
233 * 'val'. The index range returned is 0 to 'tbl_size' - 1. Assumes that
245 return i - 1; in bq24190_find_idx()
254 ret = i2c_smbus_read_byte_data(bdi->client, reg); in bq24190_read()
[all …]
Dmax17042_battery.c1 // SPDX-License-Identifier: GPL-2.0+
12 #include <linux/devm-helpers.h>
94 static int max17042_get_temperature(struct max17042_chip *chip, int *temp) in max17042_get_temperature() argument
98 struct regmap *map = chip->regmap; in max17042_get_temperature()
104 *temp = sign_extend32(data, 15); in max17042_get_temperature()
105 /* The value is converted into deci-centigrade scale */ in max17042_get_temperature()
107 *temp = *temp * 10 / 256; in max17042_get_temperature()
117 ret = power_supply_am_i_supplied(chip->battery); in max17042_get_status()
128 * The MAX170xx has builtin end-of-charge detection and will update in max17042_get_status()
133 * continuously once end-of-charge detection kicks in, so allow the in max17042_get_status()
[all …]
D88pm860x_battery.c1 // SPDX-License-Identifier: GPL-2.0-only
68 /* OCV -- Open Circuit Voltage */
83 * corresponding resistor value -- Ohm / C degeree.
85 #define TBAT_NEG_25D 127773 /* -25 */
86 #define TBAT_NEG_10D 54564 /* -10 */
151 * register 1 bit[7:0] -- bit[11:4] of measured value of voltage
152 * register 0 bit[3:0] -- bit[3:0] of measured value of voltage
160 ret = pm860x_bulk_read(info->i2c, offset, 2, buf); in measure_12bit_voltage()
188 * bit[11:10] -- bit[7:6] of LDO9(0x18) in measure_vbatt()
189 * bit[9:8] -- bit[7:6] of LDO8(0x17) in measure_vbatt()
[all …]
/Linux-v6.6/drivers/usb/host/
Dxhci-hub.c1 // SPDX-License-Identifier: GPL-2.0
17 #include "xhci-trace.h"
53 bos->bLength = USB_DT_BOS_SIZE; in xhci_create_usb3x_bos_desc()
54 bos->bDescriptorType = USB_DT_BOS; in xhci_create_usb3x_bos_desc()
55 bos->wTotalLength = cpu_to_le16(USB_DT_BOS_SIZE + in xhci_create_usb3x_bos_desc()
57 bos->bNumDeviceCaps = 1; in xhci_create_usb3x_bos_desc()
60 for (i = 0; i < xhci->num_port_caps; i++) { in xhci_create_usb3x_bos_desc()
61 u8 major = xhci->port_caps[i].maj_rev; in xhci_create_usb3x_bos_desc()
62 u8 minor = xhci->port_caps[i].min_rev; in xhci_create_usb3x_bos_desc()
67 port_cap = &xhci->port_caps[i]; in xhci_create_usb3x_bos_desc()
[all …]
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/link/protocols/
Dlink_dp_dpia_bw.c34 link->ctx->logger
38 // ------------------------------------------------------------------
40 // ------------------------------------------------------------------
43 * - Is it USB4 link?
44 * - Is HPD HIGH?
45 * - Is BW Allocation Support Mode enabled on DP-Tx?
49 return (tmp && DISPLAY_ENDPOINT_USB4_DPIA == tmp->ep_type in get_bw_alloc_proceed_flag()
50 && tmp->hpd_status in get_bw_alloc_proceed_flag()
51 && tmp->dpia_bw_alloc_config.bw_alloc_enabled); in get_bw_alloc_proceed_flag()
55 link->dpia_bw_alloc_config.bw_alloc_enabled = false; in reset_bw_alloc_struct()
[all …]
/Linux-v6.6/drivers/thermal/mediatek/
Dlvts_thermal.c1 // SPDX-License-Identifier: GPL-2.0-only
8 #include <linux/clk-provider.h>
15 #include <linux/nvmem-consumer.h>
20 #include <dt-bindings/thermal/mediatek,lvts-thermal.h>
83 #define LVTS_COEFF_A -250460
206 lvts_td->dom_dentry = debugfs_create_dir(dev_name(dev), NULL); in lvts_debugfs_init()
207 if (IS_ERR(lvts_td->dom_dentry)) in lvts_debugfs_init()
210 for (i = 0; i < lvts_td->num_lvts_ctrl; i++) { in lvts_debugfs_init()
212 lvts_ctrl = &lvts_td->lvts_ctrl[i]; in lvts_debugfs_init()
215 dentry = debugfs_create_dir(name, lvts_td->dom_dentry); in lvts_debugfs_init()
[all …]
/Linux-v6.6/include/trace/events/
Df2fs.h1 /* SPDX-License-Identifier: GPL-2.0 */
12 #define show_dev_ino(entry) show_dev(entry->dev), (unsigned long)entry->ino
22 TRACE_DEFINE_ENUM(COLD);
60 { IPU, "IN-PLACE" }, \
61 { OPU, "OUT-OF-PLACE" })
63 #define show_block_temp(temp) \ argument
64 __print_symbolic(temp, \
67 { COLD, "COLD" })
91 { CURSEG_COLD_DATA, "Cold DATA" }, \
94 { CURSEG_COLD_NODE, "Cold NODE" }, \
[all …]
/Linux-v6.6/drivers/media/dvb-frontends/
Dm88rs2000.c1 // SPDX-License-Identifier: GPL-2.0-or-later
40 MODULE_PARM_DESC(debug, "set debugging level (1=info (or-able)).");
44 printk(KERN_DEBUG "m88rs2000-fe: " args); \
49 printk(KERN_INFO "m88rs2000-fe: " format "\n" , ## arg)
57 .addr = state->config->demod_addr, in m88rs2000_writereg()
63 ret = i2c_transfer(state->i2c, &msg, 1); in m88rs2000_writereg()
69 return (ret != 1) ? -EREMOTEIO : 0; in m88rs2000_writereg()
80 .addr = state->config->demod_addr, in m88rs2000_readreg()
85 .addr = state->config->demod_addr, in m88rs2000_readreg()
92 ret = i2c_transfer(state->i2c, msg, 2); in m88rs2000_readreg()
[all …]
/Linux-v6.6/drivers/thermal/tegra/
Dtegra30-tsensor.c1 // SPDX-License-Identifier: GPL-2.0
9 * Copyright (C) 2021 GRATE-DRIVER project
95 err = reset_control_assert(ts->rst); in tegra_tsensor_hw_enable()
97 dev_err(ts->dev, "failed to assert hardware reset: %d\n", err); in tegra_tsensor_hw_enable()
101 err = clk_prepare_enable(ts->clk); in tegra_tsensor_hw_enable()
103 dev_err(ts->dev, "failed to enable clock: %d\n", err); in tegra_tsensor_hw_enable()
109 err = reset_control_deassert(ts->rst); in tegra_tsensor_hw_enable()
111 dev_err(ts->dev, "failed to deassert hardware reset: %d\n", err); in tegra_tsensor_hw_enable()
128 writel_relaxed(val, ts->regs + 0x40 + TSENSOR_SENSOR0_CONFIG0); in tegra_tsensor_hw_enable()
129 writel_relaxed(val, ts->regs + 0x80 + TSENSOR_SENSOR0_CONFIG0); in tegra_tsensor_hw_enable()
[all …]
/Linux-v6.6/drivers/thermal/ti-soc-thermal/
Dti-bandgap.h1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
26 * +----------+----------------+
28 * +---------------------------+
32 * +-------------------+ +-----------------+
33 * | struct ti_bandgap |-->| struct device * |
34 * +----------+--------+ +-----------------+
38 * +------------------------+
40 * +------------------------+
44 * +------------+------------------------------------------------------+
[all …]
/Linux-v6.6/fs/f2fs/
Ddata.c1 // SPDX-License-Identifier: GPL-2.0
17 #include <linux/blk-crypto.h>
53 struct address_space *mapping = page->mapping; in __is_cp_guaranteed()
60 inode = mapping->host; in __is_cp_guaranteed()
63 if (inode->i_ino == F2FS_META_INO(sbi) || in __is_cp_guaranteed()
64 inode->i_ino == F2FS_NODE_INO(sbi) || in __is_cp_guaranteed()
65 S_ISDIR(inode->i_mode)) in __is_cp_guaranteed()
70 if ((S_ISREG(inode->i_mode) && IS_NOQUOTA(inode)) || in __is_cp_guaranteed()
81 struct inode *inode = mapping->host; in __read_io_type()
84 if (inode->i_ino == F2FS_META_INO(sbi)) in __read_io_type()
[all …]
Dgc.c1 // SPDX-License-Identifier: GPL-2.0
34 struct f2fs_gc_kthread *gc_th = sbi->gc_thread; in gc_thread_func()
35 wait_queue_head_t *wq = &sbi->gc_thread->gc_wait_queue_head; in gc_thread_func()
36 wait_queue_head_t *fggc_wq = &sbi->gc_thread->fggc_wq; in gc_thread_func()
43 wait_ms = gc_th->min_sleep_time; in gc_thread_func()
52 gc_th->gc_wake, in gc_thread_func()
59 if (gc_th->gc_wake) in gc_thread_func()
60 gc_th->gc_wake = false; in gc_thread_func()
62 if (try_to_freeze() || f2fs_readonly(sbi->sb)) { in gc_thread_func()
69 if (sbi->sb->s_writers.frozen >= SB_FREEZE_WRITE) { in gc_thread_func()
[all …]
/Linux-v6.6/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_init.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (c) 2009-2013 QLogic Corporation
89 recv_ctx = adapter->recv_ctx; in qlcnic_release_rx_buffers()
90 for (ring = 0; ring < adapter->max_rds_rings; ring++) { in qlcnic_release_rx_buffers()
91 rds_ring = &recv_ctx->rds_rings[ring]; in qlcnic_release_rx_buffers()
92 for (i = 0; i < rds_ring->num_desc; ++i) { in qlcnic_release_rx_buffers()
93 rx_buf = &(rds_ring->rx_buf_arr[i]); in qlcnic_release_rx_buffers()
94 if (rx_buf->skb == NULL) in qlcnic_release_rx_buffers()
97 dma_unmap_single(&adapter->pdev->dev, rx_buf->dma, in qlcnic_release_rx_buffers()
98 rds_ring->dma_size, DMA_FROM_DEVICE); in qlcnic_release_rx_buffers()
[all …]
/Linux-v6.6/drivers/net/wireless/mediatek/mt7601u/
Dphy.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * (c) Copyright 2002-2010, Ralink Technology, Inc.
23 if (WARN_ON(!test_bit(MT7601U_STATE_WLAN_RUNNING, &dev->state)) || in mt7601u_rf_wr()
25 return -EINVAL; in mt7601u_rf_wr()
26 if (test_bit(MT7601U_STATE_REMOVED, &dev->state)) in mt7601u_rf_wr()
29 mutex_lock(&dev->reg_atomic_mutex); in mt7601u_rf_wr()
32 ret = -ETIMEDOUT; in mt7601u_rf_wr()
44 mutex_unlock(&dev->reg_atomic_mutex); in mt7601u_rf_wr()
47 dev_err(dev->dev, "Error: RF write %02hhx:%02hhx failed:%d!!\n", in mt7601u_rf_wr()
56 int ret = -ETIMEDOUT; in mt7601u_rf_rr()
[all …]
/Linux-v6.6/drivers/gpu/drm/i915/display/
Dvlv_dsi.c87 struct drm_encoder *encoder = &intel_dsi->base.base; in vlv_dsi_wait_for_fifo_empty()
88 struct drm_device *dev = encoder->dev; in vlv_dsi_wait_for_fifo_empty()
97 drm_err(&dev_priv->drm, "DPI FIFOs are not empty\n"); in vlv_dsi_wait_for_fifo_empty()
109 for (j = 0; j < min_t(u32, len - i, 4); j++) in write_data()
125 for (j = 0; j < min_t(u32, len - i, 4); j++) in read_data()
134 struct drm_device *dev = intel_dsi_host->intel_dsi->base.base.dev; in intel_dsi_host_transfer()
136 enum port port = intel_dsi_host->port; in intel_dsi_host_transfer()
149 if (msg->flags & MIPI_DSI_MSG_USE_LPM) { in intel_dsi_host_transfer()
165 drm_err(&dev_priv->drm, in intel_dsi_host_transfer()
172 if (msg->rx_len) { in intel_dsi_host_transfer()
[all …]
/Linux-v6.6/drivers/scsi/qla4xxx/
Dql4_nx.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (c) 2003-2013 QLogic Corporation
14 #include <linux/io-64-nonatomic-lo-hi.h>
40 if ((off < ha->first_page_group_end) && in qla4_8xxx_pci_base_offsetfset()
41 (off >= ha->first_page_group_start)) in qla4_8xxx_pci_base_offsetfset()
42 return (void __iomem *)(ha->nx_pcibase + off); in qla4_8xxx_pci_base_offsetfset()
344 "Cold",
363 ha->crb_win = CRB_HI(*off); in qla4_82xx_pci_set_crbwindow_2M()
364 writel(ha->crb_win, in qla4_82xx_pci_set_crbwindow_2M()
365 (void __iomem *)(CRB_WINDOW_2M + ha->nx_pcibase)); in qla4_82xx_pci_set_crbwindow_2M()
[all …]

123