/linux-6.3-rc2/drivers/net/ethernet/microchip/sparx5/ |
A D | sparx5_police.c | 13 u32 idx, pup_tokens, max_pup_tokens, burst, thres; in sparx5_policer_service_conf_set() local 27 thres = DIV_ROUND_UP(burst, g->min_burst); in sparx5_policer_service_conf_set() 36 spx5_rmw(ANA_AC_SDLB_THRES_THRES_SET(thres), ANA_AC_SDLB_THRES_THRES, in sparx5_policer_service_conf_set()
|
/linux-6.3-rc2/drivers/net/ethernet/chelsio/cxgb3/ |
A D | xgmac.c | 349 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-6.3-rc2/drivers/input/misc/ |
A D | bma150.c | 226 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-6.3-rc2/drivers/iio/adc/ |
A D | palmas_gpadc.c | 662 int thres; in palmas_adc_wakeup_configure() local 689 thres = adc->wakeup1_data.adc_high_threshold; in palmas_adc_wakeup_configure() 692 thres = adc->wakeup1_data.adc_low_threshold; in palmas_adc_wakeup_configure() 697 PALMAS_GPADC_THRES_CONV0_LSB, thres & 0xFF); in palmas_adc_wakeup_configure() 706 ((thres >> 8) & 0xF) | polarity); in palmas_adc_wakeup_configure() 720 thres = adc->wakeup2_data.adc_high_threshold; in palmas_adc_wakeup_configure() 723 thres = adc->wakeup2_data.adc_low_threshold; in palmas_adc_wakeup_configure() 728 PALMAS_GPADC_THRES_CONV1_LSB, thres & 0xFF); in palmas_adc_wakeup_configure() 737 ((thres >> 8) & 0xF) | polarity); in palmas_adc_wakeup_configure()
|
/linux-6.3-rc2/drivers/i2c/busses/ |
A D | i2c-xlp9xx.c | 131 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-6.3-rc2/drivers/misc/ |
A D | apds990x.c | 250 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-6.3-rc2/include/uapi/linux/ |
A D | omap3isp.h | 484 __u8 thres; member 521 __u8 thres; member
|
A D | rkisp1-config.h | 647 __u32 thres; member
|
/linux-6.3-rc2/drivers/soc/qcom/ |
A D | icc-bwmon.c | 412 unsigned int thres; in bwmon_set_threshold() local 414 thres = mult_frac(bwmon_kbps_to_count(bwmon, kbps), in bwmon_set_threshold() 416 regmap_field_write(reg, thres); in bwmon_set_threshold()
|
/linux-6.3-rc2/include/soc/fsl/ |
A D | qman.h | 580 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-6.3-rc2/drivers/net/ethernet/chelsio/cxgb4/ |
A D | cudbg_entity.h | 28 u16 thres[CIM_NUM_IBQ]; member
|
A D | cxgb4_debugfs.c | 339 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()
|
A D | cxgb4.h | 1929 void t4_read_cimq_cfg(struct adapter *adap, u16 *base, u16 *size, u16 *thres);
|
/linux-6.3-rc2/mm/damon/ |
A D | core.c | 1053 static void damon_merge_regions_of(struct damon_target *t, unsigned int thres, in damon_merge_regions_of() argument 1059 if (abs(r->nr_accesses - r->last_nr_accesses) > thres) in damon_merge_regions_of() 1065 abs(prev->nr_accesses - r->nr_accesses) <= thres && in damon_merge_regions_of()
|
/linux-6.3-rc2/drivers/media/platform/qcom/venus/ |
A D | hfi_cmds.c | 909 struct hfi_scs_threshold *thres = prop_data; in pkt_session_set_property_1x() local 912 thres->threshold_value = *in; in pkt_session_set_property_1x() 913 pkt->shdr.hdr.size += sizeof(u32) + sizeof(*thres); in pkt_session_set_property_1x()
|
/linux-6.3-rc2/drivers/infiniband/hw/hfi1/ |
A D | pio.c | 1835 u32 thres; in set_threshold() local 1837 thres = min(sc_percent_to_threshold(dd->kernel_send_context[scontext], in set_threshold() 1842 sc_set_cr_threshold(dd->kernel_send_context[scontext], thres); in set_threshold()
|
A D | chip.c | 10124 u32 thres; in set_send_length() local 10143 thres = min(sc_percent_to_threshold(dd->vld[i].sc, 50), in set_send_length() 10150 thres); in set_send_length() 10152 thres = min(sc_percent_to_threshold(dd->vld[15].sc, 50), in set_send_length() 10156 sc_set_cr_threshold(dd->vld[15].sc, thres); in set_send_length()
|
/linux-6.3-rc2/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
A D | chtls_io.c | 1405 u32 thres; in chtls_cleanup_rbuf() local 1407 thres = 15 * 1024; in chtls_cleanup_rbuf() 1424 if (must_send || credits >= thres) in chtls_cleanup_rbuf()
|
/linux-6.3-rc2/drivers/media/platform/ti/omap3isp/ |
A D | isppreview.c | 206 (hmed->thres << ISPPRV_HMED_THRESHOLD_SHIFT), in preview_config_hmed() 276 cs->gain | (cs->thres << ISPPRV_CSUP_THRES_SHIFT) | in preview_config_chroma_suppression() 1321 params->csup.thres = FLR_CSUP_THRES; in preview_init_params()
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlxsw/ |
A D | spectrum_buffers.c | 353 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-6.3-rc2/drivers/media/platform/rockchip/rkisp1/ |
A D | rkisp1-params.c | 934 rkisp1_write(params->rkisp1, RKISP1_CIF_ISP_AFM_THRES, arg->thres); in rkisp1_afm_config_v10() 964 rkisp1_write(params->rkisp1, RKISP1_CIF_ISP_AFM_THRES, arg->thres); in rkisp1_afm_config_v12()
|
/linux-6.3-rc2/drivers/media/dvb-frontends/drx39xyj/ |
A D | drx_driver.h | 1577 u16 thres; /* carrier detetcion threshold for primary carrier (A) */ member
|
/linux-6.3-rc2/drivers/net/wireless/realtek/rtw88/ |
A D | rtw8723d.c | 375 u8 channel, u32 thres) in rtw8723d_check_spur_ov_thres() argument 392 if (rtw_read32(rtwdev, REG_PSDRPT) >= thres) in rtw8723d_check_spur_ov_thres()
|
/linux-6.3-rc2/drivers/net/ethernet/chelsio/cxgb4vf/ |
A D | cxgb4vf_main.c | 1035 static int closest_thres(const struct sge *s, int thres) in closest_thres() argument 1040 delta = thres - s->counter_val[i]; in closest_thres()
|
/linux-6.3-rc2/arch/mips/include/asm/octeon/ |
A D | cvmx-mio-defs.h | 881 uint64_t thres:6; member 893 uint64_t thres:6;
|