Symbol: threshold
arch/mips/kvm/emulate.c
388
ktime_t expires, threshold;
arch/mips/kvm/emulate.c
410
threshold = ktime_add_ns(now, vcpu->arch.count_period / 4);
arch/mips/kvm/emulate.c
411
if (ktime_before(expires, threshold)) {
arch/parisc/kernel/cache.c
559
unsigned long threshold, threshold2;
arch/parisc/kernel/cache.c
573
threshold = L1_CACHE_ALIGN((unsigned long)((uint64_t)size * alltime / rangetime));
arch/parisc/kernel/cache.c
575
threshold/1024);
arch/parisc/kernel/cache.c
591
threshold = max(cache_info.it_size, cache_info.dt_size);
arch/parisc/kernel/cache.c
592
threshold *= PAGE_SIZE;
arch/parisc/kernel/cache.c
593
threshold /= num_online_cpus();
arch/parisc/kernel/cache.c
609
threshold = PAGE_ALIGN((num_online_cpus() * size * alltime) / rangetime);
arch/parisc/kernel/cache.c
611
threshold/1024);
arch/parisc/kernel/cache.c
614
parisc_tlb_flush_threshold = max(threshold, FLUSH_TLB_THRESHOLD);
arch/powerpc/kernel/watchdog.c
538
u64 threshold = watchdog_thresh;
arch/powerpc/kernel/watchdog.c
541
threshold += (READ_ONCE(wd_timeout_pct) * threshold) / 100;
arch/powerpc/kernel/watchdog.c
544
wd_panic_timeout_tb = threshold * ppc_tb_freq;
arch/powerpc/perf/vpa-dtl.c
131
if (buf->head + *n_entries >= buf->threshold) {
arch/powerpc/perf/vpa-dtl.c
132
*n_entries = buf->threshold - buf->head;
arch/powerpc/perf/vpa-dtl.c
544
buf->threshold = ((buf->size - 32) / sizeof(struct dtl_entry));
arch/powerpc/perf/vpa-dtl.c
91
u64 threshold;
arch/x86/entry/entry_fred.c
111
SYSVEC(THRESHOLD_APIC_VECTOR, threshold),
arch/x86/events/intel/ds.c
1604
u64 threshold;
arch/x86/events/intel/ds.c
1616
threshold = ds->pebs_absolute_maximum -
arch/x86/events/intel/ds.c
1619
threshold = ds->pebs_buffer_base + cpuc->pebs_record_size;
arch/x86/events/intel/ds.c
1622
ds->pebs_interrupt_threshold = threshold;
arch/x86/events/intel/uncore_snb.c
279
DEFINE_UNCORE_FORMAT_ATTR(threshold, threshold, "config:24-29");
arch/x86/events/intel/uncore_snb.c
280
DEFINE_UNCORE_FORMAT_ATTR(threshold2, threshold, "config:24-31");
arch/x86/kernel/cpu/resctrl/monitor.c
409
unsigned int threshold;
arch/x86/kernel/cpu/resctrl/monitor.c
431
threshold = resctrl_rmid_realloc_limit / r->mon.num_rmid;
arch/x86/kernel/cpu/resctrl/monitor.c
438
resctrl_rmid_realloc_threshold = resctrl_arch_round_mon_val(threshold);
arch/x86/mm/tlb.c
348
static bool mm_active_cpus_exceeds(struct mm_struct *mm, int threshold)
arch/x86/mm/tlb.c
354
if (cpumask_weight(mm_cpumask(mm)) <= threshold)
arch/x86/mm/tlb.c
366
if (++count > threshold)
block/bfq-iosched.c
6589
u64 threshold = (bfqq->last_serv_time_ns * 3)>>1;
block/bfq-iosched.c
6591
if (tot_time_ns >= threshold && old_limit > 0) {
block/bfq-iosched.c
6594
} else if (tot_time_ns < threshold &&
drivers/block/zram/zram_drv.c
2385
u64 *num_recomp_pages, u32 threshold, u32 prio,
drivers/block/zram/zram_drv.c
2406
if (comp_len_old < threshold)
drivers/block/zram/zram_drv.c
2456
(threshold && comp_len_new >= threshold)) {
drivers/block/zram/zram_drv.c
2535
u32 mode = 0, threshold = 0;
drivers/block/zram/zram_drv.c
2576
ret = kstrtouint(val, 10, &threshold);
drivers/block/zram/zram_drv.c
2600
if (threshold >= huge_class_size)
drivers/block/zram/zram_drv.c
2659
&num_recomp_pages, threshold,
drivers/comedi/drivers/jr3_pci.h
222
s32 threshold;
drivers/comedi/drivers/quatech_daqp_cs.c
466
int threshold;
drivers/comedi/drivers/quatech_daqp_cs.c
579
threshold = nbytes;
drivers/comedi/drivers/quatech_daqp_cs.c
581
threshold = DAQP_FIFO_SIZE / 2;
drivers/comedi/drivers/quatech_daqp_cs.c
599
outb((DAQP_FIFO_SIZE - threshold) & 0xff,
drivers/comedi/drivers/quatech_daqp_cs.c
601
outb((DAQP_FIFO_SIZE - threshold) >> 8, dev->iobase + DAQP_AI_FIFO_REG);
drivers/cpuidle/governors/ladder.c
115
last_residency < last_state->threshold.demotion_time_ns) {
drivers/cpuidle/governors/ladder.c
118
if (last_state->stats.demotion_count >= last_state->threshold.demotion_count) {
drivers/cpuidle/governors/ladder.c
151
lstate->threshold.promotion_count = PROMOTION_COUNT;
drivers/cpuidle/governors/ladder.c
152
lstate->threshold.demotion_count = DEMOTION_COUNT;
drivers/cpuidle/governors/ladder.c
155
lstate->threshold.promotion_time_ns = state->exit_latency_ns;
drivers/cpuidle/governors/ladder.c
157
lstate->threshold.demotion_time_ns = state->exit_latency_ns;
drivers/cpuidle/governors/ladder.c
32
} threshold;
drivers/cpuidle/governors/ladder.c
90
last_residency > last_state->threshold.promotion_time_ns &&
drivers/cpuidle/governors/ladder.c
94
if (last_state->stats.promotion_count >= last_state->threshold.promotion_count) {
drivers/crypto/intel/qat/qat_common/adf_transport.c
276
ring->threshold = ADF_PERCENT(max_inflights, ADF_MAX_RING_THRESHOLD);
drivers/crypto/intel/qat/qat_common/adf_transport.c
85
return atomic_read(ring->inflights) > ring->threshold;
drivers/crypto/intel/qat/qat_common/adf_transport_internal.h
25
u32 threshold;
drivers/cxl/core/edac.c
665
CXL_ECS_GET_ATTR(threshold)
drivers/cxl/core/edac.c
765
CXL_ECS_SET_ATTR(threshold)
drivers/dma/idxd/defaults.c
22
wq->threshold = 0;
drivers/dma/idxd/device.c
1164
wq->threshold = wq->wqcfg->wq_thresh;
drivers/dma/idxd/device.c
118
num_descs = wq_dedicated(wq) ? wq->size : wq->threshold;
drivers/dma/idxd/device.c
1457
if (wq->threshold == 0) {
drivers/dma/idxd/device.c
386
wq->threshold = 0;
drivers/dma/idxd/device.c
952
wq->wqcfg->wq_thresh = wq->threshold;
drivers/dma/idxd/idxd.h
209
u32 threshold;
drivers/dma/idxd/init.c
1025
wq->threshold = saved_wq->threshold;
drivers/dma/idxd/sysfs.c
694
wq->threshold = 0;
drivers/dma/idxd/sysfs.c
846
return sysfs_emit(buf, "%u\n", wq->threshold);
drivers/dma/idxd/sysfs.c
874
wq->threshold = val;
drivers/dma/idxd/sysfs.c
880
__ATTR(threshold, 0644, wq_threshold_show, wq_threshold_store);
drivers/dma/stm32/stm32-dma.c
1249
u32 num_sgs, best_burst, threshold;
drivers/dma/stm32/stm32-dma.c
1258
threshold = chan->threshold;
drivers/dma/stm32/stm32-dma.c
1267
threshold, max_width);
drivers/dma/stm32/stm32-dma.c
1284
desc->sg_req[i].chan_reg.dma_sfcr |= FIELD_PREP(STM32_DMA_SFCR_FTH_MASK, threshold);
drivers/dma/stm32/stm32-dma.c
1494
chan->threshold = 0;
drivers/dma/stm32/stm32-dma.c
1513
chan->threshold = FIELD_GET(STM32_DMA_THRESHOLD_FTR_MASK, cfg->features);
drivers/dma/stm32/stm32-dma.c
1515
chan->threshold = STM32_DMA_FIFO_THRESHOLD_NONE;
drivers/dma/stm32/stm32-dma.c
219
u32 threshold;
drivers/dma/stm32/stm32-dma.c
284
u32 threshold)
drivers/dma/stm32/stm32-dma.c
288
if (threshold == STM32_DMA_FIFO_THRESHOLD_FULL)
drivers/dma/stm32/stm32-dma.c
303
static bool stm32_dma_fifo_threshold_is_allowed(u32 burst, u32 threshold,
drivers/dma/stm32/stm32-dma.c
308
if (threshold == STM32_DMA_FIFO_THRESHOLD_NONE)
drivers/dma/stm32/stm32-dma.c
318
(threshold + 1) / 4) % burst;
drivers/dma/stm32/stm32-dma.c
330
static bool stm32_dma_is_burst_possible(u32 buf_len, u32 threshold)
drivers/dma/stm32/stm32-dma.c
333
if (threshold == STM32_DMA_FIFO_THRESHOLD_NONE)
drivers/dma/stm32/stm32-dma.c
341
return ((buf_len % ((threshold + 1) * 4)) == 0);
drivers/dma/stm32/stm32-dma.c
344
static u32 stm32_dma_get_best_burst(u32 buf_len, u32 max_burst, u32 threshold,
drivers/dma/stm32/stm32-dma.c
349
if (best_burst == 1 || !stm32_dma_is_burst_possible(buf_len, threshold))
drivers/dma/stm32/stm32-dma.c
353
!stm32_dma_fifo_threshold_is_allowed(best_burst, threshold,
drivers/dma/stm32/stm32-dma.c
945
fifoth = chan->threshold;
drivers/edac/ecs.c
171
fru_ctx->dev_attr[ECS_THRESHOLD] = EDAC_ECS_ATTR_RW(threshold, fru);
drivers/edac/ecs.c
62
EDAC_ECS_ATTR_SHOW(threshold, get_threshold, u32, "%u\n")
drivers/edac/ecs.c
90
EDAC_ECS_ATTR_STORE(threshold, set_threshold, unsigned long, kstrtoul)
drivers/gpu/drm/amd/amdgpu/ih_v6_0.c
106
RB_USED_INT_THRESHOLD, threshold);
drivers/gpu/drm/amd/amdgpu/ih_v6_0.c
94
u32 threshold, u32 timeout, bool enabled)
drivers/gpu/drm/amd/amdgpu/ih_v6_1.c
106
RB_USED_INT_THRESHOLD, threshold);
drivers/gpu/drm/amd/amdgpu/ih_v6_1.c
94
u32 threshold, u32 timeout, bool enabled)
drivers/gpu/drm/amd/amdgpu/ih_v7_0.c
106
RB_USED_INT_THRESHOLD, threshold);
drivers/gpu/drm/amd/amdgpu/ih_v7_0.c
94
u32 threshold, u32 timeout, bool enabled)
drivers/gpu/drm/amd/amdgpu/navi10_ih.c
106
u32 threshold, u32 timeout, bool enabled)
drivers/gpu/drm/amd/amdgpu/navi10_ih.c
121
RB_USED_INT_THRESHOLD, threshold);
drivers/gpu/drm/amd/amdgpu/navi10_ih.c
132
RB_USED_INT_THRESHOLD, threshold);
drivers/gpu/drm/amd/display/modules/color/color_gamma.c
280
struct fixed31_32 threshold;
drivers/gpu/drm/amd/display/modules/color/color_gamma.c
288
threshold = dc_fixpt_from_fraction(1, 2);
drivers/gpu/drm/amd/display/modules/color/color_gamma.c
290
if (dc_fixpt_lt(in_x, threshold)) {
drivers/gpu/drm/amd/display/modules/color/color_gamma.c
311
struct fixed31_32 threshold;
drivers/gpu/drm/amd/display/modules/color/color_gamma.c
319
threshold = dc_fixpt_from_fraction(1, 12);
drivers/gpu/drm/amd/display/modules/color/color_gamma.c
323
if (dc_fixpt_lt(x, threshold)) {
drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c
5729
u32 threshold;
drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c
5735
threshold = state->performance_levels[state->performance_level_count-1].sclk * 100 / 100;
drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c
5769
(state->performance_levels[i].sclk < threshold) ?
drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c
5785
threshold / 512);
drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c
428
u8 threshold, conf0, conf1, ca;
drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c
436
threshold = 126;
drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c
438
threshold = 124;
drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c
443
threshold = 128;
drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c
453
runtime->hw.fifo_size = threshold * 32;
drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c
459
writeb_relaxed(threshold, dw->data.base + HDMI_AHB_DMA_THRSLD);
drivers/gpu/drm/i915/display/i9xx_wm.c
610
static bool is_disabling(int old, int new, int threshold)
drivers/gpu/drm/i915/display/i9xx_wm.c
612
return old >= threshold && new < threshold;
drivers/gpu/drm/i915/display/i9xx_wm.c
615
static bool is_enabling(int old, int new, int threshold)
drivers/gpu/drm/i915/display/i9xx_wm.c
617
return old < threshold && new >= threshold;
drivers/gpu/drm/i915/display/intel_hotplug.c
159
const int threshold = hpd->hpd_storm_threshold;
drivers/gpu/drm/i915/display/intel_hotplug.c
162
if (!threshold ||
drivers/gpu/drm/i915/display/intel_hotplug.c
172
if (hpd->stats[pin].count > threshold) {
drivers/gpu/drm/i915/gt/intel_rps.c
2603
static int rps_set_threshold(struct intel_rps *rps, u8 *threshold, u8 val)
drivers/gpu/drm/i915/gt/intel_rps.c
2614
if (*threshold == val)
drivers/gpu/drm/i915/gt/intel_rps.c
2617
*threshold = val;
drivers/gpu/drm/i915/gt/intel_rps.c
2635
int intel_rps_set_up_threshold(struct intel_rps *rps, u8 threshold)
drivers/gpu/drm/i915/gt/intel_rps.c
2637
return rps_set_threshold(rps, &rps->power.up_threshold, threshold);
drivers/gpu/drm/i915/gt/intel_rps.c
2645
int intel_rps_set_down_threshold(struct intel_rps *rps, u8 threshold)
drivers/gpu/drm/i915/gt/intel_rps.c
2647
return rps_set_threshold(rps, &rps->power.down_threshold, threshold);
drivers/gpu/drm/i915/gt/intel_rps.h
41
int intel_rps_set_up_threshold(struct intel_rps *rps, u8 threshold);
drivers/gpu/drm/i915/gt/intel_rps.h
43
int intel_rps_set_down_threshold(struct intel_rps *rps, u8 threshold);
drivers/gpu/drm/i915/gt/selftest_rc6.c
139
threshold = (9 * NSEC_PER_MSEC * sleep_time) / 10;
drivers/gpu/drm/i915/gt/selftest_rc6.c
140
if (diff < threshold)
drivers/gpu/drm/i915/gt/selftest_rc6.c
46
u64 threshold;
drivers/gpu/drm/mediatek/mtk_disp_rdma.c
188
unsigned int threshold;
drivers/gpu/drm/mediatek/mtk_disp_rdma.c
209
threshold = rdma_fifo_size * 7 / 10;
drivers/gpu/drm/mediatek/mtk_disp_rdma.c
212
RDMA_OUTPUT_VALID_FIFO_THRESHOLD(threshold);
drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c
177
u32 bw, threshold;
drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c
204
threshold = kms->perf.perf_cfg->max_bw_high;
drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c
206
DRM_DEBUG_ATOMIC("final threshold bw limit = %d\n", threshold);
drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c
208
if (!threshold) {
drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c
211
} else if (bw > threshold) {
drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c
213
threshold);
drivers/gpu/drm/radeon/ni_dpm.c
2636
u32 threshold = state->performance_levels[state->performance_level_count - 1].sclk * 100 / 100;
drivers/gpu/drm/radeon/ni_dpm.c
2657
(state->performance_levels[i].sclk < threshold) ?
drivers/gpu/drm/radeon/ni_dpm.c
2672
cpu_to_be32(threshold / 512));
drivers/gpu/drm/radeon/si_dpm.c
5142
u32 threshold;
drivers/gpu/drm/radeon/si_dpm.c
5148
threshold = state->performance_levels[state->performance_level_count-1].sclk * 100 / 100;
drivers/gpu/drm/radeon/si_dpm.c
5182
(state->performance_levels[i].sclk < threshold) ?
drivers/gpu/drm/radeon/si_dpm.c
5198
threshold / 512);
drivers/gpu/drm/tegra/uapi.c
361
return host1x_syncpt_wait(sp, args->threshold, timeout_jiffies, &args->value);
drivers/gpu/drm/xe/xe_gpu_scheduler.h
67
xe_sched_invalidate_job(struct xe_sched_job *job, int threshold)
drivers/gpu/drm/xe/xe_gpu_scheduler.h
69
return drm_sched_invalidate_job(&job->drm, threshold);
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
2460
static const char *threshold_unit(u32 threshold)
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
2462
return threshold ? "" : "(disabled)";
drivers/gpu/drm/xe/xe_gt_sriov_pf_monitor.c
100
threshold = FIELD_GET(GUC2PF_ADVERSE_EVENT_EVENT_MSG_2_THRESHOLD, msg[2]);
drivers/gpu/drm/xe/xe_gt_sriov_pf_monitor.c
105
return pf_handle_vf_threshold_event(gt, vfid, threshold);
drivers/gpu/drm/xe/xe_gt_sriov_pf_monitor.c
44
static int pf_handle_vf_threshold_event(struct xe_gt *gt, u32 vfid, u32 threshold)
drivers/gpu/drm/xe/xe_gt_sriov_pf_monitor.c
49
e = xe_guc_klv_threshold_key_to_index(threshold);
drivers/gpu/drm/xe/xe_gt_sriov_pf_monitor.c
55
threshold, origin);
drivers/gpu/drm/xe/xe_gt_sriov_pf_monitor.c
61
xe_guc_klv_key_to_string(threshold));
drivers/gpu/drm/xe/xe_gt_sriov_pf_monitor.c
82
u32 threshold;
drivers/gpu/drm/xe/xe_pagefault.c
255
unsigned long threshold;
drivers/gpu/drm/xe/xe_pagefault.c
258
threshold = jiffies + msecs_to_jiffies(USM_QUEUE_MAX_RUNTIME_MS);
drivers/gpu/drm/xe/xe_pagefault.c
275
if (time_after(jiffies, threshold)) {
drivers/gpu/drm/xe/xe_pm.c
935
int xe_pm_set_vram_threshold(struct xe_device *xe, u32 threshold)
drivers/gpu/drm/xe/xe_pm.c
949
if (threshold > vram_total_mb)
drivers/gpu/drm/xe/xe_pm.c
953
xe->d3cold.vram_threshold = threshold;
drivers/gpu/drm/xe/xe_pm.h
33
int xe_pm_set_vram_threshold(struct xe_device *xe, u32 threshold);
drivers/gpu/host1x/fence.c
125
struct dma_fence *host1x_fence_create(struct host1x_syncpt *sp, u32 threshold,
drivers/gpu/host1x/fence.c
135
fence->threshold = threshold;
drivers/gpu/host1x/fence.c
37
if (host1x_syncpt_is_expired(sf->sp, sf->threshold))
drivers/gpu/host1x/fence.h
15
u32 threshold;
drivers/gpu/host1x/hw/channel_hw.c
117
u32 threshold;
drivers/gpu/host1x/hw/channel_hw.c
124
threshold = job_syncpt_base + cmd->wait.threshold;
drivers/gpu/host1x/hw/channel_hw.c
126
threshold = cmd->wait.threshold;
drivers/gpu/host1x/hw/channel_hw.c
128
submit_wait(job, cmd->wait.id, threshold);
drivers/gpu/host1x/hw/channel_hw.c
237
submit_wait(job, cmd->wait.id, cmd->wait.threshold);
drivers/gpu/host1x/hw/channel_hw.c
50
static void submit_wait(struct host1x_job *job, u32 id, u32 threshold)
drivers/gpu/host1x/hw/channel_hw.c
62
threshold,
drivers/gpu/host1x/hw/channel_hw.c
74
host1x_class_host_wait_syncpt(id, threshold)
drivers/gpu/host1x/hw/opcodes.h
14
unsigned indx, unsigned threshold)
drivers/gpu/host1x/hw/opcodes.h
17
| host1x_uclass_wait_syncpt_thresh_f(threshold);
drivers/gpu/host1x/hw/opcodes.h
21
unsigned indx, unsigned threshold)
drivers/gpu/host1x/hw/opcodes.h
24
| host1x_uclass_load_syncpt_base_value_f(threshold);
drivers/gpu/host1x/intr.c
20
if ((s32)(fence_in_list->threshold - fence->threshold) <= 0) {
drivers/gpu/host1x/intr.c
38
host1x_hw_intr_set_syncpt_threshold(host, sp->id, fence->threshold);
drivers/gpu/host1x/intr.c
86
if (((value - fence->threshold) & 0x80000000U) != 0U) {
drivers/gpu/host1x/job.c
133
cmd->wait.threshold = thresh;
drivers/gpu/host1x/job.h
23
u32 threshold;
drivers/hwmon/cros_ec_hwmon.c
121
enum ec_temp_thresholds threshold, u32 *temp)
drivers/hwmon/cros_ec_hwmon.c
133
*temp = resp.temp_host[threshold];
drivers/hwmon/cros_ec_hwmon.c
177
u32 threshold;
drivers/hwmon/cros_ec_hwmon.c
229
&threshold);
drivers/hwmon/cros_ec_hwmon.c
231
*val = kelvin_to_millicelsius(threshold);
drivers/i2c/busses/i2c-omap.c
1133
if (omap->threshold)
drivers/i2c/busses/i2c-omap.c
1134
num_bytes = omap->threshold;
drivers/i2c/busses/i2c-omap.c
1160
if (omap->threshold)
drivers/i2c/busses/i2c-omap.c
1161
num_bytes = omap->threshold;
drivers/i2c/busses/i2c-omap.c
197
u8 threshold;
drivers/i2c/busses/i2c-omap.c
621
omap->threshold = clamp(size, (u8) 1, omap->fifo_size);
drivers/i2c/busses/i2c-omap.c
628
buf |= ((omap->threshold - 1) << 8) | OMAP_I2C_BUF_RXFIF_CLR;
drivers/i2c/busses/i2c-omap.c
632
buf |= (omap->threshold - 1) | OMAP_I2C_BUF_TXFIF_CLR;
drivers/i2c/busses/i2c-omap.c
642
omap->latency = (1000000 * omap->threshold) /
drivers/i2c/i2c-core-base.c
2645
u8 *i2c_get_dma_safe_msg_buf(struct i2c_msg *msg, unsigned int threshold)
drivers/i2c/i2c-core-base.c
2648
if (!threshold)
drivers/i2c/i2c-core-base.c
2651
if (msg->len < threshold || msg->len == 0)
drivers/iio/accel/adxl313_core.c
535
unsigned int threshold;
drivers/iio/accel/adxl313_core.c
542
&threshold);
drivers/iio/accel/adxl313_core.c
546
if (!threshold) /* Just ignore the command if threshold is 0 */
drivers/iio/accel/adxl313_core.c
770
unsigned int threshold;
drivers/iio/accel/adxl313_core.c
780
&threshold);
drivers/iio/accel/adxl313_core.c
783
*val = threshold * 15625;
drivers/iio/accel/adxl313_core.c
789
&threshold);
drivers/iio/accel/adxl313_core.c
792
*val = threshold * 15625;
drivers/iio/accel/adxl345_core.c
1274
unsigned int threshold;
drivers/iio/accel/adxl345_core.c
1283
&threshold);
drivers/iio/accel/adxl345_core.c
1286
*val = 62500 * threshold;
drivers/iio/accel/adxl345_core.c
351
unsigned int threshold)
drivers/iio/accel/adxl345_core.c
355
st->inact_threshold = min(U8_MAX, threshold);
drivers/iio/accel/adxl345_core.c
648
unsigned int threshold;
drivers/iio/accel/adxl345_core.c
657
&threshold);
drivers/iio/accel/adxl345_core.c
661
threshold = st->inact_threshold;
drivers/iio/accel/adxl345_core.c
664
if (!threshold) /* Just ignore the command if threshold is 0 */
drivers/iio/accel/adxl367.c
308
unsigned int threshold)
drivers/iio/accel/adxl367.c
313
if (threshold > ADXL367_THRESH_MAX)
drivers/iio/accel/adxl367.c
318
threshold));
drivers/iio/accel/adxl367.c
321
threshold));
drivers/iio/accel/adxl367.c
329
st->act_threshold = threshold;
drivers/iio/accel/adxl367.c
331
st->inact_threshold = threshold;
drivers/iio/accel/adxl367.c
338
unsigned int threshold)
drivers/iio/accel/adxl367.c
348
ret = _adxl367_set_act_threshold(st, act, threshold);
drivers/iio/accel/adxl372.c
314
u16 *threshold)
drivers/iio/accel/adxl372.c
328
*threshold = regval;
drivers/iio/accel/adxl372.c
334
u16 threshold)
drivers/iio/accel/adxl372.c
340
ret = regmap_write(st->regmap, addr, ADXL372_THRESH_VAL_H_SEL(threshold));
drivers/iio/accel/adxl372.c
345
ADXL372_THRESH_VAL_L_SEL(threshold) << 5);
drivers/iio/accel/adxl372.c
446
unsigned int threshold)
drivers/iio/accel/adxl372.c
452
th_reg_high_val = (threshold / 100) >> 3;
drivers/iio/accel/adxl372.c
453
th_reg_low_val = ((threshold / 100) << 5) | (ref_en << 1) | enable;
drivers/iio/accel/kionix-kx022a.c
602
u8 threshold;
drivers/iio/accel/kionix-kx022a.c
604
threshold = data->watermark;
drivers/iio/accel/kionix-kx022a.c
607
KX022A_MASK_WM_TH, threshold);
drivers/iio/adc/meson_saradc.c
1121
unsigned int cnt, threshold;
drivers/iio/adc/meson_saradc.c
1126
threshold = FIELD_GET(MESON_SAR_ADC_REG0_FIFO_CNT_IRQ_MASK, regval);
drivers/iio/adc/meson_saradc.c
1128
if (cnt < threshold)
drivers/iio/adc/xilinx-xadc-core.c
1415
&xadc->threshold[i]);
drivers/iio/adc/xilinx-xadc-events.c
168
*val = xadc->threshold[offset];
drivers/iio/adc/xilinx-xadc-events.c
202
xadc->threshold[offset] = val;
drivers/iio/adc/xilinx-xadc-events.c
226
if (xadc->threshold[offset] < xadc->temp_hysteresis)
drivers/iio/adc/xilinx-xadc-events.c
227
xadc->threshold[offset + 4] = 0;
drivers/iio/adc/xilinx-xadc-events.c
229
xadc->threshold[offset + 4] = xadc->threshold[offset] -
drivers/iio/adc/xilinx-xadc-events.c
232
xadc->threshold[offset + 4]);
drivers/iio/adc/xilinx-xadc.h
50
uint16_t threshold[16];
drivers/iio/cdc/ad7150.c
199
u16 value = chip->threshold[rising][chan];
drivers/iio/cdc/ad7150.c
342
*val = chip->threshold[rising][chan->channel];
drivers/iio/cdc/ad7150.c
375
chip->threshold[rising][chan->channel] = val;
drivers/iio/cdc/ad7150.c
82
u16 threshold[2][2];
drivers/iio/dac/ad8460.c
376
unsigned int threshold)
drivers/iio/dac/ad8460.c
380
FIELD_PREP(AD8460_FAULT_LIMIT_MSK, threshold));
drivers/iio/dac/ad8460.c
385
unsigned int *threshold)
drivers/iio/dac/ad8460.c
394
*threshold = FIELD_GET(AD8460_FAULT_LIMIT_MSK, val);
drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c
341
static u64 inv_icm42600_accel_convert_wom_to_roc(unsigned int threshold,
drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c
349
value = threshold * convert;
drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c
360
unsigned int threshold;
drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c
364
threshold = inv_icm42600_accel_convert_roc_to_wom(value, accel_hz, accel_uhz);
drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c
365
value = inv_icm42600_accel_convert_wom_to_roc(threshold, accel_hz, accel_uhz);
drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c
367
dev_dbg(regmap_get_device(st->map), "wom_threshold: 0x%x\n", threshold);
drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c
370
st->buffer[0] = threshold;
drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c
371
st->buffer[1] = threshold;
drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c
372
st->buffer[2] = threshold;
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
1004
unsigned int threshold;
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
1008
threshold = inv_mpu6050_convert_roc_to_wom(value, freq_div);
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
1009
value = inv_mpu6050_convert_wom_to_roc(threshold, freq_div);
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
1011
dev_dbg(regmap_get_device(st->map), "wom_threshold: 0x%x\n", threshold);
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
1019
st->data[0] = threshold;
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
1020
st->data[1] = threshold;
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
1021
st->data[2] = threshold;
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
1026
result = regmap_write(st->map, INV_MPU6500_REG_WOM_THRESHOLD, threshold);
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
948
static u64 inv_mpu6050_convert_wom_to_roc(unsigned int threshold, unsigned int freq_div)
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
954
value = threshold * convert;
drivers/iio/light/max44009.c
346
int reg, threshold;
drivers/iio/light/max44009.c
351
threshold = max44009_threshold_byte_from_fraction(val, val2);
drivers/iio/light/max44009.c
352
if (threshold < 0)
drivers/iio/light/max44009.c
353
return threshold;
drivers/iio/light/max44009.c
359
return i2c_smbus_write_byte_data(data->client, reg, threshold);
drivers/iio/light/max44009.c
405
int threshold;
drivers/iio/light/max44009.c
413
threshold = ret;
drivers/iio/light/max44009.c
415
*val = threshold * MAX44009_SCALE_NUMERATOR;
drivers/infiniband/hw/bnxt_re/ib_verbs.c
1932
srq->qplib_srq.threshold = srq_init_attr->attr.srq_limit;
drivers/infiniband/hw/bnxt_re/ib_verbs.c
2001
srq->qplib_srq.threshold = srq_attr->srq_limit;
drivers/infiniband/hw/bnxt_re/ib_verbs.c
2002
bnxt_qplib_srq_arm_db(&srq->qplib_srq.dbinfo, srq->qplib_srq.threshold);
drivers/infiniband/hw/bnxt_re/ib_verbs.c
2032
srq_attr->srq_limit = tsrq.qplib_srq.threshold;
drivers/infiniband/hw/bnxt_re/main.c
1284
if (rdma_nl_put_driver_u32_hex(msg, "srq_limit", srq->qplib_srq.threshold))
drivers/infiniband/hw/bnxt_re/qplib_fp.c
745
srq->threshold = le16_to_cpu(sb->srq_limit);
drivers/infiniband/hw/bnxt_re/qplib_fp.h
98
u32 threshold;
drivers/infiniband/hw/hfi1/driver.c
161
*update |= !(idx & (rcd->egrbufs.threshold - 1)) && !offset;
drivers/infiniband/hw/hfi1/hfi.h
152
u16 threshold; /* head update threshold */
drivers/infiniband/hw/hfi1/init.c
1930
rcd->egrbufs.threshold =
drivers/infiniband/hw/hfi1/pio.c
553
u32 threshold;
drivers/infiniband/hw/hfi1/pio.c
561
threshold = 1;
drivers/infiniband/hw/hfi1/pio.c
563
threshold = sc->credits - release_credits;
drivers/infiniband/hw/hfi1/pio.c
565
return threshold;
drivers/infiniband/sw/rdmavt/qp.c
169
wss->threshold = (llc_bits * wss_threshold) / 100;
drivers/infiniband/sw/rdmavt/qp.c
170
if (wss->threshold == 0)
drivers/infiniband/sw/rdmavt/qp.c
171
wss->threshold = 1;
drivers/infiniband/sw/rdmavt/qp.c
262
return atomic_read(&wss->total_count) >= wss->threshold;
drivers/input/keyboard/gpio_keys_polled.c
32
int threshold;
drivers/input/keyboard/gpio_keys_polled.c
329
bdata->threshold = DIV_ROUND_UP(button->debounce_interval,
drivers/input/keyboard/gpio_keys_polled.c
99
if (bdata->count < bdata->threshold) {
drivers/input/mouse/appletouch.c
244
static int threshold = ATP_THRESHOLD;
drivers/input/mouse/appletouch.c
245
module_param(threshold, int, 0644);
drivers/input/mouse/appletouch.c
246
MODULE_PARM_DESC(threshold, "Discard any change in data from a sensor"
drivers/input/mouse/appletouch.c
350
if (xy_sensors[i] < threshold) {
drivers/input/mouse/appletouch.c
373
} else if (i > 0 && (xy_sensors[i - 1] - xy_sensors[i] > threshold)) {
drivers/input/touchscreen/edt-ft5x06.c
1023
regmap_read(regmap, reg_addr->reg_threshold, &tsdata->threshold);
drivers/input/touchscreen/edt-ft5x06.c
130
int threshold;
drivers/input/touchscreen/edt-ft5x06.c
517
static EDT_ATTR(threshold, S_IWUSR | S_IRUGO, WORK_REGISTER_THRESHOLD,
drivers/input/touchscreen/edt-ft5x06.c
589
regmap_write(regmap, reg_addr->reg_threshold, tsdata->threshold);
drivers/input/touchscreen/edt-ft5x06.c
986
tsdata->threshold = val;
drivers/input/touchscreen/hycon-hy46xx.c
249
static HYCON_ATTR_U8(threshold, 0644, HY46XX_THRESHOLD, 0, 255);
drivers/input/touchscreen/hycon-hy46xx.c
291
tsdata->threshold = val;
drivers/input/touchscreen/hycon-hy46xx.c
355
tsdata->threshold = val;
drivers/input/touchscreen/hycon-hy46xx.c
60
int threshold;
drivers/input/touchscreen/rohm_bu21023.c
532
unsigned int threshold;
drivers/input/touchscreen/rohm_bu21023.c
569
threshold = untouch_threshold[prev_finger_count];
drivers/input/touchscreen/rohm_bu21023.c
570
if (++ts->contact_count[0] >= threshold)
drivers/input/touchscreen/rohm_bu21023.c
575
threshold = single_touch_threshold[prev_finger_count];
drivers/input/touchscreen/rohm_bu21023.c
576
if (++ts->contact_count[1] >= threshold)
drivers/input/touchscreen/rohm_bu21023.c
590
threshold = dual_touch_threshold[prev_finger_count];
drivers/input/touchscreen/rohm_bu21023.c
591
if (++ts->contact_count[2] >= threshold)
drivers/irqchip/irq-omap-intc.c
110
intc_writel(INTC_THRESHOLD, intc_context.threshold);
drivers/irqchip/irq-omap-intc.c
61
u32 threshold;
drivers/irqchip/irq-omap-intc.c
92
intc_context.threshold =
drivers/irqchip/irq-sifive-plic.c
497
static void plic_set_threshold(struct plic_handler *handler, u32 threshold)
drivers/irqchip/irq-sifive-plic.c
500
writel(threshold, handler->hart_base + CONTEXT_THRESHOLD);
drivers/md/bcache/io.c
143
unsigned int threshold = op_is_write(bio_op(bio))
drivers/md/bcache/io.c
147
if (threshold) {
drivers/md/bcache/io.c
152
if (us > (int) threshold) {
drivers/md/dm-bufio.c
2805
unsigned long threshold = dm_bufio_cache_size -
drivers/md/dm-bufio.c
2809
while (dm_bufio_current_allocated > threshold) {
drivers/md/dm-integrity.c
4690
__u64 threshold;
drivers/md/dm-integrity.c
5188
threshold = (__u64)ic->journal_entries * (100 - journal_watermark);
drivers/md/dm-integrity.c
5189
threshold += 50;
drivers/md/dm-integrity.c
5190
do_div(threshold, 100);
drivers/md/dm-integrity.c
5191
ic->free_sectors_threshold = threshold;
drivers/md/dm-thin-metadata.c
2090
dm_block_t threshold,
drivers/md/dm-thin-metadata.c
2099
threshold, fn, context);
drivers/md/dm-thin-metadata.h
218
dm_block_t threshold,
drivers/md/dm-thin.c
150
unsigned long threshold;
drivers/md/dm-thin.c
162
t->threshold = jiffies + THROTTLE_THRESHOLD;
drivers/md/dm-thin.c
167
if (!t->throttle_applied && time_is_before_jiffies(t->threshold)) {
drivers/md/persistent-data/dm-btree-remove.c
250
unsigned int threshold = 2 * (merge_threshold(left) + 1);
drivers/md/persistent-data/dm-btree-remove.c
252
if (nr_left + nr_right < threshold) {
drivers/md/persistent-data/dm-btree-remove.c
429
unsigned int threshold = merge_threshold(left) * 4 + 1;
drivers/md/persistent-data/dm-btree-remove.c
437
if ((nr_left + nr_center + nr_right) < threshold) {
drivers/md/persistent-data/dm-space-map-metadata.c
180
struct threshold threshold;
drivers/md/persistent-data/dm-space-map-metadata.c
27
dm_block_t threshold;
drivers/md/persistent-data/dm-space-map-metadata.c
33
static void threshold_init(struct threshold *t)
drivers/md/persistent-data/dm-space-map-metadata.c
39
static void set_threshold(struct threshold *t, dm_block_t value,
drivers/md/persistent-data/dm-space-map-metadata.c
43
t->threshold = value;
drivers/md/persistent-data/dm-space-map-metadata.c
48
static bool below_threshold(struct threshold *t, dm_block_t value)
drivers/md/persistent-data/dm-space-map-metadata.c
50
return t->threshold_set && value <= t->threshold;
drivers/md/persistent-data/dm-space-map-metadata.c
504
check_threshold(&smm->threshold, count);
drivers/md/persistent-data/dm-space-map-metadata.c
525
dm_block_t threshold,
drivers/md/persistent-data/dm-space-map-metadata.c
53
static bool threshold_already_triggered(struct threshold *t)
drivers/md/persistent-data/dm-space-map-metadata.c
531
set_threshold(&smm->threshold, threshold, fn, context);
drivers/md/persistent-data/dm-space-map-metadata.c
58
static void check_threshold(struct threshold *t, dm_block_t value)
drivers/md/persistent-data/dm-space-map-metadata.c
796
threshold_init(&smm->threshold);
drivers/md/persistent-data/dm-space-map-metadata.c
842
threshold_init(&smm->threshold);
drivers/md/persistent-data/dm-space-map.h
158
dm_block_t threshold,
drivers/md/persistent-data/dm-space-map.h
163
return sm->register_threshold_callback(sm, threshold, fn, context);
drivers/md/persistent-data/dm-space-map.h
71
dm_block_t threshold,
drivers/media/dvb-frontends/dib3000mb.c
448
u32 dds_val, threshold = 0x800000;
drivers/media/dvb-frontends/dib3000mb.c
455
if (dds_val < threshold)
drivers/media/dvb-frontends/dib3000mb.c
457
else if (dds_val == threshold)
drivers/media/dvb-frontends/dib3000mb.c
464
if (dds_val < threshold)
drivers/media/dvb-frontends/dib3000mb.c
466
else if (dds_val == threshold)
drivers/media/dvb-frontends/drxk_hard.c
3359
data |= ((echo_thres->threshold <<
drivers/media/dvb-frontends/drxk_hard.c
3365
data |= ((echo_thres->threshold <<
drivers/media/dvb-frontends/drxk_hard.h
179
u16 threshold;
drivers/media/i2c/ov772x.c
1030
priv->info->edgectrl.threshold);
drivers/media/platform/nxp/imx8-isi/imx8-isi-core.c
288
.panic_set_thd_y = { .mask = 0x0000f, .offset = 0, .threshold = 0x7 },
drivers/media/platform/nxp/imx8-isi/imx8-isi-core.c
289
.panic_set_thd_u = { .mask = 0x00f00, .offset = 8, .threshold = 0x7 },
drivers/media/platform/nxp/imx8-isi/imx8-isi-core.c
290
.panic_set_thd_v = { .mask = 0xf0000, .offset = 16, .threshold = 0x7 },
drivers/media/platform/nxp/imx8-isi/imx8-isi-core.h
140
u32 threshold;
drivers/media/platform/nxp/imx8-isi/imx8-isi-hw.c
291
val |= set_thd->panic_set_thd_y.threshold << set_thd->panic_set_thd_y.offset;
drivers/media/platform/nxp/imx8-isi/imx8-isi-hw.c
294
val |= set_thd->panic_set_thd_u.threshold << set_thd->panic_set_thd_u.offset;
drivers/media/platform/nxp/imx8-isi/imx8-isi-hw.c
297
val |= set_thd->panic_set_thd_v.threshold << set_thd->panic_set_thd_v.offset;
drivers/media/platform/ti/omap3isp/isph3a_af.c
116
pcr |= conf->hmf.threshold << AF_MED_TH_SHIFT;
drivers/media/platform/ti/omap3isp/isph3a_af.c
245
if (cur_cfg->hmf.threshold != user_cfg->hmf.threshold) {
drivers/media/rc/imon.c
1182
static int stabilize(int a, int b, u16 timeout, u16 threshold)
drivers/media/rc/imon.c
1206
if (abs(x) > threshold || abs(y) > threshold) {
drivers/media/rc/imon.c
1221
y = 17 * threshold / 30;
drivers/media/rc/imon.c
1224
y -= 17 * threshold / 30;
drivers/media/rc/imon.c
1227
x = 17 * threshold / 30;
drivers/media/rc/imon.c
1230
x -= 17 * threshold / 30;
drivers/media/rc/imon.c
1398
u16 timeout, threshold;
drivers/media/rc/imon.c
1415
threshold = pad_thresh ? pad_thresh : 28;
drivers/media/rc/imon.c
1422
timeout, threshold);
drivers/media/rc/imon.c
1470
threshold = pad_thresh ? pad_thresh : 15;
drivers/media/rc/imon.c
1488
timeout, threshold);
drivers/media/v4l2-core/v4l2-common.c
616
unsigned int n_terms, unsigned int threshold)
drivers/media/v4l2-core/v4l2-common.c
637
if (an[n] >= threshold) {
drivers/mfd/db8500-prcmu.c
1944
int db8500_prcmu_config_hotdog(u8 threshold)
drivers/mfd/db8500-prcmu.c
1951
writeb(threshold, (tcdm_base + PRCM_REQ_MB4_HOTDOG_THRESHOLD));
drivers/net/can/usb/etas_es58x/es58x_core.c
280
u32 threshold = priv->can.echo_skb_max -
drivers/net/can/usb/etas_es58x/es58x_core.c
283
return num_echo_skb >= threshold;
drivers/net/dsa/ocelot/felix.c
2085
u32 threshold, struct netlink_ext_ack *extack)
drivers/net/dsa/ocelot/felix.c
2090
threshold, extack);
drivers/net/dsa/ocelot/felix.c
2108
u16 pool_index, u32 threshold,
drivers/net/dsa/ocelot/felix.c
2114
pool_type, pool_index, threshold,
drivers/net/ethernet/amazon/ena/ena_netdev.c
53
unsigned int time_since_last_napi, threshold;
drivers/net/ethernet/amazon/ena/ena_netdev.c
62
threshold = jiffies_to_usecs(dev->watchdog_timeo);
drivers/net/ethernet/amazon/ena/ena_netdev.c
71
threshold,
drivers/net/ethernet/amazon/ena/ena_netdev.c
75
if (threshold < time_since_last_napi && napi_scheduled) {
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c
175
u32 threshold = 0U;
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c
180
threshold = (tx_buff_size * (1024 / 32U) * 66U) / 100U;
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c
181
hw_atl_tpb_tx_buff_hi_threshold_per_tc_set(self, threshold, tc);
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c
183
threshold = (tx_buff_size * (1024 / 32U) * 50U) / 100U;
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c
184
hw_atl_tpb_tx_buff_lo_threshold_per_tc_set(self, threshold, tc);
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c
189
threshold = (rx_buff_size * (1024U / 32U) * 66U) / 100U;
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c
190
hw_atl_rpb_rx_buff_hi_threshold_per_tc_set(self, threshold, tc);
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c
192
threshold = (rx_buff_size * (1024U / 32U) * 50U) / 100U;
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c
193
hw_atl_rpb_rx_buff_lo_threshold_per_tc_set(self, threshold, tc);
drivers/net/ethernet/aquantia/atlantic/hw_atl2/hw_atl2.c
180
u32 threshold = 0U;
drivers/net/ethernet/aquantia/atlantic/hw_atl2/hw_atl2.c
185
threshold = (tx_buff_size * (1024 / 32U) * 66U) / 100U;
drivers/net/ethernet/aquantia/atlantic/hw_atl2/hw_atl2.c
186
hw_atl_tpb_tx_buff_hi_threshold_per_tc_set(self, threshold, tc);
drivers/net/ethernet/aquantia/atlantic/hw_atl2/hw_atl2.c
188
threshold = (tx_buff_size * (1024 / 32U) * 50U) / 100U;
drivers/net/ethernet/aquantia/atlantic/hw_atl2/hw_atl2.c
189
hw_atl_tpb_tx_buff_lo_threshold_per_tc_set(self, threshold, tc);
drivers/net/ethernet/aquantia/atlantic/hw_atl2/hw_atl2.c
194
threshold = (rx_buff_size * (1024U / 32U) * 66U) / 100U;
drivers/net/ethernet/aquantia/atlantic/hw_atl2/hw_atl2.c
195
hw_atl_rpb_rx_buff_hi_threshold_per_tc_set(self, threshold, tc);
drivers/net/ethernet/aquantia/atlantic/hw_atl2/hw_atl2.c
197
threshold = (rx_buff_size * (1024U / 32U) * 50U) / 100U;
drivers/net/ethernet/aquantia/atlantic/hw_atl2/hw_atl2.c
198
hw_atl_rpb_rx_buff_lo_threshold_per_tc_set(self, threshold, tc);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h
5151
u32 threshold[3];
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
2085
td.threshold = DPAA2_ETH_FQ_TAILDROP_THRESH;
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
2116
td.threshold = DPAA2_ETH_CG_TAILDROP_THRESH(priv);
drivers/net/ethernet/freescale/dpaa2/dpni-cmd.h
516
__le32 threshold;
drivers/net/ethernet/freescale/dpaa2/dpni-cmd.h
535
__le32 threshold;
drivers/net/ethernet/freescale/dpaa2/dpni.c
1693
cmd_params->threshold = cpu_to_le32(taildrop->threshold);
drivers/net/ethernet/freescale/dpaa2/dpni.c
1747
taildrop->threshold = le32_to_cpu(rsp_params->threshold);
drivers/net/ethernet/freescale/dpaa2/dpni.h
945
u32 threshold;
drivers/net/ethernet/ibm/ehea/ehea_phyp.c
239
u64 threshold =
drivers/net/ethernet/ibm/ehea/ehea_phyp.c
253
threshold); /* R12 */
drivers/net/ethernet/ibm/ibmveth.c
158
pool->threshold = pool_size * 7 / 8;
drivers/net/ethernet/ibm/ibmveth.c
405
(atomic_read(&pool->available) < pool->threshold))
drivers/net/ethernet/ibm/ibmveth.h
136
u32 threshold;
drivers/net/ethernet/intel/e100.c
1760
cb->u.tcb.threshold = nic->tx_threshold;
drivers/net/ethernet/intel/e100.c
485
u8 threshold;
drivers/net/ethernet/intel/i40e/i40e_dcb.c
1310
u32 threshold;
drivers/net/ethernet/intel/i40e/i40e_dcb.c
1317
threshold = I40E_DCB_1_PORT_THRESHOLD;
drivers/net/ethernet/intel/i40e/i40e_dcb.c
1322
threshold = I40E_DCB_2_PORT_THRESHOLD_HIGH_NUM_TC;
drivers/net/ethernet/intel/i40e/i40e_dcb.c
1325
threshold = I40E_DCB_2_PORT_THRESHOLD_LOW_NUM_TC;
drivers/net/ethernet/intel/i40e/i40e_dcb.c
1331
threshold = I40E_DCB_4_PORT_THRESHOLD_HIGH_NUM_TC;
drivers/net/ethernet/intel/i40e/i40e_dcb.c
1334
threshold = I40E_DCB_4_PORT_THRESHOLD_LOW_NUM_TC;
drivers/net/ethernet/intel/i40e/i40e_dcb.c
1350
reg |= FIELD_PREP(I40E_PRT_SWR_PM_THR_THRESHOLD_MASK, threshold);
drivers/net/ethernet/intel/ice/ice_ptp.c
1363
static int ice_ptp_cfg_phy_interrupt(struct ice_pf *pf, bool ena, u32 threshold)
drivers/net/ethernet/intel/ice/ice_ptp.c
1381
err = ice_phy_cfg_intr_e82x(hw, quad, ena, threshold);
drivers/net/ethernet/intel/ice/ice_ptp.c
1397
err = ice_phy_cfg_intr_eth56g(hw, port, ena, threshold);
drivers/net/ethernet/intel/ice/ice_ptp_hw.c
1856
int ice_phy_cfg_intr_eth56g(struct ice_hw *hw, u8 port, bool ena, u8 threshold)
drivers/net/ethernet/intel/ice/ice_ptp_hw.c
1868
val |= FIELD_PREP(PHY_TS_INT_CONFIG_THRESHOLD_M, threshold);
drivers/net/ethernet/intel/ice/ice_ptp_hw.c
4217
int ice_phy_cfg_intr_e82x(struct ice_hw *hw, u8 quad, bool ena, u8 threshold)
drivers/net/ethernet/intel/ice/ice_ptp_hw.c
4230
val |= FIELD_PREP(Q_REG_TX_MEM_GBL_CFG_INTR_THR_M, threshold);
drivers/net/ethernet/intel/ice/ice_ptp_hw.h
352
int ice_phy_cfg_intr_e82x(struct ice_hw *hw, u8 quad, bool ena, u8 threshold);
drivers/net/ethernet/intel/ice/ice_ptp_hw.h
375
int ice_phy_cfg_intr_eth56g(struct ice_hw *hw, u8 port, bool ena, u8 threshold);
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
7364
int threshold = MVPP2_TX_FIFO_THRESHOLD(size);
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
7367
mvpp2_write(priv, MVPP22_TX_FIFO_THRESH_REG(port), threshold);
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2294
u64 threshold;
drivers/net/ethernet/marvell/octeontx2/af/mcs.c
1348
mcs_reg_write(mcs, reg, pn->threshold);
drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c
509
fc_pool->threshold = min_t(int, MLX5_FC_POOL_MAX_THRESHOLD,
drivers/net/ethernet/mellanox/mlx5/core/fs_pool.c
190
if (fs_pool->available_units > fs_pool->threshold)
drivers/net/ethernet/mellanox/mlx5/core/fs_pool.c
75
pool->threshold = 0;
drivers/net/ethernet/mellanox/mlx5/core/fs_pool.h
39
int threshold;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws_pools.c
167
hws_pool->threshold = min_t(int, MLX5_FS_HWS_POOL_MAX_THRESHOLD,
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_rule.c
692
int threshold;
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_rule.c
703
threshold = mlx5dr_ste_htbl_increase_threshold(htbl);
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_rule.c
704
if (ctrl->num_of_collisions >= threshold &&
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_rule.c
705
(ctrl->num_of_valid_entries - ctrl->num_of_collisions) >= threshold)
drivers/net/ethernet/mellanox/mlxsw/core.c
1431
u32 threshold,
drivers/net/ethernet/mellanox/mlxsw/core.c
1442
pool_index, threshold, extack);
drivers/net/ethernet/mellanox/mlxsw/core.c
1467
u16 pool_index, u32 threshold,
drivers/net/ethernet/mellanox/mlxsw/core.c
1479
pool_index, threshold, extack);
drivers/net/ethernet/mellanox/mlxsw/core.h
389
u32 threshold, struct netlink_ext_ack *extack);
drivers/net/ethernet/mellanox/mlxsw/core.h
397
u16 pool_index, u32 threshold,
drivers/net/ethernet/mellanox/mlxsw/reg.h
5895
u16 threshold)
drivers/net/ethernet/mellanox/mlxsw/reg.h
5900
mlxsw_reg_pbmc_buf_xoff_threshold_set(payload, buf_index, threshold);
drivers/net/ethernet/mellanox/mlxsw/reg.h
5901
mlxsw_reg_pbmc_buf_xon_threshold_set(payload, buf_index, threshold);
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
594
u32 threshold, struct netlink_ext_ack *extack);
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
602
u16 pool_index, u32 threshold,
drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c
1417
u32 threshold, u32 *p_max_buff,
drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c
1425
val = threshold + MLXSW_SP_SB_THRESHOLD_TO_ALPHA_OFFSET;
drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c
1433
*p_max_buff = mlxsw_sp_bytes_cells(mlxsw_sp, threshold);
drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c
1456
u32 threshold, struct netlink_ext_ack *extack)
drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c
1471
threshold, &max_buff, extack);
drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c
1502
u16 pool_index, u32 threshold,
drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c
1535
if (cm->freeze_thresh && cm->max_buff != threshold) {
drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c
1541
threshold, &max_buff, extack);
drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
2634
u32 threshold;
drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
2639
threshold = rx_desc ? : rcq->size_mask / 2;
drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
2642
fbnic_ring_wr32(rcq, FBNIC_QUEUE_RIM_THRESHOLD, threshold);
drivers/net/ethernet/mscc/ocelot_devlink.c
634
u32 threshold, struct netlink_ext_ack *extack)
drivers/net/ethernet/mscc/ocelot_devlink.c
657
threshold /= ocelot_sb_pool[sb_index].cell_size;
drivers/net/ethernet/mscc/ocelot_devlink.c
660
ocelot_wm_write(ocelot, wm_index, threshold);
drivers/net/ethernet/mscc/ocelot_devlink.c
715
u16 pool_index, u32 threshold,
drivers/net/ethernet/mscc/ocelot_devlink.c
747
threshold /= ocelot_sb_pool[sb_index].cell_size;
drivers/net/ethernet/mscc/ocelot_devlink.c
750
ocelot_wm_write(ocelot, wm_index, threshold);
drivers/net/ethernet/mscc/ocelot_net.c
105
u16 pool_index, u32 threshold,
drivers/net/ethernet/mscc/ocelot_net.c
112
pool_type, pool_index, threshold,
drivers/net/ethernet/mscc/ocelot_net.c
77
u32 threshold,
drivers/net/ethernet/mscc/ocelot_net.c
84
threshold, extack);
drivers/net/ethernet/netronome/nfp/abm/ctrl.c
101
unsigned int threshold;
drivers/net/ethernet/netronome/nfp/abm/ctrl.c
103
threshold = band * NFP_NET_MAX_RX_RINGS + alink->queue_base + queue;
drivers/net/ethernet/netronome/nfp/abm/ctrl.c
105
return __nfp_abm_ctrl_set_q_lvl(alink->abm, threshold, val);
drivers/net/ethernet/netronome/nfp/abm/main.h
177
u32 threshold;
drivers/net/ethernet/netronome/nfp/abm/qdisc.c
219
qdisc->red.band[i].threshold);
drivers/net/ethernet/netronome/nfp/abm/qdisc.c
593
qdisc->red.band[i].threshold = opt->set.tab[i].min;
drivers/net/ethernet/netronome/nfp/abm/qdisc.c
726
qdisc->red.band[0].threshold = opt->set.min;
drivers/net/ethernet/samsung/sxgbe/sxgbe_mtl.c
104
int threshold)
drivers/net/ethernet/samsung/sxgbe/sxgbe_mtl.c
110
reg_val |= (threshold << RX_FC_ACTIVE);
drivers/net/ethernet/samsung/sxgbe/sxgbe_mtl.c
125
int threshold)
drivers/net/ethernet/samsung/sxgbe/sxgbe_mtl.c
131
reg_val |= (threshold << RX_FC_DEACTIVE);
drivers/net/ethernet/samsung/sxgbe/sxgbe_mtl.h
83
int threshold);
drivers/net/ethernet/samsung/sxgbe/sxgbe_mtl.h
86
int threshold);
drivers/net/ethernet/stmicro/stmmac/common.h
161
unsigned long threshold;
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
92
STMMAC_STAT(threshold),
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
2559
priv->xstats.threshold = SF_DMA_MODE;
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
2769
if (unlikely(priv->xstats.threshold != SF_DMA_MODE) && tc <= 256) {
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
2778
priv->xstats.threshold = tc;
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
7946
priv->xstats.threshold = tc;
drivers/net/fddi/skfp/pcmplc.c
1217
static void sm_ph_lem_start(struct s_smc *smc, int np, int threshold)
drivers/net/fddi/skfp/pcmplc.c
1228
outpw(PLC(np,PL_LE_THRESHOLD),threshold) ;
drivers/net/fddi/skfp/pcmplc.c
196
static void sm_ph_lem_start(struct s_smc *smc, int np, int threshold);
drivers/net/usb/sr9800.c
790
SR9800_BULKIN_SIZE[SR9800_MAX_BULKIN_4K].threshold,
drivers/net/usb/sr9800.c
801
SR9800_BULKIN_SIZE[SR9800_MAX_BULKIN_2K].threshold,
drivers/net/usb/sr9800.h
165
static const struct {unsigned short size, byte_cnt, threshold; } SR9800_BULKIN_SIZE[] = {
drivers/net/wireless/ath/ath10k/htt_rx.c
3548
u16 threshold;
drivers/net/wireless/ath/ath10k/htt_rx.c
3567
threshold = MS(info1, HTT_TX_MODE_SWITCH_IND_INFO1_THRESHOLD);
drivers/net/wireless/ath/ath10k/htt_rx.c
3571
info0, info1, enable, num_records, mode, threshold);
drivers/net/wireless/ath/ath10k/htt_rx.c
3595
ar->htt.tx_q_state.num_push_allowed = threshold;
drivers/net/wireless/ath/ath5k/phy.c
1595
s16 nf, threshold;
drivers/net/wireless/ath/ath5k/phy.c
1612
threshold = ee->ee_noise_floor_thr[ee_mode];
drivers/net/wireless/ath/ath5k/phy.c
1614
if (nf > threshold) {
drivers/net/wireless/ath/ath5k/phy.c
1618
nf, threshold);
drivers/net/wireless/ath/ath6kl/wmi.c
1360
u8 threshold = (u8) sq_thresh->upper_threshold[size - 1];
drivers/net/wireless/ath/ath6kl/wmi.c
1365
threshold = (u8) sq_thresh->upper_threshold[index];
drivers/net/wireless/ath/ath6kl/wmi.c
1370
return threshold;
drivers/net/wireless/ath/ath6kl/wmi.c
1378
u8 threshold = (u8) sq_thresh->lower_threshold[size - 1];
drivers/net/wireless/ath/ath6kl/wmi.c
1383
threshold = (u8) sq_thresh->lower_threshold[index];
drivers/net/wireless/ath/ath6kl/wmi.c
1388
return threshold;
drivers/net/wireless/ath/ath6kl/wmi.c
3105
int ath6kl_wmi_set_rts_cmd(struct wmi *wmi, u16 threshold)
drivers/net/wireless/ath/ath6kl/wmi.c
3116
cmd->threshold = cpu_to_le16(threshold);
drivers/net/wireless/ath/ath6kl/wmi.h
1318
__le16 threshold;
drivers/net/wireless/ath/ath6kl/wmi.h
2604
int ath6kl_wmi_set_rts_cmd(struct wmi *wmi, u16 threshold);
drivers/net/wireless/ath/wil6210/wil6210.h
1422
int wmi_rbufcap_cfg(struct wil6210_priv *wil, bool enable, u16 threshold);
drivers/net/wireless/ath/wil6210/wmi.c
2168
int wmi_rbufcap_cfg(struct wil6210_priv *wil, bool enable, u16 threshold)
drivers/net/wireless/ath/wil6210/wmi.c
2175
.rx_desc_threshold = cpu_to_le16(threshold),
drivers/net/wireless/broadcom/b43legacy/radio.c
804
s32 threshold;
drivers/net/wireless/broadcom/b43legacy/radio.c
819
threshold = (phy->nrssi[1] - phy->nrssi[0]) * 32;
drivers/net/wireless/broadcom/b43legacy/radio.c
820
threshold += 20 * (phy->nrssi[0] + 1);
drivers/net/wireless/broadcom/b43legacy/radio.c
821
threshold /= 40;
drivers/net/wireless/broadcom/b43legacy/radio.c
823
threshold = phy->nrssi[1] - 5;
drivers/net/wireless/broadcom/b43legacy/radio.c
825
threshold = clamp_val(threshold, 0, 0x3E);
drivers/net/wireless/broadcom/b43legacy/radio.c
827
b43legacy_phy_write(dev, 0x0020, (((u16)threshold) << 8)
drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h
343
u16 threshold;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
4932
static int ipw2100_set_rts_threshold(struct ipw2100_priv *priv, u32 threshold)
drivers/net/wireless/intel/ipw2x00/ipw2100.c
4941
if (threshold & RTS_DISABLED)
drivers/net/wireless/intel/ipw2x00/ipw2100.c
4944
cmd.host_command_parameters[0] = threshold & ~RTS_DISABLED;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
4950
priv->rts_threshold = threshold;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
4957
u32 threshold, int batch_mode)
drivers/net/wireless/intel/ipw2x00/ipw2100.c
4973
if (threshold == 0)
drivers/net/wireless/intel/ipw2x00/ipw2100.c
4974
threshold = DEFAULT_FRAG_THRESHOLD;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
4976
threshold = max(threshold, MIN_FRAG_THRESHOLD);
drivers/net/wireless/intel/ipw2x00/ipw2100.c
4977
threshold = min(threshold, MAX_FRAG_THRESHOLD);
drivers/net/wireless/intel/ipw2x00/ipw2100.c
4980
cmd.host_command_parameters[0] = threshold;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
4982
IPW_DEBUG_HC("FRAG_THRESHOLD: %u\n", threshold);
drivers/net/wireless/intel/ipw2x00/ipw2100.c
4990
priv->frag_threshold = threshold;
drivers/net/wireless/intel/ipw2x00/libipw_spy.c
118
struct iw_thrspy * threshold = (struct iw_thrspy *) extra;
drivers/net/wireless/intel/ipw2x00/libipw_spy.c
125
spydata->spy_thr_low = threshold->low;
drivers/net/wireless/intel/ipw2x00/libipw_spy.c
126
spydata->spy_thr_high = threshold->high;
drivers/net/wireless/intel/ipw2x00/libipw_spy.c
145
struct iw_thrspy * threshold = (struct iw_thrspy *) extra;
drivers/net/wireless/intel/ipw2x00/libipw_spy.c
152
threshold->low = spydata->spy_thr_low;
drivers/net/wireless/intel/ipw2x00/libipw_spy.c
153
threshold->high = spydata->spy_thr_high;
drivers/net/wireless/intel/ipw2x00/libipw_spy.c
169
struct iw_thrspy threshold;
drivers/net/wireless/intel/ipw2x00/libipw_spy.c
175
memcpy(threshold.addr.sa_data, address, ETH_ALEN);
drivers/net/wireless/intel/ipw2x00/libipw_spy.c
176
threshold.addr.sa_family = ARPHRD_ETHER;
drivers/net/wireless/intel/ipw2x00/libipw_spy.c
178
threshold.qual = *wstats;
drivers/net/wireless/intel/ipw2x00/libipw_spy.c
180
threshold.low = spydata->spy_thr_low;
drivers/net/wireless/intel/ipw2x00/libipw_spy.c
181
threshold.high = spydata->spy_thr_high;
drivers/net/wireless/intel/ipw2x00/libipw_spy.c
184
wireless_send_event(dev, SIOCGIWTHRSPY, &wrqu, (char *) &threshold);
drivers/net/wireless/intel/iwlwifi/dvm/devices.c
347
s32 threshold = (s32)celsius_to_kelvin(CT_KILL_THRESHOLD_LEGACY) -
drivers/net/wireless/intel/iwlwifi/dvm/devices.c
350
priv->hw_params.ct_kill_threshold = threshold * volt2temp_coef;
drivers/net/wireless/intel/iwlwifi/dvm/rx.c
142
int threshold = priv->plcp_delta_threshold;
drivers/net/wireless/intel/iwlwifi/dvm/rx.c
144
if (threshold == IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE) {
drivers/net/wireless/intel/iwlwifi/dvm/rx.c
158
if ((delta * 100 / msecs) > threshold) {
drivers/net/wireless/intel/iwlwifi/dvm/rx.c
161
threshold, delta, msecs);
drivers/net/wireless/intel/iwlwifi/mld/mlo.c
1113
#define THRESHOLD_CROSSED(threshold) \
drivers/net/wireless/intel/iwlwifi/mld/mlo.c
1114
(old_chan_load <= (threshold) && new_chan_load > (threshold))
drivers/net/wireless/marvell/libertas/host.h
915
__le16 threshold;
drivers/net/wireless/marvell/mwl8k.c
3433
__le16 threshold;
drivers/net/wireless/marvell/mwl8k.c
3450
cmd->threshold = cpu_to_le16(rts_thresh);
drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c
960
int threshold = 0;
drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c
967
if (++threshold > 10000) {
drivers/net/wireless/ralink/rt2x00/rt2x00queue.c
1228
queue->threshold = DIV_ROUND_UP(queue->limit, 10);
drivers/net/wireless/ralink/rt2x00/rt2x00queue.h
464
unsigned short threshold;
drivers/net/wireless/ralink/rt2x00/rt2x00queue.h
620
return rt2x00queue_available(queue) < queue->threshold;
drivers/net/wireless/realtek/rtl8xxxu/8188f.c
428
const u8 threshold = 0x16;
drivers/net/wireless/realtek/rtl8xxxu/8188f.c
477
do_notch = rtl8xxxu_read32(priv, REG_FPGA0_PSD_REPORT) >= threshold;
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
4521
u8 thermal_value, u8 threshold)
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
4575
u8 thermal_value, u8 threshold)
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.h
230
u8 thermal_value, u8 threshold);
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.h
232
u8 thermal_value, u8 threshold);
drivers/net/wireless/realtek/rtw88/rtw88xxa.c
1781
bool rtw88xxa_iqk_finish(int average, int threshold,
drivers/net/wireless/realtek/rtw88/rtw88xxa.c
1793
if (dx < threshold && dy < threshold) {
drivers/net/wireless/realtek/rtw88/rtw88xxa.h
167
bool rtw88xxa_iqk_finish(int average, int threshold,
drivers/net/wireless/realtek/rtw89/core.c
2671
static u8 rtw89_bcn_get_coverage(struct rtw89_dev *rtwdev, u16 threshold)
drivers/net/wireless/realtek/rtw89/core.c
2682
if (drift[m] <= threshold) {
drivers/net/wireless/silabs/wfx/hif_api_mib.h
204
__le32 threshold;
drivers/net/wireless/silabs/wfx/hif_tx_mib.c
302
.threshold = cpu_to_le32(val >= 0 ? val : 0xFFFF),
drivers/net/wireless/st/cw1200/sta.c
1127
struct wsm_rcpi_rssi_threshold threshold = {
drivers/net/wireless/st/cw1200/sta.c
1141
if (threshold.rssiRcpiMode & WSM_RCPI_RSSI_USE_RSSI)
drivers/net/wireless/st/cw1200/sta.c
1160
wsm_set_rcpi_rssi_threshold(priv, &threshold);
drivers/net/wireless/st/cw1200/sta.c
2031
struct wsm_rcpi_rssi_threshold threshold = {
drivers/net/wireless/st/cw1200/sta.c
2051
threshold.upperThreshold =
drivers/net/wireless/st/cw1200/sta.c
2053
threshold.lowerThreshold =
drivers/net/wireless/st/cw1200/sta.c
2055
threshold.rssiRcpiMode |= WSM_RCPI_RSSI_USE_RSSI;
drivers/net/wireless/st/cw1200/sta.c
2057
threshold.upperThreshold = (info->cqm_rssi_thold + info->cqm_rssi_hyst + 110) * 2;
drivers/net/wireless/st/cw1200/sta.c
2058
threshold.lowerThreshold = (info->cqm_rssi_thold + 110) * 2;
drivers/net/wireless/st/cw1200/sta.c
2060
threshold.rssiRcpiMode |= WSM_RCPI_RSSI_THRESHOLD_ENABLE;
drivers/net/wireless/st/cw1200/sta.c
2065
threshold.rssiRcpiMode |=
drivers/net/wireless/st/cw1200/sta.c
2070
threshold.rssiRcpiMode |= WSM_RCPI_RSSI_USE_RSSI;
drivers/net/wireless/st/cw1200/sta.c
2072
wsm_set_rcpi_rssi_threshold(priv, &threshold);
drivers/net/wireless/ti/wl1251/acx.c
441
rts->threshold = rts_threshold;
drivers/net/wireless/ti/wl1251/acx.c
714
int wl1251_acx_low_rssi(struct wl1251 *wl, s8 threshold, u8 weight,
drivers/net/wireless/ti/wl1251/acx.c
726
rssi->threshold = threshold;
drivers/net/wireless/ti/wl1251/acx.h
1465
int wl1251_acx_low_rssi(struct wl1251 *wl, s8 threshold, u8 weight,
drivers/net/wireless/ti/wl1251/acx.h
317
u32 threshold;
drivers/net/wireless/ti/wl1251/acx.h
384
u16 threshold;
drivers/net/wireless/ti/wl1251/acx.h
410
s8 threshold;
drivers/net/wireless/ti/wl12xx/main.c
328
.threshold = 0,
drivers/net/wireless/ti/wl18xx/main.c
466
.threshold = 0,
drivers/net/wireless/ti/wlcore/acx.c
1040
rx_conf->threshold = cpu_to_le16(wl->conf.rx.irq_pkt_threshold);
drivers/net/wireless/ti/wlcore/acx.c
1238
acx->threshold = cpu_to_le16(thold);
drivers/net/wireless/ti/wlcore/acx.c
298
rts->threshold = cpu_to_le16((u16)rts_threshold);
drivers/net/wireless/ti/wlcore/acx.c
442
u32 threshold = ACX_CONN_MONIT_DISABLE_VALUE;
drivers/net/wireless/ti/wlcore/acx.c
456
threshold = wl->conf.conn.synch_fail_thold;
drivers/net/wireless/ti/wlcore/acx.c
461
acx->synch_fail_thold = cpu_to_le32(threshold);
drivers/net/wireless/ti/wlcore/acx.h
210
__le16 threshold;
drivers/net/wireless/ti/wlcore/acx.h
522
__le16 threshold;
drivers/net/wireless/ti/wlcore/acx.h
636
__le16 threshold;
drivers/net/wireless/ti/wlcore/cmd.c
1791
cmd->threshold = wl->conf.fwlog.threshold;
drivers/net/wireless/ti/wlcore/cmd.h
669
u8 threshold;
drivers/net/wireless/ti/wlcore/conf.h
1070
u8 threshold;
drivers/nvme/host/hwmon.c
22
unsigned int threshold = sensor << NVME_TEMP_THRESH_SELECT_SHIFT;
drivers/nvme/host/hwmon.c
27
threshold |= NVME_TEMP_THRESH_TYPE_UNDER;
drivers/nvme/host/hwmon.c
29
ret = nvme_get_features(ctrl, NVME_FEAT_TEMP_THRESH, threshold, NULL, 0,
drivers/nvme/host/hwmon.c
43
unsigned int threshold = sensor << NVME_TEMP_THRESH_SELECT_SHIFT;
drivers/nvme/host/hwmon.c
47
threshold |= clamp_val(temp, 0, NVME_TEMP_THRESH_MASK);
drivers/nvme/host/hwmon.c
50
threshold |= NVME_TEMP_THRESH_TYPE_UNDER;
drivers/nvme/host/hwmon.c
52
ret = nvme_set_features(ctrl, NVME_FEAT_TEMP_THRESH, threshold, NULL, 0,
drivers/perf/arm_cspmu/ampere_cspmu.c
105
ARM_CSPMU_FORMAT_ATTR(threshold, "config1:0-7"),
drivers/perf/arm_cspmu/ampere_cspmu.c
147
u32 threshold, rank, bank;
drivers/perf/arm_cspmu/ampere_cspmu.c
149
threshold = get_threshold(event);
drivers/perf/arm_cspmu/ampere_cspmu.c
153
writel(threshold, cspmu->base0 + PMAUXR0);
drivers/perf/arm_cspmu/ampere_cspmu.c
36
SOC_PMU_EVENT_ATTR_EXTRACTOR(threshold, config1, 0, 7);
drivers/perf/arm_pmuv3.c
327
GEN_PMU_FORMAT_ATTR(threshold);
drivers/perf/arm_pmuv3.c
343
return ATTR_CFG_GET_FLD(attr, threshold);
drivers/perf/cxl_pmu.c
234
[cxl_pmu_threshold_attr] = CXL_PMU_FORMAT_ATTR(threshold, "config1:0-15"),
drivers/scsi/esas2r/atvda.h
512
u8 threshold;
drivers/scsi/mpi3mr/mpi/mpi30_cnfg.h
940
__le16 threshold[3];
drivers/scsi/pm8001/pm8001_hwi.h
470
__le32 threshold;
drivers/scsi/pm8001/pm80xx_hwi.h
706
__le32 threshold;
drivers/scsi/qla2xxx/qla_os.c
7201
u16 threshold = ha->nvme_last_rptd_aen + ha->last_zio_threshold;
drivers/scsi/qla2xxx/qla_os.c
7203
if (threshold > ha->orig_fw_xcb_count)
drivers/scsi/qla2xxx/qla_os.c
7204
threshold = ha->orig_fw_xcb_count;
drivers/scsi/qla2xxx/qla_os.c
7208
threshold);
drivers/scsi/qla2xxx/qla_os.c
7209
if (qla27xx_set_zio_threshold(base_vha, threshold)) {
drivers/scsi/qla2xxx/qla_os.c
7212
threshold);
drivers/scsi/sd.c
1362
sector_t threshold;
drivers/scsi/sd.c
1396
threshold = sdkp->capacity - SD_LAST_BUGGY_SECTORS;
drivers/scsi/sd.c
1398
if (unlikely(sdp->last_sector_bug && lba + nr_blocks > threshold)) {
drivers/scsi/sd.c
1399
if (lba < threshold) {
drivers/scsi/sd.c
1401
nr_blocks = threshold - lba;
drivers/soc/tegra/fuse/speedo-tegra114.c
34
int *threshold)
drivers/soc/tegra/fuse/speedo-tegra114.c
47
*threshold = THRESHOLD_INDEX_0;
drivers/soc/tegra/fuse/speedo-tegra114.c
54
*threshold = THRESHOLD_INDEX_1;
drivers/soc/tegra/fuse/speedo-tegra114.c
61
*threshold = THRESHOLD_INDEX_0;
drivers/soc/tegra/fuse/speedo-tegra114.c
77
int threshold;
drivers/soc/tegra/fuse/speedo-tegra114.c
85
rev_sku_to_speedo_ids(sku_info, &threshold);
drivers/soc/tegra/fuse/speedo-tegra114.c
91
if (cpu_speedo_val < cpu_process_speedos[threshold][i])
drivers/soc/tegra/fuse/speedo-tegra114.c
96
if (soc_speedo_val < soc_process_speedos[threshold][i])
drivers/soc/tegra/fuse/speedo-tegra124.c
104
int i, threshold, soc_speedo_0_value;
drivers/soc/tegra/fuse/speedo-tegra124.c
124
rev_sku_to_speedo_ids(sku_info, &threshold);
drivers/soc/tegra/fuse/speedo-tegra124.c
130
gpu_process_speedos[threshold][i])
drivers/soc/tegra/fuse/speedo-tegra124.c
136
cpu_process_speedos[threshold][i])
drivers/soc/tegra/fuse/speedo-tegra124.c
142
soc_process_speedos[threshold][i])
drivers/soc/tegra/fuse/speedo-tegra124.c
51
int *threshold)
drivers/soc/tegra/fuse/speedo-tegra124.c
59
*threshold = THRESHOLD_INDEX_0;
drivers/soc/tegra/fuse/speedo-tegra124.c
77
*threshold = THRESHOLD_INDEX_0;
drivers/soc/tegra/fuse/speedo-tegra124.c
85
*threshold = THRESHOLD_INDEX_1;
drivers/soc/tegra/fuse/speedo-tegra124.c
93
*threshold = THRESHOLD_INDEX_1;
drivers/soc/tegra/fuse/speedo-tegra210.c
58
u8 speedo_rev, int *threshold)
drivers/soc/tegra/fuse/speedo-tegra210.c
66
*threshold = THRESHOLD_INDEX_0;
drivers/spi/spi-cadence.c
450
int threshold = cdns_spi_read(xspi, CDNS_SPI_THLD);
drivers/spi/spi-cadence.c
453
if (threshold > 1)
drivers/spi/spi-cadence.c
454
trans_cnt -= threshold;
drivers/spi/spi-pxa2xx.c
1008
cr1 = chip->cr1 | chip->threshold | drv_data->int_cr1;
drivers/spi/spi-pxa2xx.c
1213
chip->threshold = (QUARK_X1000_SSCR1_RxTresh(rx_thres)
drivers/spi/spi-pxa2xx.c
1219
chip->threshold = (CE4100_SSCR1_RxTresh(rx_thres) & CE4100_SSCR1_RFT) |
drivers/spi/spi-pxa2xx.c
1223
chip->threshold = (SSCR1_RxTresh(rx_thres) & SSCR1_RFT) |
drivers/spi/spi-pxa2xx.c
277
u32 *sccr1_reg, u32 threshold)
drivers/spi/spi-pxa2xx.c
281
*sccr1_reg |= QUARK_X1000_SSCR1_RxTresh(threshold);
drivers/spi/spi-pxa2xx.c
284
*sccr1_reg |= CE4100_SSCR1_RxTresh(threshold);
drivers/spi/spi-pxa2xx.c
287
*sccr1_reg |= SSCR1_RxTresh(threshold);
drivers/spi/spi-pxa2xx.c
575
u32 mask = drv_data->int_cr1 | drv_data->dma_cr1, threshold;
drivers/spi/spi-pxa2xx.c
580
threshold = chip->threshold;
drivers/spi/spi-pxa2xx.c
582
threshold = 0;
drivers/spi/spi-pxa2xx.c
597
pxa2xx_spi_update(drv_data, SSCR1, mask, threshold);
drivers/spi/spi-pxa2xx.c
64
u32 threshold;
drivers/spi/spi-uniphier.c
306
unsigned int threshold)
drivers/spi/spi-uniphier.c
312
val |= FIELD_PREP(SSI_FC_TXFTH_MASK, SSI_FIFO_DEPTH - threshold);
drivers/spi/spi-uniphier.c
313
val |= FIELD_PREP(SSI_FC_RXFTH_MASK, threshold);
drivers/spi/spi-uniphier.c
531
unsigned long threshold;
drivers/spi/spi-uniphier.c
548
threshold = DIV_ROUND_UP(SSI_POLL_TIMEOUT_US * priv->speed_hz,
drivers/spi/spi-uniphier.c
550
if (t->len > threshold)
drivers/staging/media/atomisp/include/linux/atomisp.h
118
unsigned int threshold;
drivers/staging/media/atomisp/include/linux/atomisp.h
299
unsigned int threshold;
drivers/staging/media/atomisp/include/linux/atomisp.h
312
__u16 threshold;
drivers/staging/media/atomisp/pci/isp/kernels/anr/anr_1.0/ia_css_anr.host.c
31
to->threshold = from->threshold;
drivers/staging/media/atomisp/pci/isp/kernels/anr/anr_1.0/ia_css_anr.host.c
42
"anr_threshold", anr->threshold);
drivers/staging/media/atomisp/pci/isp/kernels/anr/anr_1.0/ia_css_anr.host.c
52
config->threshold);
drivers/staging/media/atomisp/pci/isp/kernels/anr/anr_1.0/ia_css_anr_param.h
14
s32 threshold;
drivers/staging/media/atomisp/pci/isp/kernels/anr/anr_1.0/ia_css_anr_types.h
24
s32 threshold; /** Threshold */
drivers/staging/media/atomisp/pci/isp/kernels/dp/dp_1.0/ia_css_dp.host.c
114
config->threshold, config->gain);
drivers/staging/media/atomisp/pci/isp/kernels/dp/dp_1.0/ia_css_dp.host.c
52
uDIGIT_FITTING(from->threshold, 16, SH_CSS_BAYER_BITS);
drivers/staging/media/atomisp/pci/isp/kernels/dp/dp_1.0/ia_css_dp_types.h
22
ia_css_u0_16 threshold; /** The threshold of defect pixel correction,
drivers/staging/media/atomisp/pci/isp/kernels/xnr/xnr_1.0/ia_css_xnr.host.c
37
to->threshold =
drivers/staging/media/atomisp/pci/isp/kernels/xnr/xnr_1.0/ia_css_xnr.host.c
38
(uint16_t)uDIGIT_FITTING(from->threshold, 16, SH_CSS_ISP_YUV_BITS);
drivers/staging/media/atomisp/pci/isp/kernels/xnr/xnr_1.0/ia_css_xnr.host.c
56
"config.threshold=%d\n", config->threshold);
drivers/staging/media/atomisp/pci/isp/kernels/xnr/xnr_1.0/ia_css_xnr_param.h
32
u16 threshold;
drivers/staging/media/atomisp/pci/isp/kernels/xnr/xnr_1.0/ia_css_xnr_types.h
59
u16 threshold;
drivers/staging/media/atomisp/pci/isp/kernels/ynr/ynr_1.0/ia_css_ynr.host.c
113
"ynr_threshold", ynr->threshold);
drivers/staging/media/atomisp/pci/isp/kernels/ynr/ynr_1.0/ia_css_ynr.host.c
200
config->threshold, config->gain, config->detail_gain);
drivers/staging/media/atomisp/pci/isp/kernels/ynr/ynr_1.0/ia_css_ynr.host.c
37
to->threshold =
drivers/staging/media/atomisp/pci/isp/kernels/ynr/ynr_1.0/ia_css_ynr.host.c
78
from->ee.threshold) >> 8;
drivers/staging/media/atomisp/pci/isp/kernels/ynr/ynr_1.0/ia_css_ynr.host.c
81
from->ee.threshold) >> 8;
drivers/staging/media/atomisp/pci/isp/kernels/ynr/ynr_1.0/ia_css_ynr_param.h
14
s32 threshold;
drivers/staging/media/atomisp/pci/isp/kernels/ynr/ynr_1.0/ia_css_ynr_types.h
55
ia_css_u8_8 threshold; /** The threshold that divides noises from
drivers/staging/rtl8723bs/core/rtw_mlme.c
2198
u8 threshold;
drivers/staging/rtl8723bs/core/rtw_mlme.c
2215
threshold = 1;
drivers/staging/rtl8723bs/core/rtw_mlme.c
2217
threshold = 0;
drivers/staging/rtl8723bs/core/rtw_mlme.c
2218
rtw_hal_set_hwreg(padapter, HW_VAR_RXDMA_AGG_PG_TH, (u8 *)(&threshold));
drivers/staging/rtl8723bs/core/rtw_mlme.c
2220
threshold = 1;
drivers/staging/rtl8723bs/core/rtw_mlme.c
2221
rtw_hal_set_hwreg(padapter, HW_VAR_RXDMA_AGG_PG_TH, (u8 *)(&threshold));
drivers/thermal/armada_thermal.c
494
unsigned int threshold = armada_mc_to_reg_temp(data, thresh_mc);
drivers/thermal/armada_thermal.c
503
ctrl1 |= threshold << data->thresh_shift;
drivers/thermal/gov_bang_bang.c
102
turn_on = tz->temperature >= td->threshold;
drivers/thermal/gov_fair_share.c
25
if (td->threshold > tz->temperature)
drivers/thermal/gov_fair_share.c
30
if (!level_td || td->threshold > level_td->threshold)
drivers/thermal/gov_step_wise.c
139
thermal_zone_trip_update(tz, td, td->threshold);
drivers/thermal/qcom/qcom-spmi-temp-alarm.c
315
u8 reg, threshold;
drivers/thermal/qcom/qcom-spmi-temp-alarm.c
327
threshold = THRESH_MIN;
drivers/thermal/qcom/qcom-spmi-temp-alarm.c
332
threshold = THRESH_MAX -
drivers/thermal/qcom/qcom-spmi-temp-alarm.c
337
threshold = THRESH_MAX;
drivers/thermal/qcom/qcom-spmi-temp-alarm.c
348
memcpy(chip->temp_thresh_map, chip->data->temp_map[threshold],
drivers/thermal/qcom/qcom-spmi-temp-alarm.c
350
reg |= threshold;
drivers/thermal/qcom/qcom-spmi-temp-alarm.c
530
u8 reg, threshold;
drivers/thermal/qcom/qcom-spmi-temp-alarm.c
537
threshold = reg & SHUTDOWN_CTRL1_THRESHOLD_MASK;
drivers/thermal/qcom/qcom-spmi-temp-alarm.c
538
memcpy(chip->temp_thresh_map, chip->data->temp_map[threshold],
drivers/thermal/qcom/tsens-8960.c
100
ret = regmap_write(map, THRESHOLD_ADDR, priv->ctx.threshold);
drivers/thermal/qcom/tsens-8960.c
61
ret = regmap_read(map, THRESHOLD_ADDR, &priv->ctx.threshold);
drivers/thermal/qcom/tsens.h
549
int threshold;
drivers/thermal/thermal_core.c
429
if (entry->threshold <= td->threshold) {
drivers/thermal/thermal_core.c
440
td->threshold = td->trip.temperature;
drivers/thermal/thermal_core.c
447
td->threshold = td->trip.temperature - td->trip.hysteresis;
drivers/thermal/thermal_core.c
454
td->threshold = INT_MAX;
drivers/thermal/thermal_core.c
510
if (tz->temperature >= td->threshold)
drivers/thermal/thermal_core.c
544
if (tz->temperature >= td->threshold)
drivers/thermal/thermal_core.c
556
if (tz->temperature >= td->threshold)
drivers/thermal/thermal_core.c
572
if (td->threshold <= tz->temperature)
drivers/thermal/thermal_core.c
584
if (td->threshold > tz->temperature)
drivers/thermal/thermal_core.c
602
*low = td->threshold - 1;
drivers/thermal/thermal_core.c
607
*high = td->threshold;
drivers/thermal/thermal_core.h
36
int threshold;
drivers/thermal/thermal_netlink.c
650
static int __thermal_genl_cmd_threshold_get(struct user_threshold *threshold, void *arg)
drivers/thermal/thermal_netlink.c
654
if (nla_put_u32(msg, THERMAL_GENL_ATTR_THRESHOLD_TEMP, threshold->temperature) ||
drivers/thermal/thermal_netlink.c
655
nla_put_u32(msg, THERMAL_GENL_ATTR_THRESHOLD_DIRECTION, threshold->direction))
drivers/usb/host/ehci-st.c
53
u32 threshold;
drivers/usb/host/ehci-st.c
56
threshold = 128 | (128 << 16);
drivers/usb/host/ehci-st.c
57
writel(threshold, hcd->regs + AHB2STBUS_INSREG01);
drivers/usb/typec/tcpm/tcpci.c
375
unsigned int pwr_ctrl, threshold = 0;
drivers/usb/typec/tcpm/tcpci.c
391
threshold = AUTO_DISCHARGE_DEFAULT_THRESHOLD_MV;
drivers/usb/typec/tcpm/tcpci.c
398
threshold = VPPS_SHUTDOWN_MIN_PERCENT * apdo_min_voltage_mv / 100 -
drivers/usb/typec/tcpm/tcpci.c
401
threshold = ((VSRC_NEW_MIN_PERCENT * requested_vbus_voltage_mv / 100) -
drivers/usb/typec/tcpm/tcpci.c
406
threshold = AUTO_DISCHARGE_DEFAULT_THRESHOLD_MV;
drivers/usb/typec/tcpm/tcpci.c
409
threshold = threshold / TCPC_VBUS_SINK_DISCONNECT_THRESH_LSB_MV;
drivers/usb/typec/tcpm/tcpci.c
411
if (threshold > TCPC_VBUS_SINK_DISCONNECT_THRESH_MAX)
drivers/usb/typec/tcpm/tcpci.c
415
return tcpci_write16(tcpci, TCPC_VBUS_SINK_DISCONNECT_THRESH, threshold);
drivers/video/fbdev/arkfb.c
111
static int threshold = 4;
drivers/video/fbdev/arkfb.c
113
module_param(threshold, int, 0644);
drivers/video/fbdev/arkfb.c
114
MODULE_PARM_DESC(threshold, "FIFO threshold");
drivers/video/fbdev/arkfb.c
683
regval = 0x10 | ((threshold & 0x0E) >> 1) | (threshold & 0x01) << 7 | (threshold & 0x10) << 1;
drivers/video/fbdev/cirrusfb.c
1037
threshold |= 0x10;
drivers/video/fbdev/cirrusfb.c
1122
threshold |= 0x10;
drivers/video/fbdev/cirrusfb.c
1180
threshold |= 0x20;
drivers/video/fbdev/cirrusfb.c
1248
fb_writew(threshold, cinfo->laguna_mmio + 0xea);
drivers/video/fbdev/cirrusfb.c
671
unsigned int control = 0, format = 0, threshold = 0;
drivers/video/fbdev/cirrusfb.c
880
threshold = fb_readw(cinfo->laguna_mmio + 0xea);
drivers/video/fbdev/cirrusfb.c
883
threshold &= 0xffc0 & 0x3fbf;
drivers/xen/events/events_base.c
609
unsigned int threshold = 1;
drivers/xen/events/events_base.c
612
threshold = dev->spurious_threshold;
drivers/xen/events/events_base.c
618
if (info->spurious_cnt > threshold) {
drivers/xen/events/events_base.c
619
delay = 1 << (info->spurious_cnt - 1 - threshold);
fs/dlm/midcomms.c
401
uint32_t threshold)
fs/dlm/midcomms.c
409
send_ack = (oval > threshold);
fs/f2fs/segment.c
479
unsigned int threshold =
fs/f2fs/segment.c
481
unsigned int global_threshold = threshold * 3 / 2;
fs/f2fs/segment.c
483
if (dents >= threshold || qdata >= threshold ||
fs/f2fs/segment.c
484
nodes >= threshold || meta >= threshold ||
fs/f2fs/segment.c
485
imeta >= threshold)
fs/jffs2/compr_rubin.c
203
long i0, threshold;
fs/jffs2/compr_rubin.c
216
threshold = rs->q + i0;
fs/jffs2/compr_rubin.c
217
symbol = rs->rec_q >= threshold;
fs/jffs2/compr_rubin.c
218
if (rs->rec_q >= threshold) {
fs/ocfs2/cluster/heartbeat.c
149
static void o2hb_dead_threshold_set(unsigned int threshold)
fs/ocfs2/cluster/heartbeat.c
151
if (threshold > O2HB_MIN_DEAD_THRESHOLD) {
fs/ocfs2/cluster/heartbeat.c
154
o2hb_dead_threshold = threshold;
fs/ocfs2/move_extents.c
742
u32 threshold, int *skip)
fs/ocfs2/move_extents.c
744
if ((*alloc_size + *len_defraged) < threshold) {
fs/ocfs2/move_extents.c
763
*alloc_size = threshold - *len_defraged;
fs/smb/client/compress.c
100
const size_t low = 64, high = 200, threshold = slen * 90 / 100;
fs/smb/client/compress.c
107
if (sum > threshold)
fs/smb/client/compress.c
112
if (sum > threshold)
fs/smb/client/compress.c
65
const size_t threshold = 65, max_entropy = 8 * ilog2(16);
fs/smb/client/compress.c
79
return ((sum * 100 / max_entropy) <= threshold);
fs/xfs/xfs_zone_gc.c
170
s64 available, free, threshold;
fs/xfs/xfs_zone_gc.c
184
threshold = div_s64_rem(free, 100, &remainder);
fs/xfs/xfs_zone_gc.c
185
threshold = threshold * mp->m_zonegc_low_space +
fs/xfs/xfs_zone_gc.c
188
if (available < threshold)
include/drm/gpu_scheduler.h
681
int threshold)
include/drm/gpu_scheduler.h
683
return s_job && atomic_inc_return(&s_job->karma) > threshold;
include/linux/edac.h
728
int (*get_threshold)(struct device *dev, void *drv_data, int fru_id, u32 *threshold);
include/linux/edac.h
729
int (*set_threshold)(struct device *dev, void *drv_data, int fru_id, u32 threshold);
include/linux/host1x.h
230
struct dma_fence *host1x_fence_create(struct host1x_syncpt *sp, u32 threshold,
include/linux/i2c.h
968
u8 *i2c_get_dma_safe_msg_buf(struct i2c_msg *msg, unsigned int threshold);
include/linux/memcontrol.h
127
unsigned long threshold;
include/linux/mfd/db8500-prcmu.h
505
int db8500_prcmu_config_hotdog(u8 threshold);
include/linux/mfd/db8500-prcmu.h
618
static inline int db8500_prcmu_config_hotdog(u8 threshold)
include/linux/mfd/dbx500-prcmu.h
330
static inline int prcmu_config_hotdog(u8 threshold)
include/linux/mfd/dbx500-prcmu.h
332
return db8500_prcmu_config_hotdog(threshold);
include/linux/mfd/dbx500-prcmu.h
512
static inline int prcmu_config_hotdog(u8 threshold)
include/linux/mroute_base.h
274
unsigned char threshold,
include/linux/mroute_base.h
321
unsigned char threshold,
include/linux/mroute_base.h
34
unsigned char threshold;
include/linux/mtd/nand.h
1142
int threshold);
include/linux/psi_types.h
127
u64 threshold;
include/media/i2c/ov772x.h
24
unsigned char threshold;
include/media/i2c/ov772x.h
45
.threshold = (t & OV772X_EDGE_THRESHOLD_MASK), \
include/media/v4l2-common.h
607
unsigned int n_terms, unsigned int threshold);
include/net/devlink.h
1387
u32 threshold, struct netlink_ext_ack *extack);
include/net/devlink.h
1397
u16 pool_index, u32 threshold,
include/net/dsa.h
1166
u32 threshold,
include/net/dsa.h
1175
u16 pool_index, u32 threshold,
include/net/tcp.h
1755
int rcvbuf, threshold;
include/net/tcp.h
1761
threshold = rcvbuf - (rcvbuf >> 3);
include/net/tcp.h
1763
return atomic_read(&sk->sk_rmem_alloc) > threshold;
include/net/xfrm.h
1582
u16 threshold;
include/rdma/rdma_vt.h
189
int threshold;
include/soc/mscc/ocelot.h
1128
u32 threshold, struct netlink_ext_ack *extack);
include/soc/mscc/ocelot.h
1136
u16 pool_index, u32 threshold,
include/uapi/drm/tegra_drm.h
1034
__u32 threshold;
include/uapi/linux/media/raspberrypi/pisp_be_config.h
185
__u16 threshold;
include/uapi/linux/netfilter/xt_NFLOG.h
19
__u16 threshold;
include/uapi/linux/netfilter_bridge/ebt_nflog.h
18
__u16 threshold;
include/uapi/linux/omap3isp.h
280
__u8 threshold; /* Threshold Value for Horizontal Median Filter */
kernel/sched/fair.c
8773
u64 threshold, delta;
kernel/sched/fair.c
8781
threshold = sysctl_sched_migration_cost;
kernel/sched/fair.c
8793
threshold >>= 2;
kernel/sched/fair.c
8799
if (entity_before(pse, se) && delta >= threshold)
kernel/sched/psi.c
1349
t->threshold = threshold_us * NSEC_PER_USEC;
kernel/sched/psi.c
502
if (growth < t->threshold)
kernel/trace/trace.c
1301
unsigned long threshold;
kernel/trace/trace.c
1306
ret = kstrtoul(str, 0, &threshold);
kernel/trace/trace.c
1309
tracing_thresh = threshold * 1000;
kernel/trace/trace_osnoise.c
1413
unsigned int threshold;
kernel/trace/trace_osnoise.c
1438
threshold = tracing_thresh ? : 1000;
kernel/trace/trace_osnoise.c
1503
if (noise >= threshold) {
lib/kunit/kunit-example-test.c
366
int threshold;
lib/kunit/kunit-example-test.c
382
threshold = *((int *)res->data);
lib/kunit/kunit-example-test.c
385
KUNIT_ASSERT_LE(test, param->value, threshold);
lib/zstd/common/entropy_common.c
133
int const max = (2*threshold-1) - remaining;
lib/zstd/common/entropy_common.c
136
if ((bitStream & (threshold-1)) < (U32)max) {
lib/zstd/common/entropy_common.c
137
count = bitStream & (threshold-1);
lib/zstd/common/entropy_common.c
140
count = bitStream & (2*threshold-1);
lib/zstd/common/entropy_common.c
141
if (count >= threshold) count -= max;
lib/zstd/common/entropy_common.c
158
assert(threshold > 1);
lib/zstd/common/entropy_common.c
159
if (remaining < threshold) {
lib/zstd/common/entropy_common.c
166
threshold = 1 << (nbBits - 1);
lib/zstd/common/entropy_common.c
51
int threshold;
lib/zstd/common/entropy_common.c
79
threshold = 1<<nbBits;
lib/zstd/common/fse.h
490
U32 const threshold = (minNbBits+1) << 16;
lib/zstd/common/fse.h
494
U32 const deltaFromThreshold = threshold - (symbolTT[symbolValue].deltaNbBits + tableSize);
lib/zstd/common/fse.h
497
assert(symbolTT[symbolValue].deltaNbBits + tableSize <= threshold);
lib/zstd/compress/fse_compress.c
245
int threshold;
lib/zstd/compress/fse_compress.c
258
threshold = tableSize;
lib/zstd/compress/fse_compress.c
293
int const max = (2*threshold-1) - remaining;
lib/zstd/compress/fse_compress.c
296
if (count>=threshold)
lib/zstd/compress/fse_compress.c
303
while (remaining<threshold) { nbBits--; threshold>>=1; }
lib/zstd/compress/zstd_preSplit.c
120
U64 threshold = p50 * (U64)(THRESHOLD_BASE + penalty) / THRESHOLD_PENALTY_RATE;
lib/zstd/compress/zstd_preSplit.c
121
return deviation >= threshold;
mm/damon/core.c
2463
static void kdamond_merge_regions(struct damon_ctx *c, unsigned int threshold,
mm/damon/core.c
2475
damon_merge_regions_of(t, threshold, sz_limit);
mm/damon/core.c
2478
threshold = max(1, threshold * 2);
mm/damon/core.c
2480
threshold / 2 < max_thres);
mm/memcontrol-v1.c
482
for (; i >= 0 && unlikely(t->entries[i].threshold > usage); i--)
mm/memcontrol-v1.c
494
for (; i < t->size && unlikely(t->entries[i].threshold <= usage); i++)
mm/memcontrol-v1.c
725
if (_a->threshold > _b->threshold)
mm/memcontrol-v1.c
728
if (_a->threshold < _b->threshold)
mm/memcontrol-v1.c
760
unsigned long threshold;
mm/memcontrol-v1.c
764
ret = page_counter_memparse(args, "-1", &threshold);
mm/memcontrol-v1.c
800
new->entries[size - 1].threshold = threshold;
mm/memcontrol-v1.c
809
if (new->entries[i].threshold <= usage) {
mm/memcontrol-v1.c
903
if (new->entries[j].threshold <= usage) {
mm/vmstat.c
203
int threshold;
mm/vmstat.c
215
threshold = max(1, (int)(watermark_distance / num_online_cpus()));
mm/vmstat.c
220
threshold = min(125, threshold);
mm/vmstat.c
222
return threshold;
mm/vmstat.c
227
int threshold;
mm/vmstat.c
262
threshold = 2 * fls(num_online_cpus()) * (1 + fls(mem));
mm/vmstat.c
267
threshold = min(125, threshold);
mm/vmstat.c
269
return threshold;
mm/vmstat.c
280
int threshold;
mm/vmstat.c
293
threshold = calculate_normal_threshold(zone);
mm/vmstat.c
299
= threshold;
mm/vmstat.c
304
= max(threshold, pgdat_threshold);
mm/vmstat.c
313
max_drift = num_online_cpus() * threshold;
mm/vmstat.c
325
int threshold;
mm/vmstat.c
333
threshold = (*calculate_pressure)(zone);
mm/vmstat.c
336
= threshold;
net/batman-adv/bat_v.c
478
u32 threshold;
net/batman-adv/bat_v.c
489
threshold = ifinfo1->bat_v.throughput / 4;
net/batman-adv/bat_v.c
490
threshold = ifinfo1->bat_v.throughput - threshold;
net/batman-adv/bat_v.c
492
ret = ifinfo2->bat_v.throughput > threshold;
net/batman-adv/bat_v.c
602
u32 gw_throughput, orig_throughput, threshold;
net/batman-adv/bat_v.c
605
threshold = atomic_read(&bat_priv->gw.sel_class);
net/batman-adv/bat_v.c
628
if ((orig_throughput - gw_throughput) < threshold)
net/bluetooth/l2cap_core.c
2165
int threshold;
net/bluetooth/l2cap_core.c
2190
threshold = chan->ack_win;
net/bluetooth/l2cap_core.c
2191
threshold += threshold << 1;
net/bluetooth/l2cap_core.c
2192
threshold >>= 2;
net/bluetooth/l2cap_core.c
2195
threshold);
net/bluetooth/l2cap_core.c
2197
if (frames_to_ack >= threshold) {
net/bridge/netfilter/ebt_nflog.c
33
li.u.ulog.qthreshold = info->threshold;
net/devlink/sb.c
456
u32 threshold;
net/devlink/sb.c
461
pool_index, &threshold);
net/devlink/sb.c
477
if (nla_put_u32(msg, DEVLINK_ATTR_SB_THRESHOLD, threshold))
net/devlink/sb.c
612
u32 threshold,
net/devlink/sb.c
620
pool_index, threshold, extack);
net/devlink/sb.c
631
u32 threshold;
net/devlink/sb.c
646
threshold = nla_get_u32(info->attrs[DEVLINK_ATTR_SB_THRESHOLD]);
net/devlink/sb.c
648
pool_index, threshold, info->extack);
net/devlink/sb.c
661
u32 threshold;
net/devlink/sb.c
667
&pool_index, &threshold);
net/devlink/sb.c
687
if (nla_put_u32(msg, DEVLINK_ATTR_SB_THRESHOLD, threshold))
net/devlink/sb.c
851
u16 pool_index, u32 threshold,
net/devlink/sb.c
860
pool_index, threshold, extack);
net/devlink/sb.c
873
u32 threshold;
net/devlink/sb.c
897
threshold = nla_get_u32(info->attrs[DEVLINK_ATTR_SB_THRESHOLD]);
net/devlink/sb.c
900
pool_index, threshold, info->extack);
net/dsa/devlink.c
100
u16 pool_index, u32 threshold,
net/dsa/devlink.c
111
pool_index, threshold,
net/dsa/devlink.c
66
u32 threshold,
net/dsa/devlink.c
76
pool_index, threshold, extack);
net/ipv4/fib_trie.c
801
unsigned long threshold = used;
net/ipv4/fib_trie.c
804
threshold *= IS_TRIE(tp) ? inflate_threshold_root : inflate_threshold;
net/ipv4/fib_trie.c
810
return (used > 1) && tn->pos && ((50 * used) >= threshold);
net/ipv4/fib_trie.c
816
unsigned long threshold = used;
net/ipv4/fib_trie.c
819
threshold *= IS_TRIE(tp) ? halve_threshold_root : halve_threshold;
net/ipv4/fib_trie.c
824
return (used > 1) && (tn->bits > 1) && ((100 * used) < threshold);
net/ipv4/ipmr_base.c
12
unsigned char threshold,
net/ipv4/ipmr_base.c
23
v->threshold = threshold;
net/ipv4/tcp_cubic.c
390
u32 threshold;
net/ipv4/tcp_cubic.c
406
threshold = ca->delay_min + hystart_ack_delay(sk);
net/ipv4/tcp_cubic.c
414
threshold >>= 1;
net/ipv4/tcp_cubic.c
416
if ((s32)(now - ca->round_start) > threshold) {
net/ipv4/tcp_cubic.c
419
now - ca->round_start, threshold,
net/ipv4/tcp_output.c
2437
u32 send_win, cong_win, limit, in_flight, threshold;
net/ipv4/tcp_output.c
2510
threshold = min(srtt_in_ns >> 1, NSEC_PER_MSEC);
net/ipv4/tcp_output.c
2512
if ((s64)(how_far_is_the_ack - threshold) > 0)
net/netfilter/xt_NFLOG.c
30
li.u.ulog.qthreshold = info->threshold;
net/sched/sch_fq_codel.c
144
unsigned int threshold;
net/sched/sch_fq_codel.c
162
threshold = maxbacklog >> 1;
net/sched/sch_fq_codel.c
173
} while (++i < max_packets && len < threshold);
net/xfrm/xfrm_algo.c
604
.threshold = 90,
net/xfrm/xfrm_algo.c
614
.threshold = 90,
net/xfrm/xfrm_algo.c
624
.threshold = 50,
net/xfrm/xfrm_ipcomp.c
297
if (skb->len < ipcd->threshold) {
net/xfrm/xfrm_ipcomp.c
30
u16 threshold;
net/xfrm/xfrm_ipcomp.c
349
ipcd->threshold = calg_desc->uinfo.comp.threshold;
sound/core/seq/seq_timer.c
23
unsigned int threshold =
sound/core/seq/seq_timer.c
26
if (tmr->tempo < threshold)
sound/pci/asihpi/hpi.h
1675
u16 hpi_tone_detector_set_threshold(u32 hC, int threshold);
sound/pci/asihpi/hpi.h
1677
u16 hpi_tone_detector_get_threshold(u32 hC, int *threshold);
sound/pci/asihpi/hpi.h
1698
u16 hpi_silence_detector_set_threshold(u32 hC, int threshold);
sound/pci/asihpi/hpi.h
1700
u16 hpi_silence_detector_get_threshold(u32 hC, int *threshold);
sound/pci/asihpi/hpifunc.c
2419
u16 hpi_tone_detector_set_threshold(u32 h_control, int threshold)
sound/pci/asihpi/hpifunc.c
2422
(u32)threshold, 0);
sound/pci/asihpi/hpifunc.c
2425
u16 hpi_tone_detector_get_threshold(u32 h_control, int *threshold)
sound/pci/asihpi/hpifunc.c
2428
(u32 *)threshold);
sound/pci/asihpi/hpifunc.c
2472
u16 hpi_silence_detector_set_threshold(u32 h_control, int threshold)
sound/pci/asihpi/hpifunc.c
2475
threshold, 0);
sound/pci/asihpi/hpifunc.c
2478
u16 hpi_silence_detector_get_threshold(u32 h_control, int *threshold)
sound/pci/asihpi/hpifunc.c
2481
HPI_SILENCEDETECTOR_THRESHOLD, (u32 *)threshold);
sound/soc/codecs/arizona-jack.c
325
unsigned int threshold;
sound/soc/codecs/arizona-jack.c
386
(val < arizona_hpdet_b_ranges[range].threshold ||
sound/soc/codecs/arizona-jack.c
399
if (val < arizona_hpdet_b_ranges[range].threshold ||
sound/soc/codecs/wm_adsp.c
113
__be32 threshold;
sound/soc/meson/axg-fifo.c
117
unsigned int burst_num, period, threshold, irq_en;
sound/soc/meson/axg-fifo.c
136
threshold = min(period / 2, fifo->depth / 2);
sound/soc/meson/axg-fifo.c
142
threshold /= AXG_FIFO_BURST;
sound/soc/meson/axg-fifo.c
144
threshold ? threshold - 1 : 0);
sound/soc/tegra/tegra186_dspk.c
266
cif_conf.threshold = dspk->rx_fifo_th;
sound/soc/tegra/tegra210_i2s.c
708
cif_conf.threshold = i2s->rx_fifo_th;
sound/soc/tegra/tegra30_ahub.c
135
cif_conf.threshold = 0;
sound/soc/tegra/tegra30_ahub.c
237
cif_conf.threshold = 0;
sound/soc/tegra/tegra30_ahub.c
624
value = (conf->threshold <<
sound/soc/tegra/tegra30_ahub.c
656
value = (conf->threshold <<
sound/soc/tegra/tegra30_ahub.h
475
unsigned int threshold;
sound/soc/tegra/tegra30_i2s.c
180
cif_conf.threshold = 0;
sound/soc/tegra/tegra_cif.h
37
unsigned int threshold;
sound/soc/tegra/tegra_cif.h
54
value = (conf->threshold << TEGRA_ACIF_CTRL_FIFO_TH_SHIFT) |
sound/soc/tegra/tegra_cif.h
73
value = (conf->threshold << TEGRA_ACIF_CTRL_FIFO_TH_SHIFT) |
sound/soc/ti/omap-dmic.c
220
dma_data->maxburst = dmic->threshold * channels;
sound/soc/ti/omap-dmic.c
221
dmic->latency = (OMAP_DMIC_THRES_MAX - dmic->threshold) * USEC_PER_SEC /
sound/soc/ti/omap-dmic.c
238
omap_dmic_write(dmic, OMAP_DMIC_FIFO_CTRL_REG, dmic->threshold);
sound/soc/ti/omap-dmic.c
416
dmic->threshold = OMAP_DMIC_THRES_MAX - 3;
sound/soc/ti/omap-dmic.c
43
int threshold;
sound/soc/ti/omap-mcbsp.c
240
static void omap_mcbsp_set_tx_threshold(struct omap_mcbsp *mcbsp, u16 threshold)
sound/soc/ti/omap-mcbsp.c
242
if (threshold && threshold <= mcbsp->max_tx_thres)
sound/soc/ti/omap-mcbsp.c
243
MCBSP_WRITE(mcbsp, THRSH2, threshold - 1);
sound/soc/ti/omap-mcbsp.c
251
static void omap_mcbsp_set_rx_threshold(struct omap_mcbsp *mcbsp, u16 threshold)
sound/soc/ti/omap-mcbsp.c
253
if (threshold && threshold <= mcbsp->max_rx_thres)
sound/soc/ti/omap-mcbsp.c
254
MCBSP_WRITE(mcbsp, THRSH1, threshold - 1);
sound/soc/ti/omap-mcbsp.c
277
u16 buffstat, threshold;
sound/soc/ti/omap-mcbsp.c
282
threshold = MCBSP_READ(mcbsp, THRSH1);
sound/soc/ti/omap-mcbsp.c
285
if (threshold <= buffstat)
sound/soc/ti/omap-mcbsp.c
288
return threshold - buffstat;
sound/soc/ti/omap-mcpdm.c
185
mcpdm->config[SNDRV_PCM_STREAM_PLAYBACK].threshold);
sound/soc/ti/omap-mcpdm.c
187
mcpdm->config[SNDRV_PCM_STREAM_CAPTURE].threshold);
sound/soc/ti/omap-mcpdm.c
301
u32 threshold;
sound/soc/ti/omap-mcpdm.c
335
threshold = mcpdm->config[stream].threshold;
sound/soc/ti/omap-mcpdm.c
345
(MCPDM_DN_THRES_MAX - threshold) * channels;
sound/soc/ti/omap-mcpdm.c
346
latency = threshold;
sound/soc/ti/omap-mcpdm.c
35
u32 threshold; /* FIFO threshold */
sound/soc/ti/omap-mcpdm.c
352
dma_data->maxburst = threshold * channels;
sound/soc/ti/omap-mcpdm.c
353
latency = (MCPDM_DN_THRES_MAX - threshold);
sound/soc/ti/omap-mcpdm.c
429
mcpdm->config[SNDRV_PCM_STREAM_PLAYBACK].threshold = 2;
sound/soc/ti/omap-mcpdm.c
430
mcpdm->config[SNDRV_PCM_STREAM_CAPTURE].threshold =
sound/soc/uniphier/aio-compress.c
365
sub->threshold = 2 * bytes;
sound/soc/uniphier/aio-core.c
1192
sub->threshold = 2 * period;
sound/soc/uniphier/aio-core.c
1210
sub->threshold = 2 * period;
sound/soc/uniphier/aio-core.c
1222
sub->threshold = 2 * period;
sound/soc/uniphier/aio-dma.c
37
sub->threshold + bytes);
sound/soc/uniphier/aio-dma.c
39
sub->threshold += bytes;
sound/soc/uniphier/aio-dma.c
56
sub->threshold + bytes);
sound/soc/uniphier/aio-dma.c
58
sub->threshold += bytes;
sound/soc/uniphier/aio.h
259
u32 threshold;
tools/arch/x86/intel_sdsi/intel_sdsi.c
289
printf(" Updates Threshold: %d\n", s->regs.prov_avail.threshold);
tools/arch/x86/intel_sdsi/intel_sdsi.c
605
s->regs.prov_avail.threshold);
tools/arch/x86/intel_sdsi/intel_sdsi.c
635
s->regs.prov_avail.threshold);
tools/arch/x86/intel_sdsi/intel_sdsi.c
86
uint64_t threshold:3;
tools/perf/builtin-list.c
205
const char *threshold,
tools/perf/builtin-list.c
278
if (threshold && print_state->detailed) {
tools/perf/builtin-list.c
280
wordwrap(fp, threshold, 8, pager_get_columns(), 0);
tools/perf/builtin-list.c
461
const char *threshold, const char *unit,
tools/perf/builtin-list.c
495
if (threshold) {
tools/perf/builtin-list.c
498
threshold);
tools/perf/builtin-timechart.c
1383
static int determine_display_tasks(struct timechart *tchart, u64 threshold)
tools/perf/builtin-timechart.c
1398
if (p->total_time >= threshold)
tools/perf/builtin-timechart.c
1409
if (c->total_time >= threshold) {
tools/perf/builtin-timechart.c
1424
static int determine_display_io_tasks(struct timechart *timechart, u64 threshold)
tools/perf/builtin-timechart.c
1441
if (c->total_bytes >= threshold) {
tools/perf/util/callchain.c
1354
char *bf, int bfsize, float threshold)
tools/perf/util/callchain.c
1356
if (threshold != 0.0 && value < threshold)
tools/perf/util/print-events.h
27
const char *threshold,
tools/perf/util/stat-shadow.c
141
double ratio, scale, threshold;
tools/perf/util/stat-shadow.c
165
expr__parse(&threshold, pctx, metric_threshold) == 0 &&
tools/perf/util/stat-shadow.c
166
!isnan(threshold)) {
tools/perf/util/stat-shadow.c
167
thresh = fpclassify(threshold) == FP_ZERO
tools/testing/selftests/bpf/progs/bpf_cubic.c
451
__u32 threshold;
tools/testing/selftests/bpf/progs/bpf_cubic.c
460
threshold = ca->delay_min + hystart_ack_delay(sk);
tools/testing/selftests/bpf/progs/bpf_cubic.c
468
threshold >>= 1;
tools/testing/selftests/bpf/progs/bpf_cubic.c
470
if ((__s32)(now - ca->round_start) > threshold) {
tools/testing/selftests/mm/mremap_test.c
1001
unsigned long long threshold;
tools/testing/selftests/mm/mremap_test.c
1005
threshold = c.region_size;
tools/testing/selftests/mm/mremap_test.c
1007
threshold = MIN(threshold_mb * _1MB, c.region_size);
tools/testing/selftests/mm/mremap_test.c
1016
memcpy(src_addr, rand_addr, threshold);
tools/testing/selftests/mm/mremap_test.c
1077
num_chunks = get_sqrt(threshold);
tools/testing/selftests/mm/mremap_test.c
1079
size_t chunk_size = threshold / num_chunks;
tools/testing/selftests/mm/mremap_test.c
1102
for (t = num_chunks * (threshold / num_chunks); t < threshold; ++t) {
tools/tracing/latency/latency-collector.c
107
static const char *threshold = DFLT_THRESHOLD_US;
tools/tracing/latency/latency-collector.c
1442
write_file(TR_THRESH, save_state.thresh, threshold, ERR_CLEANUP);
tools/tracing/latency/latency-collector.c
1891
threshold = strdup(optarg);
tools/tracing/latency/latency-collector.c
2071
if (!strcmp(threshold, "0"))
tools/tracing/latency/latency-collector.c
2074
printf("Threshold:\t\t\t\t\t\t%s\n", threshold);
tools/tracing/latency/latency-collector.c
610
restore_file(TR_THRESH, &save_state.thresh, threshold);
tools/tracing/rtla/src/osnoise.c
1131
retval = osnoise_set_tracing_thresh(tool->context, params->threshold);
tools/tracing/rtla/src/osnoise.h
15
long long threshold;
tools/tracing/rtla/src/osnoise_hist.c
522
params->threshold = 1;
tools/tracing/rtla/src/osnoise_hist.c
562
params->threshold = get_llong_from_str(optarg);
tools/tracing/rtla/src/osnoise_top.c
374
params->threshold = 1;
tools/tracing/rtla/src/osnoise_top.c
410
params->threshold = get_llong_from_str(optarg);