Home
last modified time | relevance | path

Searched +full:int +full:- +full:threshold (Results 1 – 25 of 1005) sorted by relevance

12345678910>>...41

/linux/drivers/thermal/qcom/
H A Dqcom-spmi-temp-alarm.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2011-2015, 2017, 2020, The Linux Foundation. All rights reserved.
66 /* Over-temperature trip point values in mC */
81 #define TEMP_THRESH_STEP 5000 /* Threshold step: 5 C */
89 * For TEMP_GEN2 v2.0, TEMP_DAC_STG1/2/3 registers are used to set the threshold
91 * TEMP_DAC_STG* = 0 --> 80 C
99 (((temp) - TEMP_DAC_MIN) * TEMP_DAC_SCALE_NUM / TEMP_DAC_SCALE_DEN)
109 * configured threshold temperatures.
128 int (*sync_thresholds)(struct qpnp_tm_chip *chip);
129 int (*get_temp_stage)(struct qpnp_tm_chip *chip);
[all …]
H A Dtsens.h1 /* SPDX-License-Identifier: GPL-2.0 */
49 * struct tsens_sensor - data for each sensor connected to the tsens device
53 * @hw_id: HW ID can be used in case of platform-specific IDs
55 * @status: 8960-specific variable to track 8960 and 8660 status register offset
60 int offset;
61 unsigned int hw_id;
62 int slope;
64 int p1_calib_offset;
65 int p2_calib_offset;
69 * struct tsens_ops - operations as supported by the tsens device
[all …]
/linux/drivers/gpu/drm/xe/
H A Dxe_gt_sriov_pf_monitor.c1 // SPDX-License-Identifier: MIT
3 * Copyright © 2023-2024 Intel Corporation
17 * xe_gt_sriov_pf_monitor_flr - Cleanup VF data after VF FLR.
26 int e; in xe_gt_sriov_pf_monitor_flr()
32 gt->sriov.pf.vfs[vfid].monitor.guc.events[e] = 0; in xe_gt_sriov_pf_monitor_flr()
41 gt->sriov.pf.vfs[vfid].monitor.guc.events[e]++; in pf_update_event_counter()
44 static int pf_handle_vf_threshold_event(struct xe_gt *gt, u32 vfid, u32 threshold) in pf_handle_vf_threshold_event() argument
47 int e; in pf_handle_vf_threshold_event()
49 e = xe_guc_klv_threshold_key_to_index(threshold); in pf_handle_vf_threshold_event()
54 xe_gt_sriov_notice(gt, "unknown threshold key %#x reported for %s\n", in pf_handle_vf_threshold_event()
[all …]
/linux/drivers/soc/tegra/fuse/
H A Dspeedo-tegra114.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2013-2014, NVIDIA CORPORATION. All rights reserved.
34 int *threshold) in rev_sku_to_speedo_ids() argument
37 u32 sku = sku_info->sku_id; in rev_sku_to_speedo_ids()
38 enum tegra_revision rev = sku_info->revision; in rev_sku_to_speedo_ids()
45 sku_info->cpu_speedo_id = 1; in rev_sku_to_speedo_ids()
46 sku_info->soc_speedo_id = 0; in rev_sku_to_speedo_ids()
47 *threshold = THRESHOLD_INDEX_0; in rev_sku_to_speedo_ids()
52 sku_info->cpu_speedo_id = 2; in rev_sku_to_speedo_ids()
53 sku_info->soc_speedo_id = 1; in rev_sku_to_speedo_ids()
[all …]
H A Dspeedo-tegra124.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2013-2014, NVIDIA CORPORATION. All rights reserved.
51 int *threshold) in rev_sku_to_speedo_ids() argument
53 int sku = sku_info->sku_id; in rev_sku_to_speedo_ids()
56 sku_info->cpu_speedo_id = 0; in rev_sku_to_speedo_ids()
57 sku_info->soc_speedo_id = 0; in rev_sku_to_speedo_ids()
58 sku_info->gpu_speedo_id = 0; in rev_sku_to_speedo_ids()
59 *threshold = THRESHOLD_INDEX_0; in rev_sku_to_speedo_ids()
68 sku_info->cpu_speedo_id = 2; in rev_sku_to_speedo_ids()
74 sku_info->cpu_speedo_id = 2; in rev_sku_to_speedo_ids()
[all …]
/linux/drivers/cpuidle/governors/
H A Dladder.c2 * ladder.c - the residency ladder algorithm
8 * (C) 2006-2007 Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
32 } threshold; member
34 int promotion_count;
35 int demotion_count;
46 * ladder_do_selection - prepares private data for a state change
54 int old_idx, int new_idx) in ladder_do_selection()
56 ldev->states[old_idx].stats.promotion_count = 0; in ladder_do_selection()
57 ldev->states[old_idx].stats.demotion_count = 0; in ladder_do_selection()
58 dev->last_state_idx = new_idx; in ladder_do_selection()
[all …]
/linux/sound/soc/codecs/
H A Des83xx-dsm-common.h1 /* SPDX-License-Identifier: GPL-2.0-only */
125 * 0x03, PCM PORT0, DSP-A
126 * 0x04, PCM PORT0, DSP-B
130 * 0x13, PCM PORT1, DSP-A
131 * 0x14, PCM PORT1, DSP-B
135 * Windows it's always DSP-A
155 * inferred from NHLT but can be used to double-check NHLT
158 /* Volume - Gain */
178 /* ADC volume: base = 0db, -0.5db/setp, 0xc0 <-> -96db */
183 #define ADC_ALC_TARGET_LEVEL_m16_5db 0x00 /* gain = -16.5db */
[all …]
/linux/drivers/md/persistent-data/
H A Ddm-space-map-metadata.c1 // SPDX-License-Identifier: GPL-2.0-only
8 #include "dm-space-map.h"
9 #include "dm-space-map-common.h"
10 #include "dm-space-map-metadata.h"
14 #include <linux/device-mapper.h>
19 /*----------------------------------------------------------------*/
22 * An edge triggered threshold.
24 struct threshold { struct
27 dm_block_t threshold; argument
33 static void threshold_init(struct threshold *t) in threshold_init() argument
[all …]
H A Ddm-space-map.h1 /* SPDX-License-Identifier: GPL-2.0-only */
11 #include "dm-block-manager.h"
25 int (*extend)(struct dm_space_map *sm, dm_block_t extra_blocks);
31 int (*get_nr_blocks)(struct dm_space_map *sm, dm_block_t *count);
41 int (*get_nr_free)(struct dm_space_map *sm, dm_block_t *count);
43 int (*get_count)(struct dm_space_map *sm, dm_block_t b, uint32_t *result);
44 int (*count_is_more_than_one)(struct dm_space_map *sm, dm_block_t b,
45 int *result);
46 int (*set_count)(struct dm_space_map *sm, dm_block_t b, uint32_t count);
48 int (*commit)(struct dm_space_map *sm);
[all …]
/linux/Documentation/hwmon/
H A Dmax1668.rst12 Datasheet: http://datasheets.maxim-ic.com/en/ds/MAX1668-MAX1989.pdf
19 -----------
31 - MAX1805, MAX1668 and MAX1989:
35 temp1_max rw local temperature maximum threshold for alarm
36 temp1_max_alarm ro local temperature maximum threshold alarm
37 temp1_min rw local temperature minimum threshold for alarm
38 temp1_min_alarm ro local temperature minimum threshold alarm
40 temp2_max rw remote temperature 1 maximum threshold for alarm
41 temp2_max_alarm ro remote temperature 1 maximum threshold alarm
42 temp2_min rw remote temperature 1 minimum threshold for alarm
[all …]
/linux/arch/x86/kernel/cpu/mce/
H A Dintel.c1 // SPDX-License-Identifier: GPL-2.0
57 /* Linux non-storm CMCI threshold (may be overridden by BIOS) */
61 * MCi_CTL2 threshold for each bank when there is no storm.
67 * High threshold to limit CMCI rate during storms. Max supported is
70 * A high threshold is used instead of just disabling CMCI for a
72 * in the same bank and signalled with CMCI. The threshold only applies
78 static bool cmci_supported(int *banks) in cmci_supported()
134 * Set a new CMCI threshold value. Preserve the state of the
138 static void cmci_set_threshold(int bank, int thresh) in cmci_set_threshold()
150 void mce_intel_handle_storm(int bank, bool on) in mce_intel_handle_storm()
[all …]
/linux/sound/soc/ti/
H A Domap-mcpdm.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * omap-mcpdm.c -- OMAP ALSA SoC DAI driver using McPDM port
5 * Copyright (C) 2009 - 2011 Texas Instruments
30 #include "omap-mcpdm.h"
31 #include "sdma-pcm.h"
35 u32 threshold; /* FIFO threshold */ member
42 int irq;
44 int latency[2];
58 int pm_active_count;
69 writel_relaxed(val, mcpdm->io_base + reg); in omap_mcpdm_write()
[all …]
H A Domap-mcbsp.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * omap-mcbsp.c -- OMAP ALSA SoC DAI driver using McBSP port
23 #include "omap-mcbsp-priv.h"
24 #include "omap-mcbsp.h"
25 #include "sdma-pcm.h"
40 dev_dbg(mcbsp->dev, "**** McBSP%d regs ****\n", mcbsp->id); in omap_mcbsp_dump_reg()
41 dev_dbg(mcbsp->dev, "DRR2: 0x%04x\n", MCBSP_READ(mcbsp, DRR2)); in omap_mcbsp_dump_reg()
42 dev_dbg(mcbsp->dev, "DRR1: 0x%04x\n", MCBSP_READ(mcbsp, DRR1)); in omap_mcbsp_dump_reg()
43 dev_dbg(mcbsp->dev, "DXR2: 0x%04x\n", MCBSP_READ(mcbsp, DXR2)); in omap_mcbsp_dump_reg()
44 dev_dbg(mcbsp->dev, "DXR1: 0x%04x\n", MCBSP_READ(mcbsp, DXR1)); in omap_mcbsp_dump_reg()
[all …]
/linux/drivers/nvme/host/
H A Dhwmon.c1 // SPDX-License-Identifier: GPL-2.0
19 static int nvme_get_temp_thresh(struct nvme_ctrl *ctrl, int sensor, bool under, in nvme_get_temp_thresh()
22 unsigned int threshold = sensor << NVME_TEMP_THRESH_SELECT_SHIFT; in nvme_get_temp_thresh() local
24 int ret; in nvme_get_temp_thresh()
27 threshold |= NVME_TEMP_THRESH_TYPE_UNDER; in nvme_get_temp_thresh()
29 ret = nvme_get_features(ctrl, NVME_FEAT_TEMP_THRESH, threshold, NULL, 0, in nvme_get_temp_thresh()
32 return -EIO; in nvme_get_temp_thresh()
40 static int nvme_set_temp_thresh(struct nvme_ctrl *ctrl, int sensor, bool under, in nvme_set_temp_thresh()
43 unsigned int threshold = sensor << NVME_TEMP_THRESH_SELECT_SHIFT; in nvme_set_temp_thresh() local
44 int ret; in nvme_set_temp_thresh()
[all …]
/linux/net/devlink/
H A Dsb.c1 // SPDX-License-Identifier: GPL-2.0-or-later
11 unsigned int index;
21 return devlink_sb->ingress_pools_count + devlink_sb->egress_pools_count; in devlink_sb_pool_count()
25 unsigned int sb_index) in devlink_sb_get_by_index()
29 list_for_each_entry(devlink_sb, &devlink->sb_list, list) { in devlink_sb_get_by_index()
30 if (devlink_sb->index == sb_index) in devlink_sb_get_by_index()
37 unsigned int sb_index) in devlink_sb_index_exists()
51 return ERR_PTR(-ENODEV); in devlink_sb_get_from_attrs()
54 return ERR_PTR(-EINVAL); in devlink_sb_get_from_attrs()
60 return devlink_sb_get_from_attrs(devlink, info->attrs); in devlink_sb_get_from_info()
[all …]
/linux/lib/zstd/common/
H A Dentropy_common.c1 // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
7 * - FSE+HUF source repository : https://github.com/Cyan4973/FiniteStateEntropy
8 * - Public forum : https://groups.google.com/forum/#!forum/lz4c
10 * This source code is licensed under both the BSD-style license (found in the
13 * You may select, at your option, one of the above-listed licenses.
39 /*-**************************************************************
40 * FSE NCount encoding-decoding
49 int nbBits; in FSE_readNCount_body()
50 int remaining; in FSE_readNCount_body()
51 int threshold; in FSE_readNCount_body() local
[all …]
/linux/drivers/iio/humidity/
H A Dhdc3020.c1 // SPDX-License-Identifier: GPL-2.0+
3 * hdc3020.c - Support for the TI HDC3020,HDC3021 and HDC3022
8 * Copyright (C) 2024 Liebherr-Electronics and Drives GmbH
70 #define HDC3020_MIN_TEMP_MICRO -39872968
88 static const int hdc3020_heater_vals[] = {0, 1, 0x3FFF};
137 static int hdc3020_write_bytes(struct hdc3020_data *data, u8 *buf, u8 len) in hdc3020_write_bytes()
139 struct i2c_client *client = data->client; in hdc3020_write_bytes()
141 int ret, cnt; in hdc3020_write_bytes()
143 msg.addr = client->addr; in hdc3020_write_bytes()
153 ret = i2c_transfer(client->adapter, &msg, 1); in hdc3020_write_bytes()
[all …]
/linux/drivers/comedi/drivers/
H A Dquatech_daqp_cs.c1 // SPDX-License-Identifier: GPL-2.0
8 * COMEDI - Linux Control and Measurement Device Interface
13 * ftp://ftp.quatech.com/Manuals/daqp-208.pdf
15 * This manual is for both the DAQP-208 and the DAQP-308.
18 * - A/D conversion
19 * - 8 channels
20 * - 4 gain ranges
21 * - ground ref or differential
22 * - single-shot and timed both supported
23 * - D/A conversion, single-shot
[all …]
/linux/drivers/iio/cdc/
H A Dad7150.c1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright 2010-2011 Analog Devices Inc.
63 * struct ad7150_chip_info - instance specific chip data
65 * @threshold: thresholds for simple capacitance value events
66 * @thresh_sensitivity: threshold for simple capacitance offset
69 * adaptive threshold event occurs to when the average
71 * 3:0 are for timeout receding - applies if below lower threshold
72 * 7:4 are for timeout approaching - applies if above upper threshold
77 * @type: threshold type
78 * @dir: threshold direction
[all …]
/linux/drivers/gpu/host1x/hw/
H A Dchannel_hw.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (c) 2010-2013, NVIDIA Corporation.
24 struct device *dev = cdma_to_channel(cdma)->dev; in trace_write_gather()
37 u32 num_words = min(words - i, TRACE_MAX_LENGTH); in trace_write_gather()
50 static void submit_wait(struct host1x_job *job, u32 id, u32 threshold, in submit_wait() argument
53 struct host1x_cdma *cdma = &job->channel->cdma; in submit_wait()
63 if (job->memory_context) in submit_wait()
64 stream_id = job->memory_context->stream_id; in submit_wait()
66 stream_id = job->engine_fallback_streamid; in submit_wait()
75 threshold, in submit_wait()
[all …]
/linux/sound/soc/tegra/
H A Dtegra186_asrc.c1 // SPDX-License-Identifier: GPL-2.0-only
2 // SPDX-FileCopyrightText: Copyright (c) 2022-2025 NVIDIA CORPORATION. All rights reserved.
4 // tegra186_asrc.c - Tegra186 ASRC driver
70 unsigned int id) in tegra186_asrc_lock_stream()
72 regmap_write(asrc->regmap, in tegra186_asrc_lock_stream()
78 static int tegra186_asrc_runtime_suspend(struct device *dev) in tegra186_asrc_runtime_suspend()
82 regcache_cache_only(asrc->regmap, true); in tegra186_asrc_runtime_suspend()
83 regcache_mark_dirty(asrc->regmap); in tegra186_asrc_runtime_suspend()
88 static int tegra186_asrc_runtime_resume(struct device *dev) in tegra186_asrc_runtime_resume()
91 int id; in tegra186_asrc_runtime_resume()
[all …]
/linux/include/linux/soc/ti/
H A Dknav_dma.h1 /* SPDX-License-Identifier: GPL-2.0-only */
17 #define MASK(x) (BIT(x) - 1)
60 /* Rx flow size threshold configuration */
95 * @thresh: Rx flow size threshold
97 * @sz_thresh0: RX packet size threshold 0
98 * @sz_thresh1: RX packet size threshold 1
99 * @sz_thresh2: RX packet size threshold 2
107 unsigned int sop_offset;
108 unsigned int dst_q;
110 unsigned int fdq[KNAV_DMA_FDQ_PER_CHAN];
[all …]
/linux/tools/include/uapi/linux/
H A Dpkt_sched.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
12 with obsolete IPv6 values is not occasional :-). New IPv6 drafts
51 ---------
105 int overhead;
106 unsigned int linklayer;
107 unsigned int mpu;
108 unsigned int mtu;
109 unsigned int tsize;
119 #define TCA_STAB_MAX (__TCA_STAB_MAX - 1)
130 * Priorities go from zero to (SKBPRIO_MAX_PRIORITY - 1).
[all …]
/linux/sound/soc/amd/acp/
H A Damd.h1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
16 #include <sound/soc-acpi.h>
17 #include <sound/soc-dai.h>
36 #define THRESHOLD(bit, base) ((bit) + (base)) macro
37 #define I2S_RX_THRESHOLD(base) THRESHOLD(7, base)
38 #define I2S_TX_THRESHOLD(base) THRESHOLD(8, base)
39 #define BT_TX_THRESHOLD(base) THRESHOLD(6, base)
40 #define BT_RX_THRESHOLD(base) THRESHOLD(5, base)
41 #define HS_TX_THRESHOLD(base) THRESHOLD(4, base)
42 #define HS_RX_THRESHOLD(base) THRESHOLD(3, base)
[all …]
/linux/drivers/hwmon/
H A Dbt1-pvt.h1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Baikal-T1 Process, Voltage, Temperature sensor driver
17 /* Baikal-T1 PVT registers and their bitfields */
61 * PVT sensors-related limits and default values
73 * when one is determined for Baikal-T1 SoC).
84 #define PVT_TEMP_MIN -48380L
105 * enum pvt_sensor_type - Baikal-T1 PVT sensor types (correspond to each PVT
110 * @PVT_LVT: PVT Low-Voltage threshold sensor.
111 * @PVT_HVT: PVT High-Voltage threshold sensor.
112 * @PVT_SVT: PVT Standard-Voltage threshold sensor.
[all …]

12345678910>>...41