Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb3/
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-4.1.27/drivers/input/misc/
Dbma150.c242 u8 enable, u8 hyst, u8 dur, u8 thres) in bma150_set_low_g_interrupt() argument
256 error = bma150_write_byte(bma150->client, BMA150_LOW_G_THRES_REG, thres); in bma150_set_low_g_interrupt()
266 u8 enable, u8 hyst, u8 dur, u8 thres) in bma150_set_high_g_interrupt() argument
282 BMA150_HIGH_G_THRES_REG, thres); in bma150_set_high_g_interrupt()
293 u8 enable, u8 dur, u8 thres) in bma150_set_any_motion_interrupt() argument
305 BMA150_ANY_MOTION_THRES_REG, thres); in bma150_set_any_motion_interrupt()
/linux-4.1.27/drivers/misc/
Dapds990x.c265 u32 thres; in apds990x_lux_to_threshold() local
295 thres = lux * cpl / 64; in apds990x_lux_to_threshold()
310 thres = (chip->rcf.cf1 * thres + chip->rcf.irf1 * ir) / in apds990x_lux_to_threshold()
313 thres = (chip->rcf.cf2 * thres + chip->rcf.irf2 * ir) / in apds990x_lux_to_threshold()
316 if (thres >= chip->a_max_result) in apds990x_lux_to_threshold()
317 thres = chip->a_max_result - 1; in apds990x_lux_to_threshold()
318 return thres; in apds990x_lux_to_threshold()
/linux-4.1.27/drivers/i2c/busses/
Di2c-xlp9xx.c121 u32 thres; in xlp9xx_i2c_update_rx_fifo_thres() local
123 thres = min(priv->msg_buf_remaining, XLP9XX_I2C_FIFO_SIZE); in xlp9xx_i2c_update_rx_fifo_thres()
125 thres << XLP9XX_I2C_MFIFOCTRL_HITH_SHIFT); in xlp9xx_i2c_update_rx_fifo_thres()
/linux-4.1.27/include/uapi/linux/
Domap3isp.h456 __u8 thres; member
493 __u8 thres; member
/linux-4.1.27/drivers/media/platform/omap3isp/
Disppreview.c209 (hmed->thres << ISPPRV_HMED_THRESHOLD_SHIFT), in preview_config_hmed()
279 cs->gain | (cs->thres << ISPPRV_CSUP_THRES_SHIFT) | in preview_config_chroma_suppression()
1328 params->csup.thres = FLR_CSUP_THRES; in preview_init_params()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_debugfs.c198 u16 thres[CIM_NUM_IBQ]; in cim_qcfg_show() local
222 t4_read_cimq_cfg(adap, base, size, thres); in cim_qcfg_show()
228 qname[i], base[i], size[i], thres[i], in cim_qcfg_show()
Dcxgb4.h1229 void t4_read_cimq_cfg(struct adapter *adap, u16 *base, u16 *size, u16 *thres);
Dt4_hw.c5445 void t4_read_cimq_cfg(struct adapter *adap, u16 *base, u16 *size, u16 *thres) in t4_read_cimq_cfg() argument
5458 *thres++ = QUEFULLTHRSH_G(v) * 8; /* 8-byte unit */ in t4_read_cimq_cfg()
Dcxgb4_main.c1348 static int closest_thres(const struct sge *s, int thres) in closest_thres() argument
1353 delta = thres - s->counter_val[i]; in closest_thres()
/linux-4.1.27/drivers/media/dvb-frontends/drx39xyj/
Ddrx_driver.h1592 u16 thres; /* carrier detetcion threshold for primary carrier (A) */ member
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4vf/
Dcxgb4vf_main.c1002 static int closest_thres(const struct sge *s, int thres) in closest_thres() argument
1007 delta = thres - s->counter_val[i]; in closest_thres()
/linux-4.1.27/arch/mips/include/asm/octeon/
Dcvmx-mio-defs.h1098 uint64_t thres:6; member
1110 uint64_t thres:6;