Home
last modified time | relevance | path

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

12345678910>>...45

/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/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/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/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.c6 * - FSE+HUF source repository : https://github.com/Cyan4973/FiniteStateEntropy
7 * - Public forum : https://groups.google.com/forum/#!forum/lz4c
9 * This source code is licensed under both the BSD-style license (found in the
12 * You may select, at your option, one of the above-listed licenses.
38 /*-**************************************************************
39 * FSE NCount encoding-decoding
65 int nbBits; in FSE_readNCount_body()
66 int remaining; in FSE_readNCount_body()
67 int threshold; in FSE_readNCount_body() local
69 int bitCount; in FSE_readNCount_body()
[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/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/thermal/intel/
H A Dtherm_throt.c1 // SPDX-License-Identifier: GPL-2.0-only
45 * struct _thermal_state - Represent the current thermal event state
48 * @last_interrupt_time: Stores the timestamp for the last threshold
52 * or power threshold interrupts.
54 * or power threshold interrupts.
57 * threshold high to low state.
61 * This is used for the purpose of rate-control.
72 * @baseline_temp: Temperature at which thermal threshold high
109 /* Callback to handle core threshold interrupts */
110 int (*platform_thermal_notify)(__u64 msr_val);
[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/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
3 // tegra186_asrc.c - Tegra186 ASRC driver
71 unsigned int id) in tegra186_asrc_lock_stream()
73 regmap_write(asrc->regmap, in tegra186_asrc_lock_stream()
79 static int __maybe_unused tegra186_asrc_runtime_suspend(struct device *dev) in tegra186_asrc_runtime_suspend()
83 regcache_cache_only(asrc->regmap, true); in tegra186_asrc_runtime_suspend()
84 regcache_mark_dirty(asrc->regmap); in tegra186_asrc_runtime_suspend()
89 static int __maybe_unused tegra186_asrc_runtime_resume(struct device *dev) in tegra186_asrc_runtime_resume()
92 int id; in tegra186_asrc_runtime_resume()
94 regcache_cache_only(asrc->regmap, false); in tegra186_asrc_runtime_resume()
[all …]
/linux/drivers/input/touchscreen/
H A Dwm9705.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * wm9705.c -- Codec driver for Wolfson WM9705 AC97 Codec.
38 static int pil;
39 module_param(pil, int, 0);
43 * Set threshold for pressure measurement.
45 * Pen down pressure below threshold is ignored.
47 static int pressure = DEFAULT_PRESSURE & 0xfff;
48 module_param(pressure, int, 0);
49 MODULE_PARM_DESC(pressure, "Set threshold for pressure measurement.");
63 static int delay = 4;
[all …]
/linux/mm/
H A Dvmstat.c1 // SPDX-License-Identifier: GPL-2.0-only
11 * Copyright (C) 2008-2014 Christoph Lameter
35 int sysctl_vm_numa_stat = ENABLE_NUMA_STAT;
40 int item, cpu; in zero_zone_numa_counters()
43 atomic_long_set(&zone->vm_numa_event[item], 0); in zero_zone_numa_counters()
45 per_cpu_ptr(zone->per_cpu_zonestats, cpu)->vm_numa_event[item] in zero_zone_numa_counters()
63 int item; in zero_global_numa_counters()
77 int sysctl_vm_numa_stat_handler(const struct ctl_table *table, int write, in sysctl_vm_numa_stat_handler()
80 int ret, oldval; in sysctl_vm_numa_stat_handler()
112 int cpu; in sum_vm_events()
[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/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 …]
/linux/drivers/power/supply/
H A Dab8500-bm.h1 /* SPDX-License-Identifier: GPL-2.0-only */
267 * struct ab8500_fg_parameters - Fuel gauge algorithm parameters, in seconds
277 * @high_curr_threshold_ua: High current threshold, in uA
278 * @lowbat_threshold_uv: Low battery threshold, in uV
279 * @battok_falling_th_sel0 Threshold in mV for battOk signal sel0
281 * @battok_raising_th_sel1 Threshold in mV for battOk signal sel1
286 * @maint_thres This is the threshold where we stop reporting
289 * @pcut_max_time: Max time threshold
290 * @pcut_flag_time: Flagtime threshold
295 int recovery_sleep_timer;
[all …]

12345678910>>...45