Home
last modified time | relevance | path

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

12

/drivers/gpu/host1x/
Dintr.c41 u32 thresh = waiter->thresh; in add_waiter_to_queue() local
44 if ((s32)(pos->thresh - thresh) <= 0) { in add_waiter_to_queue()
64 if ((s32)(waiter->thresh - sync) > 0) in remove_completed_waiters()
93 u32 thresh = in reset_threshold_interrupt() local
94 list_first_entry(head, struct host1x_waitlist, list)->thresh; in reset_threshold_interrupt()
96 host1x_hw_intr_set_syncpt_threshold(host, id, thresh); in reset_threshold_interrupt()
108 waiter->count, waiter->thresh); in action_submit_complete()
212 u32 thresh, enum host1x_intr_action action, in host1x_intr_add_action() argument
228 waiter->thresh = thresh; in host1x_intr_add_action()
240 host1x_hw_intr_set_syncpt_threshold(host, syncpt->id, thresh); in host1x_intr_add_action()
Dsyncpt.c207 static bool syncpt_load_min_is_expired(struct host1x_syncpt *sp, u32 thresh) in syncpt_load_min_is_expired() argument
211 return host1x_syncpt_is_expired(sp, thresh); in syncpt_load_min_is_expired()
221 int host1x_syncpt_wait(struct host1x_syncpt *sp, u32 thresh, long timeout, in host1x_syncpt_wait() argument
232 if (host1x_syncpt_is_expired(sp, thresh)) in host1x_syncpt_wait()
248 err = host1x_intr_add_action(sp->host, sp, thresh, in host1x_syncpt_wait()
265 syncpt_load_min_is_expired(sp, thresh), in host1x_syncpt_wait()
267 if (remain > 0 || host1x_syncpt_is_expired(sp, thresh)) { in host1x_syncpt_wait()
287 thresh, timeout); in host1x_syncpt_wait()
308 bool host1x_syncpt_is_expired(struct host1x_syncpt *sp, u32 thresh) in host1x_syncpt_is_expired() argument
316 return ((current_val - thresh) & 0x80000000U) == 0U; in host1x_syncpt_is_expired()
Dintr.h51 u32 thresh; member
71 u32 thresh, enum host1x_intr_action action,
Ddev.h79 struct host1x *host, unsigned int id, u32 thresh);
211 u32 thresh) in host1x_hw_intr_set_syncpt_threshold() argument
213 host->intr_op->set_syncpt_threshold(host, id, thresh); in host1x_hw_intr_set_syncpt_threshold()
Dsyncpt.h105 bool host1x_syncpt_is_expired(struct host1x_syncpt *sp, u32 thresh);
Djob.c120 void host1x_job_add_wait(struct host1x_job *job, u32 id, u32 thresh, in host1x_job_add_wait() argument
127 cmd->wait.threshold = thresh; in host1x_job_add_wait()
/drivers/thermal/qcom/
Dqcom-spmi-temp-alarm.c76 unsigned int thresh; member
119 if (!chip->temp_map || chip->thresh >= THRESH_COUNT || stage == 0 || in qpnp_tm_decode_temp()
123 return (*chip->temp_map)[chip->thresh][stage - 1]; in qpnp_tm_decode_temp()
238 chip->thresh = THRESH_MIN; in qpnp_tm_update_critical_trip_temp()
243 chip->thresh = THRESH_MAX - in qpnp_tm_update_critical_trip_temp()
248 chip->thresh = THRESH_MAX; in qpnp_tm_update_critical_trip_temp()
259 reg |= chip->thresh; in qpnp_tm_update_critical_trip_temp()
341 chip->thresh = reg & SHUTDOWN_CTRL1_THRESHOLD_MASK; in qpnp_tm_init()
/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);
/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()
/drivers/input/misc/
Diqs626a.c288 u8 thresh[2]; member
300 u8 thresh; member
313 u8 thresh[3]; member
328 u8 thresh; member
468 u8 *thresh, *hyst; in iqs626_parse_events() local
476 thresh = sys_reg->ch_reg_ulp.thresh; in iqs626_parse_events()
482 thresh = &sys_reg->tp_grp_reg.ch_reg_tp[0].thresh; in iqs626_parse_events()
490 thresh = sys_reg->ch_reg_gen[i].thresh; in iqs626_parse_events()
495 thresh = &sys_reg->ch_reg_hall.thresh; in iqs626_parse_events()
574 *thresh = val; in iqs626_parse_events()
[all …]
/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()
/drivers/net/ethernet/freescale/dpaa/
Ddpaa_ethtool.c526 u8 thresh; in dpaa_get_coalesce() local
530 qman_dqrr_get_ithresh(portal, &thresh); in dpaa_get_coalesce()
533 c->rx_max_coalesced_frames = thresh; in dpaa_get_coalesce()
547 u8 thresh, prev_thresh; in dpaa_set_coalesce() local
551 thresh = c->rx_max_coalesced_frames; in dpaa_set_coalesce()
564 res = qman_dqrr_set_ithresh(portal, thresh); in dpaa_set_coalesce()
/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()
/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()
/drivers/net/ethernet/cavium/thunder/
Dnicvf_queues.h225 u32 thresh; /* Threshold level for interrupt */ member
257 u16 thresh; member
268 u16 thresh; member
Dnicvf_queues.c270 rbdr->thresh = RBDR_THRESH; in nicvf_init_rbdr()
486 cq->thresh = pass1_silicon(nic->pdev) ? 0 : CMP_QUEUE_CQE_THRESH; in nicvf_init_cmp_queue()
520 sq->thresh = SND_QUEUE_THRESH; in nicvf_init_snd_queue()
852 nicvf_queue_reg_write(nic, NIC_QSET_CQ_0_7_THRESH, qidx, cq->thresh); in nicvf_cmp_queue_config()
905 nicvf_queue_reg_write(nic, NIC_QSET_SQ_0_7_THRESH, qidx, sq->thresh); in nicvf_snd_queue_config()
949 qidx, rbdr->thresh - 1); in nicvf_rbdr_config()
/drivers/input/mouse/
Dtrackpoint.c191 TRACKPOINT_INT_ATTR(thresh, TP_THRESH, TP_DEF_THRESH);
333 TRACKPOINT_UPDATE(in_power_on_state, psmouse, tp, thresh); in trackpoint_sync()
354 TRACKPOINT_SET_POWER_ON_DEFAULT(tp, thresh); in trackpoint_defaults()
Dtrackpoint.h150 u8 thresh, upthresh; member
/drivers/staging/media/tegra-video/
Dtegra210.c328 u32 thresh, value, frame_start, mw_ack_done; in tegra_channel_capture_frame() local
361 thresh = host1x_syncpt_incr_max(chan->frame_start_sp[i], 1); in tegra_channel_capture_frame()
362 fs_thresh[i] = thresh; in tegra_channel_capture_frame()
371 thresh = host1x_syncpt_incr_max(chan->mw_ack_sp[i], 1); in tegra_channel_capture_frame()
372 buf->mw_ack_sp_thresh[i] = thresh; in tegra_channel_capture_frame()
/drivers/infiniband/hw/hfi1/
Dpio.c662 u32 thresh; in sc_alloc() local
771 thresh = sc_percent_to_threshold(sc, 50); in sc_alloc()
773 thresh = sc_percent_to_threshold(sc, in sc_alloc()
776 thresh = min(sc_percent_to_threshold(sc, 50), in sc_alloc()
780 reg = thresh << SC(CREDIT_CTRL_THRESHOLD_SHIFT); in sc_alloc()
830 thresh); in sc_alloc()
/drivers/misc/
Dapds990x.c892 unsigned long thresh; in apds990x_set_lux_thresh() local
895 ret = kstrtoul(buf, 0, &thresh); in apds990x_set_lux_thresh()
899 if (thresh > APDS_RANGE) in apds990x_set_lux_thresh()
903 *target = thresh; in apds990x_set_lux_thresh()
Dbh1770glc.c1049 unsigned long thresh; in bh1770_set_lux_thresh() local
1052 ret = kstrtoul(buf, 0, &thresh); in bh1770_set_lux_thresh()
1056 if (thresh > BH1770_LUX_RANGE) in bh1770_set_lux_thresh()
1060 *target = thresh; in bh1770_set_lux_thresh()
/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_struct.h205 u64 thresh : 36; /* W6*/ member
256 u64 thresh : 36; member
/drivers/spi/
Dspi-pxa2xx.c1089 u32 thresh = 0; in pxa2xx_spi_transfer_one() local
1091 thresh |= SFIFOTT_RxThresh(chip->lpss_rx_threshold); in pxa2xx_spi_transfer_one()
1092 thresh |= SFIFOTT_TxThresh(chip->lpss_tx_threshold); in pxa2xx_spi_transfer_one()
1094 pxa2xx_spi_update(drv_data, SFIFOTT, mask, thresh); in pxa2xx_spi_transfer_one()
/drivers/net/wireless/ath/ath9k/
Dar9003_mci.c817 u32 thresh; in ar9003_mci_osla_setup() local
832 thresh = MS(mci->config, ATH_MCI_CONFIG_AGGR_THRESH); in ar9003_mci_osla_setup()
834 AR_BTCOEX_CTRL_AGGR_THRESH, thresh); in ar9003_mci_osla_setup()

12