/arch/sparc/prom/ |
D | misc_64.c | 23 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 …]
|
D | tree_64.c | 22 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 …]
|
D | console_64.c | 18 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/ |
D | book3s_rtas.c | 19 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/ |
D | syscall.h | 86 unsigned long *args) in syscall_get_arguments() argument 88 memcpy(args, ®s->bx, 6 * sizeof(args[0])); in syscall_get_arguments() 94 const unsigned long *args) in syscall_set_arguments() argument 97 memcpy(®s->bx + i, args, n * sizeof(args[0])); in syscall_set_arguments() 109 unsigned long *args) in syscall_get_arguments() argument 113 *args++ = regs->bx; in syscall_get_arguments() 114 *args++ = regs->cx; in syscall_get_arguments() 115 *args++ = regs->dx; in syscall_get_arguments() 116 *args++ = regs->si; in syscall_get_arguments() 117 *args++ = regs->di; in syscall_get_arguments() [all …]
|
/arch/sh/include/asm/ |
D | syscall_32.h | 48 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() 62 const unsigned long *args) in syscall_set_arguments() argument 64 regs->regs[1] = args[5]; in syscall_set_arguments() 65 regs->regs[0] = args[4]; in syscall_set_arguments() [all …]
|
/arch/c6x/include/asm/ |
D | syscall.h | 47 unsigned long *args) in syscall_get_arguments() argument 49 *args++ = regs->a4; in syscall_get_arguments() 50 *args++ = regs->b4; in syscall_get_arguments() 51 *args++ = regs->a6; in syscall_get_arguments() 52 *args++ = regs->b6; in syscall_get_arguments() 53 *args++ = regs->a8; in syscall_get_arguments() 54 *args = regs->b8; in syscall_get_arguments() 59 const unsigned long *args) in syscall_set_arguments() argument 61 regs->a4 = *args++; in syscall_set_arguments() 62 regs->b4 = *args++; in syscall_set_arguments() [all …]
|
/arch/um/include/asm/ |
D | syscall-generic.h | 53 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() 67 const unsigned long *args) in syscall_set_arguments() argument 71 UPT_SYSCALL_ARG1(r) = *args++; in syscall_set_arguments() 72 UPT_SYSCALL_ARG2(r) = *args++; in syscall_set_arguments() [all …]
|
/arch/powerpc/boot/ |
D | oflib.c | 23 __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 …]
|
D | stdio.c | 146 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/nios2/include/asm/ |
D | syscall.h | 51 struct pt_regs *regs, unsigned long *args) in syscall_get_arguments() argument 53 *args++ = regs->r4; in syscall_get_arguments() 54 *args++ = regs->r5; in syscall_get_arguments() 55 *args++ = regs->r6; in syscall_get_arguments() 56 *args++ = regs->r7; in syscall_get_arguments() 57 *args++ = regs->r8; in syscall_get_arguments() 58 *args = regs->r9; in syscall_get_arguments() 62 struct pt_regs *regs, const unsigned long *args) in syscall_set_arguments() argument 64 regs->r4 = *args++; in syscall_set_arguments() 65 regs->r5 = *args++; in syscall_set_arguments() [all …]
|
/arch/sparc/kernel/ |
D | process.c | 22 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/arm/include/asm/ |
D | syscall.h | 58 unsigned long *args) in syscall_get_arguments() argument 60 args[0] = regs->ARM_ORIG_r0; in syscall_get_arguments() 61 args++; in syscall_get_arguments() 63 memcpy(args, ®s->ARM_r0 + 1, 5 * sizeof(args[0])); in syscall_get_arguments() 68 const unsigned long *args) in syscall_set_arguments() argument 70 regs->ARM_ORIG_r0 = args[0]; in syscall_set_arguments() 71 args++; in syscall_set_arguments() 73 memcpy(®s->ARM_r0 + 1, args, 5 * sizeof(args[0])); in syscall_set_arguments()
|
/arch/nds32/include/asm/ |
D | syscall.h | 128 unsigned long *args) in syscall_get_arguments() argument 130 args[0] = regs->orig_r0; in syscall_get_arguments() 131 args++; in syscall_get_arguments() 132 memcpy(args, ®s->uregs[0] + 1, 5 * sizeof(args[0])); in syscall_get_arguments() 149 const unsigned long *args) in syscall_set_arguments() argument 151 regs->orig_r0 = args[0]; in syscall_set_arguments() 152 args++; in syscall_set_arguments() 154 memcpy(®s->uregs[0] + 1, args, 5 * sizeof(args[0])); in syscall_set_arguments()
|
/arch/um/drivers/ |
D | vde_user.c | 21 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/ |
D | printf.c | 113 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() 268 num = va_arg(args, unsigned long); in vsprintf() 270 num = (unsigned short)va_arg(args, int); in vsprintf() [all …]
|
/arch/arm64/include/asm/ |
D | syscall.h | 68 unsigned long *args) in syscall_get_arguments() argument 70 args[0] = regs->orig_x0; in syscall_get_arguments() 71 args++; in syscall_get_arguments() 73 memcpy(args, ®s->regs[1], 5 * sizeof(args[0])); in syscall_get_arguments() 78 const unsigned long *args) in syscall_set_arguments() argument 80 regs->orig_x0 = args[0]; in syscall_set_arguments() 81 args++; in syscall_set_arguments() 83 memcpy(®s->regs[1], args, 5 * sizeof(args[0])); in syscall_set_arguments()
|
/arch/powerpc/kernel/ |
D | rtas.c | 104 rtas_call_unlocked(&rtas.args, 10, 1, 1, NULL, c); in call_rtas_display_status() 380 err_args.args[0] = cpu_to_be32(__pa(rtas_err_buf)); in __fetch_rtas_last_error() 381 err_args.args[1] = cpu_to_be32(bufsz); in __fetch_rtas_last_error() 382 err_args.args[2] = 0; in __fetch_rtas_last_error() 384 save_args = rtas.args; in __fetch_rtas_last_error() 385 rtas.args = err_args; in __fetch_rtas_last_error() 387 enter_rtas(__pa(&rtas.args)); in __fetch_rtas_last_error() 389 err_args = rtas.args; in __fetch_rtas_last_error() 390 rtas.args = save_args; in __fetch_rtas_last_error() 393 if (unlikely(err_args.args[2] == 0)) { in __fetch_rtas_last_error() [all …]
|
/arch/riscv/include/asm/ |
D | syscall.h | 60 unsigned long *args) in syscall_get_arguments() argument 62 args[0] = regs->orig_a0; in syscall_get_arguments() 63 args++; in syscall_get_arguments() 64 memcpy(args, ®s->a1, 5 * sizeof(args[0])); in syscall_get_arguments() 69 const unsigned long *args) in syscall_set_arguments() argument 71 regs->orig_a0 = args[0]; in syscall_set_arguments() 72 args++; in syscall_set_arguments() 73 memcpy(®s->a1, args, 5 * sizeof(regs->a1)); in syscall_set_arguments()
|
/arch/csky/include/asm/ |
D | syscall.h | 55 unsigned long *args) in syscall_get_arguments() argument 57 args[0] = regs->orig_a0; in syscall_get_arguments() 58 args++; in syscall_get_arguments() 59 memcpy(args, ®s->a1, 5 * sizeof(args[0])); in syscall_get_arguments() 64 const unsigned long *args) in syscall_set_arguments() argument 66 regs->orig_a0 = args[0]; in syscall_set_arguments() 67 args++; in syscall_set_arguments() 68 memcpy(®s->a1, args, 5 * sizeof(regs->a1)); in syscall_set_arguments()
|
/arch/h8300/include/asm/ |
D | syscall.h | 21 unsigned long *args) in syscall_get_arguments() argument 23 *args++ = regs->er1; in syscall_get_arguments() 24 *args++ = regs->er2; in syscall_get_arguments() 25 *args++ = regs->er3; in syscall_get_arguments() 26 *args++ = regs->er4; in syscall_get_arguments() 27 *args++ = regs->er5; in syscall_get_arguments() 28 *args = regs->er6; in syscall_get_arguments()
|
/arch/powerpc/platforms/powermac/ |
D | pfunc_base.c | 51 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() 160 if (args == NULL || args->count == 0 || args->u[0].p == NULL) in macio_do_read_reg32() 163 *args->u[0].p = MACIO_IN32(offset); in macio_do_read_reg32() 183 if (args == NULL || args->count == 0 || args->u[0].p == NULL) in macio_do_read_reg8() 186 *((u8 *)(args->u[0].p)) = MACIO_IN8(offset); in macio_do_read_reg8() 196 if (args == NULL || args->count == 0 || args->u[0].p == NULL) in macio_do_read_reg32_msrx() 199 *args->u[0].p = ((MACIO_IN32(offset) & mask) >> shift) ^ xor; in macio_do_read_reg32_msrx() 209 if (args == NULL || args->count == 0 || args->u[0].p == NULL) in macio_do_read_reg8_msrx() [all …]
|
/arch/alpha/boot/ |
D | stdio.c | 110 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/mips/kvm/ |
D | hypcall.c | 33 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/x86/xen/ |
D | multicalls.c | 46 unsigned char args[MC_ARGS]; member 88 mc->result = xen_single_call(mc->op, mc->args[0], mc->args[1], in xen_mc_flush() 89 mc->args[2], mc->args[3], in xen_mc_flush() 90 mc->args[4]); in xen_mc_flush() 111 b->debug[i].args[0], in xen_mc_flush() 118 b->entries[i].args[0], in xen_mc_flush() 138 struct multicall_space __xen_mc_entry(size_t args) in __xen_mc_entry() argument 144 trace_xen_mc_entry_alloc(args); in __xen_mc_entry() 150 (argidx + args) >= MC_ARGS)) { in __xen_mc_entry() 162 ret.args = &b->args[argidx]; in __xen_mc_entry() [all …]
|