Home
last modified time | relevance | path

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

1234567

/u-boot/drivers/tee/optee/
A Dsupplicant.c25 arg->ret_origin = TEE_ORIGIN_COMMS; in cmd_shm_alloc()
27 if (arg->num_params != 1 || in cmd_shm_alloc()
29 arg->ret = TEE_ERROR_BAD_PARAMETERS; in cmd_shm_alloc()
39 arg->ret = TEE_ERROR_GENERIC; in cmd_shm_alloc()
56 arg->ret = TEE_SUCCESS; in cmd_shm_alloc()
61 arg->ret_origin = TEE_ORIGIN_COMMS; in cmd_shm_free()
63 if (arg->num_params != 1 || in cmd_shm_free()
70 arg->ret = TEE_SUCCESS; in cmd_shm_free()
78 switch (arg->cmd) { in optee_suppl_cmd()
83 cmd_shm_free(arg); in optee_suppl_cmd()
[all …]
A Di2c.c46 if (arg->num_params != ARRAY_SIZE(attr) || in optee_suppl_cmd_i2c_transfer()
47 arg->params[0].attr != attr[0] || in optee_suppl_cmd_i2c_transfer()
48 arg->params[1].attr != attr[1] || in optee_suppl_cmd_i2c_transfer()
49 arg->params[2].attr != attr[2] || in optee_suppl_cmd_i2c_transfer()
50 arg->params[3].attr != attr[3]) { in optee_suppl_cmd_i2c_transfer()
60 (int)arg->params[0].u.value.c, in optee_suppl_cmd_i2c_transfer()
67 switch (arg->params[0].u.value.a) { in optee_suppl_cmd_i2c_transfer()
81 arg->ret = TEE_ERROR_COMMUNICATION; in optee_suppl_cmd_i2c_transfer()
83 arg->params[3].u.value.a = arg->params[2].u.rmem.size; in optee_suppl_cmd_i2c_transfer()
84 arg->ret = TEE_SUCCESS; in optee_suppl_cmd_i2c_transfer()
[all …]
A Doptee_private.h41 void optee_suppl_cmd_rpmb(struct udevice *dev, struct optee_msg_arg *arg);
52 struct optee_msg_arg *arg) in optee_suppl_cmd_rpmb() argument
55 arg->ret = TEE_ERROR_NOT_IMPLEMENTED; in optee_suppl_cmd_rpmb()
71 void optee_suppl_cmd_i2c_transfer(struct optee_msg_arg *arg);
73 static inline void optee_suppl_cmd_i2c_transfer(struct optee_msg_arg *arg) in optee_suppl_cmd_i2c_transfer() argument
76 arg->ret = TEE_ERROR_NOT_IMPLEMENTED; in optee_suppl_cmd_i2c_transfer()
A Drpmb.c163 if (arg->num_params != 2 || in optee_suppl_cmd_rpmb()
164 arg->params[0].attr != OPTEE_MSG_ATTR_TYPE_RMEM_INPUT || in optee_suppl_cmd_rpmb()
165 arg->params[1].attr != OPTEE_MSG_ATTR_TYPE_RMEM_OUTPUT) { in optee_suppl_cmd_rpmb()
166 arg->ret = TEE_ERROR_BAD_PARAMETERS; in optee_suppl_cmd_rpmb()
170 req_shm = (struct tee_shm *)(ulong)arg->params[0].u.rmem.shm_ref; in optee_suppl_cmd_rpmb()
171 req_buf = (u8 *)req_shm->addr + arg->params[0].u.rmem.offs; in optee_suppl_cmd_rpmb()
172 req_size = arg->params[0].u.rmem.size; in optee_suppl_cmd_rpmb()
174 rsp_shm = (struct tee_shm *)(ulong)arg->params[1].u.rmem.shm_ref; in optee_suppl_cmd_rpmb()
175 rsp_buf = (u8 *)rsp_shm->addr + arg->params[1].u.rmem.offs; in optee_suppl_cmd_rpmb()
176 rsp_size = arg->params[1].u.rmem.size; in optee_suppl_cmd_rpmb()
[all …]
A Dcore.c373 memcpy(&msg_arg->params[0].u.value, arg->uuid, sizeof(arg->uuid)); in optee_open_session()
374 memcpy(&msg_arg->params[1].u.value, arg->uuid, sizeof(arg->clnt_uuid)); in optee_open_session()
382 if (arg->ret) { in optee_open_session()
383 arg->ret_origin = TEE_ORIGIN_COMMS; in optee_open_session()
388 arg->ret = TEE_ERROR_COMMUNICATION; in optee_open_session()
395 arg->session = msg_arg->session; in optee_open_session()
396 arg->ret = msg_arg->ret; in optee_open_session()
415 msg_arg->func = arg->func; in optee_invoke_func()
416 msg_arg->session = arg->session; in optee_invoke_func()
423 if (arg->ret) { in optee_invoke_func()
[all …]
/u-boot/drivers/tee/broadcom/
A Dchimp_optee.c29 struct tee_open_session_arg arg; in get_open_session() local
37 memset(&arg, 0, sizeof(arg)); in get_open_session()
44 b_data->session = arg.session; in get_open_session()
55 arg->func = func; in init_arg()
56 arg->session = chimp_data.session; in init_arg()
63 struct tee_invoke_arg arg; in chimp_handshake_status_optee() local
80 switch (arg.ret) { in chimp_handshake_status_optee()
99 struct tee_invoke_arg arg; in chimp_health_status_optee() local
115 switch (arg.ret) { in chimp_health_status_optee()
134 struct tee_invoke_arg arg; in chimp_fastboot_optee() local
[all …]
/u-boot/arch/sandbox/cpu/
A Dstart.c171 state->cmd = arg; in sandbox_cmdline_cb_command()
178 state->fdt_fname = arg; in sandbox_cmdline_cb_fdt()
184 const char *arg) in sandbox_cmdline_cb_default_fdt() argument
228 const char *arg) in sandbox_cmdline_cb_interactive() argument
237 const char *arg) in sandbox_cmdline_cb_jump() argument
268 const char *arg) in sandbox_cmdline_cb_rm_memory() argument
277 const char *arg) in sandbox_cmdline_cb_state() argument
285 const char *arg) in sandbox_cmdline_cb_read() argument
319 const char *arg) in sandbox_cmdline_cb_double_lcd() argument
365 const char *arg) in sandbox_cmdline_cb_log_level() argument
[all …]
/u-boot/arch/nios2/cpu/
A Dinterrupts.c21 void *arg; member
55 act->handler (act->arg); in external_interrupt()
63 static void def_hdlr (void *arg) in def_hdlr() argument
70 irqs &= ~(1 << (int)arg); in def_hdlr()
73 (int)arg); in def_hdlr()
77 void irq_install_handler(int irq, interrupt_handler_t *hdlr, void *arg) in irq_install_handler() argument
91 act->arg = arg; in irq_install_handler()
95 act->arg = (void *)irq; in irq_install_handler()
110 vecs[i].arg = (void *)i; in interrupt_init()
135 (ulong)act->arg, in do_irqinfo()
/u-boot/test/dm/
A Dtee.c24 memset(&arg, 0, sizeof(arg)); in open_session()
29 if (arg.ret) in open_session()
31 *session = arg.session; in open_session()
39 struct tee_invoke_arg arg; in invoke_func_avb() local
41 memset(&arg, 0, sizeof(arg)); in invoke_func_avb()
42 arg.session = session; in invoke_func_avb()
45 if (tee_invoke_func(dev, &arg, 1, &param) || arg.ret) in invoke_func_avb()
60 memset(&arg, 0, sizeof(arg)); in invoke_func_rpc_test()
61 arg.session = session; in invoke_func_rpc_test()
62 arg.func = op; in invoke_func_rpc_test()
[all …]
/u-boot/arch/arm/include/asm/xen/
A Dhypercall.h15 int HYPERVISOR_xen_version(int cmd, void *arg);
18 int HYPERVISOR_sched_op(int cmd, void *arg);
19 int HYPERVISOR_event_channel_op(int cmd, void *arg);
20 unsigned long HYPERVISOR_hvm_op(int op, void *arg);
21 int HYPERVISOR_memory_op(unsigned int cmd, void *arg);
/u-boot/test/lib/
A Dgetopt.c91 ut_assertnull(gs.arg); in lib_test_getopt()
97 ut_assertnonnull(gs.arg); in lib_test_getopt()
98 ut_asserteq_str("foo", gs.arg); in lib_test_getopt()
104 ut_assertnonnull(gs.arg); in lib_test_getopt()
105 ut_asserteq_str("foo", gs.arg); in lib_test_getopt()
111 ut_assertnonnull(gs.arg); in lib_test_getopt()
112 ut_asserteq_str("foo", gs.arg); in lib_test_getopt()
118 ut_assertnonnull(gs.arg); in lib_test_getopt()
119 ut_asserteq_str("foo", gs.arg); in lib_test_getopt()
/u-boot/arch/mips/mach-octeon/
A Dbootoctlinux.c255 int arg, j; in octeon_parse_bootopts() local
266 for (arg = 0; arg < argc; arg++) { in octeon_parse_bootopts()
267 debug(" argv[%d]: %s\n", arg, argv[arg]); in octeon_parse_bootopts()
288 argv[arg] + 9, 0); in octeon_parse_bootopts()
295 argv[arg] + 10, 0); in octeon_parse_bootopts()
312 argv[arg] + 9, 16); in octeon_parse_bootopts()
322 arg++; in octeon_parse_bootopts()
323 if (argc >= arg && cmd != BOOTOCTLINUX) in octeon_parse_bootopts()
324 boot_args->app_name = argv[arg]; in octeon_parse_bootopts()
350 debug("%s: return %d\n", __func__, arg); in octeon_parse_bootopts()
[all …]
/u-boot/arch/m68k/lib/
A Dinterrupts.c24 void *arg; member
47 void irq_install_handler(int vec, interrupt_handler_t * handler, void *arg) in irq_install_handler() argument
56 irq_vecs[vec].arg = arg; in irq_install_handler()
66 irq_vecs[vec].arg = NULL; in irq_free_handler()
96 irq_vecs[vec].handler (irq_vecs[vec].arg); in int_handler()
/u-boot/drivers/pinctrl/mediatek/
A Dpinctrl-mtk-common.c304 pullup = (arg == PIN_CONFIG_BIAS_PULL_UP); in mtk_pinconf_bias_set_v0()
385 if ((arg >= tb->min && arg <= tb->max) && !(arg % tb->step)) { in mtk_pinconf_drive_set_v0()
386 arg = (arg / tb->step - 1) * tb->scal; in mtk_pinconf_drive_set_v0()
388 arg & 0x1); in mtk_pinconf_drive_set_v0()
392 (arg & 0x2) >> 1); in mtk_pinconf_drive_set_v0()
409 if ((arg >= tb->min && arg <= tb->max) && !(arg % tb->step)) { in mtk_pinconf_drive_set_v1()
410 arg = (arg / tb->step - 1) * tb->scal; in mtk_pinconf_drive_set_v1()
464 arg = arg ? 2 : 1; in mtk_pinconf_set()
466 arg & 1); in mtk_pinconf_set()
471 !!(arg & 2)); in mtk_pinconf_set()
[all …]
/u-boot/common/
A Dhwconfig.c162 int hwconfig_arg_cmp_f(const char *opt, const char *arg, char *buf) in hwconfig_arg_cmp_f() argument
168 if (!argstr || arglen != strlen(arg)) in hwconfig_arg_cmp_f()
171 return !strncmp(argstr, arg, arglen); in hwconfig_arg_cmp_f()
189 const char *arg; in hwconfig_sub_f() local
191 arg = __hwconfig(opt, &arglen, buf); in hwconfig_sub_f()
192 if (!arg) in hwconfig_sub_f()
194 return !!hwconfig_parse(arg, arglen, subopt, ",;", '=', NULL); in hwconfig_sub_f()
211 const char *arg; in hwconfig_subarg_f() local
213 arg = __hwconfig(opt, &arglen, buf); in hwconfig_subarg_f()
214 if (!arg) in hwconfig_subarg_f()
[all …]
A Diomux.c34 int iomux_doenv(const int console, const char *arg) in iomux_doenv() argument
41 console_args = strdup(arg); in iomux_doenv()
146 char *arg = NULL; /* Initial empty list */ in iomux_replace_device() local
155 tmp = realloc(arg, size + strlen(name) + 1); in iomux_replace_device()
157 free(arg); in iomux_replace_device()
164 arg = tmp; in iomux_replace_device()
168 ret = iomux_doenv(console, arg); in iomux_replace_device()
172 free(arg); in iomux_replace_device()
/u-boot/lib/
A Dgetopt.c70 gs->arg = NULL; in __getopt()
79 gs->arg = argv[gs->index++] + gs->arg_index + 1; in __getopt()
85 gs->arg = NULL; in __getopt()
94 gs->arg = argv[gs->index++]; in __getopt()
100 gs->arg = NULL; in __getopt()
108 gs->arg = argv[gs->index++] + gs->arg_index + 1; in __getopt()
123 gs->arg = argv[gs->index++]; in __getopt()
/u-boot/arch/x86/lib/
A Dinterrupts.c41 void *arg; member
49 void irq_install_handler(int irq, interrupt_handler_t *handler, void *arg) in irq_install_handler() argument
66 irq_handlers[irq].arg = arg; in irq_install_handler()
93 irq_handlers[irq].arg = NULL; in irq_free_handler()
114 irq_handlers[irq].handler(irq_handlers[irq].arg); in do_irq()
150 (ulong)irq_handlers[irq].arg, in do_irqinfo()
/u-boot/cmd/
A Doptee_rpmb.c22 struct tee_open_session_arg arg; in avb_ta_open_session() local
29 memset(&arg, 0, sizeof(arg)); in avb_ta_open_session()
30 tee_optee_ta_uuid_to_octets(arg.uuid, &uuid); in avb_ta_open_session()
31 rc = tee_open_session(tee, &arg, 0, NULL); in avb_ta_open_session()
33 session = arg.session; in avb_ta_open_session()
40 struct tee_invoke_arg arg; in invoke_func() local
46 memset(&arg, 0, sizeof(arg)); in invoke_func()
47 arg.func = func; in invoke_func()
48 arg.session = session; in invoke_func()
50 if (tee_invoke_func(tee, &arg, num_param, param)) in invoke_func()
[all …]
/u-boot/arch/powerpc/cpu/mpc8xx/
A Dinterrupts.c24 void *arg; member
91 irq_vecs[irq].handler(irq_vecs[irq].arg); in external_interrupt()
123 (*cpm_vecs[vec].handler) (cpm_vecs[vec].arg); in cpm_interrupt()
149 void irq_install_handler(int vec, interrupt_handler_t *handler, void *arg) in irq_install_handler() argument
160 cpm_vecs[vec].arg = arg; in irq_install_handler()
168 irq_vecs[vec].arg = arg; in irq_install_handler()
182 cpm_vecs[vec].arg = NULL; in irq_free_handler()
187 irq_vecs[vec].arg = NULL; in irq_free_handler()
/u-boot/arch/arm/lib/
A Dspl.c57 debug("Entering kernel arg pointer: 0x%p\n", spl_image->arg); in jump_to_image_linux()
59 armv8_switch_to_el2((u64)spl_image->arg, 0, 0, 0, in jump_to_image_linux()
70 debug("Entering kernel arg pointer: 0x%p\n", spl_image->arg); in jump_to_image_linux()
76 image_entry(0, machid, spl_image->arg); in jump_to_image_linux()
/u-boot/arch/arm/mach-socfpga/
A Dmailbox_s10.c110 u32 *arg) in mbox_fill_cmd_circular_buff() argument
142 u32 *arg) in mbox_prepare_cmd_only() argument
153 ret = mbox_fill_cmd_circular_buff(header, len, arg); in mbox_prepare_cmd_only()
161 u32 *arg) in mbox_send_cmd_only_common() argument
163 return mbox_prepare_cmd_only(id, cmd, is_indirect, len, arg); in mbox_send_cmd_only_common()
199 u32 len, u32 *arg, u8 urgent, in mbox_send_cmd_common() argument
219 ret = mbox_prepare_cmd_only(id, cmd, is_indirect, len, arg); in mbox_send_cmd_common()
308 u32 len, u32 *arg, in mbox_send_cmd_common_retry() argument
317 ret = mbox_send_cmd_common(id, cmd, is_indirect, len, arg, in mbox_send_cmd_common_retry()
474 u32 *arg, u8 urgent, u32 *resp_buf_len, in mbox_send_cmd_psci() argument
[all …]
/u-boot/include/
A Ddt-structs.h15 int arg[0]; member
20 int arg[1]; member
25 int arg[2]; member
/u-boot/arch/x86/include/asm/
A Dmp.h27 typedef int (*mp_callback_t)(struct udevice *cpu, void *arg);
108 typedef void (*mp_run_func)(void *arg);
125 int mp_run_on_cpus(int cpu_select, mp_run_func func, void *arg);
163 static inline int mp_run_on_cpus(int cpu_select, mp_run_func func, void *arg) in mp_run_on_cpus() argument
166 func(arg); in mp_run_on_cpus()
/u-boot/tools/
A Dk3_gen_x509_cert.sh123 arg=`echo ${options_help[$option]}|cut -d ':' -f1`
124 if [ -n "$arg" ]; then
125 arg=" $arg"
127 echo -n "[-$option$arg] "
133 arg=`echo ${options_help[$option]}|cut -d ':' -f1`
136 if [ -n "$arg" ]; then
137 arg=" $arg"
140 echo -e " -$option$arg:$tb$txt"

Completed in 41 milliseconds

1234567