Searched refs:sw_fd (Results 1 – 3 of 3) sorted by relevance
/hardware/ti/omap4xxx/hwc/ |
D | hwc.c | 2112 int sw_fd = open("/sys/class/switch/hdmi/state", O_RDONLY); in omap4_hwc_device_open() local 2113 if (sw_fd >= 0) { in omap4_hwc_device_open() 2115 if (read(sw_fd, &value, 1) == 1) in omap4_hwc_device_open() 2117 close(sw_fd); in omap4_hwc_device_open() 2119 sw_fd = open("/sys/class/switch/dock/state", O_RDONLY); in omap4_hwc_device_open() 2120 if (sw_fd >= 0) { in omap4_hwc_device_open() 2122 if (read(sw_fd, &value, 1) == 1) in omap4_hwc_device_open() 2124 close(sw_fd); in omap4_hwc_device_open()
|
/hardware/ti/omap4-aah/hwc/ |
D | hwc.c | 2870 int sw_fd = open("/sys/class/switch/hdmi/state", O_RDONLY); in omap4_hwc_device_open() local 2871 if (sw_fd >= 0) { in omap4_hwc_device_open() 2873 if (read(sw_fd, &value, 1) == 1) in omap4_hwc_device_open() 2875 close(sw_fd); in omap4_hwc_device_open() 2877 sw_fd = open("/sys/class/switch/dock/state", O_RDONLY); in omap4_hwc_device_open() 2878 if (sw_fd >= 0) { in omap4_hwc_device_open() 2880 if (read(sw_fd, &value, 1) == 1) in omap4_hwc_device_open() 2882 close(sw_fd); in omap4_hwc_device_open()
|
/hardware/samsung_slsi/exynos5/libhwc/ |
D | hwc.cpp | 2064 int sw_fd; in exynos5_open() local 2152 sw_fd = open("/sys/class/switch/hdmi/state", O_RDONLY); in exynos5_open() 2153 if (sw_fd) { in exynos5_open() 2155 if (read(sw_fd, &val, 1) == 1 && val == '1') { in exynos5_open()
|