Home
last modified time | relevance | path

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

12345678910>>...44

/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/drivers/soc/tegra/fuse/
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 …]
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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/fs/hmdfs/
Dclient_writeback.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Copyright (c) 2020-2021 Huawei Device Co., Ltd.
14 * HM_DEFAULT_WRITEBACK_INTERVAL - centiseconds
15 * HMDFS_FILE_BG_WB_BYTES - background per-file threshold 10M
16 * HMDFS_FS_BG_WB_BYTES - background per-fs threshold 50M
17 * HMDFS_FILE_WB_BYTES - per-file throttle threshold
18 * HMDFS_FS_WB_BYTES - per-fs throttle threshold
31 #define HMDFS_BW_THRESH_MIN_LIMIT (1 << (20 - PAGE_SHIFT))
32 #define HMDFS_BW_THRESH_MAX_LIMIT (100 << (20 - PAGE_SHIFT))
35 #define HMDFS_DIRTY_EXCEED_RATELIMIT (32 >> (PAGE_SHIFT - 10))
[all …]
/kernel/linux/linux-6.6/fs/hmdfs/
Dclient_writeback.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Copyright (c) 2020-2021 Huawei Device Co., Ltd.
14 * HM_DEFAULT_WRITEBACK_INTERVAL - centiseconds
15 * HMDFS_FILE_BG_WB_BYTES - background per-file threshold 10M
16 * HMDFS_FS_BG_WB_BYTES - background per-fs threshold 50M
17 * HMDFS_FILE_WB_BYTES - per-file throttle threshold
18 * HMDFS_FS_WB_BYTES - per-fs throttle threshold
31 #define HMDFS_BW_THRESH_MIN_LIMIT (1 << (20 - PAGE_SHIFT))
32 #define HMDFS_BW_THRESH_MAX_LIMIT (100 << (20 - PAGE_SHIFT))
35 #define HMDFS_DIRTY_EXCEED_RATELIMIT (32 >> (PAGE_SHIFT - 10))
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/watchdog/
Dintel_scu_watchdog.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * - AF82MP20 PCH
7 * Copyright (C) 2009-2010 Intel Corporation. All rights reserved.
35 #include <asm/intel-mid.h>
45 static int timer_margin = DEFAULT_SOFT_TO_HARD_MARGIN;
46 module_param(timer_margin, int, 0);
53 static int timer_set = DEFAULT_TIME;
54 module_param(timer_set, int, 0);
65 static int force_boot;
66 module_param(force_boot, int, 0);
[all …]
/kernel/linux/linux-5.10/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; member
32 static void threshold_init(struct threshold *t) in threshold_init() argument
34 t->threshold_set = false; in threshold_init()
[all …]
/kernel/linux/linux-5.10/drivers/thermal/qcom/
Dtsens.h1 /* SPDX-License-Identifier: GPL-2.0 */
40 * struct tsens_sensor - data for each sensor connected to the tsens device
44 * @hw_id: HW ID can be used in case of platform-specific IDs
46 * @status: 8960-specific variable to track 8960 and 8660 status register offset
51 int offset;
52 unsigned int hw_id;
53 int slope;
58 * struct tsens_ops - operations as supported by the tsens device
70 int (*init)(struct tsens_priv *priv);
71 int (*calibrate)(struct tsens_priv *priv);
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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()

12345678910>>...44