Home
last modified time | relevance | path

Searched refs:arg (Results 1 – 25 of 346) sorted by relevance

12345678910>>...14

/arch/ia64/kernel/
Dunwind_decoder.c86 unw_decode_x1 (unsigned char *dp, unsigned char code, void *arg) in unw_decode_x1() argument
96 UNW_DEC_SPILL_SPREL(X1, t, abreg, off, arg); in unw_decode_x1()
98 UNW_DEC_SPILL_PSPREL(X1, t, abreg, off, arg); in unw_decode_x1()
103 unw_decode_x2 (unsigned char *dp, unsigned char code, void *arg) in unw_decode_x2() argument
114 UNW_DEC_RESTORE(X2, t, abreg, arg); in unw_decode_x2()
116 UNW_DEC_SPILL_REG(X2, t, abreg, x, ytreg, arg); in unw_decode_x2()
121 unw_decode_x3 (unsigned char *dp, unsigned char code, void *arg) in unw_decode_x3() argument
134 UNW_DEC_SPILL_SPREL_P(X3, qp, t, abreg, off, arg); in unw_decode_x3()
136 UNW_DEC_SPILL_PSPREL_P(X3, qp, t, abreg, off, arg); in unw_decode_x3()
141 unw_decode_x4 (unsigned char *dp, unsigned char code, void *arg) in unw_decode_x4() argument
[all …]
Dperfmon_default_smpl.c44 pfm_default_smpl_arg_t *arg = (pfm_default_smpl_arg_t*)data; in default_validate() local
57 if (arg->buf_size < PFM_DEFAULT_SMPL_MIN_BUF_SIZE) return -EINVAL; in default_validate()
59 DPRINT(("buf_size=%lu\n", arg->buf_size)); in default_validate()
67 pfm_default_smpl_arg_t *arg = (pfm_default_smpl_arg_t *)data; in default_get_size() local
72 *size = arg->buf_size; in default_get_size()
81 pfm_default_smpl_arg_t *arg = (pfm_default_smpl_arg_t *)data; in default_init() local
86 hdr->hdr_buf_size = arg->buf_size; in default_init()
103 default_handler(struct task_struct *task, void *buf, pfm_ovfl_arg_t *arg, struct pt_regs *regs, uns… in default_handler() argument
113 if (unlikely(buf == NULL || arg == NULL|| regs == NULL || task == NULL)) { in default_handler()
114 DPRINT(("[%d] invalid arguments buf=%p arg=%p\n", task->pid, buf, arg)); in default_handler()
[all …]
/arch/arm64/kernel/
Dpointer_auth.c11 int ptrauth_prctl_reset_keys(struct task_struct *tsk, unsigned long arg) in ptrauth_prctl_reset_keys() argument
24 if (!arg) { in ptrauth_prctl_reset_keys()
29 if (arg & ~key_mask) in ptrauth_prctl_reset_keys()
32 if (((arg & addr_key_mask) && !system_supports_address_auth()) || in ptrauth_prctl_reset_keys()
33 ((arg & PR_PAC_APGAKEY) && !system_supports_generic_auth())) in ptrauth_prctl_reset_keys()
36 if (arg & PR_PAC_APIAKEY) in ptrauth_prctl_reset_keys()
38 if (arg & PR_PAC_APIBKEY) in ptrauth_prctl_reset_keys()
40 if (arg & PR_PAC_APDAKEY) in ptrauth_prctl_reset_keys()
42 if (arg & PR_PAC_APDBKEY) in ptrauth_prctl_reset_keys()
44 if (arg & PR_PAC_APGAKEY) in ptrauth_prctl_reset_keys()
[all …]
/arch/powerpc/perf/
Dhv-common.c16 struct p arg = { in hv_perf_caps_get() local
26 virt_to_phys(&arg), sizeof(arg)); in hv_perf_caps_get()
31 pr_devel("capability_mask: 0x%x\n", arg.caps.capability_mask); in hv_perf_caps_get()
33 caps->version = arg.params.counter_info_version_out; in hv_perf_caps_get()
34 caps->collect_privileged = !!arg.caps.perf_collect_privileged; in hv_perf_caps_get()
35 caps->ga = !!(arg.caps.capability_mask & HV_GPCI_CM_GA); in hv_perf_caps_get()
36 caps->expanded = !!(arg.caps.capability_mask & HV_GPCI_CM_EXPANDED); in hv_perf_caps_get()
37 caps->lab = !!(arg.caps.capability_mask & HV_GPCI_CM_LAB); in hv_perf_caps_get()
Dhv-gpci.c155 struct hv_gpci_request_buffer *arg; in single_gpci_request() local
157 arg = (void *)get_cpu_var(hv_gpci_reqb); in single_gpci_request()
158 memset(arg, 0, HGPCI_REQ_BUFFER_SIZE); in single_gpci_request()
160 arg->params.counter_request = cpu_to_be32(req); in single_gpci_request()
161 arg->params.starting_index = cpu_to_be32(starting_index); in single_gpci_request()
162 arg->params.secondary_index = cpu_to_be16(secondary_index); in single_gpci_request()
163 arg->params.counter_info_version_in = version_in; in single_gpci_request()
166 virt_to_phys(arg), HGPCI_REQ_BUFFER_SIZE); in single_gpci_request()
178 count |= (u64)(arg->bytes[i]) << ((length - 1 - (i - offset)) * 8); in single_gpci_request()
333 struct hv_gpci_request_buffer *arg; in hv_gpci_init() local
[all …]
/arch/x86/boot/
Dearly_serial_console.c49 char arg[32]; in parse_earlyprintk() local
53 if (cmdline_find_option("earlyprintk", arg, sizeof(arg)) > 0) { in parse_earlyprintk()
56 if (!strncmp(arg, "serial", 6)) { in parse_earlyprintk()
61 if (arg[pos] == ',') in parse_earlyprintk()
70 if (pos == 7 && !strncmp(arg + pos, "0x", 2)) { in parse_earlyprintk()
71 port = simple_strtoull(arg + pos, &e, 16); in parse_earlyprintk()
72 if (port == 0 || arg + pos == e) in parse_earlyprintk()
75 pos = e - arg; in parse_earlyprintk()
76 } else if (!strncmp(arg + pos, "ttyS", 4)) { in parse_earlyprintk()
83 if (arg[pos++] == '1') in parse_earlyprintk()
[all …]
/arch/x86/mm/
Dpgtable_32.c76 static int __init parse_vmalloc(char *arg) in parse_vmalloc() argument
78 if (!arg) in parse_vmalloc()
82 __VMALLOC_RESERVE = memparse(arg, &arg) + VMALLOC_OFFSET; in parse_vmalloc()
92 static int __init parse_reservetop(char *arg) in parse_reservetop() argument
96 if (!arg) in parse_reservetop()
99 address = memparse(arg, &arg); in parse_reservetop()
/arch/csky/kernel/
Dstacktrace.c17 bool (*fn)(unsigned long, void *), void *arg) in walk_stackframe() argument
42 if (unlikely(!__kernel_text_address(pc) || fn(pc, arg))) in walk_stackframe()
62 struct pt_regs *regs, bool (*fn)(unsigned long, void *), void *arg) in walk_stackframe() argument
85 if (__kernel_text_address(pc) && unlikely(fn(pc, arg))) in walk_stackframe()
92 static bool print_trace_address(unsigned long pc, void *arg) in print_trace_address() argument
94 print_ip_sym((const char *)arg, pc); in print_trace_address()
104 static bool save_wchan(unsigned long pc, void *arg) in save_wchan() argument
107 unsigned long *p = arg; in save_wchan()
124 static bool __save_trace(unsigned long pc, void *arg, bool nosched) in __save_trace() argument
126 struct stack_trace *trace = arg; in __save_trace()
[all …]
/arch/x86/tools/
Drelocs_common.c35 char *arg = argv[i]; in main() local
36 if (*arg == '-') { in main()
37 if (strcmp(arg, "--abs-syms") == 0) { in main()
41 if (strcmp(arg, "--abs-relocs") == 0) { in main()
45 if (strcmp(arg, "--reloc-info") == 0) { in main()
49 if (strcmp(arg, "--text") == 0) { in main()
53 if (strcmp(arg, "--realmode") == 0) { in main()
59 fname = arg; in main()
/arch/powerpc/platforms/44x/
Dwarp.c99 void (*func)(void *arg);
100 void *arg; member
104 int pika_dtm_register_shutdown(void (*func)(void *arg), void *arg) in pika_dtm_register_shutdown() argument
113 shutdown->arg = arg; in pika_dtm_register_shutdown()
120 int pika_dtm_unregister_shutdown(void (*func)(void *arg), void *arg) in pika_dtm_unregister_shutdown() argument
125 if (shutdown->func == func && shutdown->arg == arg) { in pika_dtm_unregister_shutdown()
145 shutdown->func(shutdown->arg); in temp_isr()
296 int pika_dtm_register_shutdown(void (*func)(void *arg), void *arg) in pika_dtm_register_shutdown() argument
301 int pika_dtm_unregister_shutdown(void (*func)(void *arg), void *arg) in pika_dtm_unregister_shutdown() argument
/arch/mips/netlogic/xlr/
Dsetup.c106 char *arg; in build_arcs_cmdline() local
111 arg = (char *)(long)argv[i]; in build_arcs_cmdline()
112 len = strlen(arg); in build_arcs_cmdline()
115 strcat(arcs_cmdline, arg); in build_arcs_cmdline()
122 arg = "console=ttyS0,38400 "; in build_arcs_cmdline()
123 len = strlen(arg); in build_arcs_cmdline()
126 strcat(arcs_cmdline, arg); in build_arcs_cmdline()
131 arg = "rdinit=/sbin/init "; in build_arcs_cmdline()
132 len = strlen(arg); in build_arcs_cmdline()
135 strcat(arcs_cmdline, arg); in build_arcs_cmdline()
[all …]
/arch/powerpc/platforms/pseries/
Ddlpar.c405 char *arg; in dlpar_parse_resource() local
407 arg = strsep(cmd, " "); in dlpar_parse_resource()
408 if (!arg) in dlpar_parse_resource()
411 if (sysfs_streq(arg, "memory")) { in dlpar_parse_resource()
413 } else if (sysfs_streq(arg, "cpu")) { in dlpar_parse_resource()
425 char *arg; in dlpar_parse_action() local
427 arg = strsep(cmd, " "); in dlpar_parse_action()
428 if (!arg) in dlpar_parse_action()
431 if (sysfs_streq(arg, "add")) { in dlpar_parse_action()
433 } else if (sysfs_streq(arg, "remove")) { in dlpar_parse_action()
[all …]
/arch/riscv/kernel/
Dstacktrace.c25 bool (*fn)(unsigned long, void *), void *arg) in walk_stackframe() argument
49 if (unlikely(!__kernel_text_address(pc) || fn(pc, arg))) in walk_stackframe()
75 struct pt_regs *regs, bool (*fn)(unsigned long, void *), void *arg) in walk_stackframe() argument
97 if (__kernel_text_address(pc) && unlikely(fn(pc, arg))) in walk_stackframe()
106 static bool print_trace_address(unsigned long pc, void *arg) in print_trace_address() argument
108 const char *loglvl = arg; in print_trace_address()
120 static bool save_wchan(unsigned long pc, void *arg) in save_wchan() argument
123 unsigned long *p = arg; in save_wchan()
142 static bool __save_trace(unsigned long pc, void *arg, bool nosched) in __save_trace() argument
144 struct stack_trace *trace = arg; in __save_trace()
[all …]
/arch/um/kernel/skas/
Duaccess.c64 int (*op)(unsigned long addr, int len, void *arg), void *arg) in do_op_one_page() argument
83 n = (*op)(addr, len, arg); in do_op_one_page()
95 int (*op)(unsigned long, int, void *), void *arg) in buffer_op() argument
102 n = do_op_one_page(addr, size, is_write, op, arg); in buffer_op()
114 n = do_op_one_page(addr, PAGE_SIZE, is_write, op, arg); in buffer_op()
126 n = do_op_one_page(addr, remain, is_write, op, arg); in buffer_op()
137 static int copy_chunk_from_user(unsigned long from, int len, void *arg) in copy_chunk_from_user() argument
139 unsigned long *to_ptr = arg, to = *to_ptr; in copy_chunk_from_user()
157 static int copy_chunk_to_user(unsigned long to, int len, void *arg) in copy_chunk_to_user() argument
159 unsigned long *from_ptr = arg, from = *from_ptr; in copy_chunk_to_user()
[all …]
/arch/mips/boot/tools/
Drelocs_main.c43 char *arg = argv[i]; in main() local
45 if (*arg == '-') { in main()
46 if (strcmp(arg, "--reloc-info") == 0) { in main()
50 if (strcmp(arg, "--text") == 0) { in main()
54 if (strcmp(arg, "--bin") == 0) { in main()
58 if (strcmp(arg, "--keep") == 0) { in main()
63 fname = arg; in main()
/arch/arm/kernel/
Dsmp_tlb.c31 static inline void ipi_flush_tlb_mm(void *arg) in ipi_flush_tlb_mm() argument
33 struct mm_struct *mm = (struct mm_struct *)arg; in ipi_flush_tlb_mm()
38 static inline void ipi_flush_tlb_page(void *arg) in ipi_flush_tlb_page() argument
40 struct tlb_args *ta = (struct tlb_args *)arg; in ipi_flush_tlb_page()
48 static inline void ipi_flush_tlb_kernel_page(void *arg) in ipi_flush_tlb_kernel_page() argument
50 struct tlb_args *ta = (struct tlb_args *)arg; in ipi_flush_tlb_kernel_page()
55 static inline void ipi_flush_tlb_range(void *arg) in ipi_flush_tlb_range() argument
57 struct tlb_args *ta = (struct tlb_args *)arg; in ipi_flush_tlb_range()
65 static inline void ipi_flush_tlb_kernel_range(void *arg) in ipi_flush_tlb_kernel_range() argument
67 struct tlb_args *ta = (struct tlb_args *)arg; in ipi_flush_tlb_kernel_range()
[all …]
/arch/sparc/prom/
Dbootstr_32.c20 char *cp, *arg; in prom_getbootargs() local
32 arg = (*(romvec->pv_v0bootargs))->argv[iter]; in prom_getbootargs()
33 if (arg == NULL) in prom_getbootargs()
35 while (*arg != 0) { in prom_getbootargs()
40 *cp++ = *arg++; in prom_getbootargs()
/arch/x86/kernel/
Dcheck.c33 static __init int set_corruption_check(char *arg) in set_corruption_check() argument
38 if (!arg) { in set_corruption_check()
43 ret = kstrtoul(arg, 10, &val); in set_corruption_check()
53 static __init int set_corruption_check_period(char *arg) in set_corruption_check_period() argument
58 if (!arg) { in set_corruption_check_period()
63 ret = kstrtoul(arg, 10, &val); in set_corruption_check_period()
72 static __init int set_corruption_check_size(char *arg) in set_corruption_check_size() argument
77 if (!arg) { in set_corruption_check_size()
82 size = memparse(arg, &end); in set_corruption_check_size()
/arch/x86/kernel/cpu/
Dtsx.c71 char arg[5] = {}; in tsx_init() local
90 ret = cmdline_find_option(boot_command_line, "tsx", arg, sizeof(arg)); in tsx_init()
92 if (!strcmp(arg, "on")) { in tsx_init()
94 } else if (!strcmp(arg, "off")) { in tsx_init()
96 } else if (!strcmp(arg, "auto")) { in tsx_init()
/arch/arm64/include/asm/
Dtlbflush.h31 #define __TLBI_0(op, arg) asm (ARM64_ASM_PREAMBLE \ argument
39 #define __TLBI_1(op, arg) asm (ARM64_ASM_PREAMBLE \ argument
45 : : "r" (arg))
47 #define __TLBI_N(op, arg, n, ...) __TLBI_##n(op, arg) argument
51 #define __tlbi_user(op, arg) do { \ argument
53 __tlbi(op, (arg) | USER_ASID_FLAG); \
105 u64 arg = addr; \
111 arg &= ~TLBI_TTL_MASK; \
112 arg |= FIELD_PREP(TLBI_TTL_MASK, ttl); \
115 __tlbi(op, arg); \
[all …]
/arch/xtensa/kernel/
Dsmp.c466 static void ipi_flush_tlb_all(void *arg) in ipi_flush_tlb_all() argument
476 static void ipi_flush_tlb_mm(void *arg) in ipi_flush_tlb_mm() argument
478 local_flush_tlb_mm(arg); in ipi_flush_tlb_mm()
486 static void ipi_flush_tlb_page(void *arg) in ipi_flush_tlb_page() argument
488 struct flush_data *fd = arg; in ipi_flush_tlb_page()
501 static void ipi_flush_tlb_range(void *arg) in ipi_flush_tlb_range() argument
503 struct flush_data *fd = arg; in ipi_flush_tlb_range()
518 static void ipi_flush_tlb_kernel_range(void *arg) in ipi_flush_tlb_kernel_range() argument
520 struct flush_data *fd = arg; in ipi_flush_tlb_kernel_range()
535 static void ipi_flush_cache_all(void *arg) in ipi_flush_cache_all() argument
[all …]
/arch/ia64/hp/common/
Daml_nfw.c46 u64 arg[8]; member
72 c->arg[0], c->arg[1], c->arg[2], c->arg[3], in aml_nfw_execute()
73 c->arg[4], c->arg[5], c->arg[6], c->arg[7]); in aml_nfw_execute()
/arch/sparc/kernel/
Dsmp_32.c294 static void arch_cpu_pre_starting(void *arg) in arch_cpu_pre_starting() argument
301 sun4m_cpu_pre_starting(arg); in arch_cpu_pre_starting()
304 sun4d_cpu_pre_starting(arg); in arch_cpu_pre_starting()
307 leon_cpu_pre_starting(arg); in arch_cpu_pre_starting()
314 static void arch_cpu_pre_online(void *arg) in arch_cpu_pre_online() argument
328 sun4m_cpu_pre_online(arg); in arch_cpu_pre_online()
331 sun4d_cpu_pre_online(arg); in arch_cpu_pre_online()
334 leon_cpu_pre_online(arg); in arch_cpu_pre_online()
341 static void sparc_start_secondary(void *arg) in sparc_start_secondary() argument
349 arch_cpu_pre_starting(arg); in sparc_start_secondary()
[all …]
Dapc.c91 __u8 inarg, __user *arg = (__u8 __user *) __arg; in apc_ioctl() local
95 if (put_user(apc_readb(APC_FANCTL_REG) & APC_REGMASK, arg)) in apc_ioctl()
100 if (put_user(apc_readb(APC_CPOWER_REG) & APC_REGMASK, arg)) in apc_ioctl()
105 if (put_user(apc_readb(APC_BPORT_REG) & APC_BPMASK, arg)) in apc_ioctl()
110 if (get_user(inarg, arg)) in apc_ioctl()
116 if (get_user(inarg, arg)) in apc_ioctl()
122 if (get_user(inarg, arg)) in apc_ioctl()
/arch/mips/mm/
Duasm.c77 static inline u32 build_rs(u32 arg) in build_rs() argument
79 WARN(arg & ~RS_MASK, KERN_WARNING "Micro-assembler field overflow\n"); in build_rs()
81 return (arg & RS_MASK) << RS_SH; in build_rs()
84 static inline u32 build_rt(u32 arg) in build_rt() argument
86 WARN(arg & ~RT_MASK, KERN_WARNING "Micro-assembler field overflow\n"); in build_rt()
88 return (arg & RT_MASK) << RT_SH; in build_rt()
91 static inline u32 build_rd(u32 arg) in build_rd() argument
93 WARN(arg & ~RD_MASK, KERN_WARNING "Micro-assembler field overflow\n"); in build_rd()
95 return (arg & RD_MASK) << RD_SH; in build_rd()
98 static inline u32 build_re(u32 arg) in build_re() argument
[all …]

12345678910>>...14