Searched refs:rbspi (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/spi/ |
H A D | spi-rb4xx.c | 26 static inline u32 rb4xx_read(struct rb4xx_spi *rbspi, u32 reg) in rb4xx_read() argument 28 return __raw_readl(rbspi->base + reg); in rb4xx_read() 31 static inline void rb4xx_write(struct rb4xx_spi *rbspi, u32 reg, u32 value) in rb4xx_write() argument 33 __raw_writel(value, rbspi->base + reg); in rb4xx_write() 36 static inline void do_spi_clk(struct rb4xx_spi *rbspi, u32 spi_ioc, int value) in do_spi_clk() argument 44 rb4xx_write(rbspi, AR71XX_SPI_REG_IOC, regval); in do_spi_clk() 45 rb4xx_write(rbspi, AR71XX_SPI_REG_IOC, regval | AR71XX_SPI_IOC_CLK); in do_spi_clk() 48 static void do_spi_byte(struct rb4xx_spi *rbspi, u32 spi_ioc, u8 byte) in do_spi_byte() argument 53 do_spi_clk(rbspi, spi_ioc, byte >> i); in do_spi_byte() 57 static inline void do_spi_clk_two(struct rb4xx_spi *rbspi, u32 spi_ioc, in do_spi_clk_two() argument [all …]
|