Home
last modified time | relevance | path

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

123456

/lk-master/lib/bootargs/
A Dbootargs.c82 arg->len = 0; in bootargs_start()
89 if (!arg) in bootargs_add_command_line()
94 memset(arg->data, 0, arg->len); in bootargs_add_command_line()
95 strcpy((char *)arg->data, str); in bootargs_add_command_line()
102 if (!arg) in bootargs_add_bootimage_pointer()
177 if (arg->type == tag) in find_tag()
178 return arg; in find_tag()
180 arg = (struct lk_boot_arg *)((uintptr_t)arg + sizeof(struct lk_boot_arg) + arg->len); in find_tag()
188 if (!arg) in bootargs_get_command_line()
193 return (const char *)arg->data; in bootargs_get_command_line()
[all …]
/lk-master/external/lib/lwip/core/
A Dtimers.c81 LWIP_UNUSED_ARG(arg); in tcpip_tcp_timer()
121 LWIP_UNUSED_ARG(arg); in ip_reass_timer()
135 arp_timer(void *arg) in arp_timer() argument
197 igmp_timer(void *arg) in igmp_timer() argument
213 dns_timer(void *arg) in dns_timer() argument
278 timeout->arg = arg; in sys_timeout_debug()
330 if ((t->h == handler) && (t->arg == arg)) { in sys_untimeout()
364 void *arg; in sys_check_timeouts() local
385 arg = tmptimeout->arg; in sys_check_timeouts()
428 void *arg; in sys_timeouts_mbox_fetch() local
[all …]
/lk-master/external/lib/lwip/include/lwip/
A 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);
/lk-master/lib/dpc/
A Ddpc.c22 void *arg; member
28 static int dpc_thread_routine(void *arg);
30 status_t dpc_queue(dpc_callback cb, void *arg, uint flags) { in dpc_queue() argument
39 dpc->arg = arg; in dpc_queue()
48 static int dpc_thread_routine(void *arg) { in dpc_thread_routine() argument
60 dpc->cb(dpc->arg); in dpc_thread_routine()
/lk-master/kernel/
A Dtimer.c44 static enum handler_return timer_tick(void *arg, lk_time_t now);
86 timer->arg = arg; in timer_set()
121 void timer_set_oneshot(timer_t *timer, lk_time_t delay, timer_callback callback, void *arg) { in timer_set_oneshot() argument
124 timer_set(timer, delay, 0, callback, arg); in timer_set_oneshot()
141 void timer_set_periodic(timer_t *timer, lk_time_t period, timer_callback callback, void *arg) { in timer_set_periodic() argument
144 timer_set(timer, period, period, callback, arg); in timer_set_periodic()
170 timer->arg = NULL; in timer_cancel()
196 static enum handler_return timer_tick(void *arg, lk_time_t now) { in timer_tick() argument
234 LTRACEF("timer %p firing callback %p, arg %p\n", timer, timer->callback, timer->arg); in timer_tick()
235 KEVLOG_TIMER_CALL(timer->callback, timer->arg); in timer_tick()
[all …]
/lk-master/arch/arm/arm/
A Dmp.c56 enum handler_return arm_ipi_generic_handler(void *arg);
57 enum handler_return arm_ipi_generic_handler(void *arg) { in arm_ipi_generic_handler() argument
58 LTRACEF("cpu %u, arg %p\n", arch_curr_cpu_num(), arg); in arm_ipi_generic_handler()
63 enum handler_return arm_ipi_reschedule_handler(void *arg);
64 enum handler_return arm_ipi_reschedule_handler(void *arg) { in arm_ipi_reschedule_handler() argument
65 LTRACEF("cpu %u, arg %p\n", arch_curr_cpu_num(), arg); in arm_ipi_reschedule_handler()
/lk-master/kernel/include/kernel/
A Dtimer.h19 typedef enum handler_return (*timer_callback)(struct timer *, lk_time_t now, void *arg);
31 void *arg; member
41 .arg = NULL, \
51 void timer_set_oneshot(timer_t *, lk_time_t delay, timer_callback, void *arg);
52 void timer_set_periodic(timer_t *, lk_time_t period, timer_callback, void *arg);
/lk-master/tools/
A Dmkimage.c55 int process(bootimage *img, char *cmd, char *arg) { in process() argument
63 if (bootimage_add_file(img, types[n].type, arg) == NULL) { in process()
67 if (bootimage_add_string(img, types[n].kind, arg) == NULL) { in process()
88 char *arg = strchr(cmd, ':'); in main() local
100 if (arg == NULL) { in main()
105 *arg++ = 0; in main()
107 if (process(img, cmd, arg)) { in main()
/lk-master/platform/microblaze/
A Dintc.c37 void *arg; member
42 void register_int_handler(unsigned int vector, int_handler handler, void *arg) { in register_int_handler() argument
43 LTRACEF("vector %u, handler %p, arg %p\n", vector, handler, arg); in register_int_handler()
52 int_handler_table[vector].arg = arg; in register_int_handler()
81 ret = int_handler_table[irq].handler(int_handler_table[irq].arg); in platform_irq_handler()
A Dtimer.c46 status_t platform_set_periodic_timer(platform_timer_callback callback, void *arg, lk_time_t interva… in platform_set_periodic_timer() argument
47 LTRACEF("cb %p, arg %p, interval %u\n", callback, arg, interval); in platform_set_periodic_timer()
54 timer_arg = arg; in platform_set_periodic_timer()
71 static enum handler_return timer_irq(void *arg) { in timer_irq() argument
/lk-master/platform/qemu-virt-riscv/
A Dplic.c32 void *arg; member
60 void register_int_handler(unsigned int vector, int_handler handler, void *arg) { in register_int_handler() argument
61 LTRACEF("vector %u handler %p arg %p\n", vector, handler, arg); in register_int_handler()
66 handlers[vector].arg = arg; in register_int_handler()
84 ret = handlers[vector].handler(handlers[vector].arg); in riscv_platform_irq()
/lk-master/platform/sifive/
A Dplic.c33 void *arg; member
60 void register_int_handler(unsigned int vector, int_handler handler, void *arg) { in register_int_handler() argument
61 LTRACEF("vector %u handler %p arg %p\n", vector, handler, arg); in register_int_handler()
66 handlers[vector].arg = arg; in register_int_handler()
84 ret = handlers[vector].handler(handlers[vector].arg); in riscv_platform_irq()
/lk-master/lib/tftp/
A Dtftp.c56 void *arg; member
96 job->callback(NULL, 0UL, job->arg); in end_transfer()
102 void *arg) { in udp_wrq_callback() argument
106 tftp_job_t *job = arg; in udp_wrq_callback()
136 if (job->callback(&data_c[4], len - 4, job->arg) < 0) { in udp_wrq_callback()
162 void *arg) { in udp_svc_callback() argument
226 int tftp_set_write_client(const char *file_name, tftp_callback_t cb, void *arg) { in tftp_set_write_client() argument
250 job->arg = arg; in tftp_set_write_client()
256 int tftp_server_init(void *arg) { in tftp_server_init() argument
/lk-master/platform/armemu/
A Dinterrupts.c22 void *arg; member
70 ret = int_handler_table[vector].handler(int_handler_table[vector].arg); in platform_irq()
83 void register_int_handler(unsigned int vector, int_handler handler, void *arg) { in register_int_handler() argument
88 int_handler_table[vector].arg = arg; in register_int_handler()
/lk-master/dev/interrupt/or1k_pic/
A Dor1k_pic.c24 void *arg; member
29 void register_int_handler(unsigned int vector, int_handler handler, void *arg) { in register_int_handler() argument
38 int_handler_table[vector].arg = arg; in register_int_handler()
67 ret = int_handler_table[irq].handler(int_handler_table[irq].arg); in platform_irq()
/lk-master/platform/qemu-virt-m68k/
A Dpic.c38 void *arg; member
86 void register_int_handler(unsigned int vector, int_handler handler, void *arg) { in register_int_handler() argument
87 LTRACEF("vector %u handler %p arg %p\n", vector, handler, arg); in register_int_handler()
92 handlers[vector].arg = arg; in register_int_handler()
122 ret = handlers[vector].handler(handlers[vector].arg); in m68k_platform_irq()
/lk-master/app/lpcboot/
A Dlpcboot.c177 void handle(u32 magic, u32 cmd, u32 arg) { in handle() argument
195 if (arg > ROM_SIZE) in handle()
199 if (arg > BOOT_SIZE) in handle()
205 while (arg > 0) { in handle()
206 xfer = (arg > 4096) ? 4096 : arg; in handle()
211 arg -= xfer; in handle()
218 if (arg > RAM_SIZE) in handle()
222 usb_recv(ram, arg); in handle()
256 static enum handler_return led_timer_cb(timer_t *timer, lk_time_t now, void *arg) { in led_timer_cb() argument
/lk-master/app/tests/
A Dthread_tests.c22 static int sleep_thread(void *arg) { in sleep_thread() argument
113 static int mutex_thread(void *arg) { in mutex_thread() argument
119 mutex_t *m = (mutex_t *)arg; in mutex_thread()
222 static int event_signaler(void *arg) { in event_signaler() argument
236 static int event_waiter(void *arg) { in event_waiter() argument
237 int count = (intptr_t)arg; in event_waiter()
323 int thread_count = (intptr_t)arg; in context_switch_tester()
375 static int atomic_tester(void *arg) { in atomic_tester() argument
376 int add = (intptr_t)arg; in atomic_tester()
471 static int join_tester(void *arg) { in join_tester() argument
[all …]
/lk-master/app/moot/
A Dusbboot.c94 uint32_t arg; member
100 uint32_t arg; member
126 resp->arg = 0; in handle_usb_cmd()
145 image_length = header->arg; in handle_usb_cmd()
167 resp->arg = 0; in handle_usb_cmd()
204 resp->arg = 0; in handle_usb_cmd()
225 resp->arg = strnlen((char *)buffer, buflen); in handle_usb_cmd()
227 usb_xmit((void *)buffer, resp->arg); in handle_usb_cmd()
229 resp->arg = 0; in handle_usb_cmd()
233 resp->arg = 0; in handle_usb_cmd()
/lk-master/lib/tftp/include/lib/
A Dtftp.h15 typedef int (*tftp_callback_t)(void *data, size_t len, void *arg);
17 int tftp_server_init(void *arg);
19 int tftp_set_write_client(const char *file_name, tftp_callback_t cb, void *arg);
/lk-master/external/lib/lwip/api/
A 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()
/lk-master/arch/arm64/
A Dmp.c52 static enum handler_return arm_ipi_generic_handler(void *arg) { in arm_ipi_generic_handler() argument
53 LTRACEF("cpu %u, arg %p\n", arch_curr_cpu_num(), arg); in arm_ipi_generic_handler()
58 static enum handler_return arm_ipi_reschedule_handler(void *arg) { in arm_ipi_reschedule_handler() argument
59 LTRACEF("cpu %u, arg %p\n", arch_curr_cpu_num(), arg); in arm_ipi_reschedule_handler()
/lk-master/platform/include/platform/
A Dtimer.h23 typedef enum handler_return (*platform_timer_callback)(void *arg, lk_time_t now);
26 status_t platform_set_periodic_timer(platform_timer_callback callback, void *arg, lk_time_t interva…
29 status_t platform_set_oneshot_timer (platform_timer_callback callback, void *arg, lk_time_t interva…
/lk-master/dev/timer/arm_cortex_a9/
A Darm_cortex_a9_timer.c98 status_t platform_set_periodic_timer(platform_timer_callback callback, void *arg, lk_time_t interva… in platform_set_periodic_timer() argument
99 LTRACEF("callback %p, arg %p, interval %u\n", callback, arg, interval); in platform_set_periodic_timer()
125 status_t platform_set_oneshot_timer (platform_timer_callback callback, void *arg, lk_time_t interva… in platform_set_oneshot_timer() argument
126 LTRACEF("callback %p, arg %p, timeout %u\n", callback, arg, interval); in platform_set_oneshot_timer()
157 static enum handler_return platform_tick(void *arg) { in platform_tick() argument
163 return t_callback(arg, current_time()); in platform_tick()
/lk-master/platform/pc/
A Duart.c32 static enum handler_return uart_irq_handler(void *arg);
33 static int uart_write_thread(void *arg);
94 static enum handler_return uart_irq_handler(void *arg) { in uart_irq_handler() argument
96 struct device *dev = arg; in uart_irq_handler()
114 static int uart_write_thread(void *arg) { in uart_write_thread() argument
115 struct device *dev = arg; in uart_write_thread()

Completed in 42 milliseconds

123456