Home
last modified time | relevance | path

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

/hardware/bsp/intel/peripheral/libmraa/src/gpio/
Dgpio.c550 int drive = open(filepath, O_WRONLY); in mraa_gpio_mode() local
551 if (drive == -1) { in mraa_gpio_mode()
572 close(drive); in mraa_gpio_mode()
575 if (write(drive, bu, length * sizeof(char)) == -1) { in mraa_gpio_mode()
577 close(drive); in mraa_gpio_mode()
581 close(drive); in mraa_gpio_mode()
/hardware/bsp/intel/peripheral/libmraa/src/x86/
Dintel_galileo_rev_g.c164 int drive = open(filepath, O_WRONLY); in mraa_intel_galileo_gen2_gpio_mode_replace() local
165 if (drive == -1) { in mraa_intel_galileo_gen2_gpio_mode_replace()
186 close(drive); in mraa_intel_galileo_gen2_gpio_mode_replace()
190 close(drive); in mraa_intel_galileo_gen2_gpio_mode_replace()
193 if (write(drive, bu, length * sizeof(char)) == -1) { in mraa_intel_galileo_gen2_gpio_mode_replace()
195 close(drive); in mraa_intel_galileo_gen2_gpio_mode_replace()
204 close(drive); in mraa_intel_galileo_gen2_gpio_mode_replace()
210 close(drive); in mraa_intel_galileo_gen2_gpio_mode_replace()
Dintel_edison_fab_c.c545 int drive = open(filepath, O_WRONLY); in mraa_intel_edsion_mb_gpio_mode() local
547 if (drive == -1) { in mraa_intel_edsion_mb_gpio_mode()
549 drive = open(filepath, O_WRONLY); in mraa_intel_edsion_mb_gpio_mode()
552 if (drive == -1) { in mraa_intel_edsion_mb_gpio_mode()
563 close(drive); in mraa_intel_edsion_mb_gpio_mode()
576 close(drive); in mraa_intel_edsion_mb_gpio_mode()
579 if (write(drive, bu, length * sizeof(char)) == -1) { in mraa_intel_edsion_mb_gpio_mode()
582 close(drive); in mraa_intel_edsion_mb_gpio_mode()
587 if (close(drive) != 0) { in mraa_intel_edsion_mb_gpio_mode()