Home
last modified time | relevance | path

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

/device/google/contexthub/util/stm32_flash/
Dspi.c26 spi_handle_t *spi_handle = (spi_handle_t *)handle; in spi_write_data() local
37 if (ioctl(spi_handle->fd, SPI_IOC_MESSAGE(1), &xfer) >= 0) in spi_write_data()
45 spi_handle_t *spi_handle = (spi_handle_t *)handle; in spi_write_cmd() local
60 if (ioctl(spi_handle->fd, SPI_IOC_MESSAGE(1), &xfer) >= 0) in spi_write_cmd()
68 spi_handle_t *spi_handle = (spi_handle_t *)handle; in spi_read_data() local
88 if (ioctl(spi_handle->fd, SPI_IOC_MESSAGE(2), xfer) >= 0) in spi_read_data()
96 spi_handle_t *spi_handle = (spi_handle_t *)handle; in spi_read_ack() local
111 if (ioctl(spi_handle->fd, SPI_IOC_MESSAGE(1), &xfer) >= 0) { in spi_read_ack()
113 ioctl(spi_handle->fd, SPI_IOC_MESSAGE(1), &xfer); in spi_read_ack()
121 ioctl(spi_handle->fd, SPI_IOC_MESSAGE(1), &xfer); in spi_read_ack()
[all …]
Dflash.c67 spi_handle_t spi_handle; in main() local
162 handle = &spi_handle.handle; in main()
163 spi_handle.fd = fd; in main()
Dspi.h22 typedef struct spi_handle struct