Home
last modified time | relevance | path

Searched refs:thres (Results 1 – 25 of 31) sorted by relevance

12

/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_police.c13 u32 idx, pup_tokens, max_pup_tokens, burst, thres; in sparx5_policer_service_conf_set() local
28 thres = DIV_ROUND_UP(burst, g->min_burst); in sparx5_policer_service_conf_set()
37 spx5_rmw(ANA_AC_SDLB_THRES_THRES_SET(thres), ANA_AC_SDLB_THRES_THRES, in sparx5_policer_service_conf_set()
/linux/drivers/net/ethernet/chelsio/cxgb3/
H A Dxgmac.c349 unsigned int thres, v, reg; in t3_mac_set_mtu() local
407 thres = (adap->params.vpd.cclk * 1000) / 15625; in t3_mac_set_mtu()
408 thres = (thres * mtu) / 1000; in t3_mac_set_mtu()
410 thres /= 10; in t3_mac_set_mtu()
411 thres = mtu > thres ? (mtu - thres + 7) / 8 : 0; in t3_mac_set_mtu()
412 thres = max(thres, 8U); /* need at least 8 */ in t3_mac_set_mtu()
416 V_TXFIFOTHRESH(thres) | V_TXIPG(ipg)); in t3_mac_set_mtu()
/linux/drivers/input/misc/
H A Dbma150.c226 u8 enable, u8 hyst, u8 dur, u8 thres) in bma150_set_low_g_interrupt() argument
240 error = bma150_write_byte(bma150->client, BMA150_LOW_G_THRES_REG, thres); in bma150_set_low_g_interrupt()
250 u8 enable, u8 hyst, u8 dur, u8 thres) in bma150_set_high_g_interrupt() argument
266 BMA150_HIGH_G_THRES_REG, thres); in bma150_set_high_g_interrupt()
277 u8 enable, u8 dur, u8 thres) in bma150_set_any_motion_interrupt() argument
289 BMA150_ANY_MOTION_THRES_REG, thres); in bma150_set_any_motion_interrupt()
/linux/drivers/i2c/busses/
H A Di2c-xlp9xx.c131 u32 thres; in xlp9xx_i2c_update_rx_fifo_thres() local
137 thres = 1; in xlp9xx_i2c_update_rx_fifo_thres()
139 thres = XLP9XX_I2C_FIFO_SIZE; in xlp9xx_i2c_update_rx_fifo_thres()
141 thres = priv->msg_buf_remaining; in xlp9xx_i2c_update_rx_fifo_thres()
144 thres << XLP9XX_I2C_MFIFOCTRL_HITH_SHIFT); in xlp9xx_i2c_update_rx_fifo_thres()
/linux/drivers/iio/adc/
H A Dpalmas_gpadc.c996 int thres; in palmas_adc_configure_events() local
1025 thres = palmas_gpadc_get_high_threshold_raw(adc, ev); in palmas_adc_configure_events()
1029 thres = palmas_gpadc_get_low_threshold_raw(adc, ev); in palmas_adc_configure_events()
1037 PALMAS_GPADC_THRES_CONV0_LSB, thres & 0xFF); in palmas_adc_configure_events()
1046 ((thres >> 8) & 0xF) | polarity); in palmas_adc_configure_events()
1062 thres = palmas_gpadc_get_high_threshold_raw(adc, ev); in palmas_adc_configure_events()
1066 thres = palmas_gpadc_get_low_threshold_raw(adc, ev); in palmas_adc_configure_events()
1074 PALMAS_GPADC_THRES_CONV1_LSB, thres & 0xFF); in palmas_adc_configure_events()
1083 ((thres >> 8) & 0xF) | polarity); in palmas_adc_configure_events()
/linux/drivers/pwm/
H A Dpwm-mediatek.c142 u32 thres; member
218 .thres = cnt_duty, in pwm_mediatek_round_waveform_tohw()
241 cnt_duty = FIELD_GET(PWMTHRES_DUTY, wfhw->thres); in pwm_mediatek_round_waveform_fromhw()
311 .thres = cnt_duty, in pwm_mediatek_read_waveform()
369 pwm_mediatek_writel(pc, pwm->hwpwm, reg_thres, wfhw->thres); in pwm_mediatek_write_waveform()
/linux/drivers/misc/
H A Dapds990x.c250 u32 thres; in apds990x_lux_to_threshold() local
280 thres = lux * cpl / 64; in apds990x_lux_to_threshold()
295 thres = (chip->rcf.cf1 * thres + chip->rcf.irf1 * ir) / in apds990x_lux_to_threshold()
298 thres = (chip->rcf.cf2 * thres + chip->rcf.irf2 * ir) / in apds990x_lux_to_threshold()
301 if (thres >= chip->a_max_result) in apds990x_lux_to_threshold()
302 thres = chip->a_max_result - 1; in apds990x_lux_to_threshold()
303 return thres; in apds990x_lux_to_threshold()
/linux/include/uapi/linux/
H A Domap3isp.h484 __u8 thres; member
521 __u8 thres; member
H A Drkisp1-config.h668 __u32 thres; member
/linux/include/soc/fsl/
H A Dqman.h580 int thres = be16_to_cpu(th->word); in qm_cgr_cs_thres_get64() local
582 return ((thres >> 5) & 0xff) << (thres & 0x1f); in qm_cgr_cs_thres_get64()
/linux/drivers/iio/proximity/
H A Dhx9023s.c124 } thres; member
417 data->ch_data[ch].thres.near = tmp; in hx9023s_get_thres_near()
437 data->ch_data[ch].thres.far = tmp; in hx9023s_get_thres_far()
448 data->ch_data[ch].thres.near = ((val / 32) & GENMASK(9, 0)) * 32; in hx9023s_set_thres_near()
460 data->ch_data[ch].thres.far = ((val / 32) & GENMASK(9, 0)) * 32; in hx9023s_set_thres_far()
/linux/drivers/soc/qcom/
H A Dicc-bwmon.c556 unsigned int thres; in bwmon_set_threshold() local
558 thres = mult_frac(bwmon_kbps_to_count(bwmon, kbps), in bwmon_set_threshold()
560 regmap_field_write(reg, thres); in bwmon_set_threshold()
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcudbg_entity.h28 u16 thres[CIM_NUM_IBQ]; member
H A Dcxgb4_debugfs.c339 u16 thres[CIM_NUM_IBQ]; in cim_qcfg_show() local
363 t4_read_cimq_cfg(adap, base, size, thres); in cim_qcfg_show()
369 qname[i], base[i], size[i], thres[i], in cim_qcfg_show()
/linux/drivers/media/platform/qcom/venus/
H A Dhfi_cmds.c910 struct hfi_scs_threshold *thres = prop_data; in pkt_session_set_property_1x() local
913 thres->threshold_value = *in; in pkt_session_set_property_1x()
914 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*thres); in pkt_session_set_property_1x()
/linux/drivers/infiniband/hw/hfi1/
H A Dpio.c1824 u32 thres; in set_threshold() local
1826 thres = min(sc_percent_to_threshold(dd->kernel_send_context[scontext], in set_threshold()
1831 sc_set_cr_threshold(dd->kernel_send_context[scontext], thres); in set_threshold()
/linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/
H A Dchtls_io.c1311 u32 thres; in chtls_cleanup_rbuf() local
1313 thres = 15 * 1024; in chtls_cleanup_rbuf()
1330 if (must_send || credits >= thres) in chtls_cleanup_rbuf()
/linux/mm/damon/
H A Dcore.c2424 static void damon_merge_regions_of(struct damon_target *t, unsigned int thres, in damon_merge_regions_of() argument
2430 if (abs(r->nr_accesses - r->last_nr_accesses) > thres) in damon_merge_regions_of()
2438 abs(prev->nr_accesses - r->nr_accesses) <= thres && in damon_merge_regions_of()
/linux/drivers/net/wireless/realtek/rtw88/
H A Drtw8703b.c668 u32 freq, u32 thres) in rtw8703b_check_spur_ov_thres() argument
677 if (rtw_read32(rtwdev, REG_PSDRPT) >= thres) in rtw8703b_check_spur_ov_thres()
H A Drtw8723d.c231 u8 channel, u32 thres) in rtw8723d_check_spur_ov_thres() argument
248 if (rtw_read32(rtwdev, REG_PSDRPT) >= thres) in rtw8723d_check_spur_ov_thres()
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_buffers.c353 static void mlxsw_sp_hdroom_buf_pack(char *pbmc_pl, int index, u16 size, u16 thres, bool lossy) in mlxsw_sp_hdroom_buf_pack() argument
359 thres); in mlxsw_sp_hdroom_buf_pack()
/linux/arch/arm64/boot/dts/qcom/
H A Dsm8550-sony-xperia-yodo-pdx234.dts692 qcom,tune-usb2-disc-thres = /bits/ 8 <0x6>;
H A Dmilos-fairphone-fp6.dts641 qcom,tune-usb2-disc-thres = /bits/ 8 <0x7>;
/linux/drivers/media/dvb-frontends/drx39xyj/
H A Ddrx_driver.h1576 u16 thres; /* carrier detetcion threshold for primary carrier (A) */ member
/linux/drivers/net/ethernet/chelsio/cxgb4vf/
H A Dcxgb4vf_main.c1035 static int closest_thres(const struct sge *s, int thres) in closest_thres() argument
1040 delta = thres - s->counter_val[i]; in closest_thres()

12