Home
last modified time | relevance | path

Searched refs:NULL (Results 26 – 50 of 120) sorted by relevance

12345

/sys/include/
Dqueue.h119 #define TRACEBUF_INITIALIZER { __FILE__, __LINE__, NULL, 0 } ,
155 { NULL }
165 #define SLIST_EMPTY(head) ((head)->slh_first == NULL)
191 ((var) = *(varp)) != NULL; \
195 SLIST_FIRST((head)) = NULL; \
249 { NULL, &(head).stqh_first }
267 #define STAILQ_EMPTY(head) ((head)->stqh_first == NULL)
292 STAILQ_FIRST((head)) = NULL; \
297 if ((STAILQ_NEXT((elm), field) = STAILQ_NEXT((tqelm), field)) == NULL)\
303 if ((STAILQ_NEXT((elm), field) = STAILQ_FIRST((head))) == NULL) \
[all …]
/lib/liblwip/src/arch/
Detherif.c145 for(q = p; q != NULL; q = q->next) { in low_level_output()
206 return NULL; in low_level_input()
211 return NULL; in low_level_input()
222 if (p != NULL) { in low_level_input()
226 for(q = p; q != NULL; q = q->next) { in low_level_input()
264 if (p == NULL) return; in ethernetif_input()
281 p = NULL; in ethernetif_input()
287 p = NULL; in ethernetif_input()
323 LWIP_ASSERT("netif != NULL", (netif != NULL)); in ethernetif_init()
326 if (ethernetif == NULL) { in ethernetif_init()
/lib/liblwip/src/core/
Ddns.c244 if (dns_pcb == NULL) { in dns_init()
247 if (dns_pcb != NULL) { in dns_init()
255 udp_recv(dns_pcb, dns_recv, NULL); in dns_init()
275 if ((numdns < DNS_MAX_SERVERS) && (dns_pcb != NULL) && in dns_setserver()
276 (dnsserver != NULL) && !ip_addr_isany(dnsserver)) { in dns_setserver()
305 if (dns_pcb != NULL) { in dns_tmr()
323 LWIP_ASSERT("invalid host name (NULL)", init_entry->name != NULL); in dns_init_local()
327 LWIP_ASSERT("mem-error in dns_init_local", entry != NULL); in dns_init_local()
328 if (entry != NULL) { in dns_init_local()
352 while(entry != NULL) { in dns_lookup_local()
[all …]
Dtcp_in.c97 struct tcp_pcb *lpcb_prev = NULL; in tcp_input()
98 struct tcp_pcb_listen *lpcb_any = NULL; in tcp_input()
167 prev = NULL; in tcp_input()
170 for(pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) { in tcp_input()
183 if (prev != NULL) { in tcp_input()
194 if (pcb == NULL) { in tcp_input()
197 for(pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) { in tcp_input()
215 prev = NULL; in tcp_input()
216 for(lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) { in tcp_input()
239 if (lpcb == NULL) { in tcp_input()
[all …]
Dudp.c109 for(pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) { in udp_new_port()
120 while ((ipcb != NULL) && (udp_port != UDP_LOCAL_PORT_RANGE_END)) { in udp_new_port()
131 if (ipcb != NULL) { in udp_new_port()
203 pcb = NULL;
209 if ((inp->dhcp != NULL) && (inp->dhcp->pcb != NULL)) {
222 prev = NULL;
224 uncon_pcb = NULL;
229 for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) {
258 if ((uncon_pcb == NULL) &&
271 if (prev != NULL) {
[all …]
Ddhcp.c235 result = etharp_query(netif, &dhcp->offered_ip_addr, NULL); in dhcp_check()
342 while (netif != NULL) { in dhcp_coarse_tmr()
344 if (netif->dhcp != NULL) { in dhcp_coarse_tmr()
373 while (netif != NULL) { in dhcp_fine_tmr()
375 if (netif->dhcp != NULL) { in dhcp_fine_tmr()
589 LWIP_ASSERT("netif != NULL", netif != NULL); in dhcp_set_struct()
590 LWIP_ASSERT("dhcp != NULL", dhcp != NULL); in dhcp_set_struct()
591 LWIP_ASSERT("netif already has a struct dhcp set", netif->dhcp == NULL); in dhcp_set_struct()
608 LWIP_ASSERT("netif != NULL", netif != NULL); in dhcp_cleanup()
610 if (netif->dhcp != NULL) { in dhcp_cleanup()
[all …]
Dmemp.c189 if(t != NULL) { in memp_sanity()
190 for (h = t->next; (t != NULL) && (h != NULL); t = t->next, in memp_sanity()
191 h = (((h->next != NULL) && (h->next->next != NULL)) ? h->next->next : NULL)) { in memp_sanity()
355 memp_tab[i] = NULL; in memp_init()
398 LWIP_ERROR("memp_malloc: type < MEMP_MAX", (type < MEMP_MAX), return NULL;); in memp_malloc()
407 if (memp != NULL) { in memp_malloc()
410 memp->next = NULL; in memp_malloc()
440 if (mem == NULL) { in memp_free()
/sys/kern/
Dbufcache.c73 e->disk = NULL; in BufCache_Init()
115 *entry = NULL; in BufCacheLookup()
140 if (e == NULL) { in BufCacheAlloc()
147 if (e->disk != NULL) { in BufCacheAlloc()
185 if (*entry == NULL) { in BufCache_Alloc()
237 if (*entry != NULL) { in BufCache_Read()
258 status = Disk_Read(disk, buf, &sga, NULL, NULL); in BufCache_Read()
281 return Disk_Write(entry->disk, buf, &sga, NULL, NULL); in BufCache_Write()
Dthread.c70 kernelProcess = Process_Create(NULL, "kernel"); in Thread_Init()
73 Process *proc = Process_Create(NULL, "init"); in Thread_Init()
101 return NULL; in Thread_Create()
105 ASSERT(proc != NULL); in Thread_Create()
111 return NULL; in Thread_Create()
126 thr->timerEvt = NULL; in Thread_Create()
140 return NULL; in Thread_KThreadCreate()
154 return NULL; in Thread_UThreadCreate()
162 return NULL; in Thread_UThreadCreate()
232 Thread *thr = NULL; in Thread_Lookup()
[all …]
Dvfs.c74 return NULL; in VFS_Lookup()
91 return NULL; in VFS_Lookup()
98 curNode = NULL; in VFS_Lookup()
102 return NULL; in VFS_Lookup()
127 if (vn == NULL) in VFS_Stat()
/lib/liblwip/src/core/snmp/
Dasn1_dec.c58 while (p != NULL) in snmp_asn1_dec_type()
91 while (p != NULL) in snmp_asn1_dec_length()
127 if (p == NULL) { return ERR_ARG; } in snmp_asn1_dec_length()
162 if (p == NULL) { return ERR_ARG; } in snmp_asn1_dec_length()
188 if (p == NULL) { return ERR_ARG; } in snmp_asn1_dec_length()
246 while (p != NULL) in snmp_asn1_dec_u32t()
275 if (p == NULL) { return ERR_ARG; } in snmp_asn1_dec_u32t()
297 if (p == NULL) { return ERR_ARG; } in snmp_asn1_dec_u32t()
346 while (p != NULL) in snmp_asn1_dec_s32t()
388 if (p == NULL) { return ERR_ARG; } in snmp_asn1_dec_s32t()
[all …]
Dasn1_enc.c187 while (p != NULL) in snmp_asn1_enc_type()
219 while (p != NULL) in snmp_asn1_enc_length()
241 if (p == NULL) { return ERR_ARG; } in snmp_asn1_enc_length()
267 if (p == NULL) { return ERR_ARG; } in snmp_asn1_enc_length()
314 while (p != NULL) in snmp_asn1_enc_u32t()
333 if (p == NULL) { return ERR_ARG; } in snmp_asn1_enc_u32t()
352 if (p == NULL) { return ERR_ARG; } in snmp_asn1_enc_u32t()
390 while (p != NULL) in snmp_asn1_enc_s32t()
408 if (p == NULL) { return ERR_ARG; } in snmp_asn1_enc_s32t()
444 while (p != NULL) in snmp_asn1_enc_oid()
[all …]
Dmib2.c175 NULL,
176 NULL,
243 NULL,
244 NULL,
354 NULL,
355 NULL,
395 NULL,
396 NULL,
441 NULL,
442 NULL,
[all …]
/lib/liblwip/src/netif/ppp/
Dppp_oe.c149 if (sc == NULL) { in pppoe_create()
150 *scptr = NULL; in pppoe_create()
174 struct pppoe_softc *sc, *prev = NULL; in pppoe_destroy()
176 for (sc = pppoe_softc_list; sc != NULL; prev = sc, sc = sc->next) { in pppoe_destroy()
187 if (prev == NULL) { in pppoe_destroy()
220 return NULL; in pppoe_find_softc_by_session()
223 for (sc = pppoe_softc_list; sc != NULL; sc = sc->next) { in pppoe_find_softc_by_session()
229 return NULL; in pppoe_find_softc_by_session()
233 return NULL; in pppoe_find_softc_by_session()
243 if (pppoe_softc_list == NULL) { in pppoe_find_softc_by_hunique()
[all …]
/lib/liblwip/src/netif/
Dethernetif.c134 for(q = p; q != NULL; q = q->next) {
178 if (p != NULL) {
186 for(q = p; q != NULL; q = q->next) {
234 if (p == NULL) return;
251 p = NULL;
257 p = NULL;
279 LWIP_ASSERT("netif != NULL", (netif != NULL));
282 if (ethernetif == NULL) {
Detharp.c135 #define ETHARP_SET_HINT(netif, hint) if (((netif) != NULL) && ((netif)->addr_hint != NULL)) \
158 LWIP_ASSERT("q != NULL", q != NULL); in free_etharp_q()
159 LWIP_ASSERT("q->p != NULL", q->p != NULL); in free_etharp_q()
163 LWIP_ASSERT("r->p != NULL", (r->p != NULL)); in free_etharp_q()
182 if (arp_table[i].q != NULL) { in etharp_free_entry()
186 arp_table[i].q = NULL; in etharp_free_entry()
193 arp_table[i].netif = NULL; in etharp_free_entry()
310 if (arp_table[i].q != NULL) { in etharp_find_entry()
369 LWIP_ASSERT("arp_table[i].q == NULL", arp_table[i].q == NULL); in etharp_find_entry()
396 if (ipaddr != NULL) { in etharp_find_entry()
[all …]
/lib/liblwip/test/unit/tcp/
Dtcp_helper.c19 while(pcb != NULL) { in tcp_remove()
51 EXPECT_RETNULL(p != NULL); in tcp_create_segment_wnd()
59 for(q = p; q != NULL; q = q->next) { in tcp_create_segment_wnd()
170 EXPECT_RET(arg != NULL); in test_tcp_counters_err()
180 if(counters->expected_data == NULL) { in test_tcp_counters_check_rxdata()
186 for(q = p; q != NULL; q = q->next) { in test_tcp_counters_check_rxdata()
200 EXPECT_RETX(arg != NULL, ERR_OK); in test_tcp_counters_recv()
201 EXPECT_RETX(pcb != NULL, ERR_OK); in test_tcp_counters_recv()
204 if (p != NULL) { in test_tcp_counters_recv()
226 if (pcb != NULL) { in test_tcp_new_counters_pcb()
[all …]
/bin/shell/
Dshell.c62 NULL
76 while (searchpath[i] != NULL) { in Cmd_Run()
86 argv[argc] = NULL; in Cmd_Run()
120 if (nextArg == NULL) in DispatchCommand()
124 nextArg = strtok(NULL, " \t\r\n"); in DispatchCommand()
/sbin/sysctl/
Dsysctl.c38 OSSysCtl(SYSCTLTable[idx].path, &scStr, NULL); in PrintVal()
45 OSSysCtl(SYSCTLTable[idx].path, &scInt, NULL); in PrintVal()
52 OSSysCtl(SYSCTLTable[idx].path, &scBool, NULL); in PrintVal()
71 OSSysCtl(SYSCTLTable[idx].path, NULL, &scStr); in UpdateVal()
79 OSSysCtl(SYSCTLTable[idx].path, NULL, &scInt); in UpdateVal()
93 OSSysCtl(SYSCTLTable[idx].path, NULL, &scBool); in UpdateVal()
/sbin/newfs_o2fs/
Dnewfs_o2fs.c122 return AppendBlock(NULL, 0); in AppendEmpty()
213 entries[entry].ctime = (uint64_t)time(NULL); in AddDirectory()
214 entries[entry].mtime = (uint64_t)time(NULL); in AddDirectory()
306 { "manifest", required_argument, NULL, 'm' }, in main()
307 { "size", required_argument, NULL, 's' }, in main()
308 { "verbose", no_argument, NULL, 'v' }, in main()
309 { "help", no_argument, NULL, 'h' }, in main()
310 { NULL, 0, NULL, 0 } in main()
313 while ((ch = getopt_long(argc, argv, "m:s:vh", longopts, NULL)) != -1) in main()
374 ObjID *root = NULL; in main()
/lib/liblwip/src/include/ipv4/lwip/
Dip_addr.h165 ((src) == NULL ? 0 : \
176 ((src) == NULL ? 0:\
200 #define ip_addr_isany(addr1) ((addr1) == NULL || (addr1)->addr == IPADDR_ANY)
214 ipaddr != NULL ? ip4_addr1_16(ipaddr) : 0, \
215 ipaddr != NULL ? ip4_addr2_16(ipaddr) : 0, \
216 ipaddr != NULL ? ip4_addr3_16(ipaddr) : 0, \
217 ipaddr != NULL ? ip4_addr4_16(ipaddr) : 0))
/lib/libc/
Dcrt1.c89 if (environ == NULL) in handle_argv()
91 if (argc > 0 && argv[0] != NULL) { in handle_argv()
105 char **argv = NULL; in _start()
106 char **env = NULL; in _start()
/lib/liblwip/test/unit/
Dlwip_check.h14 #define EXPECT_RETNULL(x) EXPECT_RETX(x, NULL)
28 if ((setup != NULL) || (teardown != NULL)) { in create_suite()
/lib/liblwip/test/unit/udp/
Dtest_udp.c17 while(pcb != NULL) { in udp_remove_all()
50 fail_unless(pcb != NULL); in START_TEST()
51 if (pcb != NULL) { in START_TEST()
/lib/liblwip/src/api/
Dsockets.c202 return NULL; in get_socket()
210 return NULL; in get_socket()
226 return NULL; in tryget_socket()
229 return NULL; in tryget_socket()
257 sockets[i].lastdata = NULL; in alloc_socket()
286 sock->lastdata = NULL; in free_socket()
292 sock->conn = NULL; in free_socket()
296 if (lastdata != NULL) { in free_socket()
346 LWIP_ASSERT("newconn != NULL", newconn != NULL); in lwip_accept()
362 if (NULL != addr) { in lwip_accept()
[all …]

12345