Searched refs:sw_fd (Results 1 - 3 of 3) sorted by relevance

/hardware/ti/omap4xxx/hwc/
H A Dhwc.c2112 int sw_fd = open("/sys/class/switch/hdmi/state", O_RDONLY); local
2113 if (sw_fd >= 0) {
2115 if (read(sw_fd, &value, 1) == 1)
2117 close(sw_fd);
2119 sw_fd = open("/sys/class/switch/dock/state", O_RDONLY);
2120 if (sw_fd >= 0) {
2122 if (read(sw_fd, &value, 1) == 1)
2124 close(sw_fd);
/hardware/ti/omap4-aah/hwc/
H A Dhwc.c2870 int sw_fd = open("/sys/class/switch/hdmi/state", O_RDONLY); local
2871 if (sw_fd >= 0) {
2873 if (read(sw_fd, &value, 1) == 1)
2875 close(sw_fd);
2877 sw_fd = open("/sys/class/switch/dock/state", O_RDONLY);
2878 if (sw_fd >= 0) {
2880 if (read(sw_fd, &value, 1) == 1)
2882 close(sw_fd);
/hardware/samsung_slsi/exynos5/libhwc/
H A Dhwc.cpp2064 int sw_fd; local
2152 sw_fd = open("/sys/class/switch/hdmi/state", O_RDONLY);
2153 if (sw_fd) {
2155 if (read(sw_fd, &val, 1) == 1 && val == '1') {

Completed in 758 milliseconds