Searched defs:device_path (Results 1 - 6 of 6) sorted by relevance

/external/webrtc/talk/media/devices/
H A Dv4llookup.cc53 bool V4LLookup::CheckIsV4L2Device(const std::string& device_path) { argument
57 if (lstat(device_path.c_str(), &s) != 0 || !S_ISCHR(s.st_mode)) return false;
66 video_fd = ::open(device_path.c_str(), O_RDONLY | O_NONBLOCK);
74 LOG(LS_INFO) << "Found V4L2 capture device " << device_path;
78 LOG_ERRNO(LS_ERROR) << "VIDIOC_QUERYCAP failed for " << device_path;
81 LOG_ERRNO(LS_ERROR) << "Failed to open " << device_path;
H A Dv4llookup.h46 static bool IsV4L2Device(const std::string& device_path) { argument
47 return GetV4LLookup()->CheckIsV4L2Device(device_path);
64 virtual bool CheckIsV4L2Device(const std::string& device_path);
H A Dlinuxdevicemanager.cc268 std::string device_path = "/dev/" + filename; local
270 if (V4LLookup::IsV4L2Device(device_path)) {
272 Device(GetVideoDeviceName(meta, filename), device_path));
/external/vboot_reference/cgpt/
H A Dcgpt_wrapper.c41 // Check if |device_path| is an MTD device based on its major number being 90.
42 static bool is_mtd(const char *device_path) { argument
44 if (lstat(device_path, &stat) != 0) {
/external/vboot_reference/firmware/stub/
H A Dtpm_lite_stub.c154 char* device_path; local
161 device_path = getenv("TPM_DEVICE_PATH");
162 if (device_path == NULL) {
163 device_path = TPM_DEVICE_PATH;
169 tpm_fd = open(device_path, O_RDWR);
176 VBDEBUG(("TPM: retrying %s: %s\n", device_path, strerror(errno)));
184 device_path, strerror(saved_errno));
/external/kernel-headers/original/uapi/linux/
H A Dedd.h167 } device_path; member in struct:edd_device_params

Completed in 239 milliseconds