Home
last modified time | relevance | path

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

123

/sys/
DSConscript12 "amd64/mbentry.c",
14 "amd64/critical.c",
15 "amd64/debug.c",
16 "amd64/disasm.c",
17 "amd64/ioapic.c",
18 "amd64/irq.c",
19 "amd64/lapic.c",
20 "amd64/machine.c",
21 "amd64/mp.c",
23 "amd64/pci.c",
[all …]
/lib/liblwip/
DSConscript8 "src/arch/sys_arch.c",
9 "src/arch/etherif.c",
10 "src/api/api_lib.c",
11 "src/api/api_msg.c",
12 "src/api/err.c",
13 "src/api/netbuf.c",
14 "src/api/netdb.c",
15 "src/api/netifapi.c",
16 "src/api/sockets.c",
17 "src/api/tcpip.c",
[all …]
DCHANGELOG24 * opt.h, icmp.c: Added option CHECKSUM_GEN_ICMP
31 * opt.h, tcp.c, tcp_in.c: Implemented limiting data on ooseq queue (task #9989)
35 * opt.h, api.h, api_lib.c, api_msg.h/.c, sockets.c: Implemented timeout on
39 * init.c: Converted runtime-sanity-checks into compile-time checks that can
48 * opt.h, tcp_impl.h, tcp.c, udp.h/.c: Added a config option to randomize
53 * dhcp.c: DHCP uses LWIP_RAND() for xid's (bug #30302)
56 * opt.h, netif.h/.c: added netif remove callback (bug #32397)
59 * etharp.c: ETHARP_SUPPORT_VLAN: add support for an external VLAN filter
63 * ip4.c, etharp.c, pbuf.h: bug #33634 ip_forward() have a faulty behaviour:
69 * tcp.c, tcp_out.c: bug #33604: added some more asserts to check that
[all …]
/lib/liblwip/src/core/ipv4/
Dip_addr.c114 #define in_range(c, lo, up) ((u8_t)c >= lo && (u8_t)c <= up) argument
115 #define isprint(c) in_range(c, 0x20, 0x7f) argument
116 #define isdigit(c) in_range(c, '0', '9') argument
117 #define isxdigit(c) (isdigit(c) || in_range(c, 'a', 'f') || in_range(c, 'A', 'F')) argument
118 #define islower(c) in_range(c, 'a', 'z') argument
119 #define isspace(c) (c == ' ' || c == '\f' || c == '\n' || c == '\r' || c == '\t' || c == … argument
156 char c; in ipaddr_aton() local
160 c = *cp; in ipaddr_aton()
167 if (!isdigit(c)) in ipaddr_aton()
171 if (c == '0') { in ipaddr_aton()
[all …]
/sys/amd64/
Dmachine.c57 int c = CPU(); in Machine_GDTInit() local
61 GDT[c][0] = 0x0; in Machine_GDTInit()
62 GDT[c][1] = 0x00AF9A000000FFFFULL; /* Kernel CS */ in Machine_GDTInit()
63 GDT[c][2] = 0x00CF92000000FFFFULL; /* Kernel DS */ in Machine_GDTInit()
64 GDT[c][3] = 0x0; in Machine_GDTInit()
67 offset = (uint64_t)&TSS[c]; in Machine_GDTInit()
68 GDT[c][4] = sizeof(TaskStateSegment64); in Machine_GDTInit()
70 GDT[c][4] |= (tmp << 16); in Machine_GDTInit()
72 GDT[c][4] |= (tmp << 56); in Machine_GDTInit()
73 GDT[c][4] |= 0x89ULL << 40; in Machine_GDTInit()
[all …]
Dcritical.c19 int c; in Critical_Init() local
21 for (c = 0; c < MAX_CPUS; c++) in Critical_Init()
23 lockLevel[c] = 0; in Critical_Init()
53 int c; in Debug_Critical() local
55 for (c = 0; c < MAX_CPUS; c++) { in Debug_Critical()
56 kprintf("CPU%d: %u\n", c, lockLevel[c]); in Debug_Critical()
Dmp.c142 int c; in MP_CrossCallTrap() local
148 for (c = 0; c <= lastCPU; c++) { in MP_CrossCallTrap()
149 CrossCallFrame *frame = cpus[c].frame; in MP_CrossCallTrap()
235 int c; in Debug_CPUS() local
237 for (c = 0; c < MAX_CPUS; c++) { in Debug_CPUS()
238 if (cpus[c].state != CPUSTATE_NOT_PRESENT) { in Debug_CPUS()
239 kprintf("CPU %d: %s\n", c, CPUStateToString[cpus[c].state]); in Debug_CPUS()
/lib/liblwip/src/netif/ppp/
Dmd5.c83 #define FF(a, b, c, d, x, s, ac) \ argument
84 {(a) += F ((b), (c), (d)) + (x) + (u32_t)(ac); \
88 #define GG(a, b, c, d, x, s, ac) \ argument
89 {(a) += G ((b), (c), (d)) + (x) + (u32_t)(ac); \
93 #define HH(a, b, c, d, x, s, ac) \ argument
94 {(a) += H ((b), (c), (d)) + (x) + (u32_t)(ac); \
98 #define II(a, b, c, d, x, s, ac) \ argument
99 {(a) += I ((b), (c), (d)) + (x) + (u32_t)(ac); \
222 u32_t a = buf[0], b = buf[1], c = buf[2], d = buf[3]; in Transform() local
229 FF ( a, b, c, d, in[ 0], S11, UL(3614090360)); /* 1 */ in Transform()
[all …]
Dppp.c158 #define ESCAPE_P(accm, c) ((accm)[(c) >> 3] & pppACCMMask[c & 0x07]) argument
706 int c; in nPut() local
709 if((c = sio_write(pc->fd, b->payload, b->len)) != b->len) { in nPut()
711 … incomplete sio_write(fd:%"SZT_F", len:%d, c: 0x%"X8_F") c = %d\n", (size_t)pc->fd, b->len, c, c)); in nPut()
733 pppAppend(u_char c, struct pbuf *nb, ext_accm *outACCM) in pppAppend() argument
752 if (outACCM && ESCAPE_P(*outACCM, c)) { in pppAppend()
754 *((u_char*)nb->payload + nb->len++) = c ^ PPP_TRANS; in pppAppend()
756 *((u_char*)nb->payload + nb->len++) = c; in pppAppend()
818 u_char c; in pppifOutput() local
904 c = (protocol >> 8) & 0xFF; in pppifOutput()
[all …]
Dppp_impl.h155 #define PPP_FCS(fcs, c) (((fcs) >> 8) ^ fcstab[((fcs) ^ (c)) & 0xff]) argument
178 #define GETCHAR(c, cp) { \ argument
179 (c) = *(cp)++; \
181 #define PUTCHAR(c, cp) { \ argument
182 *(cp)++ = (u_char) (c); \
Dchpms.c248 int j, c; in Expand() local
252 c = *in; in Expand()
254 *out++ = (c >> j) & 01; in Expand()
267 unsigned int c; in Collapse() local
270 c = 0; in Collapse()
272 c |= *in << j; in Collapse()
274 *out = c & 0xff; in Collapse()
/lib/libc/
DSConscript10 "abort.c",
11 "assert.c",
12 "core/mutex.c",
13 "dir.c",
14 "exit.c",
15 "file.c",
16 "malloc.c",
17 "printf.c",
18 "process.c",
19 "posix/mman.c",
[all …]
Dstring.c11 strchr(const char *s, int c) in strchr() argument
16 if (s[i] == c) in strchr()
164 memset(void *dst, int c, size_t length) in memset() argument
169 *p = c; in memset()
/lib/liblwip/src/include/lwip/
Dsockets.h346 #define accept(a,b,c) lwip_accept(a,b,c) argument
347 #define bind(a,b,c) lwip_bind(a,b,c) argument
350 #define connect(a,b,c) lwip_connect(a,b,c) argument
351 #define getsockname(a,b,c) lwip_getsockname(a,b,c) argument
352 #define getpeername(a,b,c) lwip_getpeername(a,b,c) argument
353 #define setsockopt(a,b,c,d,e) lwip_setsockopt(a,b,c,d,e) argument
354 #define getsockopt(a,b,c,d,e) lwip_getsockopt(a,b,c,d,e) argument
356 #define recv(a,b,c,d) lwip_recv(a,b,c,d) argument
357 #define recvfrom(a,b,c,d,e,f) lwip_recvfrom(a,b,c,d,e,f) argument
358 #define send(a,b,c,d) lwip_send(a,b,c,d) argument
[all …]
Dapi.h197 #define API_EVENT(c,e,l) if (c->callback) { \ argument
198 (*c->callback)(c, e, l); \
213 #define netconn_new_with_callback(t, c) netconn_new_with_proto_and_callback(t, 0, c) argument
223 #define netconn_peer(c,i,p) netconn_getaddr(c,i,p,0) argument
224 #define netconn_addr(c,i,p) netconn_getaddr(c,i,p,1) argument
/tests/
DSConscript10 test_env.Append(LIBPATH = ['#build/lib/libc'], LIBS = ['c'])
14 fiotest_src.append(["fiotest.c"])
20 threadtest_src.append(["threadtest.c"])
26 spawnanytest_src.append(["spawnanytest.c"])
32 spawnmultipletest_src.append(["spawnmultipletest.c"])
38 spawnsingletest_src.append(["spawnsingletest.c"])
44 pthreadtest_src.append(["pthreadtest.c"])
50 writetest_src.append(["writetest.c"])
60 # LIBS = ['lwip', 'c'])
64 #lwiptest_src.append(["lwiptest.c"])
/lib/liblwip/src/netif/
Dslipif.c120 u8_t c; in slipif_output() local
137 c = ((u8_t *)q->payload)[i]; in slipif_output()
138 switch (c) { in slipif_output()
151 sio_send(c, priv->sd); in slipif_output()
170 slipif_rxbyte(struct netif *netif, u8_t c) in slipif_rxbyte() argument
182 switch (c) { in slipif_rxbyte()
206 switch (c) { in slipif_rxbyte()
208 c = SLIP_END; in slipif_rxbyte()
211 c = SLIP_ESC; in slipif_rxbyte()
242 ((u8_t *)priv->p->payload)[priv->i] = c; in slipif_rxbyte()
[all …]
DFILES5 etharp.c
12 ethernetif.c
15 network device drivers. It uses the etharp.c ARP code.
17 loopif.c
21 slipif.c
/sys/kern/
Dspinlock.c35 int c; local
37 for (c = 0; c < MAX_CPUS; c++) {
38 TAILQ_INIT(&lockStack[c]);
154 int c = CPU(); in Debug_LockStack() local
158 TAILQ_FOREACH(lock, &lockStack[c], lockStack) { in Debug_LockStack()
Dlibc.c11 strchr(const char *s, int c) in strchr() argument
16 if (s[i] == c) in strchr()
121 memset(void *dst, int c, size_t length) in memset() argument
126 *p = c; in memset()
/sys/dev/x86/
Dvgacons.c115 void VGA_Putc(short c) in VGA_Putc() argument
117 c |= (TextAttribute << 8); in VGA_Putc()
118 switch (c & 0xFF) in VGA_Putc()
143 VideoBuffer[CurrentX + CurrentY * SizeX] = c; in VGA_Putc()
Ddebugcons.c17 void DebugConsole_Putc(short c) in DebugConsole_Putc() argument
19 outb(0xe9, (uint8_t)c); in DebugConsole_Putc()
/bin/ethdump/
DSConscript10 "ethdump.c"
20 ethdump_env.Append(LIBPATH = ['#build/lib/libc'], LIBS = ['c'])
/sbin/ifconfig/
DSConscript10 "ifconfig.c"
20 ifconfig_env.Append(LIBPATH = ['#build/lib/libc'], LIBS = ['c'])
/sbin/sysctl/
DSConscript10 "sysctl.c"
20 sysctl_env.Append(LIBPATH = ['#build/lib/libc'], LIBS = ['c'])

123