/u-boot/lib/ |
H A D | getopt.c | 15 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 D | getopt.c | 16 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 D | getopt.h | 44 * @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 D | util.c | 35 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 D | lkc.h | 116 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 D | expr.h | 313 void expr_gstr_print(struct expr *e, struct gstr *gs); 314 void expr_gstr_print_revdep(struct expr *e, struct gstr *gs,
|
H A D | expr.c | 1244 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 D | symbol.c | 302 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 D | log.c | 95 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 D | bdinfo.c | 189 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 D | bzlib_compress.c | 281 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 D | wakeup.S | 45 mov %ax, %gs 61 movw %ax, %gs
|
H A D | sipi_vector.S | 92 movw %ax, %gs
|
H A D | start.S | 83 movw %ax, %gs
|
/u-boot/arch/x86/lib/ |
H A D | bios_asm.S | 61 mov %ax, %gs 104 mov %ax, %gs 124 mov %ax, %gs 246 push %gs 291 pop %gs
|
/u-boot/drivers/pinctrl/starfive/ |
H A D | pinctrl-jh7110-sys.c | 298 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 D | biosemu.c | 258 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 D | biosemu.h | 267 gs - GS segment register 275 u16 gs; member in struct:__anon647
|
/u-boot/scripts/ |
H A D | checkpatch.pl | 4367 my @newlines = ($c =~ /\n/gs); 4373 $s =~ s/\n./\n/gs; 5717 my @newlines = ($c =~ /\n/gs);
|