Searched refs:opt (Results 1 - 25 of 47) sorted by relevance

12

/u-boot/include/
H A Dhwconfig.h19 extern int hwconfig_f(const char *opt, char *buf);
20 extern const char *hwconfig_arg_f(const char *opt, size_t *arglen, char *buf);
21 extern int hwconfig_arg_cmp_f(const char *opt, const char *arg, char *buf);
22 extern int hwconfig_sub_f(const char *opt, const char *subopt, char *buf);
23 extern const char *hwconfig_subarg_f(const char *opt, const char *subopt,
25 extern int hwconfig_subarg_cmp_f(const char *opt, const char *subopt,
29 static inline int hwconfig_f(const char *opt, char *buf) argument
34 static inline const char *hwconfig_arg_f(const char *opt, size_t *arglen, argument
41 static inline int hwconfig_arg_cmp_f(const char *opt, const char *arg, argument
47 static inline int hwconfig_sub_f(const char *opt, cons argument
52 hwconfig_subarg_f(const char *opt, const char *subopt, size_t *subarglen, char *buf) argument
59 hwconfig_subarg_cmp_f(const char *opt, const char *subopt, const char *subarg, char *buf) argument
67 hwconfig(const char *opt) argument
72 hwconfig_arg(const char *opt, size_t *arglen) argument
77 hwconfig_arg_cmp(const char *opt, const char *arg) argument
82 hwconfig_sub(const char *opt, const char *subopt) argument
87 hwconfig_subarg(const char *opt, const char *subopt, size_t *subarglen) argument
93 hwconfig_subarg_cmp(const char *opt, const char *subopt, const char *subarg) argument
[all...]
H A Dgetopt.h29 * @opt: Option being parsed when an error occurs. @opt is only
32 int opt; member in union:getopt_state::__anon160
82 * int opt, argc = ARRAY_SIZE(argv) - 1;
86 * while ((opt = getopt(&gs, argc, argv, "a::b:c")) != -1)
87 * printf("opt = %c, index = %d, arg = \"%s\"\n", opt, gs.index, gs.arg);
92 * opt = c, index = 1, arg = "<NULL>"
93 * opt = b, index = 2, arg = "x"
94 * opt
[all...]
H A Dndisc.h19 __u8 opt[0]; member in struct:nd_msg
25 __u8 opt[0]; member in struct:rs_msg
33 __u8 opt[0]; member in struct:ra_msg
/u-boot/test/lib/
H A Dgetopt.c20 int opt; local
24 opt = getopt_silent(gs, args, argv, optstring);
25 if (expected[i] != opt) {
33 expected[i], expected[i], i, opt, opt);
38 opt = getopt_silent(gs, args, argv, optstring);
39 if (opt != -1) {
42 "Expected -1, got '%c' (%d)", opt, opt);
76 ut_asserteq('a', gs.opt);
[all...]
/u-boot/board/phytec/common/
H A Dimx8m_som_detection.c30 char *opt; local
43 opt = phytec_get_opt(data);
44 if (!opt)
51 if ((PHYTEC_GET_OPTION(opt[0]) != 0) &&
52 (PHYTEC_GET_OPTION(opt[1]) == 0) && is_imx8mm())
54 else if ((PHYTEC_GET_OPTION(opt[0]) == 0) &&
55 (PHYTEC_GET_OPTION(opt[1]) != 0) && is_imx8mn())
72 char *opt; local
81 opt = phytec_get_opt(data);
82 if (opt)
99 char *opt; local
126 char *opt; local
154 char *opt; local
[all...]
H A Dam6_som_detection.c24 char *opt; local
37 opt = phytec_get_opt(data);
38 if (!opt)
52 char *opt; local
63 opt = phytec_get_opt(data);
64 if (opt)
65 return PHYTEC_GET_OPTION(opt[option]);
H A Dphytec_som_detection.h40 char opt[16]; /* SoM options */ member in struct:phytec_api0_data
48 u8 pcb_sub_opt_rev; /* PCB subrevision and opt revision */
52 char opt[PHYTEC_MAX_OPTIONS]; /* SoM options */ member in struct:phytec_api2_data
H A Dphytec_som_detection.c144 api2->opt, api2->bom_rev, api2->pcb_rev, pcb_sub_rev);
182 printf("Option: %s BOM rev: %s PCB rev: %u%c\n", api2->opt,
188 char *opt; local
197 opt = data->payload.data.data_api0.opt;
199 opt = data->payload.data.data_api2.opt;
201 return opt;
/u-boot/tools/buildman/
H A Dcfgutil.py15 def make_cfg_line(opt, adj):
19 opt (str): Option to process, without CONFIG_ prefix
34 return f'# CONFIG_{opt} is not set'
37 return f'CONFIG_{opt}=y'
70 _, opt, _, _ = m_line.groups()
71 adj = adjust_cfg.get(opt)
73 out_line = make_cfg_line(opt, adj)
75 done.add(opt)
103 for opt in adjust_cfg:
104 if opt no
[all...]
/u-boot/board/phytec/phycore_rk3288/
H A Dphycore-rk3288.c41 struct rk3288_som opt; local
61 ret = i2c_eeprom_read(dev, 0, (uint8_t *)&opt,
68 if (opt.api_version != 0 || !valid_rk3288_som(&opt)) {
73 if (is_valid_ethaddr(opt.mac))
74 eth_env_set_enetaddr("ethaddr", opt.mac);
/u-boot/common/
H A Dhwconfig.c32 const char *opt, char *stopchs, char eqch,
35 size_t optlen = strlen(opt);
41 str = strstr(opts, opt);
74 static const char *__hwconfig(const char *opt, size_t *arglen, argument
93 opt, ";", ':', arglen);
99 opt, ";", ':', arglen);
104 opt, ";", ':', arglen);
109 * @opt: a string representing an option
127 int hwconfig_f(const char *opt, char *buf) argument
129 return !!__hwconfig(opt, NUL
31 hwconfig_parse(const char *opts, size_t maxlen, const char *opt, char *stopchs, char eqch, size_t *arglen) argument
145 hwconfig_arg_f(const char *opt, size_t *arglen, char *buf) argument
164 hwconfig_arg_cmp_f(const char *opt, const char *arg, char *buf) argument
188 hwconfig_sub_f(const char *opt, const char *subopt, char *buf) argument
209 hwconfig_subarg_f(const char *opt, const char *subopt, size_t *subarglen, char *buf) argument
231 hwconfig_subarg_cmp_f(const char *opt, const char *subopt, const char *subarg, char *buf) argument
[all...]
/u-boot/drivers/phy/marvell/
H A Dcomphy_mux.c23 int lane, opt, valid; local
34 for (opt = 0, valid = 0; opt < mux_data->max_lane_values;
35 opt++, mux_opt++) {
60 int opt; local
66 for (opt = 0 ; opt < mux_data->max_lane_values; opt++, mux_opt++) {
/u-boot/drivers/dma/
H A Dti-edma3.c97 u32 opt; local
102 opt = __raw_readl(&rg->opt);
104 opt = (opt & EDMA3_SLOPT_FIFO_WIDTH_MASK) |
108 opt &= ~EDMA3_SLOPT_DST_ADDR_CONST_MODE;
110 __raw_writel(opt, &rg->opt);
168 u32 opt; local
173 opt
258 u32 opt; local
[all...]
/u-boot/lib/efi_loader/
H A Defi_image_loader.c390 IMAGE_OPTIONAL_HEADER64 *opt = &nt64->OptionalHeader; local
393 efi_image_region_add(regs, efi, &opt->CheckSum, 0);
396 &opt->Subsystem,
397 efi + opt->SizeOfHeaders, 0);
401 &opt->Subsystem,
402 &opt->DataDirectory[ctidx], 0);
404 &opt->DataDirectory[ctidx] + 1,
405 efi + opt->SizeOfHeaders, 0);
407 authoff = opt->DataDirectory[ctidx].VirtualAddress;
408 authsz = opt
414 IMAGE_OPTIONAL_HEADER32 *opt = &nt->OptionalHeader; local
903 IMAGE_OPTIONAL_HEADER64 *opt = &nt64->OptionalHeader; local
919 IMAGE_OPTIONAL_HEADER32 *opt = &nt->OptionalHeader; local
[all...]
H A Defi_bootmgr.c778 * @opt: pointer to the media boot option structure
779 * @index: index of the opt array to store the boot option
787 efi_bootmgr_enumerate_boot_options(struct eficonfig_media_boot_option *opt, argument
846 opt[num].size = efi_serialize_load_option(&lo, (u8 **)&opt[num].lo);
847 if (!opt[num].size) {
852 optional_data = (char *)opt[num].lo + (opt[num].size - u16_strsize(u"1234567"));
869 * @opt: pointer to the media boot option structure
873 static efi_status_t efi_bootmgr_delete_invalid_boot_option(struct eficonfig_media_boot_option *opt, argument
1108 struct eficonfig_media_boot_option *opt = NULL; local
[all...]
/u-boot/board/synopsys/axs10x/
H A Dheaderize-axs.py79 for opt, arg in opts:
80 if opt in ('-h', "--help"): usage(0)
81 if opt in ('-t', "--header-type"): header_type = arg
82 if opt in ('-a', "--arc-id"): arc_id = int(arg, 16)
83 if opt in ('-s', "--spi-flash-offset"): spi_flash_offset = int(arg, 16)
84 if opt in ('-i', "--image"): uboot_bin_filename = arg
85 if opt in ('-e', "--elf"): uboot_elf_filename = arg
/u-boot/lib/efi_selftest/
H A Defi_selftest_snp.c64 u8 opt[128]; member in struct:dhcp
146 p.opt[0] = 0x63; /* DHCP magic cookie */
147 p.opt[1] = 0x82;
148 p.opt[2] = 0x53;
149 p.opt[3] = 0x63;
150 p.opt[4] = DHCP_MESSAGE_TYPE;
151 p.opt[5] = 0x01; /* length */
152 p.opt[6] = DHCPDISCOVER;
153 p.opt[7] = 0x39; /* maximum message size */
154 p.opt[
[all...]
/u-boot/tools/
H A Dfdt_add_pubkey.c35 int opt; local
37 while ((opt = getopt(argc, argv, "a:k:n:r:h")) != -1) {
38 switch (opt) {
/u-boot/tools/gdb/
H A DMakefile28 BFD_ROOT_DIR = /opt/powerpc
/u-boot/net/
H A Dndisc.c47 * @opt: pointer to the option element of the neighbor discovery packet
53 static int ndisc_insert_option(__u8 *opt, int type, u8 *data, int len) argument
57 opt[0] = type;
58 opt[1] = space >> 3;
59 memcpy(&opt[2], data, len);
64 memset(&opt[len], '\0', space - len);
81 memcpy(enetaddr, &ndisc->opt[2], 6);
98 return ndisc->opt[0] == type;
134 ndisc_insert_option(msg->opt, ND_OPT_SOURCE_LL_ADDR, net_ethaddr,
197 ndisc_insert_option(msg->opt, ND_OPT_SOURCE_LL_ADD
[all...]
/u-boot/board/synopsys/hsdk/
H A Dheaderize-hsdk.py72 for opt, arg in opts:
73 if opt in ('-h', "--help"): usage(0)
74 if opt in ('-a', "--arc-id"): arc_id = int(arg, 16)
75 if opt in ('-i', "--image"): uboot_bin_filename = arg
76 if opt in ('-e', "--elf"): uboot_elf_filename = arg
/u-boot/cmd/
H A Dlog.c93 int opt; local
100 while ((opt = getopt(&gs, argc, argv, "d:")) > 0) {
101 switch (opt) {
156 int opt, err; local
164 while ((opt = getopt(&gs, argc, argv, "Ac:d:Df:l:L:p")) > 0) {
165 switch (opt) {
248 int opt, err; local
254 while ((opt = getopt(&gs, argc, argv, "ad:")) > 0) {
255 switch (opt) {
/u-boot/arch/sandbox/include/asm/
H A Dgetopt.h31 int (*callback)(struct sandbox_state *state, const char *opt);
/u-boot/lib/
H A Dgetopt.c63 gs->opt = curopt;
119 gs->opt = curopt;
/u-boot/arch/sandbox/cpu/
H A Dstart.c103 struct sandbox_cmdline_option *opt = sorted_opt[i]; local
106 if (opt->flag_short >= 0x100)
109 printf(" -%c, ", opt->flag_short);
112 if (opt->has_arg)
113 printf("--%-*s <arg> ", max_arg_len, opt->flag);
115 printf("--%-*s", max_noarg_len, opt->flag);
118 printf(" %s\n", opt->help);

Completed in 220 milliseconds

12