Home
last modified time | relevance | path

Searched refs:nargs (Results 1 – 11 of 11) sorted by relevance

/arch/powerpc/boot/
A Doflib.c21 __be32 nargs; /* Number of input arguments. */ member
41 int of_call_prom(const char *service, int nargs, int nret, ...) in of_call_prom() argument
48 args.nargs = cpu_to_be32(nargs); in of_call_prom()
52 for (i = 0; i < nargs; i++) in of_call_prom()
57 args.args[nargs+i] = 0; in of_call_prom()
62 return (nret > 0) ? be32_to_cpu(args.args[nargs]) : 0; in of_call_prom()
73 args.nargs = cpu_to_be32(nargs); in of_call_prom_ret()
77 for (i = 0; i < nargs; i++) in of_call_prom_ret()
82 args.args[nargs+i] = 0; in of_call_prom_ret()
89 rets[i-1] = be32_to_cpu(args.args[nargs+i]); in of_call_prom_ret()
[all …]
A Dof.h11 int of_call_prom(const char *service, int nargs, int nret, ...);
/arch/powerpc/include/asm/
A Dtrace.h133 __field(__u32, nargs)
135 __dynamic_array(__u32, inputs, be32_to_cpu(rtas_args->nargs))
139 __entry->nargs = be32_to_cpu(rtas_args->nargs);
141 be32_to_cpu_array(__get_dynamic_array(inputs), rtas_args->args, __entry->nargs);
145 __print_array(__get_dynamic_array(inputs), __entry->nargs, 4)
184 __field(u32, nargs)
191 __entry->nargs = be32_to_cpu(rtas_args->nargs);
201 __entry->token, __entry->nargs, __entry->nret,
A Drtas-types.h11 __be32 nargs; member
A Drtas.h427 int rtas_call(int token, int nargs, int nret, int *outputs, ...);
428 void rtas_call_unlocked(struct rtas_args *args, int token, int nargs,
/arch/powerpc/kernel/
A Drtas.c1005 err_args.nargs = cpu_to_be32(2); in __fetch_rtas_last_error()
1051 args->nargs = cpu_to_be32(nargs); in va_rtas_call_unlocked()
1053 args->rets = &(args->args[nargs]); in va_rtas_call_unlocked()
1055 for (i = 0; i < nargs; ++i) in va_rtas_call_unlocked()
1833 int nargs, nret, token; in SYSCALL_DEFINE1() local
1844 nargs = be32_to_cpu(args.nargs); in SYSCALL_DEFINE1()
1848 if (nargs >= ARRAY_SIZE(args.args) in SYSCALL_DEFINE1()
1853 nargs = array_index_nospec(nargs, ARRAY_SIZE(args.args)); in SYSCALL_DEFINE1()
1869 args.rets = &args.args[nargs]; in SYSCALL_DEFINE1()
1940 if (copy_to_user(uargs->args + nargs, in SYSCALL_DEFINE1()
[all …]
A Dprom_init.c110 __be32 nargs; member
394 args.nargs = cpu_to_be32(nargs); in call_prom()
398 for (i = 0; i < nargs; i++) in call_prom()
403 args.args[nargs+i] = 0; in call_prom()
408 return (nret > 0) ? be32_to_cpu(args.args[nargs]) : 0; in call_prom()
419 args.nargs = cpu_to_be32(nargs); in call_prom_ret()
423 for (i = 0; i < nargs; i++) in call_prom_ret()
428 args.args[nargs+i] = 0; in call_prom_ret()
435 rets[i-1] = be32_to_cpu(args.args[nargs+i]); in call_prom_ret()
437 return (nret > 0) ? be32_to_cpu(args.args[nargs]) : 0; in call_prom_ret()
[all …]
/arch/powerpc/kvm/
A Dbook3s_rtas.c24 if (be32_to_cpu(args->nargs) != 3 || be32_to_cpu(args->nret) != 1) { in kvm_rtas_set_xive()
48 if (be32_to_cpu(args->nargs) != 1 || be32_to_cpu(args->nret) != 3) { in kvm_rtas_get_xive()
76 if (be32_to_cpu(args->nargs) != 1 || be32_to_cpu(args->nret) != 1) { in kvm_rtas_int_off()
98 if (be32_to_cpu(args->nargs) != 1 || be32_to_cpu(args->nret) != 1) { in kvm_rtas_int_on()
245 if (be32_to_cpu(args.nargs) >= ARRAY_SIZE(args.args)) { in kvmppc_rtas_hcall()
256 args.rets = &args.args[be32_to_cpu(args.nargs)]; in kvmppc_rtas_hcall()
/arch/arm/mach-omap2/
A Domap-secure.c59 u32 omap_secure_dispatcher(u32 idx, u32 flag, u32 nargs, u32 arg1, u32 arg2, in omap_secure_dispatcher() argument
70 param[0] = nargs; in omap_secure_dispatcher()
155 static u32 rx51_secure_dispatcher(u32 idx, u32 process, u32 flag, u32 nargs, in rx51_secure_dispatcher() argument
161 param[0] = nargs+1; /* RX-51 needs number of arguments + 1 */ in rx51_secure_dispatcher()
A Domap-secure.h67 extern u32 omap_secure_dispatcher(u32 idx, u32 flag, u32 nargs,
/arch/loongarch/net/
A Dbpf_jit.c1343 static void store_args(struct jit_ctx *ctx, int nargs, int args_off) in store_args() argument
1347 for (i = 0; i < nargs; i++) { in store_args()
1353 static void restore_args(struct jit_ctx *ctx, int nargs, int args_off) in restore_args() argument
1357 for (i = 0; i < nargs; i++) { in restore_args()
1456 int stack_size = 0, nargs = 0; in __arch_prepare_bpf_trampoline() local
1514 nargs = m->nr_args; in __arch_prepare_bpf_trampoline()
1515 stack_size += nargs * 8; in __arch_prepare_bpf_trampoline()
1584 move_imm(ctx, LOONGARCH_GPR_T1, nargs, false); in __arch_prepare_bpf_trampoline()
1587 store_args(ctx, nargs, args_off); in __arch_prepare_bpf_trampoline()

Completed in 26 milliseconds