Lines Matching refs:loongson_spi_read_reg
24 static inline char loongson_spi_read_reg(struct loongson_spi *spi, unsigned char reg) in loongson_spi_read_reg() function
36 cs = loongson_spi_read_reg(loongson_spi, LOONGSON_SPI_SFCS_REG) & ~mask; in loongson_spi_set_cs()
50 val = loongson_spi_read_reg(loongson_spi, LOONGSON_SPI_SPCR_REG); in loongson_spi_set_clk()
54 val = loongson_spi_read_reg(loongson_spi, LOONGSON_SPI_SPER_REG); in loongson_spi_set_clk()
66 val = loongson_spi_read_reg(loongson_spi, LOONGSON_SPI_SPCR_REG); in loongson_spi_set_mode()
123 *(*rx_buf)++ = loongson_spi_read_reg(loongson_spi, LOONGSON_SPI_FIFO_REG); in loongson_spi_write_read_8bit()
125 loongson_spi_read_reg(loongson_spi, LOONGSON_SPI_FIFO_REG); in loongson_spi_write_read_8bit()
151 loongson_spi->para = loongson_spi_read_reg(loongson_spi, LOONGSON_SPI_PARA_REG); in loongson_spi_prepare_message()
183 val = loongson_spi_read_reg(loongson_spi_dev, LOONGSON_SPI_SPCR_REG); in loongson_spi_reginit()
190 val = loongson_spi_read_reg(loongson_spi_dev, LOONGSON_SPI_SPCR_REG); in loongson_spi_reginit()
242 loongson_spi->spcr = loongson_spi_read_reg(loongson_spi, LOONGSON_SPI_SPCR_REG); in loongson_spi_suspend()
243 loongson_spi->sper = loongson_spi_read_reg(loongson_spi, LOONGSON_SPI_SPER_REG); in loongson_spi_suspend()
244 loongson_spi->spsr = loongson_spi_read_reg(loongson_spi, LOONGSON_SPI_SPSR_REG); in loongson_spi_suspend()
245 loongson_spi->para = loongson_spi_read_reg(loongson_spi, LOONGSON_SPI_PARA_REG); in loongson_spi_suspend()
246 loongson_spi->sfcs = loongson_spi_read_reg(loongson_spi, LOONGSON_SPI_SFCS_REG); in loongson_spi_suspend()
247 loongson_spi->timi = loongson_spi_read_reg(loongson_spi, LOONGSON_SPI_TIMI_REG); in loongson_spi_suspend()