Lines Matching refs:spi_ioc
36 static inline void do_spi_clk(struct rb4xx_spi *rbspi, u32 spi_ioc, int value) in do_spi_clk() argument
40 regval = spi_ioc; 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
62 regval = spi_ioc; in do_spi_clk_two()
73 static void do_spi_byte_two(struct rb4xx_spi *rbspi, u32 spi_ioc, u8 byte) in do_spi_byte_two() argument
75 do_spi_clk_two(rbspi, spi_ioc, byte >> 6); in do_spi_byte_two()
76 do_spi_clk_two(rbspi, spi_ioc, byte >> 4); in do_spi_byte_two()
77 do_spi_clk_two(rbspi, spi_ioc, byte >> 2); in do_spi_byte_two()
78 do_spi_clk_two(rbspi, spi_ioc, byte >> 0); in do_spi_byte_two()
100 u32 spi_ioc; in rb4xx_transfer_one() local
112 spi_ioc = AR71XX_SPI_IOC_CS0; in rb4xx_transfer_one()
115 spi_ioc = AR71XX_SPI_IOC_CS1; in rb4xx_transfer_one()
122 do_spi_byte_two(rbspi, spi_ioc, tx_buf[i]); in rb4xx_transfer_one()
124 do_spi_byte(rbspi, spi_ioc, tx_buf[i]); in rb4xx_transfer_one()