Home
last modified time | relevance | path

Searched refs:nr_args (Results 1 – 25 of 27) sorted by relevance

12

/linux/io_uring/
H A Dregister.c41 unsigned nr_args) in io_probe() argument
47 if (nr_args > IORING_OP_LAST) in io_probe()
48 nr_args = IORING_OP_LAST; in io_probe()
50 size = struct_size(p, ops, nr_args); in io_probe()
60 for (i = 0; i < nr_args; i++) { in io_probe()
106 static __cold int io_parse_restrictions(void __user *arg, unsigned int nr_args, in io_parse_restrictions() argument
113 if (!arg || nr_args > IORING_MAX_RESTRICTIONS) in io_parse_restrictions()
116 size = array_size(nr_args, sizeof(*res)); in io_parse_restrictions()
126 for (i = 0; i < nr_args; i++) { in io_parse_restrictions()
157 void __user *arg, unsigned int nr_args) in io_register_restrictions() argument
610 __io_uring_register(struct io_ring_ctx * ctx,unsigned opcode,void __user * arg,unsigned nr_args) __io_uring_register() argument
863 io_uring_register_send_msg_ring(void __user * arg,unsigned int nr_args) io_uring_register_send_msg_ring() argument
885 io_uring_register_blind(unsigned int opcode,void __user * arg,unsigned int nr_args) io_uring_register_blind() argument
897 SYSCALL_DEFINE4(io_uring_register,unsigned int,fd,unsigned int,opcode,void __user *,arg,unsigned int,nr_args) SYSCALL_DEFINE4() argument
[all...]
H A Drsrc.c26 u32 nr_args; member
228 unsigned nr_args) in __io_sqe_files_update() argument
237 if (up->offset + nr_args > ctx->file_table.data.nr) in __io_sqe_files_update()
240 for (done = 0; done < nr_args; done++) { in __io_sqe_files_update()
293 unsigned int nr_args) in __io_sqe_buffers_update() argument
305 if (up->offset + nr_args > ctx->buf_table.nr) in __io_sqe_buffers_update()
308 for (done = 0; done < nr_args; done++) { in __io_sqe_buffers_update()
350 unsigned nr_args) in __io_register_rsrc_update() argument
356 if (check_add_overflow(up->offset, nr_args, &tmp)) in __io_register_rsrc_update()
361 return __io_sqe_files_update(ctx, up, nr_args); in __io_register_rsrc_update()
369 io_register_files_update(struct io_ring_ctx * ctx,void __user * arg,unsigned nr_args) io_register_files_update() argument
545 io_sqe_files_register(struct io_ring_ctx * ctx,void __user * arg,unsigned nr_args,u64 __user * tags) io_sqe_files_register() argument
868 io_sqe_buffers_register(struct io_ring_ctx * ctx,void __user * arg,unsigned int nr_args,u64 __user * tags) io_sqe_buffers_register() argument
[all...]
H A Dtctx.c264 unsigned nr_args)
271 if (!nr_args || nr_args > IO_RINGFD_REG_MAX) in io_ringfd_register()
281 for (i = 0; i < nr_args; i++) { in io_ringfd_register()
323 unsigned nr_args)
330 if (!nr_args || nr_args > IO_RINGFD_REG_MAX) in io_ringfd_unregister()
335 for (i = 0; i < nr_args; i++) { in io_ringfd_unregister()
266 io_ringfd_register(struct io_ring_ctx * ctx,void __user * __arg,unsigned nr_args) io_ringfd_register() argument
325 io_ringfd_unregister(struct io_ring_ctx * ctx,void __user * __arg,unsigned nr_args) io_ringfd_unregister() argument
H A Dtctx.h18 unsigned nr_args);
20 unsigned nr_args);
H A Drsrc.h76 unsigned int nr_args, u64 __user *tags);
79 unsigned nr_args, u64 __user *tags);
82 unsigned nr_args);
H A Dquery.c109 int io_query(void __user *arg, unsigned nr_args) in io_query() argument
117 if (nr_args) in io_query()
H A Dzcrx.c1130 int io_zcrx_ctrl(struct io_ring_ctx *ctx, void __user *arg, unsigned nr_args) in io_zcrx_ctrl() argument
1135 if (nr_args) in io_zcrx_ctrl()
/linux/tools/testing/selftests/kvm/include/
H A Dkvm_syscalls.h19 #define DECLARE_ARGS(nr_args, args...) MAP_ARGS(nr_args, __DECLARE_ARGS, args) argument
20 #define UNPACK_ARGS(nr_args, args...) MAP_ARGS(nr_args, __UNPACK_ARGS, args) argument
26 #define __KVM_SYSCALL_DEFINE(name, nr_args, args...) \ argument
27 static inline void kvm_##name(DECLARE_ARGS(nr_args, args)) \
31 r = name(UNPACK_ARGS(nr_args, args)); \
40 #define KVM_SYSCALL_DEFINE(name, nr_args, args...) \ argument
41 static inline long name(DECLARE_ARGS(nr_args, args)) \
43 return syscall(__NR_##name, UNPACK_ARGS(nr_args, args)); \
45 __KVM_SYSCALL_DEFINE(name, nr_args, args)
/linux/arch/x86/platform/olpc/
H A Dolpc_ofw.c47 int __olpc_ofw(const char *name, int nr_args, const void **args, int nr_res, in __olpc_ofw() argument
54 BUG_ON(nr_args + nr_res > MAXARGS); in __olpc_ofw()
60 ofw_args[1] = nr_args; in __olpc_ofw()
64 for (i = 0; i < nr_args; i++, p++) in __olpc_ofw()
/linux/net/bridge/
H A Dbr_ioctl.c107 static int br_dev_read_uargs(unsigned long *args, size_t nr_args, in br_dev_read_uargs() argument
112 if (nr_args < 2 || nr_args > BR_UARGS_MAX) in br_dev_read_uargs()
119 ret = copy_from_user(cargs, data, nr_args * sizeof(*cargs)); in br_dev_read_uargs()
123 for (i = 0; i < nr_args; ++i) in br_dev_read_uargs()
128 ret = copy_from_user(args, data, nr_args * sizeof(*args)); in br_dev_read_uargs()
/linux/tools/bootconfig/scripts/
H A Dxbc.sh31 nr_args() { # args function
54 __s=`nr_args $__keys`
/linux/kernel/trace/
H A Dtrace_probe.c844 earg->size = 2 * tp->nr_args + 1; in __store_entry_arg()
1925 for (i = 0; i < tp->nr_args; i++) { in __set_print_fmt()
1942 for (i = 0; i < tp->nr_args; i++) { in __set_print_fmt()
1992 for (i = 0; i < tp->nr_args; i++) { in traceprobe_define_arg_fields()
2045 for (i = 0; i < tp->nr_args; i++) in trace_probe_cleanup()
2095 tp->nr_args = nargs; in trace_probe_init()
2203 if (a->nr_args < b->nr_args) in trace_probe_compare_arg_type()
2204 return a->nr_args + 1; in trace_probe_compare_arg_type()
2205 if (a->nr_args > b->nr_args) in trace_probe_compare_arg_type()
2206 return b->nr_args + 1; in trace_probe_compare_arg_type()
[all …]
H A Dtrace_probe_tmpl.h240 for (i = 0; i < tp->nr_args; i++) { in __get_data_size()
263 for (i = 0; i < tp->nr_args; i++) { in store_trace_args()
H A Dtrace_fprobe.c640 if (trace_probe_print_args(s, tp->args, tp->nr_args, in print_fentry_event()
675 if (trace_probe_print_args(s, tp->args, tp->nr_args, in print_fexit_event()
830 for (i = 0; i < tf->tp.nr_args; i++) { in __register_trace_fprobe()
899 for (i = 0; i < orig->tp.nr_args; i++) { in trace_fprobe_has_same_fprobe()
905 if (i == orig->tp.nr_args) in trace_fprobe_has_same_fprobe()
1448 for (i = 0; i < tf->tp.nr_args; i++) in trace_fprobe_show()
H A Dtrace_eprobe.c86 for (i = 0; i < ep->tp.nr_args; i++) in eprobe_dyn_event_show()
288 if (trace_probe_print_args(s, tp->args, tp->nr_args, in print_eprobe_event()
367 for (i = 0; i < tp->nr_args; i++) { in get_eprobe_size()
H A Dtrace_probe.h264 unsigned int nr_args; member
370 int trace_probe_print_args(struct trace_seq *s, struct probe_arg *args, int nr_args,
H A Dtrace_kprobe.c502 for (i = 0; i < tk->tp.nr_args; i++) { in __register_trace_kprobe()
581 for (i = 0; i < orig->tp.nr_args; i++) { in trace_kprobe_has_same_kprobe()
587 if (i == orig->tp.nr_args) in trace_kprobe_has_same_kprobe()
1309 for (i = 0; i < tk->tp.nr_args; i++) in trace_kprobe_show()
1592 if (trace_probe_print_args(s, tp->args, tp->nr_args, in print_kprobe_event()
1627 if (trace_probe_print_args(s, tp->args, tp->nr_args, in print_kretprobe_event()
H A Dtrace_uprobe.c433 for (i = 0; i < orig->tp.nr_args; i++) { in trace_uprobe_has_same_uprobe()
439 if (i == orig->tp.nr_args) in trace_uprobe_has_same_uprobe()
764 for (i = 0; i < tu->tp.nr_args; i++) in trace_uprobe_show()
1091 if (trace_probe_print_args(s, tu->tp.args, tu->tp.nr_args, data, entry) < 0) in print_uprobe_event()
H A Dbpf_trace.c1197 u64 nr_args = ((u64 *)ctx)[-1]; in BPF_CALL_3() local
1199 if ((u64) n >= nr_args) in BPF_CALL_3()
1217 u64 nr_args = ((u64 *)ctx)[-1]; in BPF_CALL_2() local
1219 *value = ((u64 *)ctx)[nr_args]; in BPF_CALL_2()
/linux/arch/x86/include/asm/
H A Dolpc_ofw.h18 extern int __olpc_ofw(const char *name, int nr_args, const void **args, int nr_res,
/linux/drivers/platform/olpc/
H A Dolpc-xo175-ec.c209 u8 nr_args; member
522 priv->cmd.nr_args = inlen; in olpc_xo175_ec_cmd()
/linux/tools/perf/
H A Dbuiltin-trace.c136 u8 nr_args; member
1166 { .name = "clone", .errpid = true, .nr_args = 5,
1241 { .name = "kcmp", .nr_args = 5,
1473 int nr_args; member
2028 static int syscall__alloc_arg_fmts(struct syscall *sc, int nr_args) in syscall__alloc_arg_fmts() argument
2032 if (nr_args == RAW_SYSCALL_ARGS_NUM && sc->fmt && sc->fmt->nr_args != 0) in syscall__alloc_arg_fmts()
2033 nr_args = sc->fmt->nr_args; in syscall__alloc_arg_fmts()
2035 sc->arg_fmt = calloc(nr_args, sizeof(*sc->arg_fmt)); in syscall__alloc_arg_fmts()
2039 for (idx = 0; idx < nr_args; ++idx) { in syscall__alloc_arg_fmts()
2044 sc->nr_args = nr_args; in syscall__alloc_arg_fmts()
[all …]
/linux/drivers/leds/
H A Dleds-blinkm.c115 u8 nr_args; member
308 int arglen = blinkm_cmds[cmd].nr_args; in blinkm_write()
/linux/drivers/md/
H A Ddm-mpath.c997 unsigned int i, nr_selector_args, nr_args; in parse_priority_group() local
1029 nr_args = 1 + nr_selector_args; in parse_priority_group()
1034 if (as->argc < nr_args) { in parse_priority_group()
1040 path_args.argc = nr_args; in parse_priority_group()
1051 dm_consume_args(as, nr_args); in parse_priority_group()
/linux/include/uapi/linux/
H A Dsoundcard.h528 char nr_args, nr_returns; member

12