Searched refs:lis3 (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/drivers/misc/lis3lv02d/ |
H A D | lis3lv02d.c | 129 lis3->read(lis3, reg - 1, &lo); in lis3lv02d_read_12() 130 lis3->read(lis3, reg, &hi); in lis3lv02d_read_12() 141 lis3->read(lis3, reg - 1, &lo); in lis331dlh_read_data() 142 lis3->read(lis3, reg, &hi); in lis331dlh_read_data() 257 lis3->write(lis3, CTRL_REG1, in lis3lv02d_set_odr() 300 lis3->read(lis3, ctlreg, ®); in lis3lv02d_selftest() 380 lis3->read(lis3, lis3->regs[i], &lis3->reg_cache[i]); in lis3_context_save() 389 lis3->write(lis3, lis3->regs[i], lis3->reg_cache[i]); in lis3_context_restore() 408 lis3->init(lis3); in lis3lv02d_poweron() 466 if (lis3->pdata && lis3->whoami == WAI_8B && lis3->idev) in lis3lv02d_joystick_open() [all …]
|
H A D | lis3lv02d_i2c.c | 36 lis3->regulators); in lis3_reg_ctrl() 39 lis3->regulators); in lis3_reg_ctrl() 74 lis3->read(lis3, WHO_AM_I, ®); in lis3_i2c_init() 75 if (reg != lis3->whoami) in lis3_i2c_init() 79 ret = lis3->read(lis3, CTRL_REG1, ®); in lis3_i2c_init() 88 return lis3->write(lis3, CTRL_REG1, reg); in lis3_i2c_init() 202 if (lis3->pdata && lis3->pdata->wakeup_flags) { in lis3lv02d_i2c_suspend() 218 if (lis3->pdata && lis3->pdata->wakeup_flags) { in lis3lv02d_i2c_resume() 223 lis3lv02d_poweron(lis3); in lis3lv02d_i2c_resume() 235 lis3lv02d_poweroff(lis3); in lis3_i2c_runtime_suspend() [all …]
|
H A D | lis3lv02d_spi.c | 27 struct spi_device *spi = lis3->bus_priv; in lis3_spi_read() 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() 114 if (!lis3->pdata || !lis3->pdata->wakeup_flags) in lis3lv02d_spi_suspend() 125 if (!lis3->pdata || !lis3->pdata->wakeup_flags) in lis3lv02d_spi_resume() [all …]
|
H A 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); 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); 313 void lis3lv02d_poweroff(struct lis3lv02d *lis3); 314 int lis3lv02d_poweron(struct lis3lv02d *lis3); 315 void lis3lv02d_remove_fs(struct lis3lv02d *lis3); [all …]
|
/openbmc/linux/drivers/platform/x86/hp/ |
H A 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()
|