Home
last modified time | relevance | path

Searched full:thresh (Results 1 – 25 of 171) sorted by relevance

1234567

/linux/tools/testing/selftests/drivers/net/
H A Dhds.py60 if 'hds-thresh' not in rings:
61 raise KsftSkipEx('hds-thresh not supported by device')
79 if cur.get('hds-thresh') != rings.get('hds-thresh'):
80 arg['hds-thresh'] = rings['hds-thresh']
88 if 'hds-thresh' in rings or 'tcp-data-split' in rings:
133 netnl.rings_set({'header': {'dev-index': cfg.ifindex}, 'hds-thresh': 0})
136 raise KsftSkipEx("hds-thresh-set not supported by the device")
143 if 'hds-thresh' not in rings:
144 raise KsftSkipEx('hds-thresh not supported by device')
146 ksft_eq(0, rings['hds-thresh'])
[all …]
/linux/include/trace/events/
H A Dhost1x.h180 TP_PROTO(const char *name, int count, u32 thresh),
182 TP_ARGS(name, count, thresh),
187 __field(u32, thresh)
193 __entry->thresh = thresh;
196 TP_printk("name=%s, count=%d, thresh=%d",
197 __entry->name, __entry->count, __entry->thresh)
237 TP_PROTO(struct host1x_bo *bo, u32 offset, u32 syncpt_id, u32 thresh,
240 TP_ARGS(bo, offset, syncpt_id, thresh, min),
246 __field(u32, thresh)
254 __entry->thresh = thresh;
[all …]
/linux/fs/btrfs/
H A Dasync-thread.c45 int thresh; member
64 * to support "thresh == NO_THRESHOLD" case, but it requires in btrfs_workqueue_normal_congested()
68 if (wq->thresh == NO_THRESHOLD) in btrfs_workqueue_normal_congested()
71 return atomic_read(&wq->pending) > wq->thresh * 2; in btrfs_workqueue_normal_congested()
86 int limit_active, int thresh) in btrfs_alloc_workqueue() argument
96 if (thresh == 0) in btrfs_alloc_workqueue()
97 thresh = DEFAULT_THRESHOLD; in btrfs_alloc_workqueue()
99 if (thresh < DEFAULT_THRESHOLD) { in btrfs_alloc_workqueue()
101 ret->thresh = NO_THRESHOLD; in btrfs_alloc_workqueue()
109 ret->thresh = thresh; in btrfs_alloc_workqueue()
[all …]
/linux/drivers/iio/humidity/
H A Dhdc3020.c377 static int hdc3020_thresh_get_temp(u16 thresh) in hdc3020_thresh_get_temp() argument
390 temp = FIELD_GET(HDC3020_THRESH_TEMP_MASK, thresh) << in hdc3020_thresh_get_temp()
396 static int hdc3020_thresh_get_hum(u16 thresh) in hdc3020_thresh_get_hum() argument
409 hum = FIELD_GET(HDC3020_THRESH_HUM_MASK, thresh) << in hdc3020_thresh_get_hum()
418 u16 thresh; in hdc3020_thresh_set_temp() local
427 thresh = FIELD_PREP(HDC3020_THRESH_TEMP_MASK, temp); in hdc3020_thresh_set_temp()
428 thresh |= (FIELD_GET(HDC3020_THRESH_HUM_MASK, curr_thresh) << in hdc3020_thresh_set_temp()
431 return thresh; in hdc3020_thresh_set_temp()
437 u16 thresh; in hdc3020_thresh_set_hum() local
446 thresh = FIELD_PREP(HDC3020_THRESH_HUM_MASK, hum); in hdc3020_thresh_set_hum()
[all …]
/linux/mm/
H A Dpage-writeback.c339 * domain_dirty_limits - calculate thresh and bg_thresh for a wb_domain in global_dirtyable_memory()
342 * Calculate @dtc->thresh and ->bg_thresh considering in global_dirtyable_memory()
356 unsigned long thresh; in domain_dirty_limits()
381 thresh = DIV_ROUND_UP(bytes, PAGE_SIZE); in domain_dirty_limits()
383 thresh = (ratio * available_memory) / PAGE_SIZE; in domain_dirty_limits()
393 thresh += thresh / 4 + global_wb_domain.dirty_limit / 32; in domain_dirty_limits()
399 if (thresh > UINT_MAX) in domain_dirty_limits()
400 thresh = UINT_MAX; in domain_dirty_limits()
402 if (bg_thresh >= thresh) in domain_dirty_limits()
364 unsigned long thresh; domain_dirty_limits() local
821 dirty_freerun_ceiling(unsigned long thresh,unsigned long bg_thresh) dirty_freerun_ceiling() argument
828 hard_dirty_limit(struct wb_domain * dom,unsigned long thresh) hard_dirty_limit() argument
901 __wb_calc_thresh(struct dirty_throttle_control * dtc,unsigned long thresh) __wb_calc_thresh() argument
945 wb_calc_thresh(struct bdi_writeback * wb,unsigned long thresh) wb_calc_thresh() argument
1287 unsigned long thresh = dtc->thresh; update_dirty_limit() local
1566 dirty_poll_interval(unsigned long dirty,unsigned long thresh) dirty_poll_interval() argument
1712 unsigned long dirty, thresh; domain_poll_intv() local
1737 unsigned long dirty, thresh, bg_thresh; domain_dirty_freerun() local
[all...]
/linux/sound/soc/codecs/
H A Dtda7419.c130 unsigned int reg, rreg, mask, thresh; member
157 int min, int thresh, in tda7419_vol_get_value() argument
161 if (val < thresh) { in tda7419_vol_get_value()
164 } else if (val > thresh) { in tda7419_vol_get_value()
166 val = val - thresh; in tda7419_vol_get_value()
168 val = thresh - val; in tda7419_vol_get_value()
187 int thresh = tvc->thresh; in tda7419_vol_get() local
193 tda7419_vol_get_value(val, mask, min, thresh, invert); in tda7419_vol_get()
198 tda7419_vol_get_value(val, mask, min, thresh, invert); in tda7419_vol_get()
204 static inline int tda7419_vol_put_value(int val, int thresh, in tda7419_vol_put_value() argument
[all …]
H A Dmax98373.c264 SOC_SINGLE("BDE LVL1 Thresh", MAX98373_R2097_BDE_L1_THRESH, 0, 0xFF, 0),
265 SOC_SINGLE("BDE LVL2 Thresh", MAX98373_R2098_BDE_L2_THRESH, 0, 0xFF, 0),
266 SOC_SINGLE("BDE LVL3 Thresh", MAX98373_R2099_BDE_L3_THRESH, 0, 0xFF, 0),
267 SOC_SINGLE("BDE LVL4 Thresh", MAX98373_R209A_BDE_L4_THRESH, 0, 0xFF, 0),
271 SOC_SINGLE("BDE Thresh Hysteresis", MAX98373_R209B_BDE_THRESH_HYST, 0, 0xFF, 0),
275 SOC_SINGLE_TLV("BDE LVL1 Clip Thresh Volume", MAX98373_R20A9_BDE_L1_CFG_2,
277 SOC_SINGLE_TLV("BDE LVL2 Clip Thresh Volume", MAX98373_R20AC_BDE_L2_CFG_2,
279 SOC_SINGLE_TLV("BDE LVL3 Clip Thresh Volume", MAX98373_R20AF_BDE_L3_CFG_2,
281 SOC_SINGLE_TLV("BDE LVL4 Clip Thresh Volume", MAX98373_R20B2_BDE_L4_CFG_2,
291 SOC_SINGLE_TLV("BDE LVL1 Limiter Thresh Volum
[all...]
/linux/Documentation/devicetree/bindings/iio/accel/
H A Dlis302.txt29 - st,click-thresh-{x,y,z}: set the x/y/z axis threshold
77 st,click-thresh-x = <10>;
78 st,click-thresh-y = <10>;
79 st,click-thresh-z = <10>;
101 st,click-thresh-x = <10>;
102 st,click-thresh-y = <10>;
103 st,click-thresh-z = <10>;
/linux/tools/testing/selftests/drivers/net/hw/
H A Diou-zcrx.py39 hds_thresh = rings.get('hds-thresh', 0)
43 'hds-thresh': 0,
47 'hds-thresh': hds_thresh,
66 hds_thresh = rings.get('hds-thresh', 0)
70 'hds-thresh': 0,
74 'hds-thresh': hds_thresh,
132 ethtool(f"-G {cfg.ifname} hds-thresh 0")
133 defer(ethtool, f"-G {cfg.ifname} hds-thresh {hds_thresh}")
/linux/tools/testing/selftests/powerpc/pmu/event_code_tests/
H A Dgroup_constraint_thresh_sel_test.c25 * used to program thresh select field in Monitor Mode Control Register A
27 * All events in the group should match thresh sel bits otherwise
37 /* Init the events for the group contraint thresh select test */ in group_constraint_thresh_sel()
48 /* Init the event for the group contraint thresh select test */ in group_constraint_thresh_sel()
H A Dgroup_constraint_thresh_ctl_test.c26 * used to program thresh compare field in Monitor Mode Control Register A
28 * All events in the group should match thresh ctl bits otherwise
38 /* Init the events for the group contraint thresh control test */ in group_constraint_thresh_ctl()
49 /* Init the event for the group contraint thresh control test */ in group_constraint_thresh_ctl()
H A Dgroup_constraint_thresh_cmp_test.c27 * used to program thresh compare field in Monitor Mode Control Register A
29 * All events in the group should match thresh compare bits otherwise
57 /* Init the event for the group contraint thresh compare test */ in group_constraint_thresh_cmp()
80 /* Init the event for the group contraint thresh compare test */ in group_constraint_thresh_cmp()
/linux/Documentation/devicetree/bindings/input/
H A Diqs626a.yaml110 azoteq,thresh-extend:
477 azoteq,thresh:
693 azoteq,thresh-swipe:
708 azoteq,thresh:
728 azoteq,thresh-swipe: ["linux,keycodes"]
801 azoteq,thresh-swipe = <40>;
804 azoteq,thresh = <35>;
809 azoteq,thresh = <40>;
814 azoteq,thresh = <40>;
819 azoteq,thresh = <38>;
[all …]
/linux/tools/perf/tests/shell/
H A Drecord_offcpu.sh97 # task blocks longer than the --off-cpu-thresh, perf should collect a direct sample
102 if ! perf record -e dummy --off-cpu --off-cpu-thresh 999 -o ${perfdata} -- sleep 1 2> /dev/null
116 # there should only be one direct sample, and its period should be higher than off-cpu-thresh
127 # task blocks shorter than the --off-cpu-thresh, perf should collect an at-the-end sample
132 if ! perf record -e dummy --off-cpu --off-cpu-thresh 1200 -o ${perfdata} -- sleep 1 2> /dev/null
/linux/drivers/input/misc/
H A Diqs626a.c288 u8 thresh[2]; member
300 u8 thresh; member
313 u8 thresh[3]; member
328 u8 thresh; member
466 u8 *thresh, *hyst; in iqs626_parse_events() local
472 thresh = sys_reg->ch_reg_ulp.thresh; in iqs626_parse_events()
478 thresh = &sys_reg->tp_grp_reg.ch_reg_tp[0].thresh; in iqs626_parse_events()
486 thresh = sys_reg->ch_reg_gen[i].thresh; in iqs626_parse_events()
491 thresh = &sys_reg->ch_reg_hall.thresh; in iqs626_parse_events()
562 !fwnode_property_read_u32(ev_node, "azoteq,thresh", &val)) { in iqs626_parse_events()
[all …]
/linux/arch/arm/boot/dts/ti/omap/
H A Domap3-gta04a3.dts26 st,click-thresh-x = <8>;
27 st,click-thresh-y = <8>;
28 st,click-thresh-z = <10>;
H A Domap3-overo-common-peripherals.dtsi63 st,click-thresh-x = <10>;
64 st,click-thresh-y = <10>;
65 st,click-thresh-z = <10>;
/linux/drivers/thermal/qcom/
H A Dqcom-spmi-temp-alarm.c143 /* protects .thresh, .stage and chip registers */
430 u8 reg, thresh; in qpnp_tm_lite_set_temp_thresh() local
466 thresh = 0; in qpnp_tm_lite_set_temp_thresh()
467 temp_cfg = temp_map[thresh]; in qpnp_tm_lite_set_temp_thresh()
470 thresh = i; in qpnp_tm_lite_set_temp_thresh()
486 reg |= FIELD_PREP(LITE_TEMP_CFG_THRESHOLD_MASK, thresh); in qpnp_tm_lite_set_temp_thresh()
649 int ret, thresh; in qpnp_tm_lite_sync_thresholds() local
664 thresh = FIELD_GET(LITE_TEMP_CFG_THRESHOLD_MASK, reg); in qpnp_tm_lite_sync_thresholds()
665 chip->temp_thresh_map[0] = temp_lite_warning_map[thresh]; in qpnp_tm_lite_sync_thresholds()
671 thresh = FIELD_GET(LITE_TEMP_CFG_THRESHOLD_MASK, reg); in qpnp_tm_lite_sync_thresholds()
[all …]
/linux/tools/perf/util/
H A Dstat-shadow.c144 enum metric_threshold_classify thresh = METRIC_THRESHOLD_UNKNOWN; in generic_metric() local
167 thresh = fpclassify(threshold) == FP_ZERO in generic_metric()
183 print_metric(config, ctxp, thresh, "%8.1f", in generic_metric()
186 print_metric(config, ctxp, thresh, "%8.2f", in generic_metric()
193 print_metric(config, ctxp, thresh, /*fmt=*/NULL, in generic_metric()
198 print_metric(config, ctxp, thresh, /*fmt=*/NULL, in generic_metric()
H A Dstat-display.c76 const char *metric_threshold_classify__color(enum metric_threshold_classify thresh) in metric_threshold_classify__color() argument
86 return colors[thresh]; in metric_threshold_classify__color()
89 static const char *metric_threshold_classify__str(enum metric_threshold_classify thresh) in metric_threshold_classify__str() argument
99 return strs[thresh]; in metric_threshold_classify__str()
457 void *ctx, enum metric_threshold_classify thresh, in print_metric_std() argument
464 const char *color = metric_threshold_classify__color(thresh); in print_metric_std()
496 enum metric_threshold_classify thresh __maybe_unused, in print_metric_csv()
517 enum metric_threshold_classify thresh, in print_metric_json() argument
526 if (thresh != METRIC_THRESHOLD_UNKNOWN) { in print_metric_json()
528 metric_threshold_classify__str(thresh)); in print_metric_json()
[all …]
/linux/include/linux/sunrpc/
H A Dxprtrdma.h56 #define RPCRDMA_MIN_INLINE (1024) /* min inline thresh */
57 #define RPCRDMA_DEF_INLINE (4096) /* default inline thresh */
58 #define RPCRDMA_MAX_INLINE (65536) /* max inline thresh */
/linux/arch/powerpc/perf/
H A Dmpc7450-pmu.c155 int thresh, tuse; in mpc7450_get_constraint() local
171 thresh = ((unsigned int)event >> PM_THRESH_SH) & PM_THRESH_MSK; in mpc7450_get_constraint()
173 value |= thresh << 24; in mpc7450_get_constraint()
269 u32 ev, pmc, thresh; in mpc7450_compute_mmcr() local
304 thresh = (ev >> PM_THRESH_SH) & PM_THRESH_MSK; in mpc7450_compute_mmcr()
305 mmcr0 |= thresh << 16; in mpc7450_compute_mmcr()
H A Dpower10-events-list.h74 * thresh start (TS)
75 * thresh end (TE)
/linux/drivers/net/ethernet/freescale/dpaa/
H A Ddpaa_ethtool.c400 u8 thresh; in dpaa_get_coalesce() local
404 qman_dqrr_get_ithresh(portal, &thresh); in dpaa_get_coalesce()
407 c->rx_max_coalesced_frames = thresh; in dpaa_get_coalesce()
420 u8 thresh, prev_thresh; in dpaa_set_coalesce() local
429 thresh = c->rx_max_coalesced_frames; in dpaa_set_coalesce()
442 res = qman_dqrr_set_ithresh(portal, thresh); in dpaa_set_coalesce()
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_ptp.c161 static int ptp_set_thresh(struct otx2_ptp *ptp, u64 thresh) in ptp_set_thresh() argument
173 req->thresh = thresh; in ptp_set_thresh()
311 if (ptp->thresh != new_thresh) { in otx2_ptp_extts_check()
315 ptp->thresh = new_thresh; in otx2_ptp_extts_check()

1234567