Home
last modified time | relevance | path

Searched refs:whoami (Results 1 – 11 of 11) sorted by relevance

/drivers/misc/lis3lv02d/
Dlis3lv02d.c178 if (lis3->whoami == WAI_12B) { in lis3lv02d_get_xyz()
276 if (lis3->whoami == WAI_8B) { in lis3lv02d_selftest()
289 if ((lis3->whoami == WAI_3DC) || (lis3->whoami == WAI_3DLH)) { in lis3lv02d_selftest()
294 if (lis3->whoami == WAI_12B) in lis3lv02d_selftest()
323 if (lis3->whoami == WAI_8B) { in lis3lv02d_selftest()
418 if (lis3->whoami == WAI_12B) in lis3lv02d_poweron()
420 else if (lis3->whoami == WAI_3DLH) in lis3lv02d_poweron()
426 if (lis3->whoami == WAI_3DLH) { in lis3lv02d_poweron()
466 if (lis3->pdata && lis3->whoami == WAI_8B && lis3->idev) in lis3lv02d_joystick_open()
704 if (lis3->whoami == WAI_12B) { in lis3lv02d_joystick_enable()
[all …]
Dlis3lv02d_i2c.c75 if (reg != lis3->whoami) in lis3_i2c_init()
83 if (lis3->whoami == WAI_3DLH) in lis3_i2c_init()
Dlis3lv02d.h276 u8 whoami; /* indicates measurement precision */ member
/drivers/iio/imu/inv_mpu6050/
Dinv_mpu_core.c140 .whoami = INV_MPU6050_WHOAMI_VALUE,
148 .whoami = INV_MPU6500_WHOAMI_VALUE,
156 .whoami = INV_MPU6515_WHOAMI_VALUE,
164 .whoami = INV_MPU6000_WHOAMI_VALUE,
172 .whoami = INV_MPU9150_WHOAMI_VALUE,
180 .whoami = INV_MPU9250_WHOAMI_VALUE,
188 .whoami = INV_MPU9255_WHOAMI_VALUE,
196 .whoami = INV_ICM20608_WHOAMI_VALUE,
204 .whoami = INV_ICM20609_WHOAMI_VALUE,
212 .whoami = INV_ICM20689_WHOAMI_VALUE,
[all …]
Dinv_mpu_iio.h142 u8 whoami; member
/drivers/iio/imu/inv_icm42600/
Dinv_icm42600_core.c47 uint8_t whoami; member
71 .whoami = INV_ICM42600_WHOAMI_ICM42600,
76 .whoami = INV_ICM42600_WHOAMI_ICM42602,
81 .whoami = INV_ICM42600_WHOAMI_ICM42605,
86 .whoami = INV_ICM42600_WHOAMI_ICM42622,
379 if (val != hw->whoami) { in inv_icm42600_setup()
381 val, hw->whoami, hw->name); in inv_icm42600_setup()
/drivers/iio/proximity/
Dsx9310.c141 unsigned int whoami; member
854 unsigned int whoami) in sx9310_set_indio_dev_name() argument
859 if (ddata != whoami) { in sx9310_set_indio_dev_name()
860 dev_err(dev, "WHOAMI does not match device data: %u\n", whoami); in sx9310_set_indio_dev_name()
864 switch (whoami) { in sx9310_set_indio_dev_name()
872 dev_err(dev, "unexpected WHOAMI response: %u\n", whoami); in sx9310_set_indio_dev_name()
923 ret = regmap_read(data->regmap, SX9310_REG_WHOAMI, &data->whoami); in sx9310_probe()
929 ret = sx9310_set_indio_dev_name(dev, indio_dev, data->whoami); in sx9310_probe()
/drivers/iio/magnetometer/
Dak8974.c488 unsigned int whoami; in ak8974_detect() local
494 ret = regmap_read(ak8974->map, AK8974_WHOAMI, &whoami); in ak8974_detect()
500 switch (whoami) { in ak8974_detect()
527 whoami); in ak8974_detect()
532 ak8974->variant = whoami; in ak8974_detect()
534 if (whoami == AK8974_WHOAMI_VALUE_AMI306) { in ak8974_detect()
/drivers/net/ethernet/chelsio/cxgb4vf/
Dt4vf_hw.c52 const u32 whoami = T4VF_PL_BASE_ADDR + PL_VF_WHOAMI; in t4vf_wait_dev_ready() local
57 val = t4_read_reg(adapter, whoami); in t4vf_wait_dev_ready()
61 val = t4_read_reg(adapter, whoami); in t4vf_wait_dev_ready()
831 u32 whoami; in t4vf_get_pf_from_vf() local
833 whoami = t4_read_reg(adapter, T4VF_PL_BASE_ADDR + PL_VF_WHOAMI_A); in t4vf_get_pf_from_vf()
835 SOURCEPF_G(whoami) : T6_SOURCEPF_G(whoami)); in t4vf_get_pf_from_vf()
/drivers/net/ethernet/chelsio/cxgb4/
Dt4_hw.c5109 u32 whoami = t4_read_reg(adapter, PL_WHOAMI_A); in t4_intr_enable() local
5111 SOURCEPF_G(whoami) : T6_SOURCEPF_G(whoami); in t4_intr_enable()
5136 u32 whoami, pf; in t4_intr_disable() local
5141 whoami = t4_read_reg(adapter, PL_WHOAMI_A); in t4_intr_disable()
5143 SOURCEPF_G(whoami) : T6_SOURCEPF_G(whoami); in t4_intr_disable()
8967 u32 whoami; in t4_wait_dev_ready() local
8969 whoami = readl(regs + PL_WHOAMI_A); in t4_wait_dev_ready()
8970 if (whoami != 0xffffffff && whoami != CIM_PF_NOACCESS) in t4_wait_dev_ready()
8974 whoami = readl(regs + PL_WHOAMI_A); in t4_wait_dev_ready()
8975 return (whoami != 0xffffffff && whoami != CIM_PF_NOACCESS ? 0 : -EIO); in t4_wait_dev_ready()
Dcxgb4_main.c6622 u32 whoami; in init_one() local
6656 whoami = t4_read_reg(adapter, PL_WHOAMI_A); in init_one()
6666 SOURCEPF_G(whoami) : T6_SOURCEPF_G(whoami); in init_one()