Home
last modified time | relevance | path

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

12345678910>>...120

/Linux-v5.4/drivers/gpu/drm/amd/display/include/
Dfixed31_32.h93 static inline struct fixed31_32 dc_fixpt_from_int(int arg) in dc_fixpt_from_int() argument
97 res.value = (long long) arg << FIXED31_32_BITS_PER_FRACTIONAL_PART; in dc_fixpt_from_int()
111 static inline struct fixed31_32 dc_fixpt_neg(struct fixed31_32 arg) in dc_fixpt_neg() argument
115 res.value = -arg.value; in dc_fixpt_neg()
124 static inline struct fixed31_32 dc_fixpt_abs(struct fixed31_32 arg) in dc_fixpt_abs() argument
126 if (arg.value < 0) in dc_fixpt_abs()
127 return dc_fixpt_neg(arg); in dc_fixpt_abs()
129 return arg; in dc_fixpt_abs()
195 struct fixed31_32 arg, in dc_fixpt_clamp() argument
199 if (dc_fixpt_le(arg, min_value)) in dc_fixpt_clamp()
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/drivers/tee/optee/
Drpc.c32 static void handle_rpc_func_cmd_get_time(struct optee_msg_arg *arg) in handle_rpc_func_cmd_get_time() argument
36 if (arg->num_params != 1) in handle_rpc_func_cmd_get_time()
38 if ((arg->params[0].attr & OPTEE_MSG_ATTR_TYPE_MASK) != in handle_rpc_func_cmd_get_time()
43 arg->params[0].u.value.a = ts.tv_sec; in handle_rpc_func_cmd_get_time()
44 arg->params[0].u.value.b = ts.tv_nsec; in handle_rpc_func_cmd_get_time()
46 arg->ret = TEEC_SUCCESS; in handle_rpc_func_cmd_get_time()
49 arg->ret = TEEC_ERROR_BAD_PARAMETERS; in handle_rpc_func_cmd_get_time()
95 struct optee_msg_arg *arg) in handle_rpc_func_cmd_wq() argument
97 if (arg->num_params != 1) in handle_rpc_func_cmd_wq()
100 if ((arg->params[0].attr & OPTEE_MSG_ATTR_TYPE_MASK) != in handle_rpc_func_cmd_wq()
[all …]
/Linux-v5.4/tools/lib/traceevent/
Dparse-filter.c189 static void free_arg(struct tep_filter_arg *arg) in free_arg() argument
191 if (!arg) in free_arg()
194 switch (arg->type) { in free_arg()
200 free_arg(arg->num.left); in free_arg()
201 free_arg(arg->num.right); in free_arg()
205 free_arg(arg->exp.left); in free_arg()
206 free_arg(arg->exp.right); in free_arg()
210 free(arg->str.val); in free_arg()
211 regfree(&arg->str.reg); in free_arg()
212 free(arg->str.buffer); in free_arg()
[all …]
Devent-parse.c99 struct tep_event *event, struct tep_print_arg *arg);
868 static void free_arg(struct tep_print_arg *arg) in free_arg() argument
872 if (!arg) in free_arg()
875 switch (arg->type) { in free_arg()
877 free(arg->atom.atom); in free_arg()
880 free(arg->field.name); in free_arg()
883 free_arg(arg->flags.field); in free_arg()
884 free(arg->flags.delim); in free_arg()
885 free_flag_sym(arg->flags.flags); in free_arg()
888 free_arg(arg->symbol.field); in free_arg()
[all …]
/Linux-v5.4/tools/perf/trace/beauty/
Dfcntl.c18 static size_t syscall_arg__scnprintf_fcntl_getfd(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_fcntl_getfd() argument
20 return fcntl__scnprintf_getfd(arg->val, bf, size, arg->show_string_prefix); in syscall_arg__scnprintf_fcntl_getfd()
31 static size_t syscall_arg__scnprintf_fcntl_getlease(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_fcntl_getlease() argument
33 return fcntl__scnprintf_getlease(arg->val, bf, size, arg->show_string_prefix); in syscall_arg__scnprintf_fcntl_getlease()
36 size_t syscall_arg__scnprintf_fcntl_cmd(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_fcntl_cmd() argument
38 if (arg->val == F_GETFL) { in syscall_arg__scnprintf_fcntl_cmd()
39 syscall_arg__set_ret_scnprintf(arg, syscall_arg__scnprintf_open_flags); in syscall_arg__scnprintf_fcntl_cmd()
42 if (arg->val == F_GETFD) { in syscall_arg__scnprintf_fcntl_cmd()
43 syscall_arg__set_ret_scnprintf(arg, syscall_arg__scnprintf_fcntl_getfd); in syscall_arg__scnprintf_fcntl_cmd()
46 if (arg->val == F_DUPFD_CLOEXEC || arg->val == F_DUPFD) { in syscall_arg__scnprintf_fcntl_cmd()
[all …]
Dbeauty.h109 unsigned long syscall_arg__val(struct syscall_arg *arg, u8 idx);
111 size_t syscall_arg__scnprintf_strarray_flags(char *bf, size_t size, struct syscall_arg *arg);
114 size_t syscall_arg__scnprintf_strarrays(char *bf, size_t size, struct syscall_arg *arg);
117 size_t syscall_arg__scnprintf_fd(char *bf, size_t size, struct syscall_arg *arg);
120 size_t syscall_arg__scnprintf_hex(char *bf, size_t size, struct syscall_arg *arg);
123 size_t syscall_arg__scnprintf_ptr(char *bf, size_t size, struct syscall_arg *arg);
126 size_t syscall_arg__scnprintf_int(char *bf, size_t size, struct syscall_arg *arg);
129 size_t syscall_arg__scnprintf_long(char *bf, size_t size, struct syscall_arg *arg);
132 size_t syscall_arg__scnprintf_pid(char *bf, size_t size, struct syscall_arg *arg);
135 size_t syscall_arg__scnprintf_clone_flags(char *bf, size_t size, struct syscall_arg *arg);
[all …]
/Linux-v5.4/drivers/acpi/acpica/
Ddsfield.c39 union acpi_parse_object *arg);
123 union acpi_parse_object *arg; in acpi_ds_create_buffer_field() local
139 arg = acpi_ps_get_arg(op, 3); in acpi_ds_create_buffer_field()
143 arg = acpi_ps_get_arg(op, 2); in acpi_ds_create_buffer_field()
146 if (!arg) { in acpi_ds_create_buffer_field()
178 arg->common.value.string, ACPI_TYPE_ANY, in acpi_ds_create_buffer_field()
183 arg->common.value.string, status); in acpi_ds_create_buffer_field()
260 union acpi_parse_object *arg) in acpi_ds_get_field_names() argument
281 while (arg) { in acpi_ds_get_field_names()
289 switch (arg->common.aml_opcode) { in acpi_ds_get_field_names()
[all …]
Dpstree.c39 union acpi_parse_object *arg = NULL; in acpi_ps_get_arg() local
71 arg = op->common.value.arg; in acpi_ps_get_arg()
72 while (arg && argn) { in acpi_ps_get_arg()
74 arg = arg->common.next; in acpi_ps_get_arg()
77 return (arg); in acpi_ps_get_arg()
94 acpi_ps_append_arg(union acpi_parse_object *op, union acpi_parse_object *arg) in acpi_ps_append_arg() argument
128 if (op->common.value.arg) { in acpi_ps_append_arg()
132 prev_arg = op->common.value.arg; in acpi_ps_append_arg()
136 prev_arg->common.next = arg; in acpi_ps_append_arg()
140 op->common.value.arg = arg; in acpi_ps_append_arg()
[all …]
Dpsargs.c199 union acpi_parse_object *arg, u8 possible_method_call) in acpi_ps_get_next_namepath() argument
211 acpi_ps_init_op(arg, AML_INT_NAMEPATH_OP); in acpi_ps_get_next_namepath()
216 arg->common.value.name = path; in acpi_ps_get_next_namepath()
251 acpi_ps_init_op(arg, AML_INT_METHODCALL_OP); in acpi_ps_get_next_namepath()
268 acpi_ps_init_op(arg, AML_INT_METHODCALL_OP); in acpi_ps_get_next_namepath()
274 acpi_ps_append_arg(arg, name_op); in acpi_ps_get_next_namepath()
318 else if ((arg->common.parent) && in acpi_ps_get_next_namepath()
319 ((arg->common.parent->common.aml_opcode == in acpi_ps_get_next_namepath()
321 || (arg->common.parent->common.aml_opcode == in acpi_ps_get_next_namepath()
343 arg->common.value.name = path; in acpi_ps_get_next_namepath()
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/basics/
Dfixpt31_32.c30 long long arg) in abs_i64() argument
32 if (arg > 0) in abs_i64()
33 return (unsigned long long)arg; in abs_i64()
35 return (unsigned long long)(-arg); in abs_i64()
170 struct fixed31_32 dc_fixpt_sqr(struct fixed31_32 arg) in dc_fixpt_sqr() argument
174 unsigned long long arg_value = abs_i64(arg.value); in dc_fixpt_sqr()
210 struct fixed31_32 dc_fixpt_recip(struct fixed31_32 arg) in dc_fixpt_recip() argument
217 ASSERT(arg.value); in dc_fixpt_recip()
221 arg.value); in dc_fixpt_recip()
224 struct fixed31_32 dc_fixpt_sinc(struct fixed31_32 arg) in dc_fixpt_sinc() argument
[all …]
/Linux-v5.4/drivers/infiniband/sw/rxe/
Drxe_hdr.h112 static inline u8 __bth_opcode(void *arg) in __bth_opcode() argument
114 struct rxe_bth *bth = arg; in __bth_opcode()
119 static inline void __bth_set_opcode(void *arg, u8 opcode) in __bth_set_opcode() argument
121 struct rxe_bth *bth = arg; in __bth_set_opcode()
126 static inline u8 __bth_se(void *arg) in __bth_se() argument
128 struct rxe_bth *bth = arg; in __bth_se()
133 static inline void __bth_set_se(void *arg, int se) in __bth_set_se() argument
135 struct rxe_bth *bth = arg; in __bth_set_se()
143 static inline u8 __bth_mig(void *arg) in __bth_mig() argument
145 struct rxe_bth *bth = arg; in __bth_mig()
[all …]
/Linux-v5.4/drivers/ide/
Dide-devsets.c11 static int set_io_32bit(ide_drive_t *drive, int arg) in set_io_32bit() argument
16 if (arg < 0 || arg > 1 + (SUPPORT_VLB_SYNC << 1)) in set_io_32bit()
19 drive->io_32bit = arg; in set_io_32bit()
26 static int set_ksettings(ide_drive_t *drive, int arg) in set_ksettings() argument
28 if (arg < 0 || arg > 1) in set_ksettings()
31 if (arg) in set_ksettings()
41 static int set_using_dma(ide_drive_t *drive, int arg) in set_using_dma() argument
46 if (arg < 0 || arg > 1) in set_using_dma()
57 if (arg) { in set_using_dma()
66 if (arg < 0 || arg > 1) in set_using_dma()
[all …]
/Linux-v5.4/block/
Dcompat_ioctl.c14 static int compat_put_ushort(unsigned long arg, unsigned short val) in compat_put_ushort() argument
16 return put_user(val, (unsigned short __user *)compat_ptr(arg)); in compat_put_ushort()
19 static int compat_put_int(unsigned long arg, int val) in compat_put_int() argument
21 return put_user(val, (compat_int_t __user *)compat_ptr(arg)); in compat_put_int()
24 static int compat_put_uint(unsigned long arg, unsigned int val) in compat_put_uint() argument
26 return put_user(val, (compat_uint_t __user *)compat_ptr(arg)); in compat_put_uint()
29 static int compat_put_long(unsigned long arg, long val) in compat_put_long() argument
31 return put_user(val, (compat_long_t __user *)compat_ptr(arg)); in compat_put_long()
34 static int compat_put_ulong(unsigned long arg, compat_ulong_t val) in compat_put_ulong() argument
36 return put_user(val, (compat_ulong_t __user *)compat_ptr(arg)); in compat_put_ulong()
[all …]
Dioctl.c14 static int blkpg_ioctl(struct block_device *bdev, struct blkpg_ioctl_arg __user *arg) in blkpg_ioctl() argument
27 if (copy_from_user(&a, arg, sizeof(struct blkpg_ioctl_arg))) in blkpg_ioctl()
202 unsigned long arg, unsigned long flags) in blk_ioctl_discard() argument
216 if (copy_from_user(range, (void __user *)arg, sizeof(range))) in blk_ioctl_discard()
235 unsigned long arg) in blk_ioctl_zeroout() argument
244 if (copy_from_user(range, (void __user *)arg, sizeof(range))) in blk_ioctl_zeroout()
268 static int put_ushort(unsigned long arg, unsigned short val) in put_ushort() argument
270 return put_user(val, (unsigned short __user *)arg); in put_ushort()
273 static int put_int(unsigned long arg, int val) in put_int() argument
275 return put_user(val, (int __user *)arg); in put_int()
[all …]
/Linux-v5.4/sound/drivers/opl3/
Dopl3_oss.c11 static int snd_opl3_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure);
12 static int snd_opl3_close_seq_oss(struct snd_seq_oss_arg *arg);
13 static int snd_opl3_ioctl_seq_oss(struct snd_seq_oss_arg *arg, unsigned int cmd, unsigned long ioar…
14 static int snd_opl3_load_patch_seq_oss(struct snd_seq_oss_arg *arg, int format, const char __user *…
15 static int snd_opl3_reset_seq_oss(struct snd_seq_oss_arg *arg);
92 struct snd_seq_oss_reg *arg; in snd_opl3_init_seq_oss() local
101 arg = SNDRV_SEQ_DEVICE_ARGPTR(dev); in snd_opl3_init_seq_oss()
102 arg->type = SYNTH_TYPE_FM; in snd_opl3_init_seq_oss()
104 arg->subtype = FM_TYPE_ADLIB; in snd_opl3_init_seq_oss()
105 arg->nvoices = MAX_OPL2_VOICES; in snd_opl3_init_seq_oss()
[all …]
/Linux-v5.4/drivers/net/wireless/st/cw1200/
Dwsm.c83 void *arg, u16 cmd, long tmo);
92 void *arg, in wsm_generic_confirm() argument
105 int wsm_configuration(struct cw1200_common *priv, struct wsm_configuration *arg) in wsm_configuration() argument
112 WSM_PUT32(buf, arg->dot11MaxTransmitMsduLifeTime); in wsm_configuration()
113 WSM_PUT32(buf, arg->dot11MaxReceiveLifeTime); in wsm_configuration()
114 WSM_PUT32(buf, arg->dot11RtsThreshold); in wsm_configuration()
117 WSM_PUT16(buf, arg->dpdData_size + 12); in wsm_configuration()
119 WSM_PUT(buf, arg->dot11StationId, ETH_ALEN); in wsm_configuration()
121 WSM_PUT(buf, arg->dpdData, arg->dpdData_size); in wsm_configuration()
123 ret = wsm_cmd_send(priv, buf, arg, in wsm_configuration()
[all …]
Dwsm.h652 struct wsm_configuration *arg);
662 int wsm_reset(struct cw1200_common *priv, const struct wsm_reset *arg);
737 int wsm_scan(struct cw1200_common *priv, const struct wsm_scan *arg);
789 struct wsm_tx_confirm *arg);
865 typedef void (*wsm_rx_cb) (struct cw1200_common *priv, struct wsm_rx *arg,
889 struct wsm_event *arg);
952 int wsm_join(struct cw1200_common *priv, struct wsm_join *arg);
977 int wsm_set_pm(struct cw1200_common *priv, const struct wsm_set_pm *arg);
1004 const struct wsm_set_bss_params *arg);
1067 int wsm_add_key(struct cw1200_common *priv, const struct wsm_add_key *arg);
[all …]
/Linux-v5.4/include/linux/
Dstop_machine.h20 typedef int (*cpu_stop_fn_t)(void *arg);
27 void *arg; member
31 int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg);
32 int stop_two_cpus(unsigned int cpu1, unsigned int cpu2, cpu_stop_fn_t fn, void *arg);
33 bool stop_one_cpu_nowait(unsigned int cpu, cpu_stop_fn_t fn, void *arg,
35 int stop_cpus(const struct cpumask *cpumask, cpu_stop_fn_t fn, void *arg);
36 int try_stop_cpus(const struct cpumask *cpumask, cpu_stop_fn_t fn, void *arg);
48 void *arg; member
51 static inline int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg) in stop_one_cpu() argument
56 ret = fn(arg); in stop_one_cpu()
[all …]
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_nsp.c170 struct nfp_nsp_command_arg arg; member
359 __nfp_nsp_command(struct nfp_nsp *state, const struct nfp_nsp_command_arg *arg) in __nfp_nsp_command() argument
376 err = nfp_cpp_writeq(cpp, nsp_cpp, nsp_buffer, arg->buf); in __nfp_nsp_command()
381 FIELD_PREP(NSP_COMMAND_OPTION, arg->option) | in __nfp_nsp_command()
382 FIELD_PREP(NSP_COMMAND_CODE, arg->code) | in __nfp_nsp_command()
383 FIELD_PREP(NSP_COMMAND_DMA_BUF, arg->dma) | in __nfp_nsp_command()
393 err, arg->code); in __nfp_nsp_command()
399 0, arg->timeout_sec ?: NFP_NSP_TIMEOUT_DEFAULT); in __nfp_nsp_command()
402 err, arg->code); in __nfp_nsp_command()
413 if (!arg->error_quiet) in __nfp_nsp_command()
[all …]
/Linux-v5.4/drivers/media/firewire/
Dfiredtv-ci.c44 static int fdtv_ca_get_caps(void *arg) in fdtv_ca_get_caps() argument
46 struct ca_caps *cap = arg; in fdtv_ca_get_caps()
55 static int fdtv_ca_get_slot_info(struct firedtv *fdtv, void *arg) in fdtv_ca_get_slot_info() argument
58 struct ca_slot_info *slot = arg; in fdtv_ca_get_slot_info()
73 static int fdtv_ca_app_info(struct firedtv *fdtv, void *arg) in fdtv_ca_app_info() argument
75 struct ca_msg *reply = arg; in fdtv_ca_app_info()
80 static int fdtv_ca_info(struct firedtv *fdtv, void *arg) in fdtv_ca_info() argument
82 struct ca_msg *reply = arg; in fdtv_ca_info()
87 static int fdtv_ca_get_mmi(struct firedtv *fdtv, void *arg) in fdtv_ca_get_mmi() argument
89 struct ca_msg *reply = arg; in fdtv_ca_get_mmi()
[all …]
/Linux-v5.4/drivers/media/platform/s5p-mfc/
Ds5p_mfc_cmd_v5.c31 mfc_write(dev, args->arg[0], S5P_FIMV_HOST2RISC_ARG1); in s5p_mfc_cmd_host2risc_v5()
32 mfc_write(dev, args->arg[1], S5P_FIMV_HOST2RISC_ARG2); in s5p_mfc_cmd_host2risc_v5()
33 mfc_write(dev, args->arg[2], S5P_FIMV_HOST2RISC_ARG3); in s5p_mfc_cmd_host2risc_v5()
34 mfc_write(dev, args->arg[3], S5P_FIMV_HOST2RISC_ARG4); in s5p_mfc_cmd_host2risc_v5()
46 h2r_args.arg[0] = dev->fw_buf.size; in s5p_mfc_sys_init_cmd_v5()
83 h2r_args.arg[0] = S5P_FIMV_CODEC_H264_DEC; in s5p_mfc_open_inst_cmd_v5()
86 h2r_args.arg[0] = S5P_FIMV_CODEC_VC1_DEC; in s5p_mfc_open_inst_cmd_v5()
89 h2r_args.arg[0] = S5P_FIMV_CODEC_MPEG4_DEC; in s5p_mfc_open_inst_cmd_v5()
92 h2r_args.arg[0] = S5P_FIMV_CODEC_MPEG2_DEC; in s5p_mfc_open_inst_cmd_v5()
95 h2r_args.arg[0] = S5P_FIMV_CODEC_H263_DEC; in s5p_mfc_open_inst_cmd_v5()
[all …]
/Linux-v5.4/drivers/media/v4l2-core/
Dv4l2-ioctl.c209 static void v4l_print_querycap(const void *arg, bool write_only) in v4l_print_querycap() argument
211 const struct v4l2_capability *p = arg; in v4l_print_querycap()
220 static void v4l_print_enuminput(const void *arg, bool write_only) in v4l_print_enuminput() argument
222 const struct v4l2_input *p = arg; in v4l_print_enuminput()
230 static void v4l_print_enumoutput(const void *arg, bool write_only) in v4l_print_enumoutput() argument
232 const struct v4l2_output *p = arg; in v4l_print_enumoutput()
239 static void v4l_print_audio(const void *arg, bool write_only) in v4l_print_audio() argument
241 const struct v4l2_audio *p = arg; in v4l_print_audio()
251 static void v4l_print_audioout(const void *arg, bool write_only) in v4l_print_audioout() argument
253 const struct v4l2_audioout *p = arg; in v4l_print_audioout()
[all …]
/Linux-v5.4/tools/lib/subcmd/
Dparse-options.c49 int flags, const char **arg) in get_arg() argument
64 if (arg) in get_arg()
65 *arg = res; in get_arg()
72 const char *s, *arg = NULL; in get_value() local
246 if (get_arg(p, opt, flags, &arg)) in get_value()
248 return (*opt->callback)(opt, arg, 0) ? (-1) : 0; in get_value()
259 if (get_arg(p, opt, flags, &arg)) in get_value()
261 *(int *)opt->value = strtol(arg, (char **)&s, 10); in get_value()
275 if (get_arg(p, opt, flags, &arg)) in get_value()
277 if (arg[0] == '-') in get_value()
[all …]

12345678910>>...120