Home
last modified time | relevance | path

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

12

/drivers/iio/humidity/
A Dhdc3020.c409 u16 thresh; in hdc3020_thresh_set_temp() local
422 return thresh; in hdc3020_thresh_set_temp()
428 u16 thresh; in hdc3020_thresh_set_hum() local
440 return thresh; in hdc3020_thresh_set_hum()
503 thresh = ret; in hdc3020_write_thresh()
528 thresh = reg_val; in hdc3020_write_thresh()
570 thresh = reg_val; in hdc3020_write_thresh()
612 int thresh, clr, ret; in hdc3020_read_thresh() local
633 *val = thresh; in hdc3020_read_thresh()
641 *val = abs(thresh - clr); in hdc3020_read_thresh()
[all …]
/drivers/thermal/qcom/
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()
/drivers/gpu/host1x/
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()
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()
A Dsyncpt.h106 bool host1x_syncpt_is_expired(struct host1x_syncpt *sp, u32 thresh);
A Djob.c126 void host1x_job_add_wait(struct host1x_job *job, u32 id, u32 thresh, in host1x_job_add_wait() argument
133 cmd->wait.threshold = thresh; in host1x_job_add_wait()
/drivers/input/misc/
A Diqs626a.c288 u8 thresh[2]; member
300 u8 thresh; member
313 u8 thresh[3]; member
328 u8 thresh; member
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()
771 u8 *thresh = &sys_reg->tp_grp_reg.ch_reg_tp[i].thresh; in iqs626_parse_trackpad() local
[all …]
/drivers/net/ethernet/freescale/dpaa/
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()
/drivers/soc/ti/
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()
/drivers/gpu/host1x/hw/
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()
/drivers/net/ethernet/marvell/octeontx2/nic/
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()
/drivers/regulator/
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()
/drivers/net/ethernet/cavium/thunder/
A Dnicvf_queues.h225 u32 thresh; /* Threshold level for interrupt */ member
257 u16 thresh; member
268 u16 thresh; member
A Dnicvf_queues.c271 rbdr->thresh = RBDR_THRESH; in nicvf_init_rbdr()
487 cq->thresh = pass1_silicon(nic->pdev) ? 0 : CMP_QUEUE_CQE_THRESH; in nicvf_init_cmp_queue()
521 sq->thresh = SND_QUEUE_THRESH; in nicvf_init_snd_queue()
853 nicvf_queue_reg_write(nic, NIC_QSET_CQ_0_7_THRESH, qidx, cq->thresh); in nicvf_cmp_queue_config()
906 nicvf_queue_reg_write(nic, NIC_QSET_SQ_0_7_THRESH, qidx, sq->thresh); in nicvf_snd_queue_config()
950 qidx, rbdr->thresh - 1); in nicvf_rbdr_config()
/drivers/net/ethernet/intel/libeth/
A Dxsk.c168 fq->thresh = libeth_xdp_queue_threshold(fq->count); in libeth_xskfq_create()
184 fq->thresh = 0; in libeth_xskfq_destroy()
/drivers/iio/temperature/
A Dmcp9600.c267 s16 thresh; in mcp9600_write_thresh() local
288 thresh = (s16)(s_val / (1000000 >> 4)); in mcp9600_write_thresh()
291 thresh); in mcp9600_write_thresh()
/drivers/input/mouse/
A 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()
A Dtrackpoint.h150 u8 thresh, upthresh; member
/drivers/staging/media/tegra-video/
A Dtegra210.c413 u32 thresh, value, frame_start, mw_ack_done; in tegra_channel_capture_frame() local
446 thresh = host1x_syncpt_incr_max(chan->frame_start_sp[i], 1); in tegra_channel_capture_frame()
447 fs_thresh[i] = thresh; in tegra_channel_capture_frame()
456 thresh = host1x_syncpt_incr_max(chan->mw_ack_sp[i], 1); in tegra_channel_capture_frame()
457 buf->mw_ack_sp_thresh[i] = thresh; in tegra_channel_capture_frame()
/drivers/net/ethernet/marvell/octeontx2/af/
A Dptp.c444 static int ptp_set_thresh(struct ptp *ptp, u64 thresh) in ptp_set_thresh() argument
447 writeq(thresh, ptp->reg_base + PTP_PPS_THRESH_HI); in ptp_set_thresh()
645 err = ptp_set_thresh(rvu->ptp, req->thresh); in rvu_mbox_handler_ptp_op()
/drivers/infiniband/hw/hfi1/
A 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/
A 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()
A 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/spi/
A Dspi-pxa2xx.c1032 u32 thresh = 0; in pxa2xx_spi_transfer_one() local
1034 thresh |= SFIFOTT_RxThresh(chip->lpss_rx_threshold); in pxa2xx_spi_transfer_one()
1035 thresh |= SFIFOTT_TxThresh(chip->lpss_tx_threshold); in pxa2xx_spi_transfer_one()
1037 pxa2xx_spi_update(drv_data, SFIFOTT, mask, thresh); in pxa2xx_spi_transfer_one()
/drivers/net/wireless/intel/iwlwifi/mvm/
A Dlink.c670 s8 thresh; in iwl_mvm_esr_disallowed_with_link() local
682 thresh = iwl_mvm_get_esr_rssi_thresh(mvm, link->chandef, in iwl_mvm_esr_disallowed_with_link()
685 if (link->signal < thresh) in iwl_mvm_esr_disallowed_with_link()

Completed in 78 milliseconds

12