Searched refs:args (Results 1 – 12 of 12) sorted by relevance
| /kernel/include/lib/ |
| A D | ktrace.h | 49 uint32_t* args = (uint32_t*)ktrace_open(TAG_PROBE_24(info.num)); \ 50 if (args) { \ 51 args[0] = arg0; \ 52 args[1] = arg1; \ 58 uint64_t* args = (uint64_t*)ktrace_open(TAG_PROBE_24(info.num)); \ 59 if (args) { \ 60 *args = arg; \
|
| /kernel/dev/psci/ |
| A D | psci.cpp | 39 uint64_t* args = reboot_args; in psci_system_reset() local 42 args = reboot_bootloader_args; in psci_system_reset() 44 args = reboot_recovery_args; in psci_system_reset() 47 do_psci_call(PSCI64_SYSTEM_RESET, args[0], args[1], args[2]); in psci_system_reset()
|
| /kernel/syscalls/ |
| A D | channel.cpp | 197 zx_channel_call_args_t* args, in channel_read_out() argument 203 if ((args->rd_num_bytes < num_bytes) || (args->rd_num_handles < num_handles)) { in channel_read_out() 215 if (reply->CopyDataTo(make_user_out_ptr(args->rd_bytes)) != ZX_OK) { in channel_read_out() 228 zx_channel_call_args_t* args, in channel_call_epilogue() argument 332 zx_channel_call_args_t args; in sys_channel_call_noretry() local 334 zx_status_t status = user_args.copy_from_user(&args); in sys_channel_call_noretry() 338 user_in_ptr<const void> user_bytes = make_user_in_ptr(args.wr_bytes); in sys_channel_call_noretry() 341 uint32_t num_bytes = args.wr_num_bytes; in sys_channel_call_noretry() 342 uint32_t num_handles = args.wr_num_handles; in sys_channel_call_noretry() 392 zx_channel_call_args_t args; in sys_channel_call_finish() local [all …]
|
| A D | debug.cpp | 165 uint32_t* args = static_cast<uint32_t*>(ktrace_open(TAG_PROBE_24(event_id))); in sys_ktrace_write() local 166 if (!args) { in sys_ktrace_write() 171 args[0] = arg0; in sys_ktrace_write() 172 args[1] = arg1; in sys_ktrace_write()
|
| /kernel/lib/console/ |
| A D | console.cpp | 391 args[arg].str = &buffer[outpos]; in tokenize_command() 418 args[arg].str = &buffer[outpos]; in tokenize_command() 444 args[arg].str = &buffer[outpos]; in tokenize_command() 519 cmd_args* args = NULL; in command_loop() local 525 if (unlikely(args == NULL)) { in command_loop() 532 free(args); in command_loop() 571 convert_args(argc, args); in command_loop() 612 free(args); in command_loop() 787 cmd_args args[MAX_NUM_ARGS]; in panic_shell_start() local 799 args[argc].str = tok; in panic_shell_start() [all …]
|
| /kernel/include/ktl/ |
| A D | unique_ptr.h | 16 unique_ptr<T> make_unique(fbl::AllocChecker* ac, Args&&... args) { in make_unique() argument 17 return unique_ptr<T>(new (ac) T(std::forward<Args>(args)...)); in make_unique()
|
| /kernel/lib/libc/ |
| A D | printf.c | 27 struct _output_args *args = (struct _output_args*)state; in _vsnprintf_output() local 31 if (args->pos < args->len) { in _vsnprintf_output() 32 args->outstr[args->pos++] = *str; in _vsnprintf_output() 44 struct _output_args args; in PRINTF_DECL() local 47 args.outstr = str; in PRINTF_DECL() 48 args.len = len; in PRINTF_DECL() 49 args.pos = 0; in PRINTF_DECL() 51 wlen = PRINTF_CALL(_printf_engine)(&_vsnprintf_output, (void *)&args, in PRINTF_DECL() 53 if (args.pos >= len) in PRINTF_DECL()
|
| /kernel/lib/libc/include/ |
| A D | assert.h | 13 #define PANIC(args...) panic(args) argument
|
| /kernel/tests/ |
| A D | printf_tests.cpp | 18 va_list args; in test_printf() local 19 va_start(args, format); in test_printf() 20 int length = vsnprintf(buf, sizeof(buf), format, args); in test_printf() 21 va_end(args); in test_printf()
|
| A D | timer_tests.cpp | 205 timer_stress_args* args = reinterpret_cast<timer_stress_args*>(void_arg); in timer_stress_cb() local 206 atomic_add_u64(&args->num_fired, 1); in timer_stress_cb() 215 timer_stress_args* args = reinterpret_cast<timer_stress_args*>(void_arg); in timer_stress_worker() local 216 while (!atomic_load(&args->timer_stress_done)) { in timer_stress_worker() 231 atomic_add_u64(&args->num_set, 1); in timer_stress_worker() 266 timer_stress_args args{}; in timer_stress() local 271 thread_create("timer-stress-worker", &timer_stress_worker, &args, DEFAULT_PRIORITY); in timer_stress() 280 atomic_store(&args.timer_stress_done, 1); in timer_stress() 286 printf("timer stress done; timer set %zu, timer fired %zu\n", args.num_set, args.num_fired); in timer_stress()
|
| A D | thread_tests.cpp | 118 struct args { in mutex_inherit_test() struct 121 } args; in mutex_inherit_test() local 125 struct args* args = static_cast<struct args*>(arg); in mutex_inherit_test() local 136 mutex_acquire(&args->test_mutex[j]); in mutex_inherit_test() 145 event_wait_deadline(&args->test_blocker, current_time() + ZX_USEC(rand() % 10u), true); in mutex_inherit_test() 149 mutex_release(&args->test_mutex[j]); in mutex_inherit_test() 157 for (auto &m: args.test_mutex) { in mutex_inherit_test() 163 t = thread_create("mutex tester", inherit_worker, &args, in mutex_inherit_test() 172 for (auto &m: args.test_mutex) { in mutex_inherit_test()
|
| /kernel/lib/fbl/include/fbl/ |
| A D | arena.h | 145 T* New(Args&&... args) { in New() argument 149 return addr ? new (addr) T(fbl::forward<Args>(args)...) : nullptr; in New()
|
Completed in 26 milliseconds