Home
last modified time | relevance | path

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

12345678910>>...42

/openbmc/dbus-sensors/src/
H A DThresholds.cpp59 std::vector<thresholds::Threshold>& thresholdVector, in parseThresholdsFromConfig()
60 const std::string* matchLabel, const int* sensorIndex) in parseThresholdsFromConfig()
75 if (std::visit(VariantToStringVisitor(), labelFind->second) != in parseThresholdsFromConfig()
93 (std::visit(VariantToIntVisitor(), indexFind->second) != in parseThresholdsFromConfig()
105 std::visit(VariantToDoubleVisitor(), hysteresisFind->second); in parseThresholdsFromConfig()
114 std::cerr << "Malformed threshold on configuration interface " in parseThresholdsFromConfig()
118 unsigned int severity = in parseThresholdsFromConfig()
119 std::visit(VariantToUnsignedIntVisitor(), severityFind->second); in parseThresholdsFromConfig()
122 std::visit(VariantToStringVisitor(), directionFind->second); in parseThresholdsFromConfig()
131 double val = std::visit(VariantToDoubleVisitor(), valueFind->second); in parseThresholdsFromConfig()
[all …]
H A Dsensor.hpp3 #include "dbus-sensor_config.h"
44 int numCollectsGood = 0;
45 int numCollectsMiss = 0;
46 int numStreakGreats = 0;
47 int numStreakMisses = 0;
62 int get_errno() const noexcept override in get_errno()
71 std::vector<thresholds::Threshold>&& thresholdData, in Sensor()
81 hysteresisTrigger((max - min) * 0.01), in Sensor()
82 hysteresisPublish((max - min) * 0.0001), dbusConnection(conn), in Sensor()
103 std::vector<thresholds::Threshold> thresholds;
[all …]
/openbmc/linux/net/wireless/
H A 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 …]
/openbmc/linux/drivers/iio/adc/
H A 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 …]
/openbmc/qemu/tests/unit/
H A Dtest-write-threshold.c2 * Test block device write threshold
5 * See the COPYING.LIB file in the top-level directory.
11 #include "block/write-threshold.h"
16 uint64_t threshold = 4 * 1024 * 1024; in test_threshold_not_trigger() local
21 bdrv_write_threshold_set(&bs, threshold); in test_threshold_not_trigger()
23 g_assert_cmpuint(bdrv_write_threshold_get(&bs), ==, threshold); in test_threshold_not_trigger()
29 uint64_t threshold = 4 * 1024 * 1024; in test_threshold_trigger() local
34 bdrv_write_threshold_set(&bs, threshold); in test_threshold_trigger()
35 bdrv_write_threshold_check_write(&bs, threshold - 1024, 2 * 1024); in test_threshold_trigger()
40 int main(int argc, char **argv) in main()
[all …]
/openbmc/ipmitool/include/ipmitool/
H A Dipmi_sensor.h22 * PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
41 /* threshold specification bits for analog sensors for get sensor threshold command
42 * and set sensor threshold command
73 uint8_t set_mask; /* threshold setting mask */
74 uint8_t lower_non_crit; /* new lower non critical threshold*/
75 uint8_t lower_crit; /* new lower critical threshold*/
76 uint8_t lower_non_recov; /* new lower non recoverable threshold*/
77 uint8_t upper_non_crit; /* new upper non critical threshold*/
78 uint8_t upper_crit; /* new upper critical threshold*/
79 uint8_t upper_non_recov; /* new upper non recoverable threshold*/
[all …]
/openbmc/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 …]
/openbmc/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
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 …]
/openbmc/linux/drivers/iio/light/
H A 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 …]
/openbmc/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 …]
/openbmc/ipmitool/lib/
H A Dipmi_sensor.c22 * PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
44 extern int verbose;
51 #define INVALID_THRESHOLD "Invalid Threshold data values. Cannot Set Threshold Data."
53 int
66 return -1; in ipmi_sensor_get_sensor_reading_factors()
69 memcpy(id, sensor->id_string, 16); in ipmi_sensor_get_sensor_reading_factors()
71 req_data[0] = sensor->cmn.keys.sensor_num; in ipmi_sensor_get_sensor_reading_factors()
76 req.msg.lun = sensor->cmn.keys.lun; in ipmi_sensor_get_sensor_reading_factors()
81 rsp = intf->sendrecv(intf, &req); in ipmi_sensor_get_sensor_reading_factors()
85 id, sensor->cmn.keys.sensor_num); in ipmi_sensor_get_sensor_reading_factors()
[all …]
/openbmc/linux/drivers/staging/media/atomisp/pci/isp/kernels/xnr/xnr_1.0/
H A 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()
/openbmc/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 …]
/openbmc/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 …]
/openbmc/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
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 …]
/openbmc/linux/drivers/thermal/qcom/
H A 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 …]
/openbmc/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>
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 …]
/openbmc/linux/drivers/staging/media/atomisp/pci/isp/kernels/anr/anr_1.0/
H A 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()
/openbmc/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 …]
/openbmc/linux/drivers/staging/media/atomisp/pci/isp/kernels/hdr/
H A 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 …]
/openbmc/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 …]
/openbmc/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 …]
/openbmc/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 …]

12345678910>>...42