Searched refs:gs (Results 1 - 19 of 19) sorted by relevance

/u-boot/lib/
H A Dgetopt.c15 void getopt_init_state(struct getopt_state *gs) argument
17 gs->index = 1;
18 gs->arg_index = 1;
21 int __getopt(struct getopt_state *gs, int argc, char *const argv[], argument
28 log_debug("arg_index: %d index: %d\n", gs->arg_index,
29 gs->index);
32 if (gs->arg_index == 1 && argv[gs->index] &&
33 !strcmp(argv[gs->index], "--")) {
34 gs
[all...]
/u-boot/test/lib/
H A Dgetopt.c16 struct getopt_state *gs, const char *optstring,
22 getopt_init_state(gs);
24 opt = getopt_silent(gs, args, argv, optstring);
38 opt = getopt_silent(gs, args, argv, optstring);
50 int ret = do_test_getopt(uts, __LINE__, &gs, optstring, \
59 struct getopt_state gs; local
65 ut_asserteq(4, gs.index);
71 ut_asserteq(4, gs.index);
76 ut_asserteq('a', gs.opt);
79 ut_asserteq('a', gs
15 do_test_getopt(struct unit_test_state *uts, int line, struct getopt_state *gs, const char *optstring, int args, char *argv[], int expected_count, int expected[]) argument
[all...]
/u-boot/include/
H A Dgetopt.h44 * @gs: The state to initialize
46 * This must be called before using @gs with getopt().
48 void getopt_init_state(struct getopt_state *gs);
50 int __getopt(struct getopt_state *gs, int argc, char *const argv[],
55 * @gs: Internal state and out-of-band return arguments. This must be
70 * by ``::`` in @optstring, it expects an optional argument. @gs.arg points
83 * struct getopt_state gs;
85 * getopt_init_state(&gs);
86 * while ((opt = getopt(&gs, argc, argv, "a::b:c")) != -1)
87 * printf("opt = %c, index = %d, arg = \"%s\"\n", opt, gs
111 getopt(struct getopt_state *gs, int argc, char *const argv[], const char *optstring) argument
126 getopt_silent(struct getopt_state *gs, int argc, char *const argv[], const char *optstring) argument
[all...]
/u-boot/scripts/kconfig/
H A Dutil.c35 struct gstr gs; local
36 gs.s = xmalloc(sizeof(char) * 64);
37 gs.len = 64;
38 gs.max_width = 0;
39 strcpy(gs.s, "\0");
40 return gs;
44 void str_free(struct gstr *gs) argument
46 if (gs->s)
47 free(gs->s);
48 gs
53 str_append(struct gstr *gs, const char *s) argument
67 str_printf(struct gstr *gs, const char *fmt, ...) argument
78 str_get(struct gstr *gs) argument
[all...]
H A Dlkc.h116 void str_free(struct gstr *gs);
117 void str_append(struct gstr *gs, const char *s);
118 void str_printf(struct gstr *gs, const char *fmt, ...);
119 const char *str_get(struct gstr *gs);
H A Dexpr.h313 void expr_gstr_print(struct expr *e, struct gstr *gs);
314 void expr_gstr_print_revdep(struct expr *e, struct gstr *gs,
H A Dexpr.c1244 struct gstr *gs = (struct gstr*)data; local
1250 if (gs->max_width) {
1252 const char *last_cr = strrchr(gs->s, '\n');
1259 last_cr = gs->s;
1261 last_line_length = strlen(gs->s) - (last_cr - gs->s);
1263 if ((last_line_length + extra_length) > gs->max_width)
1264 str_append(gs, "\\\n");
1267 str_append(gs, str);
1269 str_printf(gs, " [
1272 expr_gstr_print(struct expr *e, struct gstr *gs) argument
1301 expr_gstr_print_revdep(struct expr *e, struct gstr *gs, tristate pr_type, const char *title) argument
[all...]
H A Dsymbol.c302 struct gstr gs = str_new(); local
304 str_printf(&gs,
307 str_printf(&gs,
310 expr_gstr_print(sym->dir_dep.expr, &gs);
311 str_printf(&gs, "\n");
313 expr_gstr_print_revdep(sym->rev_dep.expr, &gs, yes,
315 expr_gstr_print_revdep(sym->rev_dep.expr, &gs, mod,
318 fputs(str_get(&gs), stderr);
/u-boot/cmd/
H A Dlog.c95 struct getopt_state gs; local
99 getopt_init_state(&gs);
100 while ((opt = getopt(&gs, argc, argv, "d:")) > 0) {
103 drv_name = gs.arg;
110 if (gs.index != argc)
161 struct getopt_state gs; local
163 getopt_init_state(&gs);
164 while ((opt = getopt(&gs, argc, argv, "Ac:d:Df:l:L:p")) > 0) {
184 cat = log_get_cat_by_name(gs.arg);
186 printf("Unknown category \"%s\"\n", gs
251 struct getopt_state gs; local
[all...]
H A Dbdinfo.c189 struct getopt_state gs; local
195 getopt_init_state(&gs);
196 while ((opt = getopt(&gs, argc, argv, "aem")) > 0) {
/u-boot/lib/bzip2/
H A Dbzlib_compress.c281 Int32 v, t, i, j, gs, ge, totc, bt, bc, iter; local
326 gs = 0;
329 ge = gs-1;
336 if (ge > gs
346 nPart, gs, ge, aFreq,
350 if (v >= gs && v <= ge)
355 gs = ge+1;
385 gs = 0;
389 if (gs >= s->nMTF) break;
390 ge = gs
[all...]
/u-boot/arch/x86/cpu/
H A Dwakeup.S45 mov %ax, %gs
61 movw %ax, %gs
H A Dsipi_vector.S92 movw %ax, %gs
H A Dstart.S83 movw %ax, %gs
/u-boot/arch/x86/lib/
H A Dbios_asm.S61 mov %ax, %gs
104 mov %ax, %gs
124 mov %ax, %gs
246 push %gs
291 pop %gs
/u-boot/drivers/pinctrl/starfive/
H A Dpinctrl-jh7110-sys.c298 const struct jh7110_vin_group_sel *gs = local
305 if (!gs->offset)
308 reg = priv->base + gs->offset;
309 grp = gs->group << gs->shift;
310 mask = 0x3U << gs->shift;
/u-boot/drivers/bios_emulator/
H A Dbiosemu.c258 M.x86.R_GS = sregs->gs;
284 sregs->gs = M.x86.R_GS;
349 M.x86.R_GS = sregs->gs;
370 sregs->gs = M.x86.R_GS;
/u-boot/drivers/bios_emulator/include/
H A Dbiosemu.h267 gs - GS segment register
275 u16 gs; member in struct:__anon647
/u-boot/scripts/
H A Dcheckpatch.pl4367 my @newlines = ($c =~ /\n/gs);
4373 $s =~ s/\n./\n/gs;
5717 my @newlines = ($c =~ /\n/gs);

Completed in 270 milliseconds