Lines Matching refs:ap
53 static int API_getc(va_list ap) in API_getc() argument
57 if ((c = (int *)va_arg(ap, uintptr_t)) == NULL) in API_getc()
69 static int API_tstc(va_list ap) in API_tstc() argument
73 if ((t = (int *)va_arg(ap, uintptr_t)) == NULL) in API_tstc()
85 static int API_putc(va_list ap) in API_putc() argument
89 if ((c = (char *)va_arg(ap, uintptr_t)) == NULL) in API_putc()
101 static int API_puts(va_list ap) in API_puts() argument
105 if ((s = (char *)va_arg(ap, uintptr_t)) == NULL) in API_puts()
117 static int API_reset(va_list ap) in API_reset() argument
133 static int API_get_sys_info(va_list ap) in API_get_sys_info() argument
137 si = (struct sys_info *)va_arg(ap, uintptr_t); in API_get_sys_info()
149 static int API_udelay(va_list ap) in API_udelay() argument
153 if ((d = (unsigned long *)va_arg(ap, unsigned long)) == NULL) in API_udelay()
165 static int API_get_timer(va_list ap) in API_get_timer() argument
169 cur = (unsigned long *)va_arg(ap, unsigned long); in API_get_timer()
173 base = (unsigned long *)va_arg(ap, unsigned long); in API_get_timer()
199 static int API_dev_enum(va_list ap) in API_dev_enum() argument
204 di = (struct device_info *)va_arg(ap, uintptr_t); in API_dev_enum()
232 static int API_dev_open(va_list ap) in API_dev_open() argument
238 di = (struct device_info *)va_arg(ap, uintptr_t); in API_dev_open()
264 static int API_dev_close(va_list ap) in API_dev_close() argument
270 di = (struct device_info *)va_arg(ap, uintptr_t); in API_dev_close()
318 static int API_dev_write(va_list ap) in API_dev_write() argument
328 di = (struct device_info *)va_arg(ap, uintptr_t); in API_dev_write()
338 buf = (void *)va_arg(ap, uintptr_t); in API_dev_write()
344 len_stor = (lbasize_t *)va_arg(ap, uintptr_t); in API_dev_write()
351 start = (lbastart_t *)va_arg(ap, uintptr_t); in API_dev_write()
363 len_net = (int *)va_arg(ap, uintptr_t); in API_dev_write()
400 static int API_dev_read(va_list ap) in API_dev_read() argument
409 di = (struct device_info *)va_arg(ap, uintptr_t); in API_dev_read()
419 buf = (void *)va_arg(ap, uintptr_t); in API_dev_read()
425 len_stor = (lbasize_t *)va_arg(ap, uintptr_t); in API_dev_read()
432 start = (lbastart_t *)va_arg(ap, uintptr_t); in API_dev_read()
435 act_len_stor = (lbasize_t *)va_arg(ap, uintptr_t); in API_dev_read()
444 len_net = (int *)va_arg(ap, uintptr_t); in API_dev_read()
451 act_len_net = (int *)va_arg(ap, uintptr_t); in API_dev_read()
471 static int API_env_get(va_list ap) in API_env_get() argument
475 if ((name = (char *)va_arg(ap, uintptr_t)) == NULL) in API_env_get()
477 if ((value = (char **)va_arg(ap, uintptr_t)) == NULL) in API_env_get()
494 static int API_env_set(va_list ap) in API_env_set() argument
498 if ((name = (char *)va_arg(ap, uintptr_t)) == NULL) in API_env_set()
500 if ((value = (char *)va_arg(ap, uintptr_t)) == NULL) in API_env_set()
515 static int API_env_enum(va_list ap) in API_env_enum() argument
522 last = (char *)va_arg(ap, unsigned long); in API_env_enum()
524 if ((next = (char **)va_arg(ap, uintptr_t)) == NULL) in API_env_enum()
565 static int API_display_get_info(va_list ap) in API_display_get_info() argument
570 type = va_arg(ap, int); in API_display_get_info()
571 di = va_arg(ap, struct display_info *); in API_display_get_info()
581 static int API_display_draw_bitmap(va_list ap) in API_display_draw_bitmap() argument
586 bitmap = va_arg(ap, ulong); in API_display_draw_bitmap()
587 x = va_arg(ap, int); in API_display_draw_bitmap()
588 y = va_arg(ap, int); in API_display_draw_bitmap()
598 static int API_display_clear(va_list ap) in API_display_clear() argument
624 va_list ap; in syscall() local
637 va_start(ap, retval); in syscall()
638 rv = calls_table[call](ap); in syscall()