Lines Matching +full:rx +full:- +full:ts +full:- +full:max
5 * as two 32-bit unsigned integers in binary format and in network byte order,
9 * Copyright (C) 2016-2017 Glider bvba
18 * # spidev_test -D /dev/spidev2.0 -p dummy-8B
21 * max speed: 500000 Hz (500 KHz)
22 * RX | 00 00 04 6D 00 09 5B BB ...
48 ret = priv->msg.status; in spi_slave_time_complete()
59 dev_info(&priv->spi->dev, "Terminating\n"); in spi_slave_time_complete()
60 complete(&priv->finished); in spi_slave_time_complete()
67 u64 ts; in spi_slave_time_submit() local
69 ts = local_clock(); in spi_slave_time_submit()
70 rem_us = do_div(ts, 1000000000) / 1000; in spi_slave_time_submit()
72 priv->buf[0] = cpu_to_be32(ts); in spi_slave_time_submit()
73 priv->buf[1] = cpu_to_be32(rem_us); in spi_slave_time_submit()
75 spi_message_init_with_transfers(&priv->msg, &priv->xfer, 1); in spi_slave_time_submit()
77 priv->msg.complete = spi_slave_time_complete; in spi_slave_time_submit()
78 priv->msg.context = priv; in spi_slave_time_submit()
80 ret = spi_async(priv->spi, &priv->msg); in spi_slave_time_submit()
82 dev_err(&priv->spi->dev, "spi_async() failed %d\n", ret); in spi_slave_time_submit()
92 priv = devm_kzalloc(&spi->dev, sizeof(*priv), GFP_KERNEL); in spi_slave_time_probe()
94 return -ENOMEM; in spi_slave_time_probe()
96 priv->spi = spi; in spi_slave_time_probe()
97 init_completion(&priv->finished); in spi_slave_time_probe()
98 priv->xfer.tx_buf = priv->buf; in spi_slave_time_probe()
99 priv->xfer.len = sizeof(priv->buf); in spi_slave_time_probe()
114 wait_for_completion(&priv->finished); in spi_slave_time_remove()
119 .name = "spi-slave-time",