Home
last modified time | relevance | path

Searched refs:thresh (Results 1 – 25 of 68) sorted by relevance

123

/linux/fs/btrfs/
H A Dasync-thread.c45 int thresh; member
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()
138 ret->thresh = NO_THRESHOLD; in btrfs_alloc_ordered_workqueue()
[all …]
H A Dspace-info.c990 u64 thresh; in need_preemptive_reclaim() local
1002 thresh = mult_perc(space_info->total_bytes, 90); in need_preemptive_reclaim()
1006 global_rsv_size) >= thresh) in need_preemptive_reclaim()
1052 thresh = calc_available_free_space(space_info, BTRFS_RESERVE_FLUSH_ALL); in need_preemptive_reclaim()
1056 thresh += space_info->total_bytes - used; in need_preemptive_reclaim()
1057 thresh >>= space_info->clamp; in need_preemptive_reclaim()
1092 return (used >= thresh && !btrfs_fs_closing(fs_info) && in need_preemptive_reclaim()
2149 u64 thresh; in do_reclaim_sweep() local
2154 thresh = mult_perc(bg->length, thresh_pct); in do_reclaim_sweep()
2155 if (bg->used < thresh && bg->reclaim_mark) { in do_reclaim_sweep()
/linux/mm/
H A Dpage-writeback.c355 unsigned long thresh; in domain_dirty_limits() local
380 thresh = DIV_ROUND_UP(bytes, PAGE_SIZE); in domain_dirty_limits()
382 thresh = (ratio * available_memory) / PAGE_SIZE; in domain_dirty_limits()
392 thresh += thresh / 4 + global_wb_domain.dirty_limit / 32; in domain_dirty_limits()
398 if (thresh > UINT_MAX) in domain_dirty_limits()
399 thresh = UINT_MAX; in domain_dirty_limits()
401 if (bg_thresh >= thresh) in domain_dirty_limits()
402 bg_thresh = thresh / 2; in domain_dirty_limits()
403 dtc->thresh = thresh; in domain_dirty_limits()
408 trace_global_dirty_state(bg_thresh, thresh); in domain_dirty_limits()
[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, inver in tda7419_vol_get()
204 tda7419_vol_put_value(int val,int thresh,unsigned int invert) tda7419_vol_put_value() argument
229 int thresh = tvc->thresh; tda7419_vol_put() local
[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/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()
/linux/drivers/net/ethernet/intel/idpf/
H A Dxsk.c278 if (free < xdpsq->thresh) in idpf_xsk_tx_prep()
279 free += idpf_xsksq_complete(xdpsq, xdpsq->thresh); in idpf_xsk_tx_prep()
323 if (free < xsksq->thresh) in idpf_xsk_xmit()
324 free += idpf_xsksq_complete(xsksq, xsksq->thresh); in idpf_xsk_xmit()
327 min(free - 1, xsksq->thresh), in idpf_xsk_xmit()
377 u32 count, rx_thresh = bufq->thresh; in idpf_xskfq_refill()
404 bufq->thresh = fq.thresh; in idpf_xskfq_init()
430 bufq->thresh = fq.thresh; in idpf_xskfq_rel()
460 if (bufq->pending > bufq->thresh) in idpf_xskfq_refill_set()
/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/tools/perf/util/
H A Dstat-shadow.c147 enum metric_threshold_classify thresh = METRIC_THRESHOLD_UNKNOWN; in generic_metric()
170 thresh = fpclassify(threshold) == FP_ZERO in generic_metric()
186 print_metric(config, ctxp, thresh, "%8.1f", in generic_metric()
189 print_metric(config, ctxp, thresh, "%8.2f", in generic_metric()
196 print_metric(config, ctxp, thresh, /*fmt=*/NULL, in generic_metric()
201 print_metric(config, ctxp, thresh, /*fmt=*/NULL, in generic_metric()
144 enum metric_threshold_classify thresh = METRIC_THRESHOLD_UNKNOWN; generic_metric() local
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()
596 print_metric_only(struct perf_stat_config * config,void * ctx,enum metric_threshold_classify thresh,const char * fmt,const char * unit,double val) print_metric_only() argument
[all...]
H A Dstat.h139 const char *metric_threshold_classify__color(enum metric_threshold_classify thresh);
143 enum metric_threshold_classify thresh,
/linux/drivers/thermal/qcom/
H A Dqcom-spmi-temp-alarm.c430 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()
672 chip->temp_thresh_map[2] = temp_lite_shutdown_map[thresh]; in qpnp_tm_lite_sync_thresholds()
/linux/drivers/input/misc/
H A Diqs626a.c287 u8 thresh[2]; member
299 u8 thresh; member
312 u8 thresh[3]; member
327 u8 thresh; member
465 u8 *thresh, *hyst; in iqs626_parse_events() local
471 thresh = sys_reg->ch_reg_ulp.thresh; in iqs626_parse_events()
477 thresh = &sys_reg->tp_grp_reg.ch_reg_tp[0].thresh; in iqs626_parse_events()
485 thresh = sys_reg->ch_reg_gen[i].thresh; in iqs626_parse_events()
490 thresh = &sys_reg->ch_reg_hall.thresh; in iqs626_parse_events()
570 *thresh = val; in iqs626_parse_events()
[all …]
/linux/tools/perf/tests/shell/
H A Drecord_offcpu.sh102 if ! perf record -e dummy --off-cpu --off-cpu-thresh 999 -o ${perfdata} -- sleep 1 2> /dev/null
132 if ! perf record -e dummy --off-cpu --off-cpu-thresh 1200 -o ${perfdata} -- sleep 1 2> /dev/null
/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()
/linux/drivers/gpu/host1x/hw/
H A Dintr_hw.c126 u32 thresh) in host1x_intr_set_syncpt_threshold() argument
128 host1x_sync_writel(host, thresh, HOST1X_SYNC_SYNCPT_INT_THRESH(id)); in host1x_intr_set_syncpt_threshold()
/linux/drivers/net/ethernet/intel/libeth/
H A Dxsk.c168 fq->thresh = libeth_xdp_queue_threshold(fq->count); in libeth_xskfq_create()
185 fq->thresh = 0; in libeth_xskfq_destroy()
/linux/drivers/regulator/
H A Dda903x-regulator.c193 int thresh, sel; in da9030_map_ldo14_voltage() local
200 thresh = (info->max_uV + info->desc.min_uV) / 2; in da9030_map_ldo14_voltage()
201 if (min_uV < thresh) { in da9030_map_ldo14_voltage()
202 sel = DIV_ROUND_UP(thresh - min_uV, info->desc.uV_step); in da9030_map_ldo14_voltage()
205 sel = DIV_ROUND_UP(min_uV - thresh, info->desc.uV_step); in da9030_map_ldo14_voltage()
/linux/arch/x86/events/intel/
H A Dbts.c150 unsigned long index, thresh = 0, end = phys->size; in bts_config_buffer() local
162 thresh = end - BTS_SAFETY_MARGIN; in bts_config_buffer()
164 thresh = end - BTS_RECORD_SIZE; in bts_config_buffer()
166 thresh = end; in bts_config_buffer()
173 ? ds->bts_buffer_base + thresh in bts_config_buffer()
/linux/drivers/net/ethernet/cavium/thunder/
H A Dnicvf_queues.h225 u32 thresh; /* Threshold level for interrupt */ member
257 u16 thresh; member
268 u16 thresh; member
/linux/arch/arm/boot/dts/intel/pxa/
H A Dpxa300-raumfeld-controller.dts135 st,click-thresh-x = <10>;
136 st,click-thresh-y = <10>;
137 st,click-thresh-z = <10>;
/linux/drivers/gpu/host1x/
H A Ddev.h80 struct host1x *host, unsigned int id, u32 thresh);
237 u32 thresh) in host1x_hw_intr_set_syncpt_threshold() argument
239 host->intr_op->set_syncpt_threshold(host, id, thresh); in host1x_hw_intr_set_syncpt_threshold()
/linux/arch/mips/include/asm/octeon/
H A Dcvmx-fpa-defs.h1079 uint64_t thresh:32; member
1081 uint64_t thresh:32;
1118 uint64_t thresh:32; member
1120 uint64_t thresh:32;
1127 uint64_t thresh:29; member
1129 uint64_t thresh:29;
1244 uint64_t thresh:32; member
1246 uint64_t thresh:32;

123