Home
last modified time | relevance | path

Searched refs:pipe (Results 1 – 25 of 32) sorted by relevance

12

/device/generic/goldfish-opengl/shared/qemupipe/
Dqemu_pipe_host.cpp33 void qemu_pipe_close(QEMU_PIPE_HANDLE pipe) { in qemu_pipe_close() argument
34 HostGoldfishPipeDevice::get()->close(pipe); in qemu_pipe_close()
37 int qemu_pipe_read(QEMU_PIPE_HANDLE pipe, void* buffer, int len) { in qemu_pipe_read() argument
38 return HostGoldfishPipeDevice::get()->read(pipe, buffer, len); in qemu_pipe_read()
41 int qemu_pipe_write(QEMU_PIPE_HANDLE pipe, const void* buffer, int len) { in qemu_pipe_write() argument
42 return HostGoldfishPipeDevice::get()->write(pipe, buffer, len); in qemu_pipe_write()
54 void qemu_pipe_print_error(QEMU_PIPE_HANDLE pipe) { in qemu_pipe_print_error() argument
56 ALOGE("pipe error: pipe %p err %d", pipe, err); in qemu_pipe_print_error()
Dqemu_pipe_guest.cpp73 void qemu_pipe_close(int pipe) { in qemu_pipe_close() argument
74 close(pipe); in qemu_pipe_close()
77 int qemu_pipe_read(int pipe, void* buffer, int size) { in qemu_pipe_read() argument
78 return read(pipe, buffer, size); in qemu_pipe_read()
81 int qemu_pipe_write(int pipe, const void* buffer, int size) { in qemu_pipe_write() argument
82 return write(pipe, buffer, size); in qemu_pipe_write()
89 void qemu_pipe_print_error(int pipe) { in qemu_pipe_print_error() argument
90 ALOGE("pipe error: fd %d errno %d", pipe, errno); in qemu_pipe_print_error()
Dqemu_pipe_common.cpp17 int qemu_pipe_read_fully(QEMU_PIPE_HANDLE pipe, void* buffer, int size) { in qemu_pipe_read_fully() argument
21 int n = QEMU_PIPE_RETRY(qemu_pipe_read(pipe, p, size)); in qemu_pipe_read_fully()
31 int qemu_pipe_write_fully(QEMU_PIPE_HANDLE pipe, const void* buffer, int size) { in qemu_pipe_write_fully() argument
35 int n = QEMU_PIPE_RETRY(qemu_pipe_write(pipe, p, size)); in qemu_pipe_write_fully()
/device/linaro/hikey/hifi/xaf/host-apf/include/sys/fio/
Dxf-ipc.h41 int pipe[2]; member
50 (write((ipc)->pipe[1], (msg), sizeof(*(msg))) == sizeof(*(msg)) ? 0 : -errno)
53 (read((ipc)->pipe[0], (msg), sizeof(*(msg))) == sizeof(*(msg)) ? 0 : -errno)
90 int pipe[2]; member
99 (write((ipc)->pipe[1], (msg), sizeof(*(msg))) == sizeof(*(msg)) ? 0 : -errno)
102 (read((ipc)->pipe[0], (msg), sizeof(*(msg))) == sizeof(*(msg)) ? 0 : -errno)
105 (pipe((ipc)->pipe) == 0 ? 0 : -errno)
108 (close((ipc)->pipe[0]), close((ipc)->pipe[1]))
/device/google/cuttlefish/host/commands/logcat_receiver/
Dmain.cpp48 cuttlefish::SharedFD pipe; in main() local
51 pipe = cuttlefish::SharedFD::Open(log_name.c_str(), O_RDONLY); in main()
53 pipe = cuttlefish::SharedFD::Dup(FLAGS_log_pipe_fd); in main()
57 if (!pipe->IsOpen()) { in main()
58 LOG(ERROR) << "Error opening log pipe: " << pipe->StrError(); in main()
69 auto read = pipe->Read(buff, sizeof(buff)); in main()
71 LOG(ERROR) << "Could not read logcat: " << pipe->StrError(); in main()
81 pipe->Close(); in main()
/device/generic/goldfish/qemud/
Dqemud.cpp30 int qemud_channel_send(int pipe, const void* msg, int size) { in qemud_channel_send() argument
40 if (qemu_pipe_write_fully(pipe, header, 4)) { in qemud_channel_send()
44 if (qemu_pipe_write_fully(pipe, msg, size)) { in qemud_channel_send()
51 int qemud_channel_recv(int pipe, void* msg, int maxsize) { in qemud_channel_recv() argument
55 if (qemu_pipe_read_fully(pipe, header, 4)) { in qemud_channel_recv()
67 if (qemu_pipe_read_fully(pipe, msg, size)) { in qemud_channel_recv()
/device/generic/goldfish-opengl/shared/qemupipe/include/
Dqemu_pipe_bp.h26 void qemu_pipe_close(QEMU_PIPE_HANDLE pipe);
28 int qemu_pipe_read_fully(QEMU_PIPE_HANDLE pipe, void* buffer, int size);
29 int qemu_pipe_write_fully(QEMU_PIPE_HANDLE pipe, const void* buffer, int size);
30 int qemu_pipe_read(QEMU_PIPE_HANDLE pipe, void* buffer, int size);
31 int qemu_pipe_write(QEMU_PIPE_HANDLE pipe, const void* buffer, int size);
34 void qemu_pipe_print_error(QEMU_PIPE_HANDLE pipe);
/device/google/cuttlefish/host/commands/kernel_log_monitor/
Dmain.cc81 cuttlefish::SharedFD pipe; in main() local
84 pipe = cuttlefish::SharedFD::Open(log_name.c_str(), O_RDONLY); in main()
86 pipe = cuttlefish::SharedFD::Dup(FLAGS_log_pipe_fd); in main()
90 if (!pipe->IsOpen()) { in main()
91 LOG(ERROR) << "Error opening log pipe: " << pipe->StrError(); in main()
95 monitor::KernelLogServer klog{pipe, instance.PerInstancePath("kernel.log"), in main()
/device/generic/goldfish-opengl/system/OpenglSystemCommon/
DProcessPipe.cpp80 llcpp::fuchsia::hardware::goldfish::Pipe::SyncClient pipe( in processPipeInitOnce() local
86 auto result = pipe.GetBuffer(); in processPipeInitOnce()
103 auto result = pipe.Write(len + 1, 0); in processPipeInitOnce()
120 auto result = pipe.DoCall(sizeof(confirmInt), 0, sizeof(sProcUID), 0); in processPipeInitOnce()
134 sProcPipe = pipe.mutable_channel()->release(); in processPipeInitOnce()
/device/generic/goldfish/qemud/include/
Dqemud.h23 int qemud_channel_send(int pipe, const void* msg, int size);
24 int qemud_channel_recv(int pipe, void* msg, int maxsize);
/device/linaro/hikey/hifi/xaf/host-apf/proxy/
Dxf-fio.c164 XF_CHK_ERR(pipe(ipc->pipe) == 0, -errno); in xf_ipc_open()
186 close(ipc->pipe[0]), close(ipc->pipe[1]); in xf_ipc_close()
/device/generic/goldfish/sensors/
Dmultihal_sensors_qemu.cpp55 bool MultihalSensors::activateQemuSensorImpl(const int pipe, in activateQemuSensorImpl() argument
64 if (qemud_channel_send(pipe, buffer, len) < 0) { in activateQemuSensorImpl()
85 void MultihalSensors::parseQemuSensorEvent(const int pipe, in parseQemuSensorEvent() argument
88 const int len = qemud_channel_recv(pipe, buf, sizeof(buf) - 1); in parseQemuSensorEvent()
Dmultihal_sensors.h90 static bool activateQemuSensorImpl(int pipe, int sensorHandle, bool enabled);
92 void parseQemuSensorEvent(const int pipe, QemuSensorsProtocolState* state);
/device/google/cuttlefish/host/commands/run_cvd/
Dlaunch.cc142 cuttlefish::SharedFD pipe; in LaunchKernelLogMonitor() local
146 pipe = cuttlefish::SharedFD::Open(log_name.c_str(), O_RDWR); in LaunchKernelLogMonitor()
148 command.AddParameter("-log_pipe_fd=", pipe); in LaunchKernelLogMonitor()
186 cuttlefish::SharedFD pipe; in LaunchLogcatReceiver() local
190 pipe = cuttlefish::SharedFD::Open(log_name.c_str(), O_RDWR); in LaunchLogcatReceiver()
192 command.AddParameter("-log_pipe_fd=", pipe); in LaunchLogcatReceiver()
/device/generic/opengl-transport/host/libs/virglrenderer/emugl/common/
Ddma_device.cpp5 static void defaultDmaAddBuffer(void* pipe, uint64_t guest_paddr, uint64_t size) { } in defaultDmaAddBuffer() argument
/device/linaro/dragonboard/qcom/rmtfs/
Drproc.c92 ret = pipe(rproc_pipe); in rproc_init()
/device/google/cuttlefish_vmm/x86_64-linux-gnu/etc/seccomp/
Dxhci.policy54 pipe: 1
/device/google/coral-kernel/sm8150/kernel-headers/drm/
Dmsm_drm.h72 __u32 pipe; member
/device/google/bonito/sdm710/kernel-headers/drm/
Dmsm_drm.h70 __u32 pipe; member
/device/google/bonito/sdm710/original-kernel-headers/drm/
Dmsm_drm.h115 __u32 pipe; /* in, MSM_PIPE_x */ member
/device/google/crosshatch/sdm845/kernel-headers/drm/
Dmsm_drm.h70 __u32 pipe; member
/device/google/crosshatch/sdm845/original-kernel-headers/drm/
Dmsm_drm.h115 __u32 pipe; /* in, MSM_PIPE_x */ member
/device/google/coral-kernel/sm8150/original-kernel-headers/drm/
Dmsm_drm.h123 __u32 pipe; /* in, MSM_PIPE_x */ member
/device/google/cuttlefish/guest/hals/camera/
DEmulatedCameraDevice.cpp302 if (pipe(thread_fds) == 0) { in readyToRun()
/device/generic/goldfish-opengl/
DBUILD.gn150 "QEMU_PIPE_PATH=\"/dev/class/goldfish-pipe/000\"",

12