Lines Matching refs:stmpe
19 static int spi_reg_read(struct stmpe *stmpe, u8 reg) in spi_reg_read() argument
21 struct spi_device *spi = stmpe->client; in spi_reg_read()
27 static int spi_reg_write(struct stmpe *stmpe, u8 reg, u8 val) in spi_reg_write() argument
29 struct spi_device *spi = stmpe->client; in spi_reg_write()
35 static int spi_block_read(struct stmpe *stmpe, u8 reg, u8 length, u8 *values) in spi_block_read() argument
40 ret = spi_reg_read(stmpe, reg + i); in spi_block_read()
49 static int spi_block_write(struct stmpe *stmpe, u8 reg, u8 length, in spi_block_write() argument
55 ret = spi_reg_write(stmpe, reg, *(values + i - 1)); in spi_block_write()
63 static void spi_init(struct stmpe *stmpe) in spi_init() argument
65 struct spi_device *spi = stmpe->client; in spi_init()
70 if (stmpe->variant->id_val == 0x0811) in spi_init()
71 spi_reg_write(stmpe, STMPE811_REG_SPI_CFG, spi->mode); in spi_init()
106 struct stmpe *stmpe = spi_get_drvdata(spi); in stmpe_spi_remove() local
108 return stmpe_remove(stmpe); in stmpe_spi_remove()