Lines Matching +full:spi +full:- +full:mode

1 /* SPDX-License-Identifier: GPL-2.0 */
3 #define TRACE_SYSTEM spi
22 __entry->bus_num = controller->bus_num;
25 TP_printk("spi%d", (int)__entry->bus_num)
46 TP_PROTO(struct spi_device *spi, int status),
47 TP_ARGS(spi, status),
52 __field(unsigned long, mode)
59 __entry->bus_num = spi->controller->bus_num;
60 __entry->chip_select = spi_get_chipselect(spi, 0);
61 __entry->mode = spi->mode;
62 __entry->bits_per_word = spi->bits_per_word;
63 __entry->max_speed_hz = spi->max_speed_hz;
64 __entry->status = status;
67 TP_printk("spi%d.%d setup mode %lu, %s%s%s%s%u bits/w, %u Hz max --> %d",
68 __entry->bus_num, __entry->chip_select,
69 (__entry->mode & SPI_MODE_X_MASK),
70 (__entry->mode & SPI_CS_HIGH) ? "cs_high, " : "",
71 (__entry->mode & SPI_LSB_FIRST) ? "lsb, " : "",
72 (__entry->mode & SPI_3WIRE) ? "3wire, " : "",
73 (__entry->mode & SPI_LOOP) ? "loopback, " : "",
74 __entry->bits_per_word, __entry->max_speed_hz,
75 __entry->status)
79 TP_PROTO(struct spi_device *spi, bool enable),
80 TP_ARGS(spi, enable),
85 __field(unsigned long, mode)
90 __entry->bus_num = spi->controller->bus_num;
91 __entry->chip_select = spi_get_chipselect(spi, 0);
92 __entry->mode = spi->mode;
93 __entry->enable = enable;
96 TP_printk("spi%d.%d %s%s",
97 __entry->bus_num, __entry->chip_select,
98 __entry->enable ? "activate" : "deactivate",
99 (__entry->mode & SPI_CS_HIGH) ? ", cs_high" : "")
115 __entry->bus_num = msg->spi->controller->bus_num;
116 __entry->chip_select = spi_get_chipselect(msg->spi, 0);
117 __entry->msg = msg;
120 TP_printk("spi%d.%d %p", (int)__entry->bus_num,
121 (int)__entry->chip_select,
122 (struct spi_message *)__entry->msg)
156 __entry->bus_num = msg->spi->controller->bus_num;
157 __entry->chip_select = spi_get_chipselect(msg->spi, 0);
158 __entry->msg = msg;
159 __entry->frame = msg->frame_length;
160 __entry->actual = msg->actual_length;
163 TP_printk("spi%d.%d %p len=%u/%u", (int)__entry->bus_num,
164 (int)__entry->chip_select,
165 (struct spi_message *)__entry->msg,
166 (unsigned)__entry->actual, (unsigned)__entry->frame)
170 * Consider a buffer valid if non-NULL and if it doesn't match the dummy buffer
175 (xfer->tx_buf && xfer->tx_buf != msg->spi->controller->dummy_tx)
177 (xfer->rx_buf && xfer->rx_buf != msg->spi->controller->dummy_rx)
192 (xfer->len < 64 ? xfer->len : 64) : 0)
195 (xfer->len < 64 ? xfer->len : 64) : 0)
199 __entry->bus_num = msg->spi->controller->bus_num;
200 __entry->chip_select = spi_get_chipselect(msg->spi, 0);
201 __entry->xfer = xfer;
202 __entry->len = xfer->len;
206 xfer->tx_buf, __get_dynamic_array_len(tx_buf));
210 xfer->rx_buf, __get_dynamic_array_len(rx_buf));
213 TP_printk("spi%d.%d %p len=%d tx=[%*phD] rx=[%*phD]",
214 __entry->bus_num, __entry->chip_select,
215 __entry->xfer, __entry->len,