Home
last modified time | relevance | path

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

12345678910>>...115

/external/libevent/
Devent_iocp.c66 struct event_iocp_port *port = port_; in loop() local
67 long ms = port->ms; in loop()
68 HANDLE p = port->port; in loop()
79 EnterCriticalSection(&port->lock); in loop()
80 if (port->shutdown) { in loop()
81 if (--port->n_live_threads == 0) in loop()
82 ReleaseSemaphore(port->shutdownSemaphore, 1, in loop()
84 LeaveCriticalSection(&port->lock); in loop()
87 LeaveCriticalSection(&port->lock); in loop()
95 EnterCriticalSection(&port->lock); in loop()
[all …]
/external/selinux/libsepol/src/
Dport_record.c63 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 …]
Dibendport_record.c17 int port; member
28 int port; member
54 int port, in sepol_ibendport_key_create() argument
69 tmp_key->port = port; in sepol_ibendport_key_create()
80 ibdev_name, port); in sepol_ibendport_key_create()
87 const char **ibdev_name, int *port) in hidden_def()
90 *port = key->port; in hidden_def()
100 (handle, ibendport->ibdev_name, ibendport->port, key_ptr) < 0) { in hidden_def()
103 ibendport->port); in hidden_def()
125 if ((ibendport->port == key->port) && !rc) in sepol_ibendport_compare()
[all …]
Dports.c50 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/
Dserial.c31 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/
Dnode.cc30 bool CanAcceptMoreMessages(const Port* port) { in CanAcceptMoreMessages() argument
33 uint64_t next_sequence_num = port->message_queue.next_sequence_num(); in CanAcceptMoreMessages()
34 if (port->state == Port::kClosed) in CanAcceptMoreMessages()
36 if (port->peer_closed || port->remove_proxy_on_last_message) { in CanAcceptMoreMessages()
37 if (port->last_sequence_num_to_receive == next_sequence_num - 1) in CanAcceptMoreMessages()
47 explicit LockedPort(Port* port) : port_(port) { in LockedPort() argument
108 scoped_refptr<Port> port = GetPort(port_name); in GetPort() local
109 if (!port) in GetPort()
112 *port_ref = PortRef(port_name, std::move(port)); in GetPort()
120 scoped_refptr<Port> port(new Port(kInitialSequenceNum, kInitialSequenceNum)); in CreateUninitializedPort() local
[all …]
/external/syslinux/gpxe/src/drivers/net/
Dskge.c62 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 …]
Dsky2.c130 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/tensorflow/tensorflow/stream_executor/
Ddso_loader.cc47 /* static */ port::Status DsoLoader::GetCublasDsoHandle(void** dso_handle) { in GetCublasDsoHandle()
48 return GetDsoHandle(FindDsoPath(port::Env::Default()->FormatLibraryFileName( in GetCublasDsoHandle()
54 /* static */ port::Status DsoLoader::GetCudnnDsoHandle(void** dso_handle) { in GetCudnnDsoHandle()
58 return GetDsoHandle(FindDsoPath(port::Env::Default()->FormatLibraryFileName( in GetCudnnDsoHandle()
64 /* static */ port::Status DsoLoader::GetCufftDsoHandle(void** dso_handle) { in GetCufftDsoHandle()
65 return GetDsoHandle(FindDsoPath(port::Env::Default()->FormatLibraryFileName( in GetCufftDsoHandle()
71 /* static */ port::Status DsoLoader::GetCurandDsoHandle(void** dso_handle) { in GetCurandDsoHandle()
72 return GetDsoHandle(FindDsoPath(port::Env::Default()->FormatLibraryFileName( in GetCurandDsoHandle()
78 /* static */ port::Status DsoLoader::GetLibcudaDsoHandle(void** dso_handle) { in GetLibcudaDsoHandle()
81 FindDsoPath(port::Env::Default()->FormatLibraryFileName("nvcuda", ""), in GetLibcudaDsoHandle()
[all …]
Dkernel_spec.h80 explicit KernelLoaderSpec(port::StringPiece kernelname);
105 OnDiskKernelLoaderSpec(port::StringPiece filename,
106 port::StringPiece kernelname);
117 CudaPtxOnDisk(port::StringPiece filename, port::StringPiece kernelname);
129 CudaCubinOnDisk(port::StringPiece filename, port::StringPiece kernelname);
147 typedef std::tuple<int, int, port::StringPiece> PtxSpec;
157 CudaPtxInMemory(port::StringPiece ptx, port::StringPiece kernelname,
164 port::StringPiece kernel_name, bool ptx_compressed = false);
222 OpenCLTextOnDisk(port::StringPiece filename, port::StringPiece kernelname);
234 OpenCLBinaryOnDisk(port::StringPiece filename, port::StringPiece kernelname);
[all …]
Ddso_loader.h44 static port::Status GetCublasDsoHandle(void** dso_handle);
45 static port::Status GetCudnnDsoHandle(void** dso_handle);
46 static port::Status GetCufftDsoHandle(void** dso_handle);
47 static port::Status GetCurandDsoHandle(void** dso_handle);
48 static port::Status GetLibcudaDsoHandle(void** dso_handle);
49 static port::Status GetLibcuptiDsoHandle(void** dso_handle);
52 static void RegisterRpath(port::StringPiece path);
65 static port::Status GetDsoHandle(port::StringPiece path, void** dso_handle,
84 static string FindDsoPath(port::StringPiece library_name,
85 port::StringPiece runfiles_relpath);
[all …]
Dkernel_spec.cc22 KernelLoaderSpec::KernelLoaderSpec(port::StringPiece kernelname) in KernelLoaderSpec()
25 OnDiskKernelLoaderSpec::OnDiskKernelLoaderSpec(port::StringPiece filename, in OnDiskKernelLoaderSpec()
26 port::StringPiece kernelname) in OnDiskKernelLoaderSpec()
29 CudaPtxOnDisk::CudaPtxOnDisk(port::StringPiece filename, in CudaPtxOnDisk()
30 port::StringPiece kernelname) in CudaPtxOnDisk()
33 CudaCubinOnDisk::CudaCubinOnDisk(port::StringPiece filename, in CudaCubinOnDisk()
34 port::StringPiece kernelname) in CudaCubinOnDisk()
38 port::StringPiece kernelname) in CudaCubinInMemory()
50 CudaPtxInMemory::CudaPtxInMemory(port::StringPiece ptx, in CudaPtxInMemory()
51 port::StringPiece kernel_name, in CudaPtxInMemory()
[all …]
/external/tensorflow/tensorflow/stream_executor/cuda/
Dcuda_diagnostics.cc66 return port::Printf("%d.%d.%d", std::get<0>(version), std::get<1>(version), std::get<2>(version)); in DriverVersionToString()
69 string DriverVersionStatusToString(port::StatusOr<DriverVersion> version) { in DriverVersionStatusToString()
77 port::StatusOr<DriverVersion> StringToDriverVersion(const string &value) { in StringToDriverVersion()
78 std::vector<string> pieces = port::Split(value, '.'); in StringToDriverVersion()
80 return port::Status{ in StringToDriverVersion()
81 port::error::INVALID_ARGUMENT, in StringToDriverVersion()
82port::Printf("expected %%d.%%d, %%d.%%d.%%d, or %%d.%%d.%%d.%%d form for driver version; got \"%s\… in StringToDriverVersion()
89 if (!port::safe_strto32(pieces[0], &major)) { in StringToDriverVersion()
90 return port::Status{ in StringToDriverVersion()
91 port::error::INVALID_ARGUMENT, in StringToDriverVersion()
[all …]
Dcuda_driver.cc222 return port::StrCat("CUresult(", static_cast<int>(result), ")"); in ToString()
248 static port::ThreadPool *InitializeDriverExecutor() { in InitializeDriverExecutor()
249 return new port::ThreadPool(port::Env::Default(), port::ThreadOptions(), in InitializeDriverExecutor()
253 port::ThreadPool *GetDriverExecutor() { in GetDriverExecutor()
255 static port::ThreadPool *thread_pool = InitializeDriverExecutor(); in GetDriverExecutor()
279 << ToString(res) << " :: " << port::CurrentStackTrace(); in SynchronizeOrDie()
350 return port::StrCat(value.ValueOrDie()); in CUDAPointerToDeviceString()
394 static port::Status InternalInit() { in InternalInit()
403 return port::Status::OK(); in InternalInit()
408 return port::Status{port::error::ABORTED, in InternalInit()
[all …]
/external/autotest/client/site_tests/usbpd_GFU/
Dusbpd_GFU.py65 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/selinux/libsemanage/src/
Dport_record.c27 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/swiftshader/third_party/LLVM/test/CodeGen/MBlaze/
Dfsl.ll8 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/tensorflow/tensorflow/tools/dist_test/scripts/
Dk8s_tensorflow_lib.py142 port, argument
174 num_workers, num_param_servers, port, name_prefix, use_cluster_spec)
184 port=port,
194 config += WORKER_LB_SVC.format(port=port,
198 config += WORKER_SVC.format(port=port,
212 port=port,
223 port=port, param_server_id=param_server, name_prefix=name_prefix)
226 port=port, param_server_id=param_server, name_prefix=name_prefix)
234 port, argument
237 return ClusterSpecString(num_workers, num_param_servers, port, name_prefix)
[all …]
/external/python/cpython2/Demo/sockets/
Dgopher.py41 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/
Dpd_console.py125 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/nist-sip/java/gov/nist/core/net/
DDefaultNetworkLayer.java69 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 …]
/external/tcpdump/tests/
Dmstp-v.out2 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/tensorflow/tensorflow/core/platform/posix/
Dnet.cc34 bool IsPortAvailable(int* port, bool is_tcp) { in IsPortAvailable() argument
42 CHECK_GE(*port, 0); in IsPortAvailable()
43 CHECK_LE(*port, 65535); in IsPortAvailable()
60 addr.sin_port = htons(static_cast<uint16_t>(*port)); in IsPortAvailable()
62 LOG(WARNING) << "bind(port=" << *port << ") failed: " << strerror(errno); in IsPortAvailable()
77 if (*port == 0) { in IsPortAvailable()
78 *port = actual_port; in IsPortAvailable()
80 CHECK_EQ(*port, actual_port); in IsPortAvailable()
98 int port; in PickUnusedPortOrDie() local
103 port = getpid() % (65536 - 30000) + 30000; in PickUnusedPortOrDie()
[all …]
/external/jmdns/src/javax/jmdns/
DServiceInfo.java79 …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/tensorflow/tensorflow/core/platform/windows/
Dnet.cc36 bool IsPortAvailable(int* port, bool is_tcp) { in IsPortAvailable() argument
44 CHECK_GE(*port, 0); in IsPortAvailable()
45 CHECK_LE(*port, 65535); in IsPortAvailable()
66 addr.sin_port = htons((uint16_t)*port); in IsPortAvailable()
69 LOG(WARNING) << "bind(port=" << *port in IsPortAvailable()
87 if (*port == 0) { in IsPortAvailable()
88 *port = actual_port; in IsPortAvailable()
90 CHECK_EQ(*port, actual_port); in IsPortAvailable()
115 int port; in PickUnusedPortOrDie() local
120 port = GetCurrentProcessId() % (65536 - 30000) + 30000; in PickUnusedPortOrDie()
[all …]

12345678910>>...115