Home
last modified time | relevance | path

Searched refs:devfd (Results 1 – 4 of 4) sorted by relevance

/hardware/bsp/intel/peripheral/libmraa/src/spi/
Dspi.c138 dev->devfd = open(path, O_RDWR); in mraa_spi_init_raw()
139 if (dev->devfd < 0) { in mraa_spi_init_raw()
146 if ((ioctl(dev->devfd, SPI_IOC_RD_MAX_SPEED_HZ, &speed) != -1) && (speed < 4000000)) { in mraa_spi_init_raw()
192 if (ioctl(dev->devfd, SPI_IOC_WR_MODE, &spi_mode) < 0) { in mraa_spi_mode()
206 if (ioctl(dev->devfd, SPI_IOC_RD_MAX_SPEED_HZ, &speed) != -1) { in mraa_spi_frequency()
223 if (ioctl(dev->devfd, SPI_IOC_WR_LSB_FIRST, &lsb_mode) < 0) { in mraa_spi_lsbmode()
227 if (ioctl(dev->devfd, SPI_IOC_RD_LSB_FIRST, &lsb_mode) < 0) { in mraa_spi_lsbmode()
238 if (ioctl(dev->devfd, SPI_IOC_WR_BITS_PER_WORD, &bits) < 0) { in mraa_spi_bit_per_word()
261 if (ioctl(dev->devfd, SPI_IOC_MESSAGE(1), &msg) < 0) { in mraa_spi_write()
283 if (ioctl(dev->devfd, SPI_IOC_MESSAGE(1), &msg) < 0) { in mraa_spi_write_word()
[all …]
/hardware/bsp/intel/peripheral/libmraa/include/
Dmraa_internal_types.h85 int devfd; /**< File descriptor to SPI Device */ member
/hardware/bsp/intel/peripheral/libmraa/src/x86/
Dintel_galileo_rev_d.c127 if (ioctl(dev->devfd, SPI_IOC_WR_LSB_FIRST, &lsb_mode) < 0) { in mraa_intel_galileo_g1_spi_lsbmode_replace()
131 if (ioctl(dev->devfd, SPI_IOC_RD_LSB_FIRST, &lsb_mode) < 0) { in mraa_intel_galileo_g1_spi_lsbmode_replace()
Dintel_edison_fab_c.c85 if (ioctl(dev->devfd, SPI_IOC_WR_LSB_FIRST, &lsb_mode) < 0) { in mraa_intel_edison_spi_lsbmode_replace()
89 if (ioctl(dev->devfd, SPI_IOC_RD_LSB_FIRST, &lsb_mode) < 0) { in mraa_intel_edison_spi_lsbmode_replace()