/external/libevent/ |
D | event_iocp.c | 65 struct event_iocp_port *port = _port; in loop() local 66 long ms = port->ms; in loop() 67 HANDLE p = port->port; in loop() 78 EnterCriticalSection(&port->lock); in loop() 79 if (port->shutdown) { in loop() 80 if (--port->n_live_threads == 0) in loop() 81 ReleaseSemaphore(port->shutdownSemaphore, 1, in loop() 83 LeaveCriticalSection(&port->lock); in loop() 86 LeaveCriticalSection(&port->lock); in loop() 94 EnterCriticalSection(&port->lock); in loop() [all …]
|
/external/selinux/libsepol/src/ |
D | port_record.c | 63 const sepol_port_t * port, in hidden_def() 68 (handle, port->low, port->high, port->proto, key_ptr) < 0) { in hidden_def() 71 sepol_port_get_proto_str(port->proto), in hidden_def() 72 port->low, port->high); in hidden_def() 85 int sepol_port_compare(const sepol_port_t * port, const sepol_port_key_t * key) in sepol_port_compare() argument 88 if ((port->low == key->low) && in sepol_port_compare() 89 (port->high == key->high) && (port->proto == key->proto)) in sepol_port_compare() 92 if (port->low < key->low) in sepol_port_compare() 95 else if (key->low < port->low) in sepol_port_compare() 98 else if (port->high < key->high) in sepol_port_compare() [all …]
|
D | ports.c | 50 ocontext_t ** port, const sepol_port_t * data) in port_from_record() argument 69 tmp_port->u.port.protocol = tmp_proto; in port_from_record() 72 tmp_port->u.port.low_port = low; in port_from_record() 73 tmp_port->u.port.high_port = high; in port_from_record() 74 if (tmp_port->u.port.low_port > tmp_port->u.port.high_port) { in port_from_record() 76 tmp_port->u.port.low_port, tmp_port->u.port.high_port); in port_from_record() 89 *port = tmp_port; in port_from_record() 109 ocontext_t * port, sepol_port_t ** record) in port_to_record() argument 112 int proto = port->u.port.protocol; in port_to_record() 113 int low = port->u.port.low_port; in port_to_record() [all …]
|
/external/syslinux/com32/libupload/ |
D | serial.c | 31 uint16_t port; in serial_init() local 37 port = sci->iobase; in serial_init() 43 port = strtoul(argv[0], NULL, 0); in serial_init() 44 if (port <= 3) { in serial_init() 45 uint16_t addr = ((uint16_t *)0x400)[port]; in serial_init() 50 printf("Serial port %u is at 0x%04x\n", port, addr); in serial_init() 51 port = addr; in serial_init() 55 sif->port = port; in serial_init() 61 if (port == sci->iobase) { in serial_init() 78 sif->old.lcr = inb(port + LCR); in serial_init() [all …]
|
/external/libmojo/mojo/edk/system/ports/ |
D | node.cc | 29 bool CanAcceptMoreMessages(const Port* port) { in CanAcceptMoreMessages() argument 32 uint64_t next_sequence_num = port->message_queue.next_sequence_num(); in CanAcceptMoreMessages() 33 if (port->state == Port::kClosed) in CanAcceptMoreMessages() 35 if (port->peer_closed || port->remove_proxy_on_last_message) { in CanAcceptMoreMessages() 36 if (port->last_sequence_num_to_receive == next_sequence_num - 1) in CanAcceptMoreMessages() 46 explicit LockedPort(Port* port) : port_(port) { in LockedPort() argument 105 scoped_refptr<Port> port = GetPort(port_name); in GetPort() local 106 if (!port) in GetPort() 109 *port_ref = PortRef(port_name, std::move(port)); in GetPort() 117 scoped_refptr<Port> port = make_scoped_refptr(new Port(kInitialSequenceNum, in CreateUninitializedPort() local [all …]
|
/external/syslinux/gpxe/src/drivers/net/ |
D | skge.c | 62 static int xm_phy_write(struct skge_hw *hw, int port, u16 reg, u16 val); 63 static int gm_phy_write(struct skge_hw *hw, int port, u16 reg, u16 val); 64 static void yukon_init(struct skge_hw *hw, int port); 65 static void genesis_mac_init(struct skge_hw *hw, int port); 138 int port = skge->port; in skge_led() local 144 xm_phy_write(hw, port, PHY_BCOM_P_EXT_CTRL, PHY_B_PEC_LED_OFF); in skge_led() 146 skge_write32(hw, SK_REG(port, TX_LED_VAL), 0); in skge_led() 147 skge_write8(hw, SK_REG(port, TX_LED_CTRL), LED_T_OFF); in skge_led() 149 skge_write8(hw, SK_REG(port, LNK_LED_REG), LINKLED_OFF); in skge_led() 150 skge_write32(hw, SK_REG(port, RX_LED_VAL), 0); in skge_led() [all …]
|
D | sky2.c | 130 static int gm_phy_write(struct sky2_hw *hw, unsigned port, u16 reg, u16 val) in gm_phy_write() argument 134 gma_write16(hw, port, GM_SMI_DATA, val); in gm_phy_write() 135 gma_write16(hw, port, GM_SMI_CTRL, in gm_phy_write() 139 u16 ctrl = gma_read16(hw, port, GM_SMI_CTRL); in gm_phy_write() 149 DBG(PFX "%s: phy write timeout\n", hw->dev[port]->name); in gm_phy_write() 153 DBG(PFX "%s: phy I/O error\n", hw->dev[port]->name); in gm_phy_write() 157 static int __gm_phy_read(struct sky2_hw *hw, unsigned port, u16 reg, u16 *val) in __gm_phy_read() argument 161 gma_write16(hw, port, GM_SMI_CTRL, GM_SMI_CT_PHY_AD(PHY_ADDR_MARV) in __gm_phy_read() 165 u16 ctrl = gma_read16(hw, port, GM_SMI_CTRL); in __gm_phy_read() 170 *val = gma_read16(hw, port, GM_SMI_DATA); in __gm_phy_read() [all …]
|
/external/selinux/libsemanage/src/ |
D | port_record.c | 27 int semanage_port_compare(const semanage_port_t * port, in semanage_port_compare() argument 31 return sepol_port_compare(port, key); in semanage_port_compare() 36 int semanage_port_compare2(const semanage_port_t * port, in hidden_def() 40 return sepol_port_compare2(port, port2); in hidden_def() 45 hidden int semanage_port_compare2_qsort(const semanage_port_t ** port, in hidden_def() 49 return sepol_port_compare2(*port, *port2); in hidden_def() 61 const semanage_port_t * port, in semanage_port_key_extract() argument 65 return sepol_port_key_extract(handle->sepolh, port, key_ptr); in semanage_port_key_extract() 79 int semanage_port_get_proto(const semanage_port_t * port) in hidden_def() 82 return sepol_port_get_proto(port); in hidden_def() [all …]
|
/external/autotest/client/site_tests/usbpd_GFU/ |
D | usbpd_GFU.py | 65 def _is_gfu(self, port): argument 72 return port.is_amode_supported(self.GOOGLE_VID) 74 def _is_in_rw(self, port): argument 81 flash_info = port.get_flash_info() 95 def _modify_rw(self, port, rw=None, tries=3): argument 117 port.ec_command('flashpd 0 %d %s' % (port.index, rw), 126 if rw != '/dev/null' and not self._is_in_rw(port): 128 port.index) 135 msg = self._reader.get_last_msg([r'%s.*is in RO' % port.index, 140 port.index) [all …]
|
/external/python/cpython2/Demo/sockets/ |
D | gopher.py | 41 def open_socket(host, port): argument 42 if not port: 43 port = DEF_PORT 44 elif type(port) == type(''): 45 port = string.atoi(port) 47 s.connect((host, port)) 51 def send_request(selector, host, port): argument 52 s = open_socket(host, port) 58 def get_menu(selector, host, port): argument 59 f = send_request(selector, host, port) [all …]
|
/external/autotest/server/cros/servo/ |
D | pd_console.py | 125 def execute_pd_state_cmd(self, port): argument 138 pd_cmd = cmd +" " + str(port) + " " + subcmd 154 def get_pd_state(self, port): argument 161 pd_dict = self.execute_pd_state_cmd(port) 164 def get_pd_port(self, port): argument 170 pd_dict = self.execute_pd_state_cmd(port) 173 def get_pd_role(self, port): argument 179 pd_dict = self.execute_pd_state_cmd(port) 182 def get_pd_flags(self, port): argument 188 pd_dict = self.execute_pd_state_cmd(port) [all …]
|
/external/swiftshader/third_party/LLVM/test/CodeGen/MBlaze/ |
D | fsl.ll | 8 declare i32 @llvm.mblaze.fsl.get(i32 %port) 9 declare i32 @llvm.mblaze.fsl.aget(i32 %port) 10 declare i32 @llvm.mblaze.fsl.cget(i32 %port) 11 declare i32 @llvm.mblaze.fsl.caget(i32 %port) 12 declare i32 @llvm.mblaze.fsl.eget(i32 %port) 13 declare i32 @llvm.mblaze.fsl.eaget(i32 %port) 14 declare i32 @llvm.mblaze.fsl.ecget(i32 %port) 15 declare i32 @llvm.mblaze.fsl.ecaget(i32 %port) 16 declare i32 @llvm.mblaze.fsl.nget(i32 %port) 17 declare i32 @llvm.mblaze.fsl.naget(i32 %port) [all …]
|
/external/nist-sip/java/gov/nist/core/net/ |
D | DefaultNetworkLayer.java | 69 public ServerSocket createServerSocket(int port, int backlog, in createServerSocket() argument 71 return new ServerSocket(port, backlog, bindAddress); in createServerSocket() 74 public Socket createSocket(InetAddress address, int port) in createSocket() argument 76 return new Socket(address, port); in createSocket() 83 public DatagramSocket createDatagramSocket(int port, InetAddress laddr) in createDatagramSocket() argument 88 MulticastSocket ds = new MulticastSocket( port ); in createDatagramSocket() 94 } else return new DatagramSocket(port, laddr); in createDatagramSocket() 98 public SSLServerSocket createSSLServerSocket(int port, int backlog, in createSSLServerSocket() argument 101 port, backlog, bindAddress); in createSSLServerSocket() 105 public SSLSocket createSSLSocket(InetAddress address, int port) in createSSLSocket() argument [all …]
|
D | SslNetworkLayer.java | 88 public ServerSocket createServerSocket(int port, int backlog, in createServerSocket() argument 90 return new ServerSocket(port, backlog, bindAddress); in createServerSocket() 93 public Socket createSocket(InetAddress address, int port) in createSocket() argument 95 return new Socket(address, port); in createSocket() 102 public DatagramSocket createDatagramSocket(int port, InetAddress laddr) in createDatagramSocket() argument 104 return new DatagramSocket(port, laddr); in createDatagramSocket() 108 public SSLServerSocket createSSLServerSocket(int port, int backlog, in createSSLServerSocket() argument 111 port, backlog, bindAddress); in createSSLServerSocket() 115 public SSLSocket createSSLSocket(InetAddress address, int port) in createSSLSocket() argument 117 return (SSLSocket) sslSocketFactory.createSocket(address, port); in createSSLSocket() [all …]
|
/external/tcpdump/tests/ |
D | mstp-v.out | 2 port-role Root, CIST root-id 0000.00:1f:27:b4:7d:80, CIST ext-pathcost 200000 3 CIST regional-root-id 8000.00:16:46:b5:8c:80, CIST port-id 8012, 8 MSTI 1, Flags [Learn, Forward, Agreement, Topology change ACK], port-role Designated 10 MSTI bridge-prio 6, port-prio 8, hops 20 11 MSTI 2, Flags [Learn, Forward, Agreement, Topology change ACK], port-role Root 13 MSTI bridge-prio 8, port-prio 8, hops 20 15 port-role Designated, CIST root-id 0000.00:1f:27:b4:7d:80, CIST ext-pathcost 200000 16 CIST regional-root-id 8000.00:16:46:b5:8c:80, CIST port-id 800f, 21 MSTI 1, Flags [Learn, Forward, Agreement, Topology change ACK], port-role Root 23 MSTI bridge-prio 8, port-prio 8, hops 20 [all …]
|
/external/jmdns/src/javax/jmdns/ |
D | ServiceInfo.java | 79 …public static ServiceInfo create(final String type, final String name, final int port, final Strin… in create() argument 80 return new ServiceInfoImpl(type, name, "", port, 0, 0, false, text); in create() 98 …ate(final String type, final String name, final String subtype, final int port, final String text)… in create() argument 99 return new ServiceInfoImpl(type, name, subtype, port, 0, 0, false, text); in create() 119 …public static ServiceInfo create(final String type, final String name, final int port, final int w… in create() argument 120 return new ServiceInfoImpl(type, name, "", port, weight, priority, false, text); in create() 142 …ate(final String type, final String name, final String subtype, final int port, final int weight, … in create() argument 143 return new ServiceInfoImpl(type, name, subtype, port, weight, priority, false, text); in create() 163 …public static ServiceInfo create(final String type, final String name, final int port, final int w… in create() argument 164 return new ServiceInfoImpl(type, name, "", port, weight, priority, false, props); in create() [all …]
|
/external/iptables/extensions/ |
D | libip6t_MASQUERADE.c | 44 unsigned int port, maxport; in parse_ports() local 48 if (!xtables_strtoui(arg, &end, &port, 0, UINT16_MAX)) in parse_ports() 53 r->min_proto.tcp.port in parse_ports() 54 = r->max_proto.tcp.port in parse_ports() 55 = htons(port); in parse_ports() 61 if (maxport < port) in parse_ports() 64 r->min_proto.tcp.port = htons(port); in parse_ports() 65 r->max_proto.tcp.port = htons(maxport); in parse_ports() 110 printf("%hu", ntohs(r->min_proto.tcp.port)); in MASQUERADE_print() 111 if (r->max_proto.tcp.port != r->min_proto.tcp.port) in MASQUERADE_print() [all …]
|
D | libip6t_REDIRECT.c | 43 unsigned int port, maxport; in parse_ports() local 47 if (!xtables_strtoui(arg, &end, &port, 0, UINT16_MAX) && in parse_ports() 48 (port = xtables_service_to_port(arg, NULL)) == (unsigned)-1) in parse_ports() 53 range->min_proto.tcp.port in parse_ports() 54 = range->max_proto.tcp.port in parse_ports() 55 = htons(port); in parse_ports() 62 if (maxport < port) in parse_ports() 65 range->min_proto.tcp.port = htons(port); in parse_ports() 66 range->max_proto.tcp.port = htons(maxport); in parse_ports() 113 printf("%hu", ntohs(range->min_proto.tcp.port)); in REDIRECT_print() [all …]
|
D | libipt_MASQUERADE.c | 45 unsigned int port, maxport; in parse_ports() local 49 if (!xtables_strtoui(arg, &end, &port, 0, UINT16_MAX)) in parse_ports() 54 mr->range[0].min.tcp.port in parse_ports() 55 = mr->range[0].max.tcp.port in parse_ports() 56 = htons(port); in parse_ports() 62 if (maxport < port) in parse_ports() 65 mr->range[0].min.tcp.port = htons(port); in parse_ports() 66 mr->range[0].max.tcp.port = htons(maxport); in parse_ports() 112 printf("%hu", ntohs(r->min.tcp.port)); in MASQUERADE_print() 113 if (r->max.tcp.port != r->min.tcp.port) in MASQUERADE_print() [all …]
|
D | libipt_REDIRECT.c | 44 unsigned int port, maxport; in parse_ports() local 48 if (!xtables_strtoui(arg, &end, &port, 0, UINT16_MAX) && in parse_ports() 49 (port = xtables_service_to_port(arg, NULL)) == (unsigned)-1) in parse_ports() 54 mr->range[0].min.tcp.port in parse_ports() 55 = mr->range[0].max.tcp.port in parse_ports() 56 = htons(port); in parse_ports() 63 if (maxport < port) in parse_ports() 66 mr->range[0].min.tcp.port = htons(port); in parse_ports() 67 mr->range[0].max.tcp.port = htons(maxport); in parse_ports() 115 printf("%hu", ntohs(r->min.tcp.port)); in REDIRECT_print() [all …]
|
/external/guava/guava/src/com/google/common/net/ |
D | HostAndPort.java | 75 private final int port; field in HostAndPort 80 private HostAndPort(String host, int port, boolean hasBracketlessColons) { in HostAndPort() argument 82 this.port = port; in HostAndPort() 99 return port >= 0; in hasPort() 111 return port; in getPort() 118 return hasPort() ? port : defaultPort; in getPortOrDefault() 133 public static HostAndPort fromParts(String host, int port) { in fromParts() argument 134 checkArgument(isValidPort(port), "Port out of range: %s", port); in fromParts() local 137 return new HostAndPort(parsedHost.host, port, parsedHost.hasBracketlessColons); in fromParts() 190 int port = NO_PORT; in fromString() local [all …]
|
/external/python/cpython2/Lib/ |
D | audiodev.py | 54 self.port = None 58 if self.port: 66 if not self.port: 69 while self.port.getfilled() > 0: 74 if self.port: 75 self.port.closeport() 76 self.port = None 118 if not self.port: 120 self.port = al.openport('Python', 'w', self.config) 126 self.port.writesamps(data) [all …]
|
/external/autotest/server/hosts/ |
D | rpc_server_tracker.py | 45 def _setup_port(self, port, command_name, remote_pid=None): argument 83 self.disconnect(port) 85 tunnel_proc = self._host.create_ssh_tunnel(port, local_port) 86 self._rpc_proxy_map[port] = (command_name, tunnel_proc, remote_pid) 90 def _setup_rpc(self, port, command_name, remote_pid=None): argument 102 port, command_name, remote_pid=remote_pid) 105 def tunnel_connect(self, port): argument 112 return self._RPC_HOST_ADDRESS_FORMAT % self._setup_port(port, None) 115 def xmlrpc_connect(self, command, port, command_name=None, argument 163 self.disconnect(port) [all …]
|
/external/nist-sip/java/gov/nist/core/ |
D | HostPort.java | 55 protected int port; field in HostPort 62 port = -1; // marker for not set. in HostPort() 77 if (port != -1) in encode() 78 buffer.append(COLON).append(port); in encode() 92 return port == that.port && host.equals(that.host); in equals() 106 return port; in getPort() 114 return port != -1; in hasPort() 120 port = -1; in removePort() 136 port = p; in setPort() 152 if (port == -1) in merge() [all …]
|
/external/apache-http/src/org/apache/http/auth/ |
D | AuthScope.java | 92 private final int port; field in AuthScope 111 public AuthScope(final String host, int port, in AuthScope() argument 115 this.port = (port < 0) ? ANY_PORT: port; in AuthScope() 134 public AuthScope(final String host, int port, final String realm) { in AuthScope() argument 135 this(host, port, realm, ANY_SCHEME); in AuthScope() 149 public AuthScope(final String host, int port) { in AuthScope() argument 150 this(host, port, ANY_REALM, ANY_SCHEME); in AuthScope() 162 this.port = authscope.getPort(); in AuthScope() 178 return this.port; in getPort() 218 if (this.port == that.port) { in match() [all …]
|