Searched refs:port (Results 1 - 20 of 20) sorted by relevance

/bionic/libc/kernel/arch-x86/asm/
H A Dio_32.h30 #define __BUILDIO(bwl,bw,type) static inline void out##bwl(unsigned type value, int port) { out##bwl##_local(value, port); } static inline unsigned type in##bwl(int port) { return in##bwl##_local(port); }
31 #define BUILDIO(bwl,bw,type) static inline void out##bwl##_local(unsigned type value, int port) { __asm__ __volatile__("out" #bwl " %" #bw "0, %w1" : : "a"(value), "Nd"(port)); } static inline unsigned type in##bwl##_local(int port) { unsigned type value; __asm__ __volatile__("in" #bwl " %w1, %" #bw "0" : "=a"(value) : "Nd"(port)); return value; } static inline void out##bwl##_local_p(unsigned type value, int port) { out##bwl##_local(value, port); slow_down_i
[all...]
/bionic/libc/inet/
H A Dbindresvport.c41 static short port; local
54 if (port == 0) {
55 port = START_PORT + (getpid() % NUM_PORTS);
58 for (nn = NUM_PORTS; nn > 0; nn--, port++)
60 if (port == END_PORT)
61 port = START_PORT;
63 sin->sin_port = htons(port);
/bionic/libc/kernel/common/linux/netfilter_ipv4/
H A Dip_conntrack_tuple.h29 __be16 port; member in struct:ip_conntrack_manip_proto::__anon400
32 u_int16_t port; member in struct:ip_conntrack_manip_proto::__anon401
40 u_int16_t port; member in struct:ip_conntrack_manip_proto::__anon403
64 u_int16_t port; member in struct:ip_conntrack_tuple::__anon405::__anon406::__anon407
67 u_int16_t port; member in struct:ip_conntrack_tuple::__anon405::__anon406::__anon408
75 u_int16_t port; member in struct:ip_conntrack_tuple::__anon405::__anon406::__anon410
/bionic/libc/netbsd/net/
H A Dgetservbyport.c33 getservbyport(int port, const char *proto) argument
48 if ( s->s_port == port && !strcmp( s->s_proto, proto ) )
H A Dgetservbyport_r.c47 getservbyport_r(int port, const char *proto, struct servent *sp, argument
54 if (s->s_port != port)
H A Dgetservent.c58 int port; local
70 q = p + 1 + namelen + 3; /* skip name + port + proto */
93 /* copy name + port + setup protocol */
99 port = ((((unsigned char*)p)[0] << 8) |
102 rs->servent.s_port = htons(port);
104 p += 4; /* skip port(2) + proto(1) + aliascount(1) */
H A Dgetnameinfo.c261 u_short port; local
293 port = ((const struct sockinet *)(const void *)sa)->si_port;
307 sp = getservbyport(port,
315 snprintf(numserv, sizeof(numserv), "%u", ntohs(port));
H A Dgetaddrinfo.c1151 int port; local
1187 port = str2number(servname);
1188 if (port >= 0) {
1191 if (port < 0 || port > 65535)
1193 port = htons(port);
1212 port = sp->s_port;
1219 ai->ai_addr)->sin_port = port;
1224 ai->ai_addr)->sin6_port = port;
[all...]
/bionic/libc/kernel/common/linux/
H A Dkernelcapi.h32 unsigned int port; member in struct:kcapi_carddef
H A Dusbdevice_fs.h105 char port [127]; member in struct:usbdevfs_hub_portinfo
H A Dif.h122 unsigned char port; member in struct:ifmap
H A Dif_link.h94 __u8 port; member in struct:rtnl_link_ifmap
H A Dtelephony.h40 port, enumerator in enum:__anon556
H A Dwanrouter.h345 unsigned char port; member in struct:wanif_conf
H A Dethtool.h30 __u8 port; member in struct:ethtool_cmd
/bionic/libc/tools/
H A Dgenserv.py18 def __init__(self,name,port,proto):
20 self.port = port
29 result += "\\%0o\\%0o" % (((self.port >> 8) & 255), self.port & 255)
/bionic/libc/kernel/arch-mips/asm/
H A Dio.h37 #include <mangle-port.h>
77 #define __BUILD_IOPORT_SINGLE(pfx, bwlq, type, p, slow) static inline void pfx##out##bwlq##p(type val, unsigned long port) { volatile type *__addr; type __val; __addr = (void *)__swizzle_addr_##bwlq(mips_io_port_base + port); __val = pfx##ioswab##bwlq(__addr, val); BUILD_BUG_ON(sizeof(type) > sizeof(unsigned long)); *__addr = __val; slow; } static inline type pfx##in##bwlq##p(unsigned long port) { volatile type *__addr; type __val; __addr = (void *)__swizzle_addr_##bwlq(mips_io_port_base + port); BUILD_BUG_ON(sizeof(type) > sizeof(unsigned long)); __val = *__addr; slow; return pfx##ioswab##bwlq(__addr, __val); }
94 #define __BUILD_IOPORT_STRING(bwlq, type) static inline void outs##bwlq(unsigned long port, const void *addr, unsigned int count) { const volatile type *__addr = addr; while (count--) { __mem_out##bwlq(*__addr, port); __addr++; } } static inline void ins##bwlq(unsigned long port, void *addr, unsigned int count) { volatile type *__addr = addr; while (count--) { *__addr = __mem_in##bwlq(port); __addr++; } }
/bionic/libc/kernel/common/linux/sunrpc/
H A Dxprt.h87 void (*set_port)(struct rpc_xprt *xprt, unsigned short port);
145 unsigned short port; member in struct:rpc_xprt
/bionic/libc/netbsd/nameser/
H A Dns_print.c392 u_int priority, weight, port; local
401 port = ns_get16(rdata); rdata += NS_INT16SZ;
402 len = SPRINTF((t, "%u %u %u ", priority, weight, port));
/bionic/libc/netbsd/resolv/
H A Dres_send.c4 * Copyright 2008 Android Open Source Project (source port randomization)
165 /* BIONIC-BEGIN: implement source port randomization */
196 /* first try to bind to a random source port a few times */
198 /* find a random port between 1025 .. 65534 */
199 int port = 1025 + (res_randomid() % (65535-1025)); local
201 u.sin.sin_port = htons(port);
203 u.sin6.sin6_port = htons(port);
210 /* let the system decide which port is best */
1068 * port with no nameserver will cause an
1069 * ICMP port unreachabl
[all...]

Completed in 311 milliseconds