Home
last modified time | relevance | path

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

12345

/device/linaro/hikey/hifi/xaf/hifi-dpf/core/
Dxf-io.c52 int xf_input_port_init(xf_input_port_t *port, u32 size, u32 align, u32 core) in xf_input_port_init() argument
58 XF_CHK_ERR(port->buffer = xf_mem_alloc(size, align, core, 0), -ENOMEM); in xf_input_port_init()
63 port->buffer = NULL; in xf_input_port_init()
67 xf_msg_queue_init(&port->queue); in xf_input_port_init()
70 port->length = size; in xf_input_port_init()
73 port->flags = XF_INPUT_FLAG_ENABLED | XF_INPUT_FLAG_CREATED; in xf_input_port_init()
76 port->filled = 0, port->access = NULL; in xf_input_port_init()
78 TRACE(INIT, _b("input-port[%p] created - %p@%u[%u]"), port, port->buffer, align, size); in xf_input_port_init()
84 int xf_input_port_put(xf_input_port_t *port, xf_message_t *m) in xf_input_port_put() argument
87 if ((port->flags & XF_INPUT_FLAG_ENABLED) == 0) in xf_input_port_put()
[all …]
Dxf-core.c174 xf_output_port_t *port;
185 else if (!component->port || !(port = component->port(component, XF_PORT_ID(src))))
190 else if (xf_output_port_routed(port))
197 …XF_CHK_API(xf_output_port_route(port, __XF_MSG_ID(dst, src), cmd->alloc_number, cmd->alloc_size, c…
216 xf_output_port_t *port;
227 else if (!component->port || !(port = component->port(component, XF_PORT_ID(src))))
232 else if (!xf_output_port_routed(port))
237 else if (!xf_output_port_idle(port))
244 xf_output_port_unroute(port);
/device/linaro/hikey/hifi/xaf/hifi-dpf/include/
Dxf-io.h94 static inline int xf_input_port_created(xf_input_port_t *port) in xf_input_port_created() argument
96 return (port->flags & XF_INPUT_FLAG_CREATED); in xf_input_port_created()
100 static inline int xf_input_port_ready(xf_input_port_t *port) in xf_input_port_ready() argument
102 return (xf_msg_queue_head(&port->queue) != NULL); in xf_input_port_ready()
106 static inline int xf_input_port_done(xf_input_port_t *port) in xf_input_port_done() argument
108 return (port->flags & XF_INPUT_FLAG_DONE); in xf_input_port_done()
112 static inline int xf_input_port_bypass(xf_input_port_t *port) in xf_input_port_bypass() argument
114 return port->buffer == NULL; in xf_input_port_bypass()
118 static inline void * xf_input_port_data(xf_input_port_t *port) in xf_input_port_data() argument
120 return port->access; in xf_input_port_data()
[all …]
/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/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/wahoo/sepolicy/vendor/
Dport-bridge.te1 type port-bridge, domain;
2 type port-bridge_exec, exec_type, vendor_file_type, file_type;
4 init_daemon_domain(port-bridge)
6 r_dir_file(port-bridge, sysfs_msm_subsys)
8 allow port-bridge sysfs_soc:dir search;
9 allow port-bridge sysfs_soc:file r_file_perms;
11 allow port-bridge at_device:chr_file rw_file_perms;
/device/google/bonito-sepolicy/vendor/qcom/common/
Dport-bridge.te1 type port-bridge, domain;
2 type port-bridge_exec, exec_type, vendor_file_type, file_type;
4 init_daemon_domain(port-bridge)
6 r_dir_file(port-bridge, sysfs_msm_subsys)
8 allow port-bridge sysfs_soc:dir search;
9 allow port-bridge sysfs_soc:file r_file_perms;
11 allow port-bridge at_device:chr_file rw_file_perms;
/device/google/crosshatch-sepolicy/vendor/qcom/common/
Dport-bridge.te1 type port-bridge, domain;
2 type port-bridge_exec, exec_type, vendor_file_type, file_type;
4 init_daemon_domain(port-bridge)
6 r_dir_file(port-bridge, sysfs_msm_subsys)
8 allow port-bridge sysfs_soc:dir search;
9 allow port-bridge sysfs_soc:file r_file_perms;
11 allow port-bridge at_device:chr_file rw_file_perms;
/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()
DTcpStream.h24 virtual int listen(unsigned short port);
26 virtual int connect(unsigned short port);
27 int connect(const char* hostname, unsigned short port);
/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.c137 unsigned int port; in main() local
199 !pkt.server.node && !pkt.server.port) in main()
206 port = le32_to_cpu(pkt.server.port); in main()
224 service, "N/A", instance, node, port, name, buf); in main()
227 service, version, instance, node, port, name); in main()
/device/generic/goldfish/fvpbase/
Drun_model20 mkfifo $tmp/port
27 read port < $tmp/port
28 telnet localhost $port
/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/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/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.h32 unsigned int port; member
125 int qrtr_sendto(int sock, uint32_t node, uint32_t port, const void *data, unsigned int sz);
126 int qrtr_recvfrom(int sock, void *buf, unsigned int bsz, uint32_t *node, uint32_t *port);
179 __le32 port; member
184 __le32 port; member
/device/linaro/dragonboard/db845c/firmware/
Dadsp.b1318 ….cpp:VSM: RX_MAILBOX_PKTEXG: vsm_action_send_dtmf_gen_msg_to_afe:sending DTMF gen msg to port: %d!!
20port 0x%8X����vsm_session_cmd_handler.cpp: VSM_create_session_cmd_control: failed to request cloc…
/device/google/cuttlefish/common/libs/tcp_socket/
Dtcp_socket.cpp29 ClientSocket::ClientSocket(int port) in ClientSocket() argument
30 : fd_(SharedFD::SocketLocalClient(port, SOCK_STREAM)) {} in ClientSocket()
93 ServerSocket::ServerSocket(int port) in ServerSocket() argument
94 : fd_{SharedFD::SocketLocalServer(port, SOCK_STREAM)} { in ServerSocket()
96 LOG(FATAL) << "Couldn't open streaming server on port " << port;
/device/google/cuttlefish/common/libs/device_config/
Dguest_device_config.cpp35 auto port = property_get_int64(port_property, -1); in GetRawFromServer() local
36 if (port < 0) { in GetRawFromServer()
43 static_cast<unsigned int>(port), SOCK_STREAM); in GetRawFromServer()
/device/google/cuttlefish/tools/play_audio/
DREADME.md20 Use ssh port forwarding to forward `7444` from a running instance. Then run the
29 and you will have to add `1 - device_num` to the port that you forward (vsoc-02
30 = port 7445).
/device/google/cuttlefish/guest/hals/rild/
Drild_cuttlefish.c116 char port[PROPERTY_VALUE_MAX] = {0}; in main() local
163 property_get("ro.boot.modem_simulator_ports", port, ""); in main()
164 if (strcmp(port, "") != 0) { in main()
212 if (strcmp(port, "")) { in main()
214 rilArgv[argc++] = port; in main()
/device/google/bonito/usb/
DUsb.cpp407 for (std::pair<std::string, bool> port : names) { in getPortStatusHelper()
409 ALOGI("%s", port.first.c_str()); in getPortStatusHelper()
410 (*currentPortStatus_1_1)[i].status.portName = port.first; in getPortStatusHelper()
413 if (getCurrentRoleHelper(port.first, port.second, in getPortStatusHelper()
423 if (getCurrentRoleHelper(port.first, port.second, PortRoleType::DATA_ROLE, in getPortStatusHelper()
432 if (getCurrentRoleHelper(port.first, port.second, PortRoleType::MODE, in getPortStatusHelper()
445 port.second ? canSwitchRoleHelper(port.first, PortRoleType::DATA_ROLE) in getPortStatusHelper()
448 port.second in getPortStatusHelper()
449 ? canSwitchRoleHelper(port.first, PortRoleType::POWER_ROLE) in getPortStatusHelper()
453 port.second, (*currentPortStatus_1_1)[i].status.canChangeMode, in getPortStatusHelper()
/device/google/wahoo/usb/
DUsb.cpp433 for (const std::pair<std::string, bool>& port : names) { in getPortStatusHelper() local
435 ALOGI("%s", port.first.c_str()); in getPortStatusHelper()
436 (*currentPortStatus_1_1)[i].status.portName = port.first; in getPortStatusHelper()
439 if (getCurrentRoleHelper(port.first, port.second, in getPortStatusHelper()
449 if (getCurrentRoleHelper(port.first, port.second, PortRoleType::DATA_ROLE, in getPortStatusHelper()
458 if (getCurrentRoleHelper(port.first, port.second, PortRoleType::MODE, in getPortStatusHelper()
471 port.second ? canSwitchRoleHelper(port.first, PortRoleType::DATA_ROLE) in getPortStatusHelper()
474 port.second in getPortStatusHelper()
475 ? canSwitchRoleHelper(port.first, PortRoleType::POWER_ROLE) in getPortStatusHelper()
479 port.second, (*currentPortStatus_1_1)[i].status.canChangeMode, in getPortStatusHelper()
/device/google/crosshatch/usb/
DUsb.cpp409 for (std::pair<std::string, bool> port : names) { in getPortStatusHelper()
411 ALOGI("%s", port.first.c_str()); in getPortStatusHelper()
412 (*currentPortStatus_1_1)[i].status.portName = port.first; in getPortStatusHelper()
415 if (getCurrentRoleHelper(port.first, port.second, in getPortStatusHelper()
425 if (getCurrentRoleHelper(port.first, port.second, PortRoleType::DATA_ROLE, in getPortStatusHelper()
434 if (getCurrentRoleHelper(port.first, port.second, PortRoleType::MODE, in getPortStatusHelper()
447 port.second ? canSwitchRoleHelper(port.first, PortRoleType::DATA_ROLE) in getPortStatusHelper()
450 port.second in getPortStatusHelper()
451 ? canSwitchRoleHelper(port.first, PortRoleType::POWER_ROLE) in getPortStatusHelper()
455 port.second, (*currentPortStatus_1_1)[i].status.canChangeMode, in getPortStatusHelper()

12345