/lib/liblwip/src/core/ipv6/ |
D | ip6_addr.c | 41 return((addr1->addr[0] & mask->addr[0]) == (addr2->addr[0] & mask->addr[0]) && in ip_addr_netcmp() 42 (addr1->addr[1] & mask->addr[1]) == (addr2->addr[1] & mask->addr[1]) && in ip_addr_netcmp() 43 (addr1->addr[2] & mask->addr[2]) == (addr2->addr[2] & mask->addr[2]) && in ip_addr_netcmp() 44 (addr1->addr[3] & mask->addr[3]) == (addr2->addr[3] & mask->addr[3])); in ip_addr_netcmp() 51 return(addr1->addr[0] == addr2->addr[0] && in ip_addr_cmp() 52 addr1->addr[1] == addr2->addr[1] && in ip_addr_cmp() 53 addr1->addr[2] == addr2->addr[2] && in ip_addr_cmp() 54 addr1->addr[3] == addr2->addr[3]); in ip_addr_cmp() 68 ip_addr_isany(struct ip_addr *addr) in ip_addr_isany() argument 70 if (addr == NULL) return 1; in ip_addr_isany() [all …]
|
D | ip6.c | 322 LWIP_DEBUGF(IP_DEBUG, ("ip_output: No route to 0x%"X32_F"\n", dest->addr)); in ip_output() 339 LWIP_DEBUGF(IP_DEBUG, ("ip_output: No route to 0x%"X32_F"\n", dest->addr)); in ip_output_hinted() 371 (ntohl(iphdr->src.addr[0]) >> 16) & 0xffff, in ip_debug_print() 372 ntohl(iphdr->src.addr[0]) & 0xffff)); in ip_debug_print() 374 (ntohl(iphdr->src.addr[1]) >> 16) & 0xffff, in ip_debug_print() 375 ntohl(iphdr->src.addr[1]) & 0xffff)); in ip_debug_print() 377 (ntohl(iphdr->src.addr[2]) >> 16) & 0xffff, in ip_debug_print() 378 ntohl(iphdr->src.addr[2]) & 0xffff)); in ip_debug_print() 380 (ntohl(iphdr->src.addr[3]) >> 16) & 0xffff, in ip_debug_print() 381 ntohl(iphdr->src.addr[3]) & 0xffff)); in ip_debug_print() [all …]
|
/lib/liblwip/src/include/ipv4/lwip/ |
D | ip_addr.h | 45 u32_t addr; member 55 PACK_STRUCT_FIELD(u32_t addr); 140 (ipaddr)->addr = ((u32_t)((a) & 0xff) << 24) | \ 148 (ipaddr)->addr = ((u32_t)((d) & 0xff) << 24) | \ 162 #define ip_addr_copy(dest, src) ((dest).addr = (src).addr) 164 #define ip_addr_set(dest, src) ((dest)->addr = \ 166 (src)->addr)) 168 #define ip_addr_set_zero(ipaddr) ((ipaddr)->addr = 0) 170 #define ip_addr_set_any(ipaddr) ((ipaddr)->addr = IPADDR_ANY) 172 #define ip_addr_set_loopback(ipaddr) ((ipaddr)->addr = PP_HTONL(IPADDR_LOOPBACK)) [all …]
|
D | inet.h | 99 #define inet_aton(cp, addr) ipaddr_aton(cp, (ip_addr_t*)addr) argument 100 #define inet_ntoa(addr) ipaddr_ntoa((ip_addr_t*)&(addr)) argument 101 #define inet_ntoa_r(addr, buf, buflen) ipaddr_ntoa_r((ip_addr_t*)&(addr), buf, buflen) argument
|
/lib/liblwip/src/include/ipv6/lwip/ |
D | ip_addr.h | 48 PACK_STRUCT_FIELD(u32_t addr[4]); 71 #define IP6_ADDR(ipaddr, a,b,c,d,e,f,g,h) do { (ipaddr)->addr[0] = htonl((u32_t)((a & 0xffff) << 16… 72 … (ipaddr)->addr[1] = htonl(((c & 0xffff) << 16) | (d & 0xffff)); \ 73 … (ipaddr)->addr[2] = htonl(((e & 0xffff) << 16) | (f & 0xffff)); \ 74 … (ipaddr)->addr[3] = htonl(((g & 0xffff) << 16) | (h & 0xffff)); } while(0) 80 u8_t ip_addr_isany(struct ip_addr *addr); 84 (ntohl(ipaddr->addr[0]) >> 16) & 0xffff, \ 85 ntohl(ipaddr->addr[0]) & 0xffff, \ 86 (ntohl(ipaddr->addr[1]) >> 16) & 0xffff, \ 87 ntohl(ipaddr->addr[1]) & 0xffff, \ [all …]
|
/sys/amd64/ |
D | pci.c | 23 uint32_t addr = PCIGetAddr(bus, slot, func, reg); in PCICfgRead8() local 26 outl(PCI_PORT_ADDR, addr); in PCICfgRead8() 33 uint32_t addr = PCIGetAddr(bus, slot, func, reg); in PCICfgRead16() local 38 outl(PCI_PORT_ADDR, addr); in PCICfgRead16() 45 uint32_t addr = PCIGetAddr(bus, slot, func, reg); in PCICfgRead32() local 50 outl(PCI_PORT_ADDR, addr); in PCICfgRead32() 58 uint32_t addr = PCIGetAddr(bus, slot, func, reg); in PCICfgWrite8() local 61 outl(PCI_PORT_ADDR, addr); in PCICfgWrite8() 69 uint32_t addr = PCIGetAddr(bus, slot, func, reg); in PCICfgWrite16() local 72 outl(PCI_PORT_ADDR, addr); in PCICfgWrite16() [all …]
|
D | mbentry.c | 17 void MachineBoot_Entry(unsigned long magic, unsigned long addr); 81 MachineBoot_Entry(unsigned long magic, unsigned long addr) in MachineBoot_Entry() argument 83 multiboot_info_t *mbi = (multiboot_info_t *)addr; in MachineBoot_Entry() 143 (unsigned) multiboot_aout_sym->addr); in MachineBoot_Entry() 154 (unsigned) multiboot_elf_sec->addr, (unsigned) multiboot_elf_sec->shndx); in MachineBoot_Entry() 174 mmap->addr, in MachineBoot_Entry() 178 memRegionStart[memRegionIdx] = mmap->addr; in MachineBoot_Entry()
|
D | ioapic.c | 32 uint32_t volatile *addr = (uint32_t volatile *)DMPA2VA(IOAPICBASE); in IOAPIC_Read() local 37 *addr = reg; in IOAPIC_Read() 44 uint32_t volatile *addr = (uint32_t volatile *)DMPA2VA(IOAPICBASE); in IOAPIC_Write() local 49 *addr = reg; in IOAPIC_Write()
|
/lib/libc/posix/ |
D | mman.c | 35 mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset) in mmap() argument 44 realAddr = OSMemMap(addr, len, prot | flags); in mmap() 55 munmap(void *addr, size_t len) in munmap() argument 59 return OSMemUnmap(addr, len); in munmap() 63 mprotect(void *addr, size_t len, int prot) in mprotect() argument 67 return OSMemProtect(addr, len, prot); in mprotect() 71 madvise(void *addr, size_t len, int behav) in madvise() argument
|
/lib/liblwip/src/core/ipv4/ |
D | ip_addr.c | 55 ip4_addr_isbroadcast(u32_t addr, const struct netif *netif) in ip4_addr_isbroadcast() argument 58 ip4_addr_set_u32(&ipaddr, addr); in ip4_addr_isbroadcast() 61 if ((~addr == IPADDR_ANY) || in ip4_addr_isbroadcast() 62 (addr == IPADDR_ANY)) { in ip4_addr_isbroadcast() 70 } else if (addr == ip4_addr_get_u32(&netif->ip_addr)) { in ip4_addr_isbroadcast() 75 && ((addr & ~ip4_addr_get_u32(&netif->netmask)) == in ip4_addr_isbroadcast() 152 ipaddr_aton(const char *cp, ip_addr_t *addr) in ipaddr_aton() argument 246 if (addr) { in ipaddr_aton() 247 ip4_addr_set_u32(addr, htonl(val)); in ipaddr_aton() 261 ipaddr_ntoa(const ip_addr_t *addr) in ipaddr_ntoa() argument [all …]
|
D | inet_chksum.c | 277 u32_t addr; in inet_chksum_pseudo() local 302 addr = ip4_addr_get_u32(src); in inet_chksum_pseudo() 303 acc += (addr & 0xffffUL); in inet_chksum_pseudo() 304 acc += ((addr >> 16) & 0xffffUL); in inet_chksum_pseudo() 305 addr = ip4_addr_get_u32(dest); in inet_chksum_pseudo() 306 acc += (addr & 0xffffUL); in inet_chksum_pseudo() 307 acc += ((addr >> 16) & 0xffffUL); in inet_chksum_pseudo() 337 u32_t addr; in inet_chksum_pseudo_partial() local 368 addr = ip4_addr_get_u32(src); in inet_chksum_pseudo_partial() 369 acc += (addr & 0xffffUL); in inet_chksum_pseudo_partial() [all …]
|
D | autoip.c | 202 u32_t addr = ntohl(LWIP_AUTOIP_CREATE_SEED_ADDR(netif)); in autoip_create_addr() local 203 addr += netif->autoip->tried_llipaddr; in autoip_create_addr() 204 addr = AUTOIP_NET | (addr & 0xffff); in autoip_create_addr() 207 if (addr < AUTOIP_RANGE_START) { in autoip_create_addr() 208 addr += AUTOIP_RANGE_END - AUTOIP_RANGE_START + 1; in autoip_create_addr() 210 if (addr > AUTOIP_RANGE_END) { in autoip_create_addr() 211 addr -= AUTOIP_RANGE_END - AUTOIP_RANGE_START + 1; in autoip_create_addr() 213 LWIP_ASSERT("AUTOIP address not in range", (addr >= AUTOIP_RANGE_START) && in autoip_create_addr() 214 (addr <= AUTOIP_RANGE_END)); in autoip_create_addr() 215 ip4_addr_set_u32(ipaddr, htonl(addr)); in autoip_create_addr() [all …]
|
/lib/libc/ |
D | malloc.c | 71 char *addr = (char *)pool[idx].top; in grow_small() local 73 addr = (char *)mmap(addr, bucketSz * HEAP_INCREMENT, in grow_small() 76 if (addr == NULL) { in grow_small() 84 Header *obj = (Header *)(addr + i * bucketSz); in grow_small() 128 Header *addr; in malloc_large() local 130 addr = (Header *)mmap((void *)ptr, realSz, in malloc_large() 133 if (addr == NULL) { in malloc_large() 137 addr->magic = HEAP_MAGIC; in malloc_large() 138 addr->status = 0; in malloc_large() 139 addr->size = realSz; in malloc_large() [all …]
|
D | syscall.c | 41 OSMemMap(void *addr, uint64_t len, int flags) in OSMemMap() argument 43 return (void *)syscall(SYSCALL_MMAP, addr, len, flags); in OSMemMap() 47 OSMemUnmap(void *addr, uint64_t len) in OSMemUnmap() argument 49 return syscall(SYSCALL_MUNMAP, addr, len); in OSMemUnmap() 53 OSMemProtect(void *addr, uint64_t len, int flags) in OSMemProtect() argument 55 return syscall(SYSCALL_MPROTECT, addr, len, flags); in OSMemProtect() 59 OSRead(uint64_t fd, void *addr, uint64_t off, uint64_t length) in OSRead() argument 61 return syscall(SYSCALL_READ, fd, addr, off, length); in OSRead() 65 OSWrite(uint64_t fd, const void *addr, uint64_t off, uint64_t length) in OSWrite() argument 67 return syscall(SYSCALL_WRITE, fd, addr, off, length); in OSWrite()
|
/sys/include/ |
D | mman.h | 18 void *mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset); 19 int munmap(void *addr, size_t len); 20 int mprotect(void *addr, size_t len, int prot); 21 int madvise(void *addr, size_t len, int behav);
|
/lib/liblwip/test/unit/tcp/ |
D | tcp_helper.c | 65 iphdr->dest.addr = dst_ip->addr; in tcp_create_segment_wnd() 66 iphdr->src.addr = src_ip->addr; in tcp_create_segment_wnd() 147 pcb->local_ip.addr = local_ip->addr; in tcp_set_state() 149 pcb->remote_ip.addr = remote_ip->addr; in tcp_set_state() 153 pcb->local_ip.addr = local_ip->addr; in tcp_set_state() 157 pcb->local_ip.addr = local_ip->addr; in tcp_set_state() 159 pcb->remote_ip.addr = remote_ip->addr; in tcp_set_state() 248 current_iphdr_dest.addr = 0; in test_tcp_input() 249 current_iphdr_src.addr = 0; in test_tcp_input()
|
/lib/liblwip/src/core/ |
D | dns.c | 211 static void dns_recv(void *s, struct udp_pcb *pcb, struct pbuf *p, ip_addr_t *addr, u16_t port); 332 entry->addr = init_entry->addr; in dns_init_local() 354 return ip4_addr_get_u32(&entry->addr); in dns_lookup_local() 362 return ip4_addr_get_u32(&local_hostlist_static[i].addr); in dns_lookup_local() 379 dns_local_removehost(const char *hostname, const ip_addr_t *addr) in dns_local_removehost() argument 386 ((addr == NULL) || ip_addr_cmp(&entry->addr, addr))) { in dns_local_removehost() 414 dns_local_addhost(const char *hostname, const ip_addr_t *addr) in dns_local_addhost() argument 428 ip_addr_copy(entry->addr, *addr); in dns_local_addhost() 454 u32_t addr; in dns_lookup() local 457 if ((addr = dns_lookup_local(name)) != IPADDR_NONE) { in dns_lookup() [all …]
|
/include/ |
D | syscall.h | 17 void *OSMemMap(void *addr, uint64_t len, int flags); 18 int OSMemUnmap(void *addr, uint64_t len); 19 int OSMemProtect(void *addr, uint64_t len, int flags); 22 int OSRead(uint64_t fd, void *addr, uint64_t off, uint64_t length); 23 int OSWrite(uint64_t fd, const void *addr, uint64_t off, uint64_t length);
|
/lib/liblwip/src/netif/ |
D | etharp.c | 454 ethaddr->addr[0], ethaddr->addr[1], ethaddr->addr[2], 455 ethaddr->addr[3], ethaddr->addr[4], ethaddr->addr[5])); 531 ethaddr->addr[0], ethaddr->addr[1], ethaddr->addr[2], 532 ethaddr->addr[3], ethaddr->addr[4], ethaddr->addr[5])); 791 …dst_hwaddr = ip_addr_islinklocal(&netif->ip_addr) ? (u8_t*)(ethbroadcast.addr) : hdr->shwaddr.addr; 908 mcastaddr.addr[0] = LL_MULTICAST_ADDR_0; 909 mcastaddr.addr[1] = LL_MULTICAST_ADDR_1; 910 mcastaddr.addr[2] = LL_MULTICAST_ADDR_2; 911 mcastaddr.addr[3] = ip4_addr2(ipaddr) & 0x7f; 912 mcastaddr.addr[4] = ip4_addr3(ipaddr); [all …]
|
/lib/liblwip/src/api/ |
D | netdb.c | 53 ip_addr_t addr; member 88 ip_addr_t addr; in lwip_gethostbyname() local 97 err = netconn_gethostbyname(name, &addr); in lwip_gethostbyname() 105 s_hostent_addr = addr; in lwip_gethostbyname() 200 err = netconn_gethostbyname(name, &h->addr); in lwip_gethostbyname_r() 212 h->addr_list[0] = &h->addr; in lwip_gethostbyname_r() 271 ip_addr_t addr; in lwip_getaddrinfo() local 297 err = netconn_gethostbyname(nodename, &addr); in lwip_getaddrinfo() 303 ip_addr_set_loopback(&addr); in lwip_getaddrinfo() 322 inet_addr_from_ipaddr(&sa->sin_addr, &addr); in lwip_getaddrinfo()
|
D | api_lib.c | 135 netconn_getaddr(struct netconn *conn, ip_addr_t *addr, u16_t *port, u8_t local) in netconn_getaddr() argument 141 LWIP_ERROR("netconn_getaddr: invalid addr", (addr != NULL), return ERR_ARG;); in netconn_getaddr() 146 msg.msg.msg.ad.ipaddr = addr; in netconn_getaddr() 166 netconn_bind(struct netconn *conn, ip_addr_t *addr, u16_t port) in netconn_bind() argument 175 msg.msg.msg.bc.ipaddr = addr; in netconn_bind() 192 netconn_connect(struct netconn *conn, ip_addr_t *addr, u16_t port) in netconn_connect() argument 201 msg.msg.msg.bc.ipaddr = addr; in netconn_connect() 490 ip_addr_set_any(&buf->addr); in netconn_recv() 549 netconn_sendto(struct netconn *conn, struct netbuf *buf, ip_addr_t *addr, u16_t port) in netconn_sendto() argument 552 ip_addr_set(&buf->addr, addr); in netconn_sendto() [all …]
|
/lib/liblwip/src/include/lwip/ |
D | dns.h | 86 ip_addr_t addr; member 110 err_t dns_gethostbyname(const char *hostname, ip_addr_t *addr, 114 int dns_local_removehost(const char *hostname, const ip_addr_t *addr); 115 err_t dns_local_addhost(const char *hostname, const ip_addr_t *addr);
|
D | netbuf.h | 50 ip_addr_t addr; member 84 #define netbuf_fromaddr(buf) (&((buf)->addr)) 85 #define netbuf_set_fromaddr(buf, fromaddr) ip_addr_set((&(buf)->addr), fromaddr) 89 #define netbuf_set_destaddr(buf, destaddr) ip_addr_set((&(buf)->addr), destaddr)
|
/tests/ |
D | lwiptest.c | 16 static ip_addr_t addr, mask, gw; in main() local 18 IP4_ADDR(&addr, 192, 168, 1, 2); in main() 24 netif_add(&netif, &addr, &mask, &gw, NULL, ethernetif_init, ethernet_input); in main()
|
/sys/dev/ |
D | e1000.c | 96 volatile uint64_t addr; // Address member 111 volatile uint64_t addr; // Address member 193 MMIO_Read32(E1000Dev *dev, uint64_t addr) in MMIO_Read32() argument 195 return *(uint32_t volatile *)(dev->mmiobase + addr); in MMIO_Read32() 199 MMIO_Write32(E1000Dev *dev, uint64_t addr, uint32_t val) in MMIO_Write32() argument 201 *(uint32_t *)(dev->mmiobase + addr) = val; in MMIO_Write32() 205 E1000_EEPROM_Read(E1000Dev *dev, uint8_t addr) in E1000_EEPROM_Read() argument 210 MMIO_Write32(dev, E1000_REG_EERD, ((uint32_t)addr << 8) | 1); in E1000_EEPROM_Read() 327 void *data = (void *)DMPA2VA(dev->rxDesc[dev->rxTail].addr); in E1000_Dequeue() 363 void *data = (void *)DMPA2VA(dev->txDesc[dev->txTail].addr); in E1000_Enqueue() [all …]
|