Home
last modified time | relevance | path

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

1234

/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 = DFT_THRESHOLD; in btrfs_alloc_workqueue()
99 if (thresh < DFT_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.c877 u64 thresh; in need_preemptive_reclaim() local
880 thresh = mult_perc(space_info->total_bytes, 90); in need_preemptive_reclaim()
886 global_rsv_size) >= thresh) in need_preemptive_reclaim()
939 thresh = calc_available_free_space(fs_info, space_info, in need_preemptive_reclaim()
944 thresh += space_info->total_bytes - used; in need_preemptive_reclaim()
945 thresh >>= space_info->clamp; in need_preemptive_reclaim()
980 return (used >= thresh && !btrfs_fs_closing(fs_info) && in need_preemptive_reclaim()
2001 u64 thresh; in do_reclaim_sweep() local
2006 thresh = mult_perc(bg->length, thresh_pct); in do_reclaim_sweep()
2007 if (bg->used < thresh && bg->reclaim_mark) { in do_reclaim_sweep()
/linux/drivers/iio/humidity/
H A Dhdc3020.c374 static int hdc3020_thresh_get_temp(u16 thresh) in hdc3020_thresh_get_temp() argument
384 temp = FIELD_GET(HDC3020_THRESH_TEMP_MASK, thresh) << in hdc3020_thresh_get_temp()
390 static int hdc3020_thresh_get_hum(u16 thresh) in hdc3020_thresh_get_hum() argument
400 hum = FIELD_GET(HDC3020_THRESH_HUM_MASK, thresh) << in hdc3020_thresh_get_hum()
409 u16 thresh; in hdc3020_thresh_set_temp() local
418 thresh = FIELD_PREP(HDC3020_THRESH_TEMP_MASK, temp); in hdc3020_thresh_set_temp()
419 thresh |= (FIELD_GET(HDC3020_THRESH_HUM_MASK, curr_thresh) << in hdc3020_thresh_set_temp()
422 return thresh; in hdc3020_thresh_set_temp()
428 u16 thresh; in hdc3020_thresh_set_hum() local
437 thresh = FIELD_PREP(HDC3020_THRESH_HUM_MASK, hum); in hdc3020_thresh_set_hum()
[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 …]
/linux/mm/
H A Dpage-writeback.c134 unsigned long thresh; /* dirty threshold */ member
369 * domain_dirty_limits - calculate thresh and bg_thresh for a wb_domain
372 * Calculate @dtc->thresh and ->bg_thresh considering
386 unsigned long thresh; in domain_dirty_limits() local
411 thresh = DIV_ROUND_UP(bytes, PAGE_SIZE); in domain_dirty_limits()
413 thresh = (ratio * available_memory) / PAGE_SIZE; in domain_dirty_limits()
423 thresh += thresh / 4 + global_wb_domain.dirty_limit / 32; in domain_dirty_limits()
429 if (thresh > UINT_MAX) in domain_dirty_limits()
430 thresh in domain_dirty_limits()
837 dirty_freerun_ceiling(unsigned long thresh,unsigned long bg_thresh) dirty_freerun_ceiling() argument
844 hard_dirty_limit(struct wb_domain * dom,unsigned long thresh) hard_dirty_limit() argument
917 __wb_calc_thresh(struct dirty_throttle_control * dtc,unsigned long thresh) __wb_calc_thresh() argument
943 wb_calc_thresh(struct bdi_writeback * wb,unsigned long thresh) wb_calc_thresh() argument
1300 unsigned long thresh = dtc->thresh; update_dirty_limit() local
1586 dirty_poll_interval(unsigned long dirty,unsigned long thresh) dirty_poll_interval() argument
1732 unsigned long dirty, thresh; domain_poll_intv() local
1757 unsigned long dirty, thresh, bg_thresh; domain_dirty_freerun() local
[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;
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,
/linux/drivers/thermal/qcom/
H A Dqcom-spmi-temp-alarm.c75 unsigned int thresh; member
117 if (!chip->temp_map || chip->thresh >= THRESH_COUNT || stage == 0 || in qpnp_tm_decode_temp()
121 return (*chip->temp_map)[chip->thresh][stage - 1]; in qpnp_tm_decode_temp()
236 chip->thresh = THRESH_MIN; in qpnp_tm_update_critical_trip_temp()
241 chip->thresh = THRESH_MAX - in qpnp_tm_update_critical_trip_temp()
246 chip->thresh = THRESH_MAX; in qpnp_tm_update_critical_trip_temp()
257 reg |= chip->thresh; in qpnp_tm_update_critical_trip_temp()
312 chip->thresh = reg & SHUTDOWN_CTRL1_THRESHOLD_MASK; in qpnp_tm_init()
/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/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/gpu/host1x/
H A Dsyncpt.c220 int host1x_syncpt_wait(struct host1x_syncpt *sp, u32 thresh, long timeout, in host1x_syncpt_wait() argument
231 if (host1x_syncpt_is_expired(sp, thresh)) in host1x_syncpt_wait()
239 fence = host1x_fence_create(sp, thresh, false); in host1x_syncpt_wait()
257 if (wait_err == 0 && !host1x_syncpt_is_expired(sp, thresh)) in host1x_syncpt_wait()
269 bool host1x_syncpt_is_expired(struct host1x_syncpt *sp, u32 thresh) in host1x_syncpt_is_expired() argument
277 return ((current_val - thresh) & 0x80000000U) == 0U; in host1x_syncpt_is_expired()
H A Ddev.h80 struct host1x *host, unsigned int id, u32 thresh);
234 u32 thresh) in host1x_hw_intr_set_syncpt_threshold() argument
236 host->intr_op->set_syncpt_threshold(host, id, thresh); in host1x_hw_intr_set_syncpt_threshold()
/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()
571 *thresh = val; in iqs626_parse_events()
[all …]
/linux/drivers/soc/ti/
H A Dknav_dma.c80 u32 thresh[3]; member
190 writel_relaxed(0, &chan->reg_rx_flow->thresh[0]); in chan_start()
191 writel_relaxed(0, &chan->reg_rx_flow->thresh[1]); in chan_start()
192 writel_relaxed(0, &chan->reg_rx_flow->thresh[2]); in chan_start()
235 writel_relaxed(0, &chan->reg_rx_flow->thresh[0]); in chan_stop()
236 writel_relaxed(0, &chan->reg_rx_flow->thresh[1]); in chan_stop()
237 writel_relaxed(0, &chan->reg_rx_flow->thresh[2]); in chan_stop()
332 chan->cfg.u.rx.thresh); in dma_debug_show_channels()
/linux/kernel/trace/
H A Dtrace_hwlat.c207 u64 thresh = tracing_thresh; in get_sample() local
212 do_div(thresh, NSEC_PER_USEC); /* modifies interval value */ in get_sample()
255 if (diff > thresh || outer_diff > thresh) { in get_sample()
279 if (sample > thresh || outer_sample > thresh) { in get_sample()
/linux/drivers/gpu/host1x/hw/
H A Dintr_hw.c88 u32 thresh) in host1x_intr_set_syncpt_threshold() argument
90 host1x_sync_writel(host, thresh, HOST1X_SYNC_SYNCPT_INT_THRESH(id)); in host1x_intr_set_syncpt_threshold()
/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/arch/x86/events/intel/
H A Dbts.c149 unsigned long index, thresh = 0, end = phys->size; in bts_config_buffer() local
161 thresh = end - BTS_SAFETY_MARGIN; in bts_config_buffer()
163 thresh = end - BTS_RECORD_SIZE; in bts_config_buffer()
165 thresh = end; in bts_config_buffer()
172 ? ds->bts_buffer_base + thresh in bts_config_buffer()
/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/include/linux/
H A Digmp.h95 #define IGMPV3_EXP(thresh, nbmant, nbexp, value) \ argument
96 ((value) < (thresh) ? (value) : \
/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/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;
/linux/arch/arm/mach-pxa/
H A Dsharpsl_pm.c183 struct battery_thresh *thresh; in get_percentage() local
186thresh = bl_status ? sharpsl_pm.machinfo->bat_levels_acin_bl : sharpsl_pm.machinfo->bat_levels_aci… in get_percentage()
188thresh = bl_status ? sharpsl_pm.machinfo->bat_levels_noac_bl : sharpsl_pm.machinfo->bat_levels_noa… in get_percentage()
190 while (i > 0 && (voltage > thresh[i].voltage)) in get_percentage()
193 return thresh[i].percentage; in get_percentage()

1234