Home
last modified time | relevance | path

Searched refs:args (Results 1 – 25 of 269) sorted by relevance

1234567891011

/arch/sparc/prom/
Dmisc_64.c23 unsigned long args[5]; in prom_service_exists() local
25 args[0] = (unsigned long) "test"; in prom_service_exists()
26 args[1] = 1; in prom_service_exists()
27 args[2] = 1; in prom_service_exists()
28 args[3] = (unsigned long) service_name; in prom_service_exists()
29 args[4] = (unsigned long) -1; in prom_service_exists()
31 p1275_cmd_direct(args); in prom_service_exists()
33 if (args[4]) in prom_service_exists()
41 unsigned long args[3]; in prom_sun4v_guest_soft_state() local
45 args[0] = (unsigned long) svc; in prom_sun4v_guest_soft_state()
[all …]
Dtree_64.c22 unsigned long args[5]; in prom_node_to_node() local
24 args[0] = (unsigned long) type; in prom_node_to_node()
25 args[1] = 1; in prom_node_to_node()
26 args[2] = 1; in prom_node_to_node()
27 args[3] = (unsigned int) node; in prom_node_to_node()
28 args[4] = (unsigned long) -1; in prom_node_to_node()
30 p1275_cmd_direct(args); in prom_node_to_node()
32 return (phandle) args[4]; in prom_node_to_node()
95 unsigned long args[6]; in prom_getproplen() local
100 args[0] = (unsigned long) "getproplen"; in prom_getproplen()
[all …]
Dconsole_64.c18 unsigned long args[7]; in __prom_console_write_buf() local
21 args[0] = (unsigned long) "write"; in __prom_console_write_buf()
22 args[1] = 3; in __prom_console_write_buf()
23 args[2] = 1; in __prom_console_write_buf()
24 args[3] = (unsigned int) prom_stdout; in __prom_console_write_buf()
25 args[4] = (unsigned long) buf; in __prom_console_write_buf()
26 args[5] = (unsigned int) len; in __prom_console_write_buf()
27 args[6] = (unsigned long) -1; in __prom_console_write_buf()
29 p1275_cmd_direct(args); in __prom_console_write_buf()
31 ret = (int) args[6]; in __prom_console_write_buf()
/arch/powerpc/kvm/
Dbook3s_rtas.c19 static void kvm_rtas_set_xive(struct kvm_vcpu *vcpu, struct rtas_args *args) in kvm_rtas_set_xive() argument
24 if (be32_to_cpu(args->nargs) != 3 || be32_to_cpu(args->nret) != 1) { in kvm_rtas_set_xive()
29 irq = be32_to_cpu(args->args[0]); in kvm_rtas_set_xive()
30 server = be32_to_cpu(args->args[1]); in kvm_rtas_set_xive()
31 priority = be32_to_cpu(args->args[2]); in kvm_rtas_set_xive()
40 args->rets[0] = cpu_to_be32(rc); in kvm_rtas_set_xive()
43 static void kvm_rtas_get_xive(struct kvm_vcpu *vcpu, struct rtas_args *args) in kvm_rtas_get_xive() argument
48 if (be32_to_cpu(args->nargs) != 1 || be32_to_cpu(args->nret) != 3) { in kvm_rtas_get_xive()
53 irq = be32_to_cpu(args->args[0]); in kvm_rtas_get_xive()
65 args->rets[1] = cpu_to_be32(server); in kvm_rtas_get_xive()
[all …]
/arch/x86/include/asm/
Dsyscall.h83 unsigned long *args) in syscall_get_arguments() argument
85 args[0] = regs->bx; in syscall_get_arguments()
86 args[1] = regs->cx; in syscall_get_arguments()
87 args[2] = regs->dx; in syscall_get_arguments()
88 args[3] = regs->si; in syscall_get_arguments()
89 args[4] = regs->di; in syscall_get_arguments()
90 args[5] = regs->bp; in syscall_get_arguments()
102 unsigned long *args) in syscall_get_arguments() argument
106 *args++ = regs->bx; in syscall_get_arguments()
107 *args++ = regs->cx; in syscall_get_arguments()
[all …]
/arch/powerpc/boot/
Doflib.c23 __be32 args[10]; /* Input/output arguments. */ member
44 struct prom_args args; in of_call_prom() local
47 args.service = cpu_to_be32(ADDR(service)); in of_call_prom()
48 args.nargs = cpu_to_be32(nargs); in of_call_prom()
49 args.nret = cpu_to_be32(nret); in of_call_prom()
53 args.args[i] = cpu_to_be32(va_arg(list, prom_arg_t)); in of_call_prom()
57 args.args[nargs+i] = 0; in of_call_prom()
59 if (prom(&args) < 0) in of_call_prom()
62 return (nret > 0) ? be32_to_cpu(args.args[nargs]) : 0; in of_call_prom()
69 struct prom_args args; in of_call_prom_ret() local
[all …]
Dstdio.c146 int vsprintf(char *buf, const char *fmt, va_list args) in vsprintf() argument
189 field_width = va_arg(args, int); in vsprintf()
205 precision = va_arg(args, int); in vsprintf()
230 *str++ = (unsigned char) va_arg(args, int); in vsprintf()
236 s = va_arg(args, char *); in vsprintf()
257 (unsigned long) va_arg(args, void *), 16, in vsprintf()
264 long * ip = va_arg(args, long *); in vsprintf()
267 size_t * ip = va_arg(args, size_t *); in vsprintf()
270 int * ip = va_arg(args, int *); in vsprintf()
305 num = va_arg(args, unsigned long); in vsprintf()
[all …]
/arch/arm64/include/asm/
Dkvm_hypevents_defs.h41 #define HE_PROTO(args...) args argument
42 #define HE_STRUCT(args...) args argument
43 #define HE_ASSIGN(args...) args argument
44 #define HE_PRINTK(args...) args argument
45 #define HE_PRINTK_UNKNOWN_FMT(args...) args argument
/arch/sparc/kernel/
Dprocess.c22 struct kernel_clone_args args = { in sparc_fork() local
28 ret = kernel_clone(&args); in sparc_fork()
46 struct kernel_clone_args args = { in sparc_vfork() local
53 ret = kernel_clone(&args); in sparc_vfork()
72 struct kernel_clone_args args = { in sparc_clone() local
80 args.pidfd = compat_ptr(regs->u_regs[UREG_I2]); in sparc_clone()
81 args.child_tid = compat_ptr(regs->u_regs[UREG_I4]); in sparc_clone()
82 args.parent_tid = compat_ptr(regs->u_regs[UREG_I2]); in sparc_clone()
86 args.pidfd = (int __user *)regs->u_regs[UREG_I2]; in sparc_clone()
87 args.child_tid = (int __user *)regs->u_regs[UREG_I4]; in sparc_clone()
[all …]
/arch/x86/coco/tdx/
Dtdx.c58 struct tdx_module_args args = { in tdx_kvm_hypercall() local
66 return __tdx_hypercall(&args); in tdx_kvm_hypercall()
76 static inline void tdcall(u64 fn, struct tdx_module_args *args) in tdcall() argument
78 if (__tdcall_ret(fn, args)) in tdcall()
85 struct tdx_module_args args = { in tdg_vm_rd() local
90 ret = __tdcall_ret(TDG_VM_RD, &args); in tdg_vm_rd()
91 *value = args.r8; in tdg_vm_rd()
99 struct tdx_module_args args = { in tdg_vm_wr() local
105 return __tdcall(TDG_VM_WR, &args); in tdg_vm_wr()
124 struct tdx_module_args args = { in tdx_mcall_get_report0() local
[all …]
Dtdx-shared.c8 struct tdx_module_args args = {}; in try_accept_one() local
37 args.rcx = start | page_size; in try_accept_one()
38 if (__tdcall(TDG_MEM_PAGE_ACCEPT, &args)) in try_accept_one()
73 noinstr u64 __tdx_hypercall(struct tdx_module_args *args) in __tdx_hypercall() argument
79 args->rcx = TDVMCALL_EXPOSE_REGS_MASK; in __tdx_hypercall()
86 if (__tdcall_saved_ret(TDG_VP_VMCALL, args)) in __tdx_hypercall()
90 return args->r10; in __tdx_hypercall()
/arch/m68k/include/asm/
Dsyscall.h46 unsigned long *args) in syscall_get_arguments() argument
48 args[0] = regs->orig_d0; in syscall_get_arguments()
49 args++; in syscall_get_arguments()
51 memcpy(args, &regs->d1, 5 * sizeof(args[0])); in syscall_get_arguments()
56 unsigned long *args) in syscall_set_arguments() argument
58 regs->orig_d0 = args[0]; in syscall_set_arguments()
59 args++; in syscall_set_arguments()
61 memcpy(&regs->d1, args, 5 * sizeof(args[0])); in syscall_set_arguments()
/arch/um/drivers/
Dvde_user.c21 conn = vde_open(pri->vde_switch, pri->descr, pri->args); in vde_user_init()
56 kfree(pri->args); in vde_remove()
57 pri->args = NULL; in vde_remove()
77 struct vde_open_args *args; in vde_init_libstuff() local
79 vpri->args = uml_kmalloc(sizeof(struct vde_open_args), UM_GFP_KERNEL); in vde_init_libstuff()
80 if (vpri->args == NULL) { in vde_init_libstuff()
86 args = vpri->args; in vde_init_libstuff()
88 args->port = init->port; in vde_init_libstuff()
89 args->group = init->group; in vde_init_libstuff()
90 args->mode = init->mode ? init->mode : 0700; in vde_init_libstuff()
[all …]
/arch/x86/boot/
Dprintf.c113 int vsprintf(char *buf, const char *fmt, va_list args) in vsprintf() argument
163 field_width = va_arg(args, int); in vsprintf()
179 precision = va_arg(args, int); in vsprintf()
200 *str++ = (unsigned char)va_arg(args, int); in vsprintf()
206 s = va_arg(args, char *); in vsprintf()
224 (unsigned long)va_arg(args, void *), 16, in vsprintf()
230 long *ip = va_arg(args, long *); in vsprintf()
233 int *ip = va_arg(args, int *); in vsprintf()
271 num = va_arg(args, unsigned long); in vsprintf()
273 num = (unsigned short)va_arg(args, int); in vsprintf()
[all …]
/arch/powerpc/platforms/powermac/
Dpfunc_base.c51 if (args && args->count && !args->u[0].v) in macio_do_gpio_write()
72 if (args == NULL || args->count == 0 || args->u[0].p == NULL) in macio_do_gpio_read()
76 *args->u[0].p = ((value & mask) >> rshift) ^ xor; in macio_do_gpio_read()
162 if (args == NULL || args->count == 0 || args->u[0].p == NULL) in macio_do_read_reg32()
165 *args->u[0].p = MACIO_IN32(offset); in macio_do_read_reg32()
185 if (args == NULL || args->count == 0 || args->u[0].p == NULL) in macio_do_read_reg8()
188 *((u8 *)(args->u[0].p)) = MACIO_IN8(offset); in macio_do_read_reg8()
198 if (args == NULL || args->count == 0 || args->u[0].p == NULL) in macio_do_read_reg32_msrx()
201 *args->u[0].p = ((MACIO_IN32(offset) & mask) >> shift) ^ xor; in macio_do_read_reg32_msrx()
211 if (args == NULL || args->count == 0 || args->u[0].p == NULL) in macio_do_read_reg8_msrx()
[all …]
/arch/powerpc/kernel/
Drtas.c672 static void __do_enter_rtas(struct rtas_args *args) in __do_enter_rtas() argument
674 enter_rtas(__pa(args)); in __do_enter_rtas()
678 static void __do_enter_rtas_trace(struct rtas_args *args) in __do_enter_rtas_trace() argument
680 const struct rtas_function *func = rtas_token_to_function(be32_to_cpu(args->token)); in __do_enter_rtas_trace()
689 if (args == &rtas_args) in __do_enter_rtas_trace()
692 trace_rtas_input(args, func->name); in __do_enter_rtas_trace()
693 trace_rtas_ll_entry(args); in __do_enter_rtas_trace()
695 __do_enter_rtas(args); in __do_enter_rtas_trace()
697 trace_rtas_ll_exit(args); in __do_enter_rtas_trace()
698 trace_rtas_output(args, func->name); in __do_enter_rtas_trace()
[all …]
/arch/alpha/boot/
Dstdio.c110 int vsprintf(char *buf, const char *fmt, va_list args) in vsprintf() argument
153 field_width = va_arg(args, int); in vsprintf()
169 precision = va_arg(args, int); in vsprintf()
194 *str++ = (unsigned char) va_arg(args, int); in vsprintf()
200 s = va_arg(args, char *); in vsprintf()
221 (unsigned long) va_arg(args, void *), 16, in vsprintf()
228 long * ip = va_arg(args, long *); in vsprintf()
231 size_t * ip = va_arg(args, size_t *); in vsprintf()
234 int * ip = va_arg(args, int *); in vsprintf()
269 num = va_arg(args, unsigned long); in vsprintf()
[all …]
/arch/x86/xen/
Dmulticalls.c41 unsigned char args[MC_ARGS]; member
52 unsigned long *args[MC_BATCH]; member
132 pr_cont("%lx ", mcdb->entries[idx].args[arg]); in print_debug_data()
137 pr_cont("%lx ", mcdb->args[idx][arg]); in print_debug_data()
176 mc->result = xen_single_call(mc->op, mc->args[0], mc->args[1], in xen_mc_flush()
177 mc->args[2], mc->args[3], in xen_mc_flush()
178 mc->args[4]); in xen_mc_flush()
200 b->entries[i].args[0], in xen_mc_flush()
219 struct multicall_space __xen_mc_entry(size_t args) in __xen_mc_entry() argument
225 trace_xen_mc_entry_alloc(args); in __xen_mc_entry()
[all …]
/arch/x86/platform/olpc/
Dolpc_dt.c24 const void *args[] = { (void *)node }; in olpc_dt_getsibling() local
30 if (olpc_ofw("peer", args, res) || (s32)node == -1) in olpc_dt_getsibling()
38 const void *args[] = { (void *)node }; in olpc_dt_getchild() local
44 if (olpc_ofw("child", args, res) || (s32)node == -1) { in olpc_dt_getchild()
54 const void *args[] = { (void *)node, prop }; in olpc_dt_getproplen() local
61 if (olpc_ofw("getproplen", args, res)) { in olpc_dt_getproplen()
78 const void *args[] = { (void *)node, prop, buf, (void *)plen }; in olpc_dt_getproperty() local
81 if (olpc_ofw("getprop", args, res)) { in olpc_dt_getproperty()
92 const void *args[] = { (void *)node, prev, buf }; in olpc_dt_nextprop() local
101 if (olpc_ofw("nextprop", args, res) || success != 1) in olpc_dt_nextprop()
[all …]
/arch/mips/kvm/
Dhypcall.c33 const unsigned long *args, unsigned long *hret) in kvm_mips_hypercall() argument
42 unsigned long num, args[MAX_HYPCALL_ARGS]; in kvm_mips_handle_hypcall() local
46 args[0] = vcpu->arch.gprs[4]; /* a0 */ in kvm_mips_handle_hypcall()
47 args[1] = vcpu->arch.gprs[5]; /* a1 */ in kvm_mips_handle_hypcall()
48 args[2] = vcpu->arch.gprs[6]; /* a2 */ in kvm_mips_handle_hypcall()
49 args[3] = vcpu->arch.gprs[7]; /* a3 */ in kvm_mips_handle_hypcall()
52 args, &vcpu->arch.gprs[2] /* v0 */); in kvm_mips_handle_hypcall()
/arch/s390/include/asm/
Dkvm_para.h70 #define GENERATE_KVM_HYPERCALL_FUNC(args) \ argument
72 long __kvm_hypercall##args(unsigned long nr HYPERCALL_PARM_##args) \
76 HYPERCALL_REGS_##args; \
81 : "d" (__nr) HYPERCALL_FMT_##args \
87 long kvm_hypercall##args(unsigned long nr HYPERCALL_PARM_##args) \
90 return __kvm_hypercall##args(nr HYPERCALL_ARGS_##args); \
/arch/parisc/kernel/
Dprocess.c202 copy_thread(struct task_struct *p, const struct kernel_clone_args *args) in copy_thread() argument
204 unsigned long clone_flags = args->flags; in copy_thread()
205 unsigned long usp = args->stack; in copy_thread()
206 unsigned long tls = args->tls; in copy_thread()
216 if (unlikely(args->fn)) { in copy_thread()
219 if (args->idle) /* idle thread */ in copy_thread()
231 cregs->gr[27] = ((unsigned long *)args->fn)[3]; in copy_thread()
232 cregs->gr[26] = ((unsigned long *)args->fn)[2]; in copy_thread()
234 cregs->gr[26] = (unsigned long) args->fn; in copy_thread()
236 cregs->gr[25] = (unsigned long) args->fn_arg; in copy_thread()
/arch/um/include/asm/
Dsyscall-generic.h53 unsigned long *args) in syscall_get_arguments() argument
57 *args++ = UPT_SYSCALL_ARG1(r); in syscall_get_arguments()
58 *args++ = UPT_SYSCALL_ARG2(r); in syscall_get_arguments()
59 *args++ = UPT_SYSCALL_ARG3(r); in syscall_get_arguments()
60 *args++ = UPT_SYSCALL_ARG4(r); in syscall_get_arguments()
61 *args++ = UPT_SYSCALL_ARG5(r); in syscall_get_arguments()
62 *args = UPT_SYSCALL_ARG6(r); in syscall_get_arguments()
/arch/sh/include/asm/
Dcacheflush.h21 extern void (*local_flush_cache_all)(void *args);
22 extern void (*local_flush_cache_mm)(void *args);
23 extern void (*local_flush_cache_dup_mm)(void *args);
24 extern void (*local_flush_cache_page)(void *args);
25 extern void (*local_flush_cache_range)(void *args);
26 extern void (*local_flush_dcache_folio)(void *args);
27 extern void (*local_flush_icache_range)(void *args);
28 extern void (*local_flush_icache_folio)(void *args);
29 extern void (*local_flush_cache_sigtramp)(void *args);
31 static inline void cache_noop(void *args) { } in cache_noop() argument
Dsyscall_32.h48 unsigned long *args) in syscall_get_arguments() argument
52 args[5] = regs->regs[1]; in syscall_get_arguments()
53 args[4] = regs->regs[0]; in syscall_get_arguments()
54 args[3] = regs->regs[7]; in syscall_get_arguments()
55 args[2] = regs->regs[6]; in syscall_get_arguments()
56 args[1] = regs->regs[5]; in syscall_get_arguments()
57 args[0] = regs->regs[4]; in syscall_get_arguments()

1234567891011