Home
last modified time | relevance | path

Searched refs:lis3 (Results 1 – 5 of 5) sorted by relevance

/linux-6.3-rc2/drivers/misc/lis3lv02d/
A Dlis3lv02d.c129 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, &reg); 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 …]
A Dlis3lv02d_i2c.c36 lis3->regulators); in lis3_reg_ctrl()
39 lis3->regulators); in lis3_reg_ctrl()
74 lis3->read(lis3, WHO_AM_I, &reg); in lis3_i2c_init()
75 if (reg != lis3->whoami) in lis3_i2c_init()
79 ret = lis3->read(lis3, CTRL_REG1, &reg); in lis3_i2c_init()
88 return lis3->write(lis3, CTRL_REG1, reg); in lis3_i2c_init()
200 if (!lis3->pdata || !lis3->pdata->wakeup_flags) in lis3lv02d_i2c_suspend()
215 if (!lis3->pdata || !lis3->pdata->wakeup_flags || in lis3lv02d_i2c_resume()
217 lis3lv02d_poweron(lis3); in lis3lv02d_i2c_resume()
229 lis3lv02d_poweroff(lis3); in lis3_i2c_runtime_suspend()
[all …]
A Dlis3lv02d_spi.c27 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, &reg); 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 …]
A Dlis3lv02d.h263 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 …]
/linux-6.3-rc2/drivers/platform/x86/hp/
A Dhp_accel.c84 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()

Completed in 15 milliseconds