Home
last modified time | relevance | path

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

12345678910>>...44

/linux-6.14.4/drivers/net/wireless/intel/ipw2x00/
Dlibipw_spy.c4 * Authors : Jean Tourrilhes - HPL - <[email protected]>
5 * Copyright (c) 1997-2007 Jean Tourrilhes, All Rights Reserved.
23 if (ieee->spy_enabled) in get_spydata()
24 return &ieee->spy_data; in get_spydata()
28 int ipw_wx_set_spy(struct net_device * dev, in ipw_wx_set_spy()
38 return -EOPNOTSUPP; in ipw_wx_set_spy()
43 spydata->spy_number = 0; in ipw_wx_set_spy()
54 if (wrqu->data.length > 0) { in ipw_wx_set_spy()
55 int i; in ipw_wx_set_spy()
58 for (i = 0; i < wrqu->data.length; i++) in ipw_wx_set_spy()
[all …]
/linux-6.14.4/drivers/iio/adc/
Dxilinx-xadc-events.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Author: Lars-Peter Clausen <[email protected]>
13 #include "xilinx-xadc.h"
16 struct iio_dev *indio_dev, unsigned int event) in xadc_event_to_channel()
21 return &indio_dev->channels[0]; in xadc_event_to_channel()
24 return &indio_dev->channels[event]; in xadc_event_to_channel()
26 return &indio_dev->channels[event-1]; in xadc_event_to_channel()
30 static void xadc_handle_event(struct iio_dev *indio_dev, unsigned int event) in xadc_handle_event()
34 /* Temperature threshold error, we don't handle this yet */ in xadc_handle_event()
40 if (chan->type == IIO_TEMP) { in xadc_handle_event()
[all …]
/linux-6.14.4/drivers/soc/tegra/fuse/
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 …]
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-6.14.4/drivers/gpu/drm/xe/
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 …]
Dxe_guc_klv_thresholds_set.h1 /* SPDX-License-Identifier: MIT */
14 * MAKE_GUC_KLV_VF_CFG_THRESHOLD_KEY - Prepare the name of the KLV key constant.
15 * @TAG: unique tag of the GuC threshold KLV key.
21 * MAKE_GUC_KLV_VF_CFG_THRESHOLD_LEN - Prepare the name of the KLV length constant.
22 * @TAG: unique tag of the GuC threshold KLV key.
28 * xe_guc_klv_threshold_key_to_index - Find index of the tracked GuC threshold.
29 * @key: GuC threshold KLV key.
32 * Return: index of the GuC threshold KLV or -1 if not found.
34 static inline int xe_guc_klv_threshold_key_to_index(u32 key) in xe_guc_klv_threshold_key_to_index()
42 /* private: auto-generated case statements */ in xe_guc_klv_threshold_key_to_index()
[all …]
/linux-6.14.4/drivers/cpuidle/governors/
Dladder.c2 * ladder.c - the residency ladder algorithm
8 * (C) 2006-2007 Venkatesh Pallipadi <[email protected]>
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-6.14.4/drivers/iio/light/
Dmax44009.c1 // SPDX-License-Identifier: GPL-2.0
3 * max44009.c - Support for MAX44009 Ambient Light Sensor
41 /* The maximum rising threshold for the max44009 */
51 /* The max44009 always scales raw readings by 0.045 and is non-configurable */
55 /* The fixed-point fractional multiplier for de-scaling threshold values */
109 static int max44009_read_int_time(struct max44009_data *data) in max44009_read_int_time()
112 int ret = i2c_smbus_read_byte_data(data->client, MAX44009_REG_CFG); in max44009_read_int_time()
120 static int max44009_write_int_time(struct max44009_data *data, in max44009_write_int_time()
121 int val, int val2) in max44009_write_int_time()
123 struct i2c_client *client = data->client; in max44009_write_int_time()
[all …]
/linux-6.14.4/sound/soc/codecs/
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-6.14.4/Documentation/hwmon/
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-6.14.4/drivers/staging/media/atomisp/pci/isp/kernels/xnr/xnr_1.0/
Dia_css_xnr.host.c1 // SPDX-License-Identifier: GPL-2.0
15 /* default threshold 6400 translates to 25 on ISP. */
23 unsigned int size) in ia_css_xnr_table_vamem_encode()
26 memcpy(&to->xnr, &from->data, sizeof(to->xnr)); in ia_css_xnr_table_vamem_encode()
33 unsigned int size) in ia_css_xnr_encode()
37 to->threshold = in ia_css_xnr_encode()
38 (uint16_t)uDIGIT_FITTING(from->threshold, 16, SH_CSS_ISP_YUV_BITS); in ia_css_xnr_encode()
44 unsigned int level) in ia_css_xnr_table_debug_dtrace()
53 unsigned int level) in ia_css_xnr_debug_dtrace()
56 "config.threshold=%d\n", config->threshold); in ia_css_xnr_debug_dtrace()
/linux-6.14.4/drivers/md/persistent-data/
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 …]
/linux-6.14.4/arch/x86/kernel/cpu/mce/
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-6.14.4/drivers/staging/media/atomisp/pci/isp/kernels/anr/anr_1.0/
Dia_css_anr.host.c1 // SPDX-License-Identifier: GPL-2.0
28 unsigned int size) in ia_css_anr_encode()
31 to->threshold = from->threshold; in ia_css_anr_encode()
37 unsigned int level) in ia_css_anr_dump()
41 ia_css_debug_dtrace(level, "\t%-32s = %d\n", in ia_css_anr_dump()
42 "anr_threshold", anr->threshold); in ia_css_anr_dump()
48 unsigned int level) in ia_css_anr_debug_dtrace()
51 "config.threshold=%d\n", in ia_css_anr_debug_dtrace()
52 config->threshold); in ia_css_anr_debug_dtrace()
/linux-6.14.4/sound/soc/ti/
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 …]
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-6.14.4/drivers/nvme/host/
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-6.14.4/drivers/staging/media/atomisp/pci/isp/kernels/hdr/
Dia_css_hdr_types.h1 /* SPDX-License-Identifier: GPL-2.0 */
18 int test_irr; /** Test parameter */
19 int match_shift[IA_CSS_HDR_MAX_NUM_INPUT_FRAMES -
21 int match_mul[IA_CSS_HDR_MAX_NUM_INPUT_FRAMES -
23 int thr_low[IA_CSS_HDR_MAX_NUM_INPUT_FRAMES -
24 1]; /** Weight map soft threshold low bound parameter */
25 int thr_high[IA_CSS_HDR_MAX_NUM_INPUT_FRAMES -
26 1]; /** Weight map soft threshold high bound parameter */
27 int thr_coeff[IA_CSS_HDR_MAX_NUM_INPUT_FRAMES -
28 1]; /** Soft threshold linear function coefficien */
[all …]
/linux-6.14.4/drivers/thermal/qcom/
Dtsens.h1 /* SPDX-License-Identifier: GPL-2.0 */
47 * struct tsens_sensor - data for each sensor connected to the tsens device
51 * @hw_id: HW ID can be used in case of platform-specific IDs
53 * @status: 8960-specific variable to track 8960 and 8660 status register offset
58 int offset;
59 unsigned int hw_id;
60 int slope;
62 int p1_calib_offset;
63 int p2_calib_offset;
67 * struct tsens_ops - operations as supported by the tsens device
[all …]
/linux-6.14.4/sound/soc/amd/acp/
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-6.14.4/net/devlink/
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-6.14.4/lib/zstd/common/
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-6.14.4/drivers/iio/humidity/
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-6.14.4/drivers/thermal/intel/
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-6.14.4/drivers/comedi/drivers/
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 …]

12345678910>>...44