Home
last modified time | relevance | path

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

12

/drivers/gpu/host1x/
Dintr.c51 u32 thresh = waiter->thresh; in add_waiter_to_queue() local
54 if ((s32)(pos->thresh - thresh) <= 0) { in add_waiter_to_queue()
74 if ((s32)(waiter->thresh - sync) > 0) in remove_completed_waiters()
103 u32 thresh = in reset_threshold_interrupt() local
104 list_first_entry(head, struct host1x_waitlist, list)->thresh; in reset_threshold_interrupt()
106 host1x_hw_intr_set_syncpt_threshold(host, id, thresh); in reset_threshold_interrupt()
118 waiter->count, waiter->thresh); in action_submit_complete()
212 int host1x_intr_add_action(struct host1x *host, u32 id, u32 thresh, in host1x_intr_add_action() argument
229 waiter->thresh = thresh; in host1x_intr_add_action()
243 host1x_hw_intr_set_syncpt_threshold(host, id, thresh); in host1x_intr_add_action()
Dsyncpt.c179 static bool syncpt_load_min_is_expired(struct host1x_syncpt *sp, u32 thresh) in syncpt_load_min_is_expired() argument
182 return host1x_syncpt_is_expired(sp, thresh); in syncpt_load_min_is_expired()
188 int host1x_syncpt_wait(struct host1x_syncpt *sp, u32 thresh, long timeout, in host1x_syncpt_wait() argument
201 if (host1x_syncpt_is_expired(sp, thresh)) { in host1x_syncpt_wait()
209 if (host1x_syncpt_is_expired(sp, thresh)) { in host1x_syncpt_wait()
228 err = host1x_intr_add_action(sp->host, sp->id, thresh, in host1x_syncpt_wait()
243 syncpt_load_min_is_expired(sp, thresh), in host1x_syncpt_wait()
245 if (remain > 0 || host1x_syncpt_is_expired(sp, thresh)) { in host1x_syncpt_wait()
260 thresh, timeout); in host1x_syncpt_wait()
278 bool host1x_syncpt_is_expired(struct host1x_syncpt *sp, u32 thresh) in host1x_syncpt_is_expired() argument
[all …]
Dintr.h59 u32 thresh; member
78 int host1x_intr_add_action(struct host1x *host, u32 id, u32 thresh,
Ddev.h85 struct host1x *host, u32 id, u32 thresh);
185 u32 id, u32 thresh) in host1x_hw_intr_set_syncpt_threshold() argument
187 host->intr_op->set_syncpt_threshold(host, id, thresh); in host1x_hw_intr_set_syncpt_threshold()
Djob.h41 u32 thresh; member
Djob.c159 wait->syncpt_id, wait->thresh, in do_waitchks()
162 if (host1x_syncpt_is_expired(sp, wait->thresh)) { in do_waitchks()
165 wait->syncpt_id, sp->name, wait->thresh, in do_waitchks()
Dsyncpt.h107 bool host1x_syncpt_is_expired(struct host1x_syncpt *sp, u32 thresh);
/drivers/thermal/
Dqcom-spmi-temp-alarm.c62 unsigned int thresh; member
106 chip->thresh * TEMP_THRESH_STEP + in qpnp_tm_update_temp_no_adc()
111 chip->thresh * TEMP_THRESH_STEP - in qpnp_tm_update_temp_no_adc()
168 chip->thresh = THRESH_MIN; in qpnp_tm_init()
178 chip->temp = chip->thresh * TEMP_THRESH_STEP + in qpnp_tm_init()
186 reg = chip->thresh & SHUTDOWN_CTRL1_THRESHOLD_MASK; in qpnp_tm_init()
/drivers/isdn/i4l/
Disdn_audio.c507 int thresh; in isdn_audio_eval_dtmf() local
514 thresh = 0; in isdn_audio_eval_dtmf()
517 if (result[i] > thresh) in isdn_audio_eval_dtmf()
518 thresh = result[i]; in isdn_audio_eval_dtmf()
526 if (thresh > 0) { in isdn_audio_eval_dtmf()
527 thresh = thresh >> 4; /* touchtones must match within 12 dB */ in isdn_audio_eval_dtmf()
529 if (result[i] < thresh) in isdn_audio_eval_dtmf()
/drivers/cpuidle/governors/
Dmenu.c207 unsigned int max, thresh; in get_typical_interval() local
210 thresh = UINT_MAX; /* Discard outliers above this value */ in get_typical_interval()
220 if (value <= thresh) { in get_typical_interval()
236 if (value <= thresh) { in get_typical_interval()
280 thresh = max - 1; in get_typical_interval()
/drivers/soc/ti/
Dknav_dma.c88 u32 thresh[3]; member
191 writel_relaxed(0, &chan->reg_rx_flow->thresh[0]); in chan_start()
192 writel_relaxed(0, &chan->reg_rx_flow->thresh[1]); in chan_start()
193 writel_relaxed(0, &chan->reg_rx_flow->thresh[2]); in chan_start()
236 writel_relaxed(0, &chan->reg_rx_flow->thresh[0]); in chan_stop()
237 writel_relaxed(0, &chan->reg_rx_flow->thresh[1]); in chan_stop()
238 writel_relaxed(0, &chan->reg_rx_flow->thresh[2]); in chan_stop()
333 chan->cfg.u.rx.thresh); in dma_debug_show_channels()
/drivers/regulator/
Dda903x.c197 int thresh, sel; in da9030_map_ldo14_voltage() local
204 thresh = (info->max_uV + info->desc.min_uV) / 2; in da9030_map_ldo14_voltage()
205 if (min_uV < thresh) { in da9030_map_ldo14_voltage()
206 sel = DIV_ROUND_UP(thresh - min_uV, info->desc.uV_step); in da9030_map_ldo14_voltage()
209 sel = DIV_ROUND_UP(min_uV - thresh, info->desc.uV_step); in da9030_map_ldo14_voltage()
/drivers/gpu/host1x/hw/
Dintr_hw.c109 u32 id, u32 thresh) in _host1x_intr_set_syncpt_threshold() argument
111 host1x_sync_writel(host, thresh, HOST1X_SYNC_SYNCPT_INT_THRESH(id)); in _host1x_intr_set_syncpt_threshold()
/drivers/net/ethernet/cavium/thunder/
Dnicvf_queues.h225 u32 thresh; /* Threshold level for interrupt */ member
249 u16 thresh; member
261 u16 thresh; member
Dnicvf_queues.c178 rbdr->thresh = RBDR_THRESH; in nicvf_init_rbdr()
333 cq->thresh = CMP_QUEUE_CQE_THRESH; in nicvf_init_cmp_queue()
367 sq->thresh = SND_QUEUE_THRESH; in nicvf_init_snd_queue()
595 nicvf_queue_reg_write(nic, NIC_QSET_CQ_0_7_THRESH, qidx, cq->thresh); in nicvf_cmp_queue_config()
644 nicvf_queue_reg_write(nic, NIC_QSET_SQ_0_7_THRESH, qidx, sq->thresh); in nicvf_snd_queue_config()
688 qidx, rbdr->thresh - 1); in nicvf_rbdr_config()
/drivers/input/mouse/
Dtrackpoint.c226 TRACKPOINT_INT_ATTR(thresh, TP_THRESH, TP_DEF_THRESH);
314 TRACKPOINT_UPDATE(in_power_on_state, psmouse, tp, thresh); in trackpoint_sync()
335 TRACKPOINT_SET_POWER_ON_DEFAULT(tp, thresh); in trackpoint_defaults()
Dtrackpoint.h143 unsigned char thresh, upthresh; member
/drivers/staging/rdma/hfi1/
Dpio.c675 u32 thresh; in sc_alloc() local
770 thresh = sc_percent_to_threshold(sc, 50); in sc_alloc()
772 thresh = sc_percent_to_threshold(sc, in sc_alloc()
775 thresh = sc_mtu_to_threshold(sc, hfi1_max_mtu, hdrqentsize); in sc_alloc()
777 reg = thresh << SC(CREDIT_CTRL_THRESHOLD_SHIFT); in sc_alloc()
826 thresh); in sc_alloc()
/drivers/misc/
Dapds990x.c900 unsigned long thresh; in apds990x_set_lux_thresh() local
903 ret = kstrtoul(buf, 0, &thresh); in apds990x_set_lux_thresh()
907 if (thresh > APDS_RANGE) in apds990x_set_lux_thresh()
911 *target = thresh; in apds990x_set_lux_thresh()
Dbh1770glc.c1066 unsigned long thresh; in bh1770_set_lux_thresh() local
1069 ret = kstrtoul(buf, 0, &thresh); in bh1770_set_lux_thresh()
1073 if (thresh > BH1770_LUX_RANGE) in bh1770_set_lux_thresh()
1077 *target = thresh; in bh1770_set_lux_thresh()
/drivers/crypto/
Dpicoxcell_crypto.c1194 unsigned long thresh; in spacc_stat_irq_thresh_store() local
1196 if (kstrtoul(buf, 0, &thresh)) in spacc_stat_irq_thresh_store()
1199 thresh = clamp(thresh, 1UL, engine->fifo_sz - 1); in spacc_stat_irq_thresh_store()
1201 engine->stat_irq_thresh = thresh; in spacc_stat_irq_thresh_store()
/drivers/net/wireless/ath/ath9k/
Dar9003_mci.c804 u32 thresh; in ar9003_mci_osla_setup() local
819 thresh = MS(mci->config, ATH_MCI_CONFIG_AGGR_THRESH); in ar9003_mci_osla_setup()
821 AR_BTCOEX_CTRL_AGGR_THRESH, thresh); in ar9003_mci_osla_setup()
/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_main.c1537 int unused, thresh; in pch_gbe_clean_tx() local
1548 thresh = tx_ring->count - PCH_GBE_TX_WEIGHT; in pch_gbe_clean_tx()
1549 if ((tx_desc->gbec_status == DSC_INIT16) && (unused < thresh)) in pch_gbe_clean_tx()
/drivers/gpu/drm/tegra/
Ddrm.c521 return host1x_syncpt_wait(sp, args->thresh, args->timeout, in tegra_syncpt_wait()
/drivers/net/ethernet/marvell/
Dsky2.c1537 unsigned i, thresh; in sky2_rx_start() local
1572 thresh = sky2_get_rx_threshold(sky2); in sky2_rx_start()
1573 if (thresh > 0x1ff) in sky2_rx_start()
1576 sky2_write16(hw, SK_REG(sky2->port, RX_GMF_TR_THR), thresh); in sky2_rx_start()

12