Home
last modified time | relevance | path

Searched refs:arg (Results 1 – 25 of 59) sorted by relevance

123

/lib/liblwip/src/core/
Dtimers.c79 tcpip_tcp_timer(void *arg) in tcpip_tcp_timer() argument
81 LWIP_UNUSED_ARG(arg); in tcpip_tcp_timer()
119 ip_reass_timer(void *arg) in ip_reass_timer() argument
121 LWIP_UNUSED_ARG(arg); in ip_reass_timer()
135 arp_timer(void *arg) in arp_timer() argument
137 LWIP_UNUSED_ARG(arg); in arp_timer()
151 dhcp_timer_coarse(void *arg) in dhcp_timer_coarse() argument
153 LWIP_UNUSED_ARG(arg); in dhcp_timer_coarse()
165 dhcp_timer_fine(void *arg) in dhcp_timer_fine() argument
167 LWIP_UNUSED_ARG(arg); in dhcp_timer_fine()
[all …]
/lib/liblwip/src/include/lwip/
Dtimers.h65 typedef void (* sys_timeout_handler)(void *arg);
71 void *arg; member
80 void sys_timeout_debug(u32_t msecs, sys_timeout_handler handler, void *arg, const char* handler_nam…
81 #define sys_timeout(msecs, handler, arg) sys_timeout_debug(msecs, handler, arg, #handler) argument
83 void sys_timeout(u32_t msecs, sys_timeout_handler handler, void *arg);
86 void sys_untimeout(sys_timeout_handler handler, void *arg);
Dtcpip.h76 typedef void (*tcpip_init_done_fn)(void *arg);
83 void tcpip_init(tcpip_init_done_fn tcpip_init_done, void *arg);
113 err_t tcpip_timeout(u32_t msecs, sys_timeout_handler h, void *arg);
114 err_t tcpip_untimeout(sys_timeout_handler h, void *arg);
155 void *arg; member
Dtcp.h60 typedef err_t (*tcp_accept_fn)(void *arg, struct tcp_pcb *newpcb, err_t err);
72 typedef err_t (*tcp_recv_fn)(void *arg, struct tcp_pcb *tpcb,
86 typedef err_t (*tcp_sent_fn)(void *arg, struct tcp_pcb *tpcb,
98 typedef err_t (*tcp_poll_fn)(void *arg, struct tcp_pcb *tpcb);
110 typedef void (*tcp_err_fn)(void *arg, err_t err);
124 typedef err_t (*tcp_connected_fn)(void *arg, struct tcp_pcb *tpcb, err_t err);
307 err_t lwip_tcp_event(void *arg, struct tcp_pcb *pcb,
318 void tcp_arg (struct tcp_pcb *pcb, void *arg);
/sys/kern/
Ddisk.c44 Disk_Read(Disk *disk, void *buf, SGArray *sga, DiskCB cb, void *arg) in Disk_Read() argument
46 return disk->read(disk, buf, sga, cb, arg); in Disk_Read()
50 Disk_Write(Disk *disk, void *buf, SGArray *sga, DiskCB cb, void *arg) in Disk_Write() argument
52 return disk->write(disk, buf, sga, cb, arg); in Disk_Write()
56 Disk_Flush(Disk *disk, void *buf, SGArray *sga, DiskCB cb, void *arg) in Disk_Flush() argument
58 return disk->flush(disk, buf, sga, cb, arg); in Disk_Flush()
Dktimer.c41 KTimer_Create(uint64_t timeout, KTimerCB cb, void *arg) in KTimer_Create() argument
49 evt->arg = arg; in KTimer_Create()
106 (it->cb)(it->arg); in KTimer_Process()
Dsyscall.c73 char *arg; in Syscall_Spawn() local
85 arg = PAlloc_AllocPage(); in Syscall_Spawn()
86 if (!arg) { in Syscall_Spawn()
94 status = Copy_In(user_argv+off, arg+sizeof(uintptr_t)*(1+i), sizeof(uintptr_t)); in Syscall_Spawn()
96 PAlloc_Release(arg); in Syscall_Spawn()
100 if (*(uintptr_t *)(arg+sizeof(uintptr_t)*(1+i)) == 0) in Syscall_Spawn()
105 char *argstart = arg+sizeof(uintptr_t)*8; in Syscall_Spawn()
107 uintptr_t *str = (uintptr_t *)(arg+sizeof(uintptr_t)*i); in Syscall_Spawn()
113 PAlloc_Release(arg); in Syscall_Spawn()
123 PAlloc_Release(arg); in Syscall_Spawn()
[all …]
/sys/amd64/
Dmp.c29 void *arg; member
156 frame->status[CPU()] = (frame->cb)(frame->arg); in MP_CrossCallTrap()
168 MP_CrossCall(CrossCallCB cb, void *arg) in MP_CrossCall() argument
175 frame.arg = arg; in MP_CrossCall()
187 frame.status[CPU()] = cb(arg); in MP_CrossCall()
205 MPPing(void *arg) in MPPing() argument
/lib/liblwip/src/api/
Dtcpip.c74 tcpip_thread(void *arg) in tcpip_thread() argument
77 LWIP_UNUSED_ARG(arg); in tcpip_thread()
123 sys_timeout(msg->msg.tmo.msecs, msg->msg.tmo.h, msg->msg.tmo.arg); in tcpip_thread()
128 sys_untimeout(msg->msg.tmo.h, msg->msg.tmo.arg); in tcpip_thread()
247 tcpip_timeout(u32_t msecs, sys_timeout_handler h, void *arg) in tcpip_timeout() argument
260 msg->msg.tmo.arg = arg; in tcpip_timeout()
276 tcpip_untimeout(sys_timeout_handler h, void *arg) in tcpip_untimeout() argument
288 msg->msg.tmo.arg = arg; in tcpip_untimeout()
455 tcpip_init(tcpip_init_done_fn initfunc, void *arg) in tcpip_init() argument
460 tcpip_init_done_arg = arg; in tcpip_init()
Dapi_msg.c78 recv_raw(void *arg, struct raw_pcb *pcb, struct pbuf *p, in recv_raw() argument
86 conn = (struct netconn *)arg; in recv_raw()
144 recv_udp(void *arg, struct udp_pcb *pcb, struct pbuf *p, argument
156 LWIP_ASSERT("recv_udp must have an argument", arg != NULL);
157 conn = (struct netconn *)arg;
216 recv_tcp(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err) argument
223 LWIP_ASSERT("recv_tcp must have an argument", arg != NULL);
224 conn = (struct netconn *)arg;
277 poll_tcp(void *arg, struct tcp_pcb *pcb) argument
279 struct netconn *conn = (struct netconn *)arg;
[all …]
/tests/
Dthreadtest.c11 threadEntry(uint64_t arg) in threadEntry() argument
13 printf("Hello From Thread %d\n", arg); in threadEntry()
14 OSThreadExit(arg); in threadEntry()
Dpthreadtest.c19 thread_simple(void *arg) in thread_simple() argument
21 printf("thread_simple %p!\n", arg); in thread_simple()
23 return arg; in thread_simple()
27 thread_lock(void *arg) in thread_lock() argument
44 thread_cond(void *arg) in thread_cond() argument
/sys/include/
Ddisk.h27 int Disk_Read(Disk *disk, void * buf, SGArray *sga, DiskCB cb, void *arg);
28 int Disk_Write(Disk *disk, void * buf, SGArray *sga, DiskCB cb, void *arg);
29 int Disk_Flush(Disk *disk, void * buf, SGArray *sga, DiskCB cb, void *arg);
Dktimer.h13 void *arg; member
17 KTimerEvent *KTimer_Create(uint64_t timeout, KTimerCB cb, void *arg);
Dnic.h25 int NIC_TX(NIC *nic, MBuf *mbuf, NICCB cb, void *arg);
26 int NIC_RX(NIC *nic, MBuf *mbuf, NICCB cb, void *arg);
Dthread.h110 Thread *Thread_KThreadCreate(void (*f)(void*), void *arg);
111 Thread *Thread_UThreadCreate(Thread *oldThr, uint64_t rip, uint64_t arg);
132 void Thread_SetupUThread(Thread *thr, uint64_t rip, uint64_t arg);
/lib/liblwip/src/netif/ppp/
Dlcp.c1730 print_string( char *p, int len, void (*printer) (void *, char *, ...), void *arg) in print_string() argument
1734 printer(arg, "\""); in print_string()
1739 printer(arg, "\\"); in print_string()
1741 printer(arg, "%c", c); in print_string()
1745 printer(arg, "\\n"); in print_string()
1748 printer(arg, "\\r"); in print_string()
1751 printer(arg, "\\t"); in print_string()
1754 printer(arg, "\\%.3o", c); in print_string()
1758 printer(arg, "\""); in print_string()
1772 lcp_printpkt( u_char *p, int plen, void (*printer) (void *, char *, ...), void *arg) in lcp_printpkt() argument
[all …]
Dchap.c228 ChapChallengeTimeout(void *arg) in ChapChallengeTimeout() argument
230 chap_state *cstate = (chap_state *) arg; in ChapChallengeTimeout()
255 ChapResponseTimeout(void *arg) in ChapResponseTimeout() argument
257 chap_state *cstate = (chap_state *) arg; in ChapResponseTimeout()
272 ChapRechallenge(void *arg) in ChapRechallenge() argument
274 chap_state *cstate = (chap_state *) arg; in ChapRechallenge()
849 ChapPrintPkt( u_char *p, int plen, void (*printer) (void *, char *, ...), void *arg) in ChapPrintPkt() argument
866 printer(arg, " %s", ChapCodenames[code-1]); in ChapPrintPkt()
868 printer(arg, " code=0x%x", code); in ChapPrintPkt()
870 printer(arg, " id=0x%x", id); in ChapPrintPkt()
[all …]
Dppp.h133 typedef void (*pppLinkStatusCB_fn)(void *ctx, int errCode, void *arg);
173 int pppIOCtl(int pd, int cmd, void *arg);
/lib/libc/posix/
Dpthread.c28 void *arg; member
69 thr->arg = 0; in __pthread_init()
98 pthreadCreateHelper(void *arg) in pthreadCreateHelper() argument
100 struct pthread *thr = (struct pthread *)arg; in pthreadCreateHelper()
102 thr->result = (thr->entry)(thr->arg); in pthreadCreateHelper()
109 void *(*start_routine)(void *), void *arg) in pthread_create() argument
122 thr->arg = arg; in pthread_create()
/sys/dev/x86/
Dps2.c167 PS2_KeyboardIntr(void *arg) in PS2_KeyboardIntr() argument
257 PS2_MouseIntr(void *arg) in PS2_MouseIntr() argument
301 kbdHandler.arg = NULL; in PS2_Init()
304 psmHandler.arg = NULL; in PS2_Init()
Dsercons.c63 handler.arg = NULL; in Serial_LateInit()
68 void Serial_Interrupt(void *arg) in Serial_Interrupt() argument
/lib/liblwip/test/unit/tcp/
Dtcp_helper.c167 test_tcp_counters_err(void* arg, err_t err) in test_tcp_counters_err() argument
169 struct test_tcp_counters* counters = arg; in test_tcp_counters_err()
170 EXPECT_RET(arg != NULL); in test_tcp_counters_err()
197 test_tcp_counters_recv(void* arg, struct tcp_pcb* pcb, struct pbuf* p, err_t err) in test_tcp_counters_recv() argument
199 struct test_tcp_counters* counters = arg; in test_tcp_counters_recv()
200 EXPECT_RETX(arg != NULL, ERR_OK); in test_tcp_counters_recv()
Dtcp_helper.h41 void test_tcp_counters_err(void* arg, err_t err);
42 err_t test_tcp_counters_recv(void* arg, struct tcp_pcb* pcb, struct pbuf* p, err_t err);
/lib/liblwip/src/arch/
Detherif.c81 static void ethernetif_thread(void *arg);
296 ethernetif_thread(void *arg) in ethernetif_thread() argument
298 struct netif *netif = (struct netif *)arg; in ethernetif_thread()

123