Lines Matching refs:stmpe
20 static int spi_reg_read(struct stmpe *stmpe, u8 reg) in spi_reg_read() argument
22 struct spi_device *spi = stmpe->client; in spi_reg_read()
28 static int spi_reg_write(struct stmpe *stmpe, u8 reg, u8 val) in spi_reg_write() argument
30 struct spi_device *spi = stmpe->client; in spi_reg_write()
36 static int spi_block_read(struct stmpe *stmpe, u8 reg, u8 length, u8 *values) in spi_block_read() argument
41 ret = spi_reg_read(stmpe, reg + i); in spi_block_read()
50 static int spi_block_write(struct stmpe *stmpe, u8 reg, u8 length, in spi_block_write() argument
56 ret = spi_reg_write(stmpe, reg, *(values + i - 1)); in spi_block_write()
64 static void spi_init(struct stmpe *stmpe) in spi_init() argument
66 struct spi_device *spi = stmpe->client; in spi_init()
71 if (stmpe->variant->id_val == 0x0811) in spi_init()
72 spi_reg_write(stmpe, STMPE811_REG_SPI_CFG, spi->mode); in spi_init()
107 struct stmpe *stmpe = spi_get_drvdata(spi); in stmpe_spi_remove() local
109 stmpe_remove(stmpe); in stmpe_spi_remove()