Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/fs/btrfs/
Dasync-thread.c46 int thresh; member
74 if (wq->normal->thresh == NO_THRESHOLD) in btrfs_workqueue_normal_congested()
77 return atomic_read(&wq->normal->pending) > wq->normal->thresh * 2; in btrfs_workqueue_normal_congested()
82 unsigned int flags, int limit_active, int thresh) in __btrfs_alloc_workqueue() argument
92 if (thresh == 0) in __btrfs_alloc_workqueue()
93 thresh = DFT_THRESHOLD; in __btrfs_alloc_workqueue()
95 if (thresh < DFT_THRESHOLD) { in __btrfs_alloc_workqueue()
97 ret->thresh = NO_THRESHOLD; in __btrfs_alloc_workqueue()
105 ret->thresh = thresh; in __btrfs_alloc_workqueue()
133 int thresh) in btrfs_alloc_workqueue() argument
[all …]
/kernel/linux/linux-5.10/mm/
Dpage-writeback.c134 unsigned long thresh; /* dirty threshold */ member
396 unsigned long thresh; in domain_dirty_limits() local
421 thresh = DIV_ROUND_UP(bytes, PAGE_SIZE); in domain_dirty_limits()
423 thresh = (ratio * available_memory) / PAGE_SIZE; in domain_dirty_limits()
430 if (bg_thresh >= thresh) in domain_dirty_limits()
431 bg_thresh = thresh / 2; in domain_dirty_limits()
435 thresh += thresh / 4 + global_wb_domain.dirty_limit / 32; in domain_dirty_limits()
437 dtc->thresh = thresh; in domain_dirty_limits()
442 trace_global_dirty_state(bg_thresh, thresh); in domain_dirty_limits()
461 *pdirty = gdtc.thresh; in global_dirty_limits()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/host1x/
Dintr.c40 u32 thresh = waiter->thresh; in add_waiter_to_queue() local
43 if ((s32)(pos->thresh - thresh) <= 0) { in add_waiter_to_queue()
63 if ((s32)(waiter->thresh - sync) > 0) in remove_completed_waiters()
92 u32 thresh = in reset_threshold_interrupt() local
93 list_first_entry(head, struct host1x_waitlist, list)->thresh; in reset_threshold_interrupt()
95 host1x_hw_intr_set_syncpt_threshold(host, id, thresh); in reset_threshold_interrupt()
107 waiter->count, waiter->thresh); in action_submit_complete()
203 u32 thresh, enum host1x_intr_action action, in host1x_intr_add_action() argument
219 waiter->thresh = thresh; in host1x_intr_add_action()
231 host1x_hw_intr_set_syncpt_threshold(host, syncpt->id, thresh); in host1x_intr_add_action()
Dsyncpt.c191 static bool syncpt_load_min_is_expired(struct host1x_syncpt *sp, u32 thresh) in syncpt_load_min_is_expired() argument
195 return host1x_syncpt_is_expired(sp, thresh); in syncpt_load_min_is_expired()
205 int host1x_syncpt_wait(struct host1x_syncpt *sp, u32 thresh, long timeout, in host1x_syncpt_wait() argument
218 if (host1x_syncpt_is_expired(sp, thresh)) { in host1x_syncpt_wait()
227 if (host1x_syncpt_is_expired(sp, thresh)) { in host1x_syncpt_wait()
247 err = host1x_intr_add_action(sp->host, sp, thresh, in host1x_syncpt_wait()
264 syncpt_load_min_is_expired(sp, thresh), in host1x_syncpt_wait()
266 if (remain > 0 || host1x_syncpt_is_expired(sp, thresh)) { in host1x_syncpt_wait()
286 thresh, timeout); in host1x_syncpt_wait()
307 bool host1x_syncpt_is_expired(struct host1x_syncpt *sp, u32 thresh) in host1x_syncpt_is_expired() argument
[all …]
Dintr.h49 u32 thresh; member
69 u32 thresh, enum host1x_intr_action action,
/kernel/linux/linux-5.10/sound/soc/codecs/
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 …]
/kernel/linux/linux-5.10/include/trace/events/
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;
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;
260 __entry->syncpt_id, __entry->thresh,
/kernel/linux/linux-5.10/drivers/thermal/qcom/
Dqcom-spmi-temp-alarm.c71 unsigned int thresh; member
153 chip->thresh * TEMP_THRESH_STEP + in qpnp_tm_update_temp_no_adc()
158 chip->thresh * TEMP_THRESH_STEP - in qpnp_tm_update_temp_no_adc()
215 chip->thresh = THRESH_MIN; in qpnp_tm_update_critical_trip_temp()
220 chip->thresh = THRESH_MAX - in qpnp_tm_update_critical_trip_temp()
225 chip->thresh = THRESH_MAX; in qpnp_tm_update_critical_trip_temp()
235 reg |= chip->thresh; in qpnp_tm_update_critical_trip_temp()
317 chip->thresh = reg & SHUTDOWN_CTRL1_THRESHOLD_MASK; in qpnp_tm_init()
329 chip->temp = chip->thresh * TEMP_THRESH_STEP + in qpnp_tm_init()
/kernel/linux/linux-5.10/fs/hmdfs/
Dclient_writeback.c115 unsigned long thresh) in hmdfs_ratio_thresh() argument
117 unsigned long ret = (ratio * thresh) >> HMDFS_LIMIT_SHIFT; in hmdfs_ratio_thresh()
123 unsigned long thresh) in hmdfs_thresh_ratio() argument
125 unsigned long ratio = (base << HMDFS_LIMIT_SHIFT) / thresh; in hmdfs_thresh_ratio()
186 unsigned long thresh; in hmdfs_update_dirty_limit() local
205 thresh = bw * time_limit / roundup_pow_of_two(HZ); in hmdfs_update_dirty_limit()
206 if (thresh >= hwb->dirty_fs_thresh) { in hmdfs_update_dirty_limit()
213 hdtc->fs_thresh = thresh; in hmdfs_update_dirty_limit()
273 unsigned long thresh) in hmdfs_dirty_intv() argument
275 if (thresh > dirty) in hmdfs_dirty_intv()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/perf/
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()
268 u32 ev, pmc, thresh; in mpc7450_compute_mmcr() local
303 thresh = (ev >> PM_THRESH_SH) & PM_THRESH_MSK; in mpc7450_compute_mmcr()
304 mmcr0 |= thresh << 16; in mpc7450_compute_mmcr()
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/
Dninet_connection_sock.c41 int max_retries, thresh; in ninet_reqsk_timer_handler() local
45 thresh = max_retries; in ninet_reqsk_timer_handler()
48 if (req->num_timeout <= thresh) { in ninet_reqsk_timer_handler()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/accel/
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>;
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Domap3-gta04a3.dts26 st,click-thresh-x = <8>;
27 st,click-thresh-y = <8>;
28 st,click-thresh-z = <10>;
Domap3-overo-common-peripherals.dtsi63 st,click-thresh-x = <10>;
64 st,click-thresh-y = <10>;
65 st,click-thresh-z = <10>;
/kernel/linux/linux-5.10/drivers/hwmon/
Di5500_temp.c78 static SENSOR_DEVICE_ATTR_RO(temp1_crit, thresh, 0xE2);
79 static SENSOR_DEVICE_ATTR_RO(temp1_max_hyst, thresh, 0xEC);
80 static SENSOR_DEVICE_ATTR_RO(temp1_max, thresh, 0xEE);
/kernel/linux/linux-5.10/kernel/trace/
Dtrace_hwlat.c176 u64 thresh = tracing_thresh; in get_sample() local
181 do_div(thresh, NSEC_PER_USEC); /* modifies interval value */ in get_sample()
225 if (diff > thresh || outer_diff > thresh) { in get_sample()
249 if (sample > thresh || outer_sample > thresh) { in get_sample()
/kernel/linux/linux-5.10/drivers/cpuidle/governors/
Dmenu.c173 unsigned int min, max, thresh, avg; in get_typical_interval() local
176 thresh = INT_MAX; /* Discard outliers above this value */ in get_typical_interval()
187 if (value <= thresh) { in get_typical_interval()
214 if (value <= thresh) { in get_typical_interval()
255 thresh = max - 1; in get_typical_interval()
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa/
Ddpaa_ethtool.c524 u8 thresh; in dpaa_get_coalesce() local
528 qman_dqrr_get_ithresh(portal, &thresh); in dpaa_get_coalesce()
531 c->rx_max_coalesced_frames = thresh; in dpaa_get_coalesce()
543 u8 thresh, prev_thresh; in dpaa_set_coalesce() local
547 thresh = c->rx_max_coalesced_frames; in dpaa_set_coalesce()
560 res = qman_dqrr_set_ithresh(portal, thresh); in dpaa_set_coalesce()
/kernel/linux/linux-5.10/drivers/soc/ti/
Dknav_dma.c88 u32 thresh[3]; member
198 writel_relaxed(0, &chan->reg_rx_flow->thresh[0]); in chan_start()
199 writel_relaxed(0, &chan->reg_rx_flow->thresh[1]); in chan_start()
200 writel_relaxed(0, &chan->reg_rx_flow->thresh[2]); in chan_start()
243 writel_relaxed(0, &chan->reg_rx_flow->thresh[0]); in chan_stop()
244 writel_relaxed(0, &chan->reg_rx_flow->thresh[1]); in chan_stop()
245 writel_relaxed(0, &chan->reg_rx_flow->thresh[2]); in chan_stop()
340 chan->cfg.u.rx.thresh); in dma_debug_show_channels()
/kernel/linux/linux-5.10/drivers/gpu/host1x/hw/
Dintr_hw.c108 u32 thresh) in _host1x_intr_set_syncpt_threshold() argument
110 host1x_sync_writel(host, thresh, HOST1X_SYNC_SYNCPT_INT_THRESH(id)); in _host1x_intr_set_syncpt_threshold()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/light/
Dus5182d.txt33 There will be no dark-gain compensation by default when ALS > thresh
34 (0 * dark-gain), and a 1.35 compensation factor when ALS < thresh.
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/drm/
Dtegra_drm.h46 __u32 thresh; member
123 __u32 thresh; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/drm/
Dtegra_drm.h47 __u32 thresh; member
96 __u32 thresh; member
/kernel/linux/linux-5.10/include/uapi/drm/
Dtegra_drm.h150 __u32 thresh; member
405 __u32 thresh; member
/kernel/linux/linux-5.10/drivers/regulator/
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()

1234