Home
last modified time | relevance | path

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

/sys/dev/x86/
Dioport.h8 static __inline__ unsigned char inb(unsigned short port) in inb() argument
13 : "d" (port)); in inb()
17 static __inline__ unsigned short inw(unsigned short port) in inw() argument
22 : "d" (port)); in inw()
26 static __inline__ unsigned int inl(int port) in inl() argument
31 : "d" (port)); in inl()
35 static __inline__ void outb(int port, unsigned char val) in outb() argument
40 "d" (port)); in outb()
43 static __inline__ void outw(int port, unsigned short val) in outw() argument
48 "d" (port)); in outw()
[all …]
/sys/dev/
Dahci.c173 AHCIPort *port[AHCI_MAX_PORTS]; member
234 AHCI_DumpPort(AHCI *ahci, int port) in AHCI_DumpPort() argument
236 volatile AHCIPort *p = ahci->port[port]; in AHCI_DumpPort()
238 kprintf("Port %d\n", port); in AHCI_DumpPort()
254 AHCI_IssueCommand(AHCI *ahci, int port, SGArray *sga, void *cfis, int len) in AHCI_IssueCommand() argument
257 volatile AHCICommandList *cl = ahci->clst[port]; in AHCI_IssueCommand()
258 volatile AHCICommandTable *ct = ahci->ctbl[port][0]; in AHCI_IssueCommand()
259 volatile AHCIPort *p = ahci->port[port]; in AHCI_IssueCommand()
285 AHCI_WaitPort(AHCI *ahci, int port) in AHCI_WaitPort() argument
287 volatile AHCIPort *p = ahci->port[port]; in AHCI_WaitPort()
[all …]
/sys/amd64/
Dpci.c24 uint16_t port = PCI_PORT_DATABASE + (reg & 0x3); in PCICfgRead8() local
27 return inb(port); in PCICfgRead8()
34 uint16_t port = PCI_PORT_DATABASE + (reg & 0x2); in PCICfgRead16() local
39 return inw(port); in PCICfgRead16()
46 uint16_t port = PCI_PORT_DATABASE; in PCICfgRead32() local
51 return inl(port); in PCICfgRead32()
59 uint16_t port = PCI_PORT_DATABASE + (reg & 0x3); in PCICfgWrite8() local
62 outb(port, data); in PCICfgWrite8()
70 uint16_t port = PCI_PORT_DATABASE + (reg & 0x3); in PCICfgWrite16() local
73 outw(port, data); in PCICfgWrite16()
[all …]
/sys/amd64/include/
Damd64op.h431 static INLINE void outb(uint16_t port, uint8_t data) in outb() argument
435 : "a" (data), "d" (port)); in outb()
438 static INLINE void outw(uint16_t port, uint16_t data) in outw() argument
442 : "a" (data), "d" (port)); in outw()
445 static INLINE void outl(uint16_t port, uint32_t data) in outl() argument
449 : "a" (data), "d" (port)); in outl()
452 static INLINE uint8_t inb(uint16_t port) in inb() argument
458 :"d" (port)); in inb()
463 static INLINE uint16_t inw(uint16_t port) in inw() argument
469 :"d" (port)); in inw()
[all …]
/lib/liblwip/src/api/
Dapi_lib.c135 netconn_getaddr(struct netconn *conn, ip_addr_t *addr, u16_t *port, u8_t local) in netconn_getaddr() argument
142 LWIP_ERROR("netconn_getaddr: invalid port", (port != NULL), return ERR_ARG;); in netconn_getaddr()
147 msg.msg.msg.ad.port = port; in netconn_getaddr()
166 netconn_bind(struct netconn *conn, ip_addr_t *addr, u16_t port) in netconn_bind() argument
176 msg.msg.msg.bc.port = port; in netconn_bind()
192 netconn_connect(struct netconn *conn, ip_addr_t *addr, u16_t port) in netconn_connect() argument
202 msg.msg.msg.bc.port = port; in netconn_connect()
489 buf->port = 0; in netconn_recv()
549 netconn_sendto(struct netconn *conn, struct netbuf *buf, ip_addr_t *addr, u16_t port) in netconn_sendto() argument
553 buf->port = port; in netconn_sendto()
Dapi_msg.c116 buf->port = pcb->protocol; in recv_raw()
145 ip_addr_t *addr, u16_t port) argument
179 buf->port = port;
913 msg->err = udp_bind(msg->conn->pcb.udp, msg->msg.bc.ipaddr, msg->msg.bc.port);
918 msg->err = tcp_bind(msg->conn->pcb.tcp, msg->msg.bc.ipaddr, msg->msg.bc.port);
998 msg->err = udp_connect(msg->conn->pcb.udp, msg->msg.bc.ipaddr, msg->msg.bc.port);
1009 msg->msg.bc.port, do_connected);
1145 &msg->msg.b->addr, msg->msg.b->port,
1152 … msg->err = udp_sendto(msg->conn->pcb.udp, msg->msg.b->p, &msg->msg.b->addr, msg->msg.b->port);
1409 *(msg->msg.ad.port) = msg->conn->pcb.raw->protocol;
[all …]
Dsockets.c317 u16_t port; in lwip_accept() local
351 err = netconn_peer(newconn, &naddr, &port); in lwip_accept()
367 sin.sin_port = htons(port); in lwip_accept()
398 LWIP_DEBUGF(SOCKETS_DEBUG, (" port=%"U16_F"\n", port)); in lwip_accept()
566 u16_t port; in lwip_recvfrom() local
673 netconn_getaddr(sock->conn, addr, &port, 0); in lwip_recvfrom()
676 port = netbuf_fromport((struct netbuf *)buf); in lwip_recvfrom()
682 sin.sin_port = htons(port); in lwip_recvfrom()
693 LWIP_DEBUGF(SOCKETS_DEBUG, (" port=%"U16_F" len=%d\n", port, off)); in lwip_recvfrom()
698 netconn_getaddr(sock->conn, addr, &port, 0); in lwip_recvfrom()
[all …]
Dnetbuf.c65 buf->port = 0; in netbuf_new()
/lib/liblwip/src/include/lwip/
Dudp.h88 ip_addr_t *addr, u16_t port);
126 u16_t port);
128 u16_t port);
Dapi.h222 u16_t *port, u8_t local);
226 err_t netconn_bind(struct netconn *conn, ip_addr_t *addr, u16_t port);
227 err_t netconn_connect(struct netconn *conn, ip_addr_t *addr, u16_t port);
236 ip_addr_t *addr, u16_t port);
Dapi_msg.h79 u16_t port; member
84 u16_t *port; member
Dnetbuf.h51 u16_t port; member
86 #define netbuf_fromport(buf) ((buf)->port)
Dtcp.h343 u16_t port);
345 u16_t port, tcp_connected_fn connected);
/lib/liblwip/src/core/
Dudp.c72 #define UDP_ENSURE_LOCAL_PORT_RANGE(port) (((port) & ~UDP_LOCAL_PORT_RANGE_START) + UDP_LOCAL_PORT_… argument
766 udp_bind(struct udp_pcb *pcb, ip_addr_t *ipaddr, u16_t port) argument
773 LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE, (", port = %"U16_F")\n", port));
796 if ((ipcb->local_port == port) &&
803 ("udp_bind: local port %"U16_F" already bound by another pcb\n", port));
812 if (port == 0) {
813 port = udp_new_port();
814 if (port == 0) {
820 pcb->local_port = port;
853 udp_connect(struct udp_pcb *pcb, ip_addr_t *ipaddr, u16_t port) argument
[all …]
Dtcp.c63 #define TCP_ENSURE_LOCAL_PORT_RANGE(port) (((port) & ~TCP_LOCAL_PORT_RANGE_START) + TCP_LOCAL_PORT_… argument
433 tcp_bind(struct tcp_pcb *pcb, ip_addr_t *ipaddr, u16_t port) in tcp_bind() argument
452 if (port == 0) { in tcp_bind()
453 port = tcp_new_port(); in tcp_bind()
454 if (port == 0) { in tcp_bind()
462 if (cpcb->local_port == port) { in tcp_bind()
484 pcb->local_port = port; in tcp_bind()
486 LWIP_DEBUGF(TCP_DEBUG, ("tcp_bind: bind to port %"U16_F"\n", port)); in tcp_bind()
684 tcp_connect(struct tcp_pcb *pcb, ip_addr_t *ipaddr, u16_t port, in tcp_connect() argument
693 LWIP_DEBUGF(TCP_DEBUG, ("tcp_connect to port %"U16_F"\n", port)); in tcp_connect()
[all …]
Ddns.c211 static void dns_recv(void *s, struct udp_pcb *pcb, struct pbuf *p, ip_addr_t *addr, u16_t port);
733 dns_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, ip_addr_t *addr, u16_t port) in dns_recv() argument
745 LWIP_UNUSED_ARG(port); in dns_recv()
Ddhcp.c160 static void dhcp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, ip_addr_t *addr, u16_t port);
1537 dhcp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, ip_addr_t *addr, u16_t port) in dhcp_recv() argument
1545 ip4_addr1_16(addr), ip4_addr2_16(addr), ip4_addr3_16(addr), ip4_addr4_16(addr), port)); in dhcp_recv()
1551 LWIP_UNUSED_ARG(port); in dhcp_recv()
/lib/liblwip/src/core/ipv4/
Dip.c82 #define IP_ACCEPT_LINK_LAYER_ADDRESSED_PORT(port) (((port) == PP_NTOHS(DHCP_CLIENT_PORT)) \ argument
83 || (LWIP_IP_ACCEPT_UDP_PORT(port)))
86 #define IP_ACCEPT_LINK_LAYER_ADDRESSED_PORT(port) (LWIP_IP_ACCEPT_UDP_PORT(port)) argument
89 #define IP_ACCEPT_LINK_LAYER_ADDRESSED_PORT(port) ((port) == PP_NTOHS(DHCP_CLIENT_PORT)) argument
/lib/liblwip/doc/
Drawapi.txt111 u16_t port)
113 Binds the pcb to a local IP address and port number. The IP address
117 If another connection is bound to the same port, the function will
125 to a local port with the tcp_bind() function.
161 u16_t port, err_t (* connected)(void *arg,
332 u16_t port)
339 u16_t port)
357 u16_t port),
Dcontrib.txt62 can also ask for CVS access to submit and maintain your port in the contrib CVS module.
Dsys_arch.txt190 sys_arch_protect() is only required if your port is supporting an operating
197 more information. This function is only required if your port is supporting
/lib/liblwip/
DUPGRADING2 ports or applications to be changed. Use it to update a port or an
98 port any more, just define LWIP_HAVE_LOOPIF to 1.
DCHANGELOG44 to get a clear separation of which functions an application or port may use
49 initial local TCP/UDP ports (so that different port ranges are used after
247 udp port matches
310 * tcp.c: fixed bug #33398 (pointless conversion when checking TCP port range)
464 netif.c) - loopif does not have to be created by the port any more,
546 * tcp.c, udp.c: Fixed bug #33048 (Bad range for IP source port numbers) by
965 support dest-addr and dest-port (optional: LWIP_NETBUF_RECVINFO)
1422 port uses deleted netbuf.
1582 set of variables (=0) or a local one (=1). In this last case, your port should
1737 your lwipopts.h. For port maintainers, you can just add these new parameters
[all …]
/lib/liblwip/src/core/snmp/
Dmsg_in.c61 static void snmp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, ip_addr_t *addr, u16_t port);
822 snmp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, ip_addr_t *addr, u16_t port) in snmp_recv() argument
856 msg_ps->sp = port; in snmp_recv()
Dmib2.c3885 u16_t port; in udpentry_get_value() local
3890 port = (u16_t)od->id_inst_ptr[5]; in udpentry_get_value()
3895 (pcb->local_port == port))) in udpentry_get_value()