Lines Matching full:step
67 * @param step Number of bytes to transfer in each packet (1 or 4)
69 static void spi_request_bytes(struct exynos_spi *regs, int count, int step) in spi_request_bytes() argument
71 debug("%s: regs=%p, count=%d, step=%d\n", __func__, regs, count, step); in spi_request_bytes()
74 if (step == 4) { in spi_request_bytes()
106 int step; in spi_rx_tx() local
117 step = 1; in spi_rx_tx()
120 step = 4; in spi_rx_tx()
126 spi_request_bytes(regs, todo, step); in spi_rx_tx()
147 else if (step == 4) in spi_rx_tx()
152 out_bytes -= step; in spi_rx_tx()
154 txp += step; in spi_rx_tx()
155 tx_lvl += step; in spi_rx_tx()
157 if (rx_lvl >= step) { in spi_rx_tx()
158 while (rx_lvl >= step) { in spi_rx_tx()
167 if (step == 4) in spi_rx_tx()
171 rxp += step; in spi_rx_tx()
173 in_bytes -= step; in spi_rx_tx()
175 toread -= step; in spi_rx_tx()
176 rx_lvl -= step; in spi_rx_tx()
189 spi_request_bytes(regs, toread, step); in spi_rx_tx()