Searched refs:setup_fd (Results 1 – 1 of 1) sorted by relevance
1197 int setup_fd = -1; in setup_res_gpio() local1220 setup_fd = open(dir_path, O_WRONLY | O_CLOEXEC); in setup_res_gpio()1222 if (setup_fd >= 0) in setup_res_gpio()1224 if (-1 == write(setup_fd, "high\n", 5)) in setup_res_gpio()1235 if (setup_fd >= 0) in setup_res_gpio()1237 close(setup_fd); in setup_res_gpio()1286 int setup_fd = -1; in setup_int_gpio() local1316 setup_fd = open(dir_path, O_WRONLY | O_CLOEXEC); in setup_int_gpio()1318 if (setup_fd >= 0) in setup_int_gpio()1320 len = write(setup_fd, "in", 2); in setup_int_gpio()[all …]