Home
last modified time | relevance | path

Searched refs:fsl_lpspi (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/spi/
H A Dspi-fsl-lpspi.c121 void (*tx)(struct fsl_lpspi_data *fsl_lpspi);
122 void (*rx)(struct fsl_lpspi_data *fsl_lpspi);
168 static void fsl_lpspi_buf_rx_##type(struct fsl_lpspi_data *fsl_lpspi) \
170 unsigned int val = readl(fsl_lpspi->base + IMX7ULP_RDR); \
172 if (fsl_lpspi->rx_buf) { \
173 *(type *)fsl_lpspi->rx_buf = val; \
174 fsl_lpspi->rx_buf += sizeof(type); \
179 static void fsl_lpspi_buf_tx_##type(struct fsl_lpspi_data *fsl_lpspi) \
183 if (fsl_lpspi->tx_buf) { \
184 val = *(type *)fsl_lpspi->tx_buf; \
[all …]