| /lib/liblwip/src/core/ |
| D | def.c | 64 lwip_htons(u16_t n) in lwip_htons() argument 66 return ((n & 0xff) << 8) | ((n & 0xff00) >> 8); in lwip_htons() 76 lwip_ntohs(u16_t n) in lwip_ntohs() argument 78 return lwip_htons(n); in lwip_ntohs() 88 lwip_htonl(u32_t n) in lwip_htonl() argument 90 return ((n & 0xff) << 24) | in lwip_htonl() 91 ((n & 0xff00) << 8) | in lwip_htonl() 92 ((n & 0xff0000UL) >> 8) | in lwip_htonl() 93 ((n & 0xff000000UL) >> 24); in lwip_htonl() 103 lwip_ntohl(u32_t n) in lwip_ntohl() argument [all …]
|
| D | dns.c | 495 unsigned char n; in dns_compare_name() local 498 n = *response++; in dns_compare_name() 500 if ((n & 0xc0) == 0xc0) { in dns_compare_name() 505 while (n > 0) { in dns_compare_name() 511 --n; in dns_compare_name() 530 unsigned char n; in dns_parse_name() local 533 n = *query++; in dns_parse_name() 535 if ((n & 0xc0) == 0xc0) { in dns_parse_name() 540 while (n > 0) { in dns_parse_name() 542 --n; in dns_parse_name() [all …]
|
| D | netif.c | 64 #define NETIF_STATUS_CALLBACK(n) do{ if (n->status_callback) { (n->status_callback)(n); }}while(0) argument 66 #define NETIF_STATUS_CALLBACK(n) argument 70 #define NETIF_LINK_CALLBACK(n) do{ if (n->link_callback) { (n->link_callback)(n); }}while(0) argument 72 #define NETIF_LINK_CALLBACK(n) argument
|
| D | dhcp.c | 512 u8_t n; in dhcp_handle_ack() local 570 n = 0; in dhcp_handle_ack() 571 while(dhcp_option_given(dhcp, DHCP_OPTION_IDX_DNS_SERVER + n) && (n < DNS_MAX_SERVERS)) { in dhcp_handle_ack() 573 ip4_addr_set_u32(&dns_addr, htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_DNS_SERVER + n))); in dhcp_handle_ack() 574 dns_setserver(n, &dns_addr); in dhcp_handle_ack() 575 n++; in dhcp_handle_ack()
|
| /sys/kern/ |
| D | nic.c | 35 NIC *n; in NIC_GetByID() local 37 LIST_FOREACH(n, &nicList, entries) { in NIC_GetByID() 38 if (n->nicNo == nicNo) in NIC_GetByID() 39 return n; in NIC_GetByID() 48 NIC *n; in Debug_NICs() local 50 LIST_FOREACH(n, &nicList, entries) { in Debug_NICs() 51 kprintf("nic%lld: %02x:%02x:%02x:%02x:%02x:%02x\n", n->nicNo, in Debug_NICs() 52 n->mac[0], n->mac[1], n->mac[2], n->mac[3], n->mac[4], n->mac[5]); in Debug_NICs()
|
| /lib/liblwip/src/include/lwip/ |
| D | netifapi.h | 93 #define netifapi_netif_remove(n) netifapi_netif_common(n, netif_remove, NULL) argument 94 #define netifapi_netif_set_up(n) netifapi_netif_common(n, netif_set_up, NULL) argument 95 #define netifapi_netif_set_down(n) netifapi_netif_common(n, netif_set_down, NULL) argument 96 #define netifapi_netif_set_default(n) netifapi_netif_common(n, netif_set_default, NULL) argument 97 #define netifapi_dhcp_start(n) netifapi_netif_common(n, NULL, dhcp_start) argument 98 #define netifapi_dhcp_stop(n) netifapi_netif_common(n, dhcp_stop, NULL) argument 99 #define netifapi_autoip_start(n) netifapi_netif_common(n, NULL, autoip_start) argument 100 #define netifapi_autoip_stop(n) netifapi_netif_common(n, NULL, autoip_stop) argument
|
| D | sockets.h | 295 #define FD_SET(n, p) ((p)->fd_bits[(n)/8] |= (1 << ((n) & 7))) argument 296 #define FD_CLR(n, p) ((p)->fd_bits[(n)/8] &= ~(1 << ((n) & 7))) argument 297 #define FD_ISSET(n,p) ((p)->fd_bits[(n)/8] & (1 << ((n) & 7))) argument
|
| D | api_msg.h | 75 } n; member
|
| D | pbuf.h | 170 u16_t pbuf_memcmp(struct pbuf* p, u16_t offset, const void* s2, u16_t n);
|
| D | sys.h | 71 #define sys_thread_new(n,t,a,s,p) argument
|
| /lib/libc/ |
| D | crt1.c | 50 size_t array_size, n; in finalizer() local 53 for (n = array_size; n > 0; n--) { in finalizer() 54 fn = __fini_array_start[n - 1]; in finalizer() 65 size_t array_size, n; in handle_static_init() local 70 for (n = 0; n < array_size; n++) { in handle_static_init() 71 fn = __preinit_array_start[n]; in handle_static_init() 77 for (n = 0; n < array_size; n++) { in handle_static_init() 78 fn = __init_array_start[n]; in handle_static_init()
|
| D | string.c | 58 strncat(char *dst, const char *src, size_t n) in strncat() argument 60 if (n != 0) { in strncat() 72 } while (--n != 0); in strncat()
|
| D | printf.c | 275 int snprintf(char *str, size_t n, const char *fmt, ...) in snprintf() argument 283 state.maxlen = n; in snprintf()
|
| /lib/liblwip/src/core/snmp/ |
| D | mib_structs.c | 244 struct mib_list_node *n; in snmp_mib_node_insert() local 246 n = rn->head; in snmp_mib_node_insert() 247 while ((n != NULL) && (insert == 0)) in snmp_mib_node_insert() 249 if (n->objid == objid) in snmp_mib_node_insert() 253 *insn = n; in snmp_mib_node_insert() 256 else if (n->objid < objid) in snmp_mib_node_insert() 258 if (n->next == NULL) in snmp_mib_node_insert() 266 nn->prev = n; in snmp_mib_node_insert() 267 n->next = nn; in snmp_mib_node_insert() 282 n = n->next; in snmp_mib_node_insert() [all …]
|
| /lib/liblwip/src/include/ipv6/lwip/ |
| D | inet.h | 55 u16_t htons(u16_t n); 56 u16_t ntohs(u16_t n); 57 u32_t htonl(u32_t n); 58 u32_t ntohl(u32_t n);
|
| /lib/liblwip/src/netif/ppp/ |
| D | randm.c | 127 u32_t n; in avGenRand() local 130 n = LWIP_MIN(bufLen, RANDPOOLSZ); in avGenRand() 136 MEMCPY(buf, tmp, n); in avGenRand() 137 buf += n; in avGenRand() 138 bufLen -= n; in avGenRand()
|
| D | ppp_impl.h | 209 #define INCPTR(n, cp) ((cp) += (n)) argument 210 #define DECPTR(n, cp) ((cp) -= (n)) argument 214 #define BZERO(s, n) memset(s, 0, n) argument 322 int pppWrite(int pd, const u_char *s, int n);
|
| D | vj.c | 78 #define ENCODE(n) { \ argument 79 if ((u_short)(n) >= 256) { \ 81 cp[1] = (u_char)(n); \ 82 cp[0] = (u_char)((n) >> 8); \ 85 *cp++ = (u_char)(n); \ 88 #define ENCODEZ(n) { \ argument 89 if ((u_short)(n) >= 256 || (u_short)(n) == 0) { \ 91 cp[1] = (u_char)(n); \ 92 cp[0] = (u_char)((n) >> 8); \ 95 *cp++ = (u_char)(n); \
|
| D | ppp.c | 914 int n; in pppifOutput() local 918 n = p->len; in pppifOutput() 919 while (n-- > 0) { in pppifOutput() 1030 pppWriteOverEthernet(int pd, const u_char *s, int n) in pppWriteOverEthernet() argument 1037 n -= 2; in pppWriteOverEthernet() 1039 LWIP_ASSERT("PPPOE_HDRLEN + n <= 0xffff", PPPOE_HDRLEN + n <= 0xffff); in pppWriteOverEthernet() 1040 pb = pbuf_alloc(PBUF_LINK, (u16_t)(PPPOE_HDRLEN + n), PBUF_RAM); in pppWriteOverEthernet() 1052 MEMCPY(pb->payload, s, n); in pppWriteOverEthernet() 1060 snmp_add_ifoutoctets(&pc->netif, (u16_t)n); in pppWriteOverEthernet() 1073 pppWrite(int pd, const u_char *s, int n) in pppWrite() argument [all …]
|
| D | md5.c | 79 #define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n)))) argument
|
| D | lcp.c | 212 int n, ret; 218 n = strtol(p, &endp, 16); 224 if (n < 0 || n == 0x5E || n > 0xFF) { 225 option_error("can't escape character 0x%x", n); 228 xmit_accm[0][n >> 5] |= 1 << (n & 0x1F);
|
| /lib/liblwip/src/core/ipv4/ |
| D | ip_addr.c | 283 u8_t n; in ipaddr_ntoa_r() local 291 for(n = 0; n < 4; n++) { in ipaddr_ntoa_r()
|
| /lib/liblwip/test/unit/tcp/ |
| D | tcp_helper.c | 279 struct netif *n; in test_tcp_init_netif() local 287 for (n = netif_list; n != NULL; n = n->next) { in test_tcp_init_netif() 288 if (n == netif) { in test_tcp_init_netif()
|
| /sys/dev/ |
| D | console.h | 32 void Console_Gets(char *str, size_t n);
|
| D | console.c | 88 Console_Gets(char *str, size_t n) in Console_Gets() argument 92 for (i = 0; i < (n - 1); i++) in Console_Gets()
|