/external/llvm-project/lldb/tools/debugserver/source/ |
D | RNBSocket.cpp | 172 m_fd = ::accept(sock_fd, &accept_addr.sockaddr(), &sa_len); in Listen() 174 if (m_fd == -1) { in Listen() 185 ::close(m_fd); in Listen() 186 m_fd = -1; in Listen() 211 SetSocketOption(m_fd, IPPROTO_TCP, TCP_NODELAY, 1); in Listen() 224 m_fd = ::socket(address.GetFamily(), SOCK_STREAM, IPPROTO_TCP); in Connect() 225 if (m_fd == -1) in Connect() 229 SetSocketOption(m_fd, SOL_SOCKET, SO_REUSEADDR, 1); in Connect() 233 if (-1 == ::connect(m_fd, &address.sockaddr(), address.GetLength())) { in Connect() 237 SetSocketOption(m_fd, IPPROTO_TCP, TCP_NODELAY, 1); in Connect() [all …]
|
D | TTYState.cpp | 19 : m_fd(-1), m_tflags(-1), m_ttystateErr(-1), m_processGroup(-1) {} in TTYState() 25 m_fd = fd; in GetTTYState() 33 m_fd = -1; in GetTTYState() 45 result = fcntl(m_fd, F_SETFL, m_tflags); in SetTTYState() 48 result = tcsetattr(m_fd, TCSANOW, &m_ttystate); in SetTTYState() 55 result = tcsetpgrp(m_fd, m_processGroup); in SetTTYState()
|
D | RNBSocket.h | 31 : m_fd(-1), in RNBSocket() 54 bool IsConnected() const { return m_fd != -1; } in IsConnected() 67 int m_fd; // Socket we use to communicate once conn established variable
|
D | TTYState.h | 30 bool FileDescriptorValid() const { return m_fd >= 0; } in FileDescriptorValid() 36 int m_fd; // File descriptor
|
/external/llvm-project/lldb/source/Host/common/ |
D | FileAction.cpp | 20 : m_action(eFileActionNone), m_fd(-1), m_arg(-1), m_file_spec() {} in FileAction() 24 m_fd = -1; in Clear() 37 m_fd = fd; in Open() 56 m_fd = fd; in Close() 58 return m_fd >= 0; in Close() 65 m_fd = fd; in Duplicate() 68 return m_fd >= 0; in Duplicate() 75 stream.Printf("close fd %d", m_fd); in Dump() 78 stream.Printf("duplicate fd %d to %d", m_fd, m_arg); in Dump() 84 stream.Printf("open fd %d with '%s', OFLAGS = 0x%x", m_fd, in Dump()
|
D | Terminal.cpp | 24 bool Terminal::IsATerminal() const { return m_fd >= 0 && ::isatty(m_fd); } in IsATerminal() 31 if (::tcgetattr(m_fd, &fd_termios) == 0) { in SetEcho() 47 return ::tcsetattr(m_fd, TCSANOW, &fd_termios) == 0; in SetEcho() 60 if (::tcgetattr(m_fd, &fd_termios) == 0) { in SetCanonical() 76 return ::tcsetattr(m_fd, TCSANOW, &fd_termios) == 0; in SetCanonical()
|
D | LockFileBase.cpp | 22 : m_fd(fd), m_locked(false), m_start(0), m_len(0) {} in LockFileBase() 63 bool LockFileBase::IsValidFile() const { return m_fd != -1; } in IsValidFile()
|
/external/libkmsxx/kms++/src/ |
D | card.cpp | 126 m_fd = open_device_by_path(dev_path); in Card() 129 m_fd = open_device_by_path(dev); in Card() 149 m_fd = open_device_by_driver(name, num); in Card() 151 m_fd = open_first_kms_device(); in Card() 159 m_fd = open_device_by_driver(driver, idx); in Card() 167 m_fd = fd; in Card() 169 m_fd = fcntl(fd, F_DUPFD_CLOEXEC, 0); in Card() 171 if (m_fd < 0) in Card() 180 drmVersionPtr ver = drmGetVersion(m_fd); in setup() 192 r = fstat(m_fd, &stats); in setup() [all …]
|
/external/llvm-project/lldb/include/lldb/Host/ |
D | Terminal.h | 22 Terminal(int fd = -1) : m_fd(fd) {} in m_fd() function 28 int GetFileDescriptor() const { return m_fd; } in GetFileDescriptor() 30 void SetFileDescriptor(int fd) { m_fd = fd; } in SetFileDescriptor() 32 bool FileDescriptorIsValid() const { return m_fd != -1; } in FileDescriptorIsValid() 34 void Clear() { m_fd = -1; } in Clear() 41 int m_fd; // This may or may not be a terminal file descriptor
|
D | FileAction.h | 36 int GetFD() const { return m_fd; } in GetFD() 50 int m_fd; // An existing file descriptor variable
|
D | LockFileBase.h | 49 int m_fd; // not owned. variable
|
/external/libkmsxx/kms++util/src/ |
D | videodevice.cpp | 246 : m_fd(fd), m_has_capture(false), m_has_output(false), m_has_m2m(false) in VideoDevice() 290 ::close(m_fd); in ~VideoDevice() 299 m_capture_streamer = std::unique_ptr<VideoStreamer>(new VideoStreamer(m_fd, type)); in get_capture_streamer() 311 m_output_streamer = std::unique_ptr<VideoStreamer>(new VideoStreamer(m_fd, type)); in get_output_streamer() 324 int r = ioctl(m_fd, VIDIOC_ENUM_FRAMESIZES, &v4lfrms); in get_discrete_frame_sizes() 329 while (ioctl(m_fd, VIDIOC_ENUM_FRAMESIZES, &v4lfrms) == 0) { in get_discrete_frame_sizes() 342 int r = ioctl(m_fd, VIDIOC_ENUM_FRAMESIZES, &v4lfrms); in get_frame_sizes() 407 : m_fd(fd), m_type(type) in VideoStreamer() 421 while (ioctl(m_fd, VIDIOC_ENUMINPUT, &input) == 0) { in get_ports() 434 while (ioctl(m_fd, VIDIOC_ENUMOUTPUT, &output) == 0) { in get_ports() [all …]
|
/external/llvm-project/lldb/source/Host/posix/ |
D | LockFilePosix.cpp | 45 return fileLock(m_fd, F_SETLKW, F_WRLCK, start, len); in DoWriteLock() 49 return fileLock(m_fd, F_SETLK, F_WRLCK, start, len); in DoTryWriteLock() 53 return fileLock(m_fd, F_SETLKW, F_RDLCK, start, len); in DoReadLock() 57 return fileLock(m_fd, F_SETLK, F_RDLCK, start, len); in DoTryReadLock() 61 return fileLock(m_fd, F_SETLK, F_UNLCK, m_start, m_len); in DoUnlock()
|
/external/llvm-project/lldb/tools/lldb-vscode/ |
D | IOStream.cpp | 42 ::close(m_fd); in ~StreamDescriptor() 52 m_fd = other.m_fd; in operator =() 67 sd.m_fd = fd; in from_file() 78 bytes_written = ::write(descriptor.m_fd, str.data(), str.size()); in write_full() 102 bytes_read = ::read(descriptor.m_fd, ptr, length); in read_full()
|
D | IOStream.h | 47 int m_fd; member
|
/external/libkmsxx/utils/ |
D | kmscapture.cpp | 37 int fd() const { return m_fd; } in fd() 42 int m_fd; /* camera file descriptor */ member in CameraPipeline 75 r = buffer_export(m_fd, V4L2_BUF_TYPE_VIDEO_CAPTURE, i, &dmafd); in GetDmabufFrameBuffer() 103 : m_fd(cam_fd), m_crtc(crtc), m_buffer_provider(buffer_provider), m_prev_fb_index(-1) in CameraPipeline() 111 while (ioctl(m_fd, VIDIOC_ENUM_FRAMESIZES, &v4lfrms) == 0) { in CameraPipeline() 142 r = ioctl(m_fd, VIDIOC_G_FMT, &v4lfmt); in CameraPipeline() 149 r = ioctl(m_fd, VIDIOC_S_FMT, &v4lfmt); in CameraPipeline() 163 r = ioctl(m_fd, VIDIOC_REQBUFS, &v4lreqbuf); in CameraPipeline() 183 r = ioctl(m_fd, VIDIOC_QBUF, &v4lbuf); in CameraPipeline() 219 ::close(m_fd); in ~CameraPipeline() [all …]
|
/external/rmi4utils/rmidevice/ |
D | hiddevice.cpp | 78 m_fd = open(filename, O_RDWR); in Open() 79 if (m_fd < 0) in Open() 85 rc = ioctl(m_fd, HIDIOCGRDESCSIZE, &desc_size); in Open() 90 rc = ioctl(m_fd, HIDIOCGRDESC, &m_rptDesc); in Open() 94 rc = ioctl(m_fd, HIDIOCGRAWINFO, &m_info); in Open() 263 count = write(m_fd, m_outputReport + bytesWritten, in Read() 316 count = write(m_fd, m_outputReport, m_outputReportSize); in Write() 337 rc = ioctl(m_fd, HIDIOCSFEATURE(2), buf); in SetMode() 353 close(m_fd); in Close() 354 m_fd = -1; in Close() [all …]
|
D | hiddevice.h | 52 int m_fd;
|
/external/libkmsxx/kms++util/inc/kms++util/ |
D | videodevice.h | 30 int fd() const { return m_fd; } in fd() 39 int m_fd; 82 int fd() const { return m_fd; } in fd() 85 int m_fd;
|
/external/deqp/external/vulkancts/modules/vulkan/util/ |
D | vktExternalMemoryUtil.cpp | 59 : m_fd (-1) in NativeHandle() 68 : m_fd (-1) in NativeHandle() 74 if (other.m_fd >= 0) in NativeHandle() 79 m_fd = dup(other.m_fd); in NativeHandle() 80 TCU_CHECK(m_fd >= 0); in NativeHandle() 94 DE_ASSERT(other.m_fd == -1); in NativeHandle() 118 DE_ASSERT(other.m_fd == -1); in NativeHandle() 128 : m_fd (fd) in NativeHandle() 137 : m_fd (-1) in NativeHandle() 146 : m_fd (-1) in NativeHandle() [all …]
|
D | vktExternalMemoryUtil.hpp | 68 int m_fd; member in vkt::ExternalMemoryUtil::NativeHandle
|
/external/llvm-project/lldb/source/Plugins/Process/Linux/ |
D | ProcessorTrace.h | 71 std::unique_ptr<int, file_close> m_fd; variable 90 m_mmap_aux(nullptr, munmap_delete(0)), m_fd(nullptr, file_close()), in ProcessorTraceMonitor()
|
D | ProcessorTrace.cpp | 130 m_fd = std::unique_ptr<int, file_close>(new int(fd), file_close()); in StartTrace() 305 ioctl(*m_fd, PERF_EVENT_IOC_DISABLE); in ReadPerfTraceAux() 329 ioctl(*m_fd, PERF_EVENT_IOC_ENABLE); in ReadPerfTraceAux()
|
/external/libkmsxx/kms++/inc/kms++/ |
D | card.h | 38 int fd() const { return m_fd; } in fd() 88 int m_fd; variable
|
/external/llvm-project/lldb/examples/interposing/darwin/fd_interposing/ |
D | FDInterposing.cpp | 153 m_fd(fd), m_err(err), m_is_create(is_create) {} in FDEvent() 165 int GetFD() const { return m_fd; } in GetFD() 185 int m_fd; member in fd_interposing::FDEvent 424 log_to_fd(log_fd, "\nfd=%i was created with this event:\n", m_fd); in Dump()
|