Home
last modified time | relevance | path

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

12

/lib/liblwip/src/core/
Ddef.c64 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 …]
Ddns.c495 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 …]
Dnetif.c64 #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
Ddhcp.c512 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/
Dnic.c35 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/
Dnetifapi.h93 #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
Dsockets.h295 #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
Dapi_msg.h75 } n; member
Dpbuf.h170 u16_t pbuf_memcmp(struct pbuf* p, u16_t offset, const void* s2, u16_t n);
Dsys.h71 #define sys_thread_new(n,t,a,s,p) argument
/lib/libc/
Dcrt1.c50 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()
Dstring.c58 strncat(char *dst, const char *src, size_t n) in strncat() argument
60 if (n != 0) { in strncat()
72 } while (--n != 0); in strncat()
Dprintf.c275 int snprintf(char *str, size_t n, const char *fmt, ...) in snprintf() argument
283 state.maxlen = n; in snprintf()
/lib/liblwip/src/core/snmp/
Dmib_structs.c244 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/
Dinet.h55 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/
Drandm.c127 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()
Dppp_impl.h209 #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);
Dvj.c78 #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); \
Dppp.c914 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 …]
Dmd5.c79 #define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n)))) argument
Dlcp.c212 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/
Dip_addr.c283 u8_t n; in ipaddr_ntoa_r() local
291 for(n = 0; n < 4; n++) { in ipaddr_ntoa_r()
/lib/liblwip/test/unit/tcp/
Dtcp_helper.c279 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/
Dconsole.h32 void Console_Gets(char *str, size_t n);
Dconsole.c88 Console_Gets(char *str, size_t n) in Console_Gets() argument
92 for (i = 0; i < (n - 1); i++) in Console_Gets()

12