Home
last modified time | relevance | path

Searched refs:port (Results 1 – 25 of 214) sorted by relevance

123456789

/device/generic/goldfish-opengl/system/codecs/omx/plugin/
DSimpleGoldfishOMXComponent.cpp153 const PortInfo *port = in internalGetParameter() local
156 memcpy(defParams, &port->mDef, sizeof(port->mDef)); in internalGetParameter()
185 PortInfo *port = in internalSetParameter() local
189 if (defParams->nBufferSize > port->mDef.nBufferSize) { in internalSetParameter()
190 port->mDef.nBufferSize = defParams->nBufferSize; in internalSetParameter()
193 if (defParams->nBufferCountActual < port->mDef.nBufferCountMin) { in internalSetParameter()
195 port->mDef.nBufferCountMin, defParams->nBufferCountActual); in internalSetParameter()
199 port->mDef.nBufferCountActual = defParams->nBufferCountActual; in internalSetParameter()
242 PortInfo *port = &mPorts.editItemAt(portIndex); in useBufferCallerLockedAlready() local
243 if (size < port->mDef.nBufferSize) { in useBufferCallerLockedAlready()
[all …]
/device/linaro/dragonboard/qcom/qrtr/src/
Dns.c72 unsigned int port; member
163 srv->service, srv->instance, srv->node, srv->port); in service_announce_new()
169 cmsg.server.port = cpu_to_le32(srv->port); in service_announce_new()
187 srv->service, srv->instance, srv->node, srv->port); in service_announce_del()
193 cmsg.server.port = cpu_to_le32(srv->port); in service_announce_del()
214 pkt.server.port = cpu_to_le32(srv->port); in lookup_notify()
247 unsigned int node_id, unsigned int port) in server_add() argument
254 if (!service || !port) in server_add()
264 srv->port = port; in server_add()
270 rc = map_reput(&node->services, hash_u32(port), &srv->mi, &mi); in server_add()
[all …]
Dlookup.c139 unsigned int port; in main() local
201 !pkt.server.node && !pkt.server.port) in main()
208 port = le32_to_cpu(pkt.server.port); in main()
226 service, "N/A", instance, node, port, name, buf); in main()
229 service, version, instance, node, port, name); in main()
/device/google/coral-sepolicy/vendor/qcom/common/
Dport-bridge.te1 type port-bridge, domain;
2 type port-bridge_exec, exec_type, vendor_file_type, file_type;
3 init_daemon_domain(port-bridge)
5 r_dir_file(port-bridge, sysfs_esoc)
6 r_dir_file(port-bridge, sysfs_msm_subsys)
7 r_dir_file(port-bridge, sysfs_soc)
8 r_dir_file(port-bridge, sysfs_ssr)
10 allow port-bridge at_device:chr_file rw_file_perms;
12 dontaudit port-bridge sysfs_faceauth:dir r_dir_perms;
13 dontaudit port-bridge sysfs_faceauth:file r_file_perms;
/device/google/sunfish-sepolicy/vendor/qcom/common/
Dport-bridge.te1 type port-bridge, domain;
2 type port-bridge_exec, exec_type, vendor_file_type, file_type;
3 init_daemon_domain(port-bridge)
5 r_dir_file(port-bridge, sysfs_esoc)
6 r_dir_file(port-bridge, sysfs_msm_subsys)
7 r_dir_file(port-bridge, sysfs_soc)
8 r_dir_file(port-bridge, sysfs_ssr)
10 allow port-bridge at_device:chr_file rw_file_perms;
/device/google/redbull-sepolicy/vendor/qcom/common/
Dport-bridge.te1 type port-bridge, domain;
2 type port-bridge_exec, exec_type, vendor_file_type, file_type;
3 init_daemon_domain(port-bridge)
5 allow port-bridge at_device:chr_file rw_file_perms;
7 r_dir_file(port-bridge, sysfs_msm_subsys)
8 r_dir_file(port-bridge, sysfs_soc)
9 r_dir_file(port-bridge, sysfs_ssr)
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/
DTcpStream.cpp31 static int _socket_loopback_server(int port, int type) in _socket_loopback_server() argument
37 addr.sin_port = htons(port); in _socket_loopback_server()
82 int TcpStream::listen(unsigned short port) in listen() argument
84 m_sock = _socket_loopback_server(port, SOCK_STREAM); in listen()
113 int TcpStream::connect(unsigned short port) in connect() argument
115 return connect("127.0.0.1",port); in connect()
118 int TcpStream::connect(const char* hostname, unsigned short port) in connect() argument
120 m_sock = socket_network_client(hostname, port, SOCK_STREAM); in connect()
/device/linaro/dragonboard/qcom/qrtr/lib/
Dqrtr.c79 int qrtr_sendto(int sock, uint32_t node, uint32_t port, const void *data, unsigned int sz) in qrtr_sendto() argument
86 sq.sq_port = port; in qrtr_sendto()
128 pkt.server.port = cpu_to_le32(sq.sq_port); in qrtr_remove_server()
174 pkt.server.port = cpu_to_le32(sq.sq_port); in qrtr_remove_lookup()
200 int qrtr_recvfrom(int sock, void *buf, unsigned int bsz, uint32_t *node, uint32_t *port) in qrtr_recvfrom() argument
214 if (port) in qrtr_recvfrom()
215 *port = sq.sq_port; in qrtr_recvfrom()
235 dest->port = le32_to_cpu(ctrl->client.port); in qrtr_decode()
240 dest->port = le32_to_cpu(ctrl->server.port); in qrtr_decode()
251 dest->port = sq->sq_port; in qrtr_decode()
Dlibqrtr.h33 unsigned int port; member
126 int qrtr_sendto(int sock, uint32_t node, uint32_t port, const void *data, unsigned int sz);
127 int qrtr_recvfrom(int sock, void *buf, unsigned int bsz, uint32_t *node, uint32_t *port);
180 __le32 port; member
185 __le32 port; member
/device/google/cuttlefish/common/frontend/socket_vsock_proxy/
Dclient.cpp29 SharedFD StartIpv4(const std::string& host, int port) { in StartIpv4() argument
30 return SharedFD::SocketClient(host, port, SOCK_STREAM); in StartIpv4()
33 SharedFD StartIpv6(const std::string& host, int port) { in StartIpv6() argument
49 return SharedFD::Socket6Client(host_name, interface_name, port, SOCK_STREAM); in StartIpv6()
54 TcpClient::TcpClient(std::string host, int port) : host_(std::move(host)), port_(port) {} in TcpClient() argument
84 VsockClient::VsockClient(int id, int port) : id_(id), port_(port) {} in VsockClient() argument
/device/linaro/dragonboard/qcom/qrtr/
Dqrtr.py14 def __init__(self, port=0): argument
15 self.sock = _qrtr.qrtr_open(port)
24 def _lookup_list_add(self, ptr, srv, instance, node, port): argument
25 res = qrtr.Result(srv, instance, (node, port))
68 node, port = addr
69 n = _qrtr.qrtr_sendto(self.sock, node, port, c_char_p(data), len(data))
82 port = ctypes.c_int()
85 ctypes.byref(node), ctypes.byref(port))
88 return (buf[0:n], (node.value, port.value))
/device/google/contexthub/firmware/os/platform/stm32/
Dusart.c85 void usartOpen(struct usart* __restrict usart, UsartPort port, in usartOpen() argument
95 struct StmUsart *block = (struct StmUsart*)mUsartPorts[usart->unit = --port]; in usartOpen()
101 gpioConfigAlt(usart->rx, GPIO_SPEED_LOW, GPIO_PULL_UP, GPIO_OUT_PUSH_PULL, mUsartAlt[port]); in usartOpen()
103 gpioConfigAlt(usart->tx, GPIO_SPEED_LOW, GPIO_PULL_UP, GPIO_OUT_PUSH_PULL, mUsartAlt[port]); in usartOpen()
106 pwrUnitClock(mUsartBusses[port], mUsartPeriphs[port], true); in usartOpen()
109 if (!mUsartHasFlowControl[port]) in usartOpen()
118 baseClk = pwrGetBusSpeed(mUsartBusses[port]); in usartOpen()
/device/google/trout/hal/vehicle/2.0/
DUtils.cpp51 ss << "vsock:" << vsock.cid << ":" << vsock.port;
87 std::optional<unsigned int> port; in fromCommandLine() local
112 port = parseUnsignedIntFromString(optarg, "port"); in fromCommandLine()
129 if (!port.has_value() && error) { in fromCommandLine()
139 if (cid && port && powerStateMarkerFilePath && powerStateSocketPath) { in fromCommandLine()
141 {*cid, *port}, *powerStateMarkerFilePath, *powerStateSocketPath}; in fromCommandLine()
/device/google/cuttlefish/common/libs/utils/
Dvsock_connection.cpp43 std::future<bool> VsockConnection::ConnectAsync(unsigned int port, in ConnectAsync() argument
46 [this, port, cid]() { return Connect(port, cid); }); in ConnectAsync()
194 bool VsockClientConnection::Connect(unsigned int port, unsigned int cid) { in Connect() argument
195 fd_ = SharedFD::VsockClient(cid, port, SOCK_STREAM); in Connect()
213 bool VsockServerConnection::Connect(unsigned int port, unsigned int cid) { in Connect() argument
215 server_fd_ = cuttlefish::SharedFD::VsockServer(port, SOCK_STREAM, cid); in Connect()
/device/google/bramble/usb/usb/
DUsb.cpp574 for (std::pair<string, bool> port : names) { in getPortStatusHelper()
576 ALOGI("%s", port.first.c_str()); in getPortStatusHelper()
577 (*currentPortStatus)[i].portName = port.first; in getPortStatusHelper()
581 if (getCurrentRoleHelper(port.first, port.second, &currentRole) == Status::SUCCESS){ in getPortStatusHelper()
589 if (getCurrentRoleHelper(port.first, port.second, &currentRole) == Status::SUCCESS) { in getPortStatusHelper()
597 if (getCurrentRoleHelper(port.first, port.second, &currentRole) == Status::SUCCESS) { in getPortStatusHelper()
606 port.second ? canSwitchRoleHelper(port.first) : false; in getPortStatusHelper()
608 port.second ? canSwitchRoleHelper(port.first) : false; in getPortStatusHelper()
621 i, port.first.c_str(), port.second, in getPortStatusHelper()
/device/google/sunfish/usb/usb/
DUsb.cpp574 for (std::pair<string, bool> port : names) { in getPortStatusHelper()
576 ALOGI("%s", port.first.c_str()); in getPortStatusHelper()
577 (*currentPortStatus)[i].portName = port.first; in getPortStatusHelper()
581 if (getCurrentRoleHelper(port.first, port.second, &currentRole) == Status::SUCCESS){ in getPortStatusHelper()
589 if (getCurrentRoleHelper(port.first, port.second, &currentRole) == Status::SUCCESS) { in getPortStatusHelper()
597 if (getCurrentRoleHelper(port.first, port.second, &currentRole) == Status::SUCCESS) { in getPortStatusHelper()
606 port.second ? canSwitchRoleHelper(port.first) : false; in getPortStatusHelper()
608 port.second ? canSwitchRoleHelper(port.first) : false; in getPortStatusHelper()
621 i, port.first.c_str(), port.second, in getPortStatusHelper()
/device/google/redfin/usb/usb/
DUsb.cpp574 for (std::pair<string, bool> port : names) { in getPortStatusHelper()
576 ALOGI("%s", port.first.c_str()); in getPortStatusHelper()
577 (*currentPortStatus)[i].portName = port.first; in getPortStatusHelper()
581 if (getCurrentRoleHelper(port.first, port.second, &currentRole) == Status::SUCCESS){ in getPortStatusHelper()
589 if (getCurrentRoleHelper(port.first, port.second, &currentRole) == Status::SUCCESS) { in getPortStatusHelper()
597 if (getCurrentRoleHelper(port.first, port.second, &currentRole) == Status::SUCCESS) { in getPortStatusHelper()
606 port.second ? canSwitchRoleHelper(port.first) : false; in getPortStatusHelper()
608 port.second ? canSwitchRoleHelper(port.first) : false; in getPortStatusHelper()
621 i, port.first.c_str(), port.second, in getPortStatusHelper()
/device/google/coral/usb/usb/
DUsb.cpp574 for (std::pair<string, bool> port : names) { in getPortStatusHelper()
576 ALOGI("%s", port.first.c_str()); in getPortStatusHelper()
577 (*currentPortStatus)[i].portName = port.first; in getPortStatusHelper()
581 if (getCurrentRoleHelper(port.first, port.second, &currentRole) == Status::SUCCESS){ in getPortStatusHelper()
589 if (getCurrentRoleHelper(port.first, port.second, &currentRole) == Status::SUCCESS) { in getPortStatusHelper()
597 if (getCurrentRoleHelper(port.first, port.second, &currentRole) == Status::SUCCESS) { in getPortStatusHelper()
606 port.second ? canSwitchRoleHelper(port.first) : false; in getPortStatusHelper()
608 port.second ? canSwitchRoleHelper(port.first) : false; in getPortStatusHelper()
621 i, port.first.c_str(), port.second, in getPortStatusHelper()
/device/google/barbet/usb/usb/
DUsb.cpp574 for (std::pair<string, bool> port : names) { in getPortStatusHelper()
576 ALOGI("%s", port.first.c_str()); in getPortStatusHelper()
577 (*currentPortStatus)[i].portName = port.first; in getPortStatusHelper()
581 if (getCurrentRoleHelper(port.first, port.second, &currentRole) == Status::SUCCESS){ in getPortStatusHelper()
589 if (getCurrentRoleHelper(port.first, port.second, &currentRole) == Status::SUCCESS) { in getPortStatusHelper()
597 if (getCurrentRoleHelper(port.first, port.second, &currentRole) == Status::SUCCESS) { in getPortStatusHelper()
606 port.second ? canSwitchRoleHelper(port.first) : false; in getPortStatusHelper()
608 port.second ? canSwitchRoleHelper(port.first) : false; in getPortStatusHelper()
621 i, port.first.c_str(), port.second, in getPortStatusHelper()
/device/google/cuttlefish/guest/hals/camera/
Dvsock_camera_server.cpp56 void VsockCameraServer::start(unsigned int port, unsigned int cid) { in start() argument
59 server_thread_ = std::thread([this, port, cid] { serverLoop(port, cid); }); in start()
79 void VsockCameraServer::serverLoop(unsigned int port, unsigned int cid) { in serverLoop() argument
82 if (connection_->Connect(port, cid)) { in serverLoop()
/device/generic/car/emulator/usbpt/usbip-service/
DUsbIpUtils.cpp54 bool get_usbip_connection(const char *server, const char *port, in get_usbip_connection() argument
87 address.sin_port = strtol(port, &error, 10); in get_usbip_connection()
89 ALOGE("Port is invalid %s\n", port); in get_usbip_connection()
162 int port = 0; in get_free_vhci_port() local
170 while (fscanf(file, "%2s %d %d %d %x %u %31s\n", hub, &port, &status, &spd, in get_free_vhci_port()
173 return port; in get_free_vhci_port()
/device/generic/goldfish/fvpbase/
Drun_model20 mkfifo $tmp/port
27 read port < $tmp/port
28 telnet localhost $port
/device/google/cuttlefish/shared/minidroid/sample/servicediscovery/
Dminidroid_sd.cpp27 void bi::sd::setupRpcServer(ndk::SpAIBinder service, int port) { in setupRpcServer() argument
29 ARpcServer* server = ARpcServer_newVsock(service.get(), VMADDR_CID_ANY, port); in setupRpcServer()
36 ndk::SpAIBinder bi::sd::getService(int cid, int port) { in getService() argument
38 ARpcSession_setupVsockClient(ARpcSession_new(), cid, port)); in getService()
/device/google/trout/hal/common/android/vsock/
Dvsockinfo.cpp51 const auto port = getNumberFromProperties(port_props); in fromRoPropertyStore() local
53 if (cid && port) { in fromRoPropertyStore()
54 return {{*cid, *port}}; in fromRoPropertyStore()
63 ss << "vsock:" << cid << ":" << port; in str()
/device/google/gs101/usb/usb/
DUsb.cpp727 for (std::pair<string, bool> port : names) { in getPortStatusHelper()
729 ALOGI("%s", port.first.c_str()); in getPortStatusHelper()
730 (*currentPortStatus)[i].portName = port.first; in getPortStatusHelper()
734 if (getCurrentRoleHelper(port.first, port.second, &currentRole) == Status::SUCCESS){ in getPortStatusHelper()
742 if (getCurrentRoleHelper(port.first, port.second, &currentRole) == Status::SUCCESS) { in getPortStatusHelper()
750 if (getCurrentRoleHelper(port.first, port.second, &currentRole) == Status::SUCCESS) { in getPortStatusHelper()
759 port.second ? canSwitchRoleHelper(port.first) : false; in getPortStatusHelper()
761 port.second ? canSwitchRoleHelper(port.first) : false; in getPortStatusHelper()
781 if (port.second) { in getPortStatusHelper()
803 i, port.first.c_str(), port.second, in getPortStatusHelper()

123456789