Searched refs:setup_fd (Results 1 – 1 of 1) sorted by relevance
1209 int setup_fd = -1; in setup_res_gpio() local1232 setup_fd = open(dir_path, O_WRONLY | O_CLOEXEC); in setup_res_gpio()1234 if (setup_fd >= 0) in setup_res_gpio()1236 if (-1 == write(setup_fd, "high\n", 5)) in setup_res_gpio()1247 if (setup_fd >= 0) in setup_res_gpio()1249 close(setup_fd); in setup_res_gpio()1298 int setup_fd = -1; in setup_int_gpio() local1328 setup_fd = open(dir_path, O_WRONLY | O_CLOEXEC); in setup_int_gpio()1330 if (setup_fd >= 0) in setup_int_gpio()1332 len = write(setup_fd, "in", 2); in setup_int_gpio()[all …]