Searched refs:sResGpioValueFd (Results 1 – 1 of 1) sorted by relevance
167 static int sResGpioValueFd = -1; variable1243 sResGpioValueFd = open(value_path, O_WRONLY | O_CLOEXEC); in setup_res_gpio()1262 return sResGpioValueFd >= 0; in setup_res_gpio()1267 if (sResGpioValueFd >= 0) in trigger_reset()1271 lseek(sResGpioValueFd, 0, SEEK_SET); in trigger_reset()1272 if (write(sResGpioValueFd, str, sizeof(str)) == -1) in trigger_reset()1282 lseek(sResGpioValueFd, 0, SEEK_SET); in trigger_reset()1283 if (write(sResGpioValueFd, str, sizeof(str)) == -1) in trigger_reset()