Lines Matching refs:spi_handle
26 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()
131 spi_handle_t *spi_handle = (spi_handle_t *)handle; in spi_sync() local
144 if (ioctl(spi_handle->fd, SPI_IOC_MESSAGE(1), &xfer) >= 0) in spi_sync()
152 spi_handle_t *spi_handle = (spi_handle_t *)handle; in spi_init() local
166 if (ioctl(spi_handle->fd, SPI_IOC_WR_MODE, &tmp8) < 0) { in spi_init()
172 if (ioctl(spi_handle->fd, SPI_IOC_WR_MAX_SPEED_HZ, &tmp32) < 0) { in spi_init()
178 if (ioctl(spi_handle->fd, SPI_IOC_WR_BITS_PER_WORD, &tmp8) < 0) { in spi_init()