Lines Matching defs:comm_type
278 int (*set_mode)(struct stm32_spi *spi, unsigned int comm_type);
1631 * @comm_type: type of communication to configure
1633 static int stm32fx_spi_set_mode(struct stm32_spi *spi, unsigned int comm_type)
1635 if (comm_type == SPI_3WIRE_TX || comm_type == SPI_SIMPLEX_TX) {
1639 } else if (comm_type == SPI_FULL_DUPLEX ||
1640 comm_type == SPI_SIMPLEX_RX) {
1644 } else if (comm_type == SPI_3WIRE_RX) {
1659 * @comm_type: type of communication to configure
1661 static int stm32h7_spi_set_mode(struct stm32_spi *spi, unsigned int comm_type)
1666 if (comm_type == SPI_3WIRE_RX) {
1669 } else if (comm_type == SPI_3WIRE_TX) {
1672 } else if (comm_type == SPI_SIMPLEX_RX) {
1674 } else if (comm_type == SPI_SIMPLEX_TX) {
1750 unsigned int comm_type;
1775 comm_type = stm32_spi_communication_type(spi_dev, transfer);
1776 ret = spi->cfg->set_mode(spi, comm_type);
1780 spi->cur_comm = comm_type;