Home
last modified time | relevance | path

Searched refs:val0 (Results 1 – 10 of 10) sorted by relevance

/drivers/iio/common/hid-sensors/
Dhid-sensor-attributes.c318 static void adjust_exponent_nano(int *val0, int *val1, int scale0, in adjust_exponent_nano() argument
327 *val0 = scale0 * pow_10(exp); in adjust_exponent_nano()
338 *val0 += res; in adjust_exponent_nano()
343 *val0 = *val1 = 0; in adjust_exponent_nano()
346 *val0 = scale0 / pow_10(exp); in adjust_exponent_nano()
356 *val0 = scale0; in adjust_exponent_nano()
363 int *val0, int *val1) in hid_sensor_format_scale() argument
368 *val0 = 1; in hid_sensor_format_scale()
376 adjust_exponent_nano(val0, val1, in hid_sensor_format_scale()
491 int val0, val1; in hid_sensor_parse_common_attributes() local
[all …]
/drivers/thunderbolt/
Dicm.c776 u32 val0, val1; in icm_reset_phy_port() local
794 ret = pcie2cio_read(icm, TB_CFG_PORT, port0, PHY_PORT_CS1, &val0); in icm_reset_phy_port()
801 state0 = val0 & PHY_PORT_CS1_LINK_STATE_MASK; in icm_reset_phy_port()
810 val0 |= PHY_PORT_CS1_LINK_DISABLE; in icm_reset_phy_port()
811 ret = pcie2cio_write(icm, TB_CFG_PORT, port0, PHY_PORT_CS1, val0); in icm_reset_phy_port()
823 ret = pcie2cio_read(icm, TB_CFG_PORT, port0, PHY_PORT_CS1, &val0); in icm_reset_phy_port()
830 val0 &= ~PHY_PORT_CS1_LINK_DISABLE; in icm_reset_phy_port()
831 ret = pcie2cio_write(icm, TB_CFG_PORT, port0, PHY_PORT_CS1, val0); in icm_reset_phy_port()
/drivers/net/ethernet/chelsio/cxgb/
Dpm3393.c429 t1_tpi_read((mac)->adapter, OFFSET(name), &val0); \
432 (mac)->stats.stat_name = (u64)(val0 & 0xffff) | \
446 u32 val0, val1, val2, val3; in pm3393_update_statistics() local
453 pmread(mac, SUNI1x10GEXP_REG_MSTAT_COUNTER_ROLLOVER_0, &val0); in pm3393_update_statistics()
457 ro = ((u64)val0 & 0xffff) | (((u64)val1 & 0xffff) << 16) | in pm3393_update_statistics()
/drivers/misc/sgi-gru/
Dgrulib.h97 int val0; member
Dgrufault.c883 if (req.val0 < -1 || req.val0 >= GRU_CHIPLETS_PER_HUB || in gru_set_context_option()
889 gts->ts_user_chiplet_id = req.val0; in gru_set_context_option()
/drivers/media/usb/gspca/
Dov519.c2916 unsigned char val0, val1; in ov51x_upload_quan_tables() local
2932 val0 = *pYTable++; in ov51x_upload_quan_tables()
2934 val0 &= 0x0f; in ov51x_upload_quan_tables()
2936 val0 |= val1 << 4; in ov51x_upload_quan_tables()
2937 reg_w(sd, reg, val0); in ov51x_upload_quan_tables()
2939 val0 = *pUVTable++; in ov51x_upload_quan_tables()
2941 val0 &= 0x0f; in ov51x_upload_quan_tables()
2943 val0 |= val1 << 4; in ov51x_upload_quan_tables()
2944 reg_w(sd, reg + size, val0); in ov51x_upload_quan_tables()
/drivers/gpu/drm/mga/
Dmga_drv.h323 #define DMA_BLOCK(reg0, val0, reg1, val1, reg2, val2, reg3, val3) \ argument
329 DMA_WRITE(1, val0); \
/drivers/clk/nxp/
Dclk-lpc32xx.c377 static inline bool pll_is_valid(u64 val0, u64 val1, u64 min, u64 max) in pll_is_valid() argument
379 return (val0 >= (val1 * min) && val0 <= (val1 * max)); in pll_is_valid()
/drivers/infiniband/hw/qib/
Dqib_sd7220.c1006 #define RXEQ_VAL(elt, adr, val0, val1, val2, val3) \ argument
1007 {RXEQ_INIT_RDESC((elt), (adr)), {(val0), (val1), (val2), (val3)} }
/drivers/staging/media/atomisp/i2c/
Dmt9m114.h236 u32 val0; member