Home
last modified time | relevance | path

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

12345678910>>...42

/Linux-v6.1/net/wireless/
Dwext-spy.c4 * Authors : Jean Tourrilhes - HPL - <jt@hpl.hp.com>
5 * Copyright (c) 1997-2007 Jean Tourrilhes, All Rights Reserved.
21 if (dev->wireless_data) in get_spydata()
22 return dev->wireless_data->spy_data; in get_spydata()
26 int iw_handler_set_spy(struct net_device * dev, in iw_handler_set_spy()
36 return -EOPNOTSUPP; in iw_handler_set_spy()
41 spydata->spy_number = 0; in iw_handler_set_spy()
52 if (wrqu->data.length > 0) { in iw_handler_set_spy()
53 int i; in iw_handler_set_spy()
56 for (i = 0; i < wrqu->data.length; i++) in iw_handler_set_spy()
[all …]
/Linux-v6.1/drivers/iio/adc/
Dxilinx-xadc-events.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Author: Lars-Peter Clausen <lars@metafoo.de>
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-v6.1/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-v6.1/drivers/cpuidle/governors/
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
53 int old_idx, int new_idx) in ladder_do_selection()
55 ldev->states[old_idx].stats.promotion_count = 0; in ladder_do_selection()
56 ldev->states[old_idx].stats.demotion_count = 0; in ladder_do_selection()
57 dev->last_state_idx = new_idx; in ladder_do_selection()
[all …]
/Linux-v6.1/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-v6.1/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-v6.1/drivers/md/persistent-data/
Ddm-space-map-metadata.c7 #include "dm-space-map.h"
8 #include "dm-space-map-common.h"
9 #include "dm-space-map-metadata.h"
13 #include <linux/device-mapper.h>
18 /*----------------------------------------------------------------*/
21 * An edge triggered threshold.
23 struct threshold { struct
26 dm_block_t threshold; argument
32 static void threshold_init(struct threshold *t) in threshold_init() argument
34 t->threshold_set = false; in threshold_init()
[all …]
/Linux-v6.1/drivers/staging/media/atomisp/pci/isp/kernels/xnr/xnr_1.0/
Dia_css_xnr.host.c1 // SPDX-License-Identifier: GPL-2.0
24 /* default threshold 6400 translates to 25 on ISP. */
32 unsigned int size) in ia_css_xnr_table_vamem_encode()
35 memcpy(&to->xnr, &from->data, sizeof(to->xnr)); in ia_css_xnr_table_vamem_encode()
42 unsigned int size) in ia_css_xnr_encode()
46 to->threshold = in ia_css_xnr_encode()
47 (uint16_t)uDIGIT_FITTING(from->threshold, 16, SH_CSS_ISP_YUV_BITS); in ia_css_xnr_encode()
53 unsigned int level) in ia_css_xnr_table_debug_dtrace()
62 unsigned int level) in ia_css_xnr_debug_dtrace()
65 "config.threshold=%d\n", config->threshold); in ia_css_xnr_debug_dtrace()
/Linux-v6.1/drivers/thermal/qcom/
Dtsens.h1 /* SPDX-License-Identifier: GPL-2.0 */
42 * struct tsens_sensor - data for each sensor connected to the tsens device
46 * @hw_id: HW ID can be used in case of platform-specific IDs
48 * @status: 8960-specific variable to track 8960 and 8660 status register offset
53 int offset;
54 unsigned int hw_id;
55 int slope;
60 * struct tsens_ops - operations as supported by the tsens device
71 int (*init)(struct tsens_priv *priv);
72 int (*calibrate)(struct tsens_priv *priv);
[all …]
/Linux-v6.1/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>
38 #define THRESHOLD(bit, base) ((bit) + (base)) macro
39 #define I2S_RX_THRESHOLD(base) THRESHOLD(7, base)
40 #define I2S_TX_THRESHOLD(base) THRESHOLD(8, base)
41 #define BT_TX_THRESHOLD(base) THRESHOLD(6, base)
42 #define BT_RX_THRESHOLD(base) THRESHOLD(5, base)
43 #define HS_TX_THRESHOLD(base) THRESHOLD(4, base)
44 #define HS_RX_THRESHOLD(base) THRESHOLD(3, base)
[all …]
/Linux-v6.1/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
24 #include "omap-mcbsp-priv.h"
25 #include "omap-mcbsp.h"
26 #include "sdma-pcm.h"
41 dev_dbg(mcbsp->dev, "**** McBSP%d regs ****\n", mcbsp->id); in omap_mcbsp_dump_reg()
42 dev_dbg(mcbsp->dev, "DRR2: 0x%04x\n", MCBSP_READ(mcbsp, DRR2)); in omap_mcbsp_dump_reg()
43 dev_dbg(mcbsp->dev, "DRR1: 0x%04x\n", MCBSP_READ(mcbsp, DRR1)); in omap_mcbsp_dump_reg()
44 dev_dbg(mcbsp->dev, "DXR2: 0x%04x\n", MCBSP_READ(mcbsp, DXR2)); in omap_mcbsp_dump_reg()
45 dev_dbg(mcbsp->dev, "DXR1: 0x%04x\n", MCBSP_READ(mcbsp, DXR1)); in omap_mcbsp_dump_reg()
[all …]
/Linux-v6.1/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-v6.1/drivers/staging/media/atomisp/pci/isp/kernels/anr/anr_1.0/
Dia_css_anr.host.c1 // SPDX-License-Identifier: GPL-2.0
37 unsigned int size) in ia_css_anr_encode()
40 to->threshold = from->threshold; in ia_css_anr_encode()
46 unsigned int level) in ia_css_anr_dump()
50 ia_css_debug_dtrace(level, "\t%-32s = %d\n", in ia_css_anr_dump()
51 "anr_threshold", anr->threshold); in ia_css_anr_dump()
57 unsigned int level) in ia_css_anr_debug_dtrace()
60 "config.threshold=%d\n", in ia_css_anr_debug_dtrace()
61 config->threshold); in ia_css_anr_debug_dtrace()
/Linux-v6.1/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.
39 /*-**************************************************************
40 * FSE NCount encoding-decoding
66 int nbBits; in FSE_readNCount_body()
67 int remaining; in FSE_readNCount_body()
68 int threshold; in FSE_readNCount_body() local
70 int bitCount; in FSE_readNCount_body()
[all …]
/Linux-v6.1/drivers/gpu/host1x/hw/
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-v6.1/drivers/staging/media/atomisp/pci/isp/kernels/hdr/
Dia_css_hdr_types.h1 /* SPDX-License-Identifier: GPL-2.0 */
27 int test_irr; /** Test parameter */
28 int match_shift[IA_CSS_HDR_MAX_NUM_INPUT_FRAMES -
30 int match_mul[IA_CSS_HDR_MAX_NUM_INPUT_FRAMES -
32 int thr_low[IA_CSS_HDR_MAX_NUM_INPUT_FRAMES -
33 1]; /** Weight map soft threshold low bound parameter */
34 int thr_high[IA_CSS_HDR_MAX_NUM_INPUT_FRAMES -
35 1]; /** Weight map soft threshold high bound parameter */
36 int thr_coeff[IA_CSS_HDR_MAX_NUM_INPUT_FRAMES -
37 1]; /** Soft threshold linear function coefficien */
[all …]
/Linux-v6.1/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 …]
/Linux-v6.1/drivers/media/rc/
Dsunxi-cir.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (C) 2014 Alexsey Shestacov <wingrime@linux-sunxi.org>
8 * Based on sun5i-ir.c:
9 * Copyright (C) 2007-2012 Daniel Wang
18 #include <media/rc-core.h>
20 #define SUNXI_IR_DEV "sunxi-ir"
61 #define REG_RXSTA_GET_AC(val) (((val) >> 8) & (ir->fifo_size * 2 - 1))
67 /* CIR_REG register noise threshold */
69 /* CIR_REG register idle threshold */
74 /* Noise threshold in samples */
[all …]
/Linux-v6.1/mm/
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(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-v6.1/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-v6.1/drivers/input/touchscreen/
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-v6.1/include/linux/soc/ti/
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-v6.1/sound/soc/tegra/
Dtegra186_asrc.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // tegra186_asrc.c - Tegra186 ASRC driver
72 unsigned int id) in tegra186_asrc_lock_stream()
74 regmap_write(asrc->regmap, in tegra186_asrc_lock_stream()
80 static int __maybe_unused tegra186_asrc_runtime_suspend(struct device *dev) in tegra186_asrc_runtime_suspend()
84 regcache_cache_only(asrc->regmap, true); in tegra186_asrc_runtime_suspend()
85 regcache_mark_dirty(asrc->regmap); in tegra186_asrc_runtime_suspend()
90 static int __maybe_unused tegra186_asrc_runtime_resume(struct device *dev) in tegra186_asrc_runtime_resume()
93 int id; in tegra186_asrc_runtime_resume()
95 regcache_cache_only(asrc->regmap, false); in tegra186_asrc_runtime_resume()
[all …]

12345678910>>...42