Searched refs:lis3 (Results 1 – 5 of 5) sorted by relevance
/drivers/misc/lis3lv02d/ |
D | lis3lv02d.c | 116 static s16 lis3lv02d_read_8(struct lis3lv02d *lis3, int reg) in lis3lv02d_read_8() argument 119 if (lis3->read(lis3, reg, &lo) < 0) in lis3lv02d_read_8() 125 static s16 lis3lv02d_read_12(struct lis3lv02d *lis3, int reg) in lis3lv02d_read_12() argument 129 lis3->read(lis3, reg - 1, &lo); in lis3lv02d_read_12() 130 lis3->read(lis3, reg, &hi); in lis3lv02d_read_12() 136 static s16 lis331dlh_read_data(struct lis3lv02d *lis3, int reg) in lis331dlh_read_data() argument 141 lis3->read(lis3, reg - 1, &lo); in lis331dlh_read_data() 142 lis3->read(lis3, reg, &hi); in lis331dlh_read_data() 145 return (s16) v >> lis3->shift_adj; in lis331dlh_read_data() 172 static void lis3lv02d_get_xyz(struct lis3lv02d *lis3, int *x, int *y, int *z) in lis3lv02d_get_xyz() argument [all …]
|
D | lis3lv02d_i2c.c | 31 static int lis3_reg_ctrl(struct lis3lv02d *lis3, bool state) in lis3_reg_ctrl() argument 35 ret = regulator_bulk_disable(ARRAY_SIZE(lis3->regulators), in lis3_reg_ctrl() 36 lis3->regulators); in lis3_reg_ctrl() 38 ret = regulator_bulk_enable(ARRAY_SIZE(lis3->regulators), in lis3_reg_ctrl() 39 lis3->regulators); in lis3_reg_ctrl() 46 static inline s32 lis3_i2c_write(struct lis3lv02d *lis3, int reg, u8 value) in lis3_i2c_write() argument 48 struct i2c_client *c = lis3->bus_priv; in lis3_i2c_write() 52 static inline s32 lis3_i2c_read(struct lis3lv02d *lis3, int reg, u8 *v) in lis3_i2c_read() argument 54 struct i2c_client *c = lis3->bus_priv; in lis3_i2c_read() 59 static inline s32 lis3_i2c_blockread(struct lis3lv02d *lis3, int reg, int len, in lis3_i2c_blockread() argument [all …]
|
D | lis3lv02d_spi.c | 25 static int lis3_spi_read(struct lis3lv02d *lis3, int reg, u8 *v) in lis3_spi_read() argument 27 struct spi_device *spi = lis3->bus_priv; in lis3_spi_read() 36 static int lis3_spi_write(struct lis3lv02d *lis3, int reg, u8 val) in lis3_spi_write() argument 39 struct spi_device *spi = lis3->bus_priv; in lis3_spi_write() 43 static int lis3_spi_init(struct lis3lv02d *lis3) in lis3_spi_init() argument 49 ret = lis3->read(lis3, CTRL_REG1, ®); in lis3_spi_init() 54 return lis3->write(lis3, CTRL_REG1, reg); in lis3_spi_init() 101 struct lis3lv02d *lis3 = spi_get_drvdata(spi); in lis302dl_spi_remove() local 102 lis3lv02d_joystick_disable(lis3); in lis302dl_spi_remove() 103 lis3lv02d_poweroff(lis3); in lis302dl_spi_remove() [all …]
|
D | lis3lv02d.h | 263 int (*init) (struct lis3lv02d *lis3); 264 int (*write) (struct lis3lv02d *lis3, int reg, u8 val); 265 int (*read) (struct lis3lv02d *lis3, int reg, u8 *ret); 266 int (*blkread) (struct lis3lv02d *lis3, int reg, int len, u8 *ret); 267 int (*reg_ctrl) (struct lis3lv02d *lis3, bool state); 276 s16 (*read_data) (struct lis3lv02d *lis3, int reg); 310 int lis3lv02d_init_device(struct lis3lv02d *lis3); 311 int lis3lv02d_joystick_enable(struct lis3lv02d *lis3); 312 void lis3lv02d_joystick_disable(struct lis3lv02d *lis3); 313 void lis3lv02d_poweroff(struct lis3lv02d *lis3); [all …]
|
/drivers/platform/x86/hp/ |
D | hp_accel.c | 84 static int lis3lv02d_acpi_init(struct lis3lv02d *lis3) in lis3lv02d_acpi_init() argument 97 static int lis3lv02d_acpi_read(struct lis3lv02d *lis3, int reg, u8 *ret) in lis3lv02d_acpi_read() argument 99 struct acpi_device *dev = lis3->bus_priv; in lis3lv02d_acpi_read() 122 static int lis3lv02d_acpi_write(struct lis3lv02d *lis3, int reg, u8 val) in lis3lv02d_acpi_write() argument 124 struct acpi_device *dev = lis3->bus_priv; in lis3lv02d_acpi_write()
|