Home
last modified time | relevance | path

Searched refs:gs (Results 1 – 16 of 16) sorted by relevance

/u-boot/lib/
A Dgetopt.c17 gs->index = 1; in getopt_init_state()
32 if (gs->arg_index == 1 && argv[gs->index] && in __getopt()
47 curopt = argv[gs->index][gs->arg_index]; in __getopt()
53 gs->index++; in __getopt()
77 if (argv[gs->index][gs->arg_index + 1]) { in __getopt()
79 gs->arg = argv[gs->index++] + gs->arg_index + 1; in __getopt()
94 gs->arg = argv[gs->index++]; in __getopt()
106 if (argv[gs->index][gs->arg_index + 1]) { in __getopt()
108 gs->arg = argv[gs->index++] + gs->arg_index + 1; in __getopt()
116 if (gs->index >= argc || argv[gs->index][0] == '-') { in __getopt()
[all …]
/u-boot/test/lib/
A Dgetopt.c22 getopt_init_state(gs); in do_test_getopt()
59 struct getopt_state gs; in lib_test_getopt() local
65 ut_asserteq(4, gs.index); in lib_test_getopt()
71 ut_asserteq(4, gs.index); in lib_test_getopt()
76 ut_asserteq('a', gs.opt); in lib_test_getopt()
79 ut_asserteq('a', gs.opt); in lib_test_getopt()
84 ut_asserteq('d', gs.opt); in lib_test_getopt()
90 ut_asserteq(2, gs.index); in lib_test_getopt()
91 ut_assertnull(gs.arg); in lib_test_getopt()
96 ut_asserteq(2, gs.index); in lib_test_getopt()
[all …]
/u-boot/scripts/kconfig/
A Dutil.c35 struct gstr gs; in str_new() local
37 gs.len = 64; in str_new()
38 gs.max_width = 0; in str_new()
40 return gs; in str_new()
46 if (gs->s) in str_free()
47 free(gs->s); in str_free()
48 gs->s = NULL; in str_free()
49 gs->len = 0; in str_free()
59 gs->s = xrealloc(gs->s, l); in str_append()
60 gs->len = l; in str_append()
[all …]
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);
A Dexpr.c1244 struct gstr *gs = (struct gstr*)data; in expr_print_gstr_helper() local
1250 if (gs->max_width) { in expr_print_gstr_helper()
1252 const char *last_cr = strrchr(gs->s, '\n'); in expr_print_gstr_helper()
1259 last_cr = gs->s; in expr_print_gstr_helper()
1261 last_line_length = strlen(gs->s) - (last_cr - gs->s); in expr_print_gstr_helper()
1263 if ((last_line_length + extra_length) > gs->max_width) in expr_print_gstr_helper()
1264 str_append(gs, "\\\n"); in expr_print_gstr_helper()
1267 str_append(gs, str); in expr_print_gstr_helper()
1269 str_printf(gs, " [=%s]", sym_str); in expr_print_gstr_helper()
1272 void expr_gstr_print(struct expr *e, struct gstr *gs) in expr_gstr_print() argument
[all …]
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,
A Dsymbol.c302 struct gstr gs = str_new(); in sym_warn_unmet_dep() local
304 str_printf(&gs, in sym_warn_unmet_dep()
307 str_printf(&gs, in sym_warn_unmet_dep()
310 expr_gstr_print(sym->dir_dep.expr, &gs); in sym_warn_unmet_dep()
311 str_printf(&gs, "\n"); in sym_warn_unmet_dep()
313 expr_gstr_print_revdep(sym->rev_dep.expr, &gs, yes, in sym_warn_unmet_dep()
315 expr_gstr_print_revdep(sym->rev_dep.expr, &gs, mod, in sym_warn_unmet_dep()
318 fputs(str_get(&gs), stderr); in sym_warn_unmet_dep()
/u-boot/include/
A Dgetopt.h46 void getopt_init_state(struct getopt_state *gs);
48 int __getopt(struct getopt_state *gs, int argc, char *const argv[],
109 static inline int getopt(struct getopt_state *gs, int argc, in getopt() argument
112 return __getopt(gs, argc, argv, optstring, false); in getopt()
124 static inline int getopt_silent(struct getopt_state *gs, int argc, in getopt_silent() argument
127 return __getopt(gs, argc, argv, optstring, true); in getopt_silent()
/u-boot/cmd/
A Dlog.c95 struct getopt_state gs; in do_log_filter_list() local
99 getopt_init_state(&gs); in do_log_filter_list()
103 drv_name = gs.arg; in do_log_filter_list()
110 if (gs.index != argc) in do_log_filter_list()
161 struct getopt_state gs; in do_log_filter_add() local
163 getopt_init_state(&gs); in do_log_filter_add()
194 drv_name = gs.arg; in do_log_filter_add()
201 file_list = gs.arg; in do_log_filter_add()
228 if (gs.index != argc) in do_log_filter_add()
260 drv_name = gs.arg; in do_log_filter_remove()
[all …]
/u-boot/lib/bzip2/
A Dbzlib_compress.c326 gs = 0; in sendMTFValues()
329 ge = gs-1; in sendMTFValues()
336 if (ge > gs in sendMTFValues()
355 gs = ge+1; in sendMTFValues()
385 gs = 0; in sendMTFValues()
389 if (gs >= s->nMTF) break; in sendMTFValues()
475 gs = ge+1; in sendMTFValues()
588 gs = 0; in sendMTFValues()
590 if (gs >= s->nMTF) break; in sendMTFValues()
591 ge = gs + BZ_G_SIZE - 1; in sendMTFValues()
[all …]
/u-boot/arch/x86/lib/
A Dbios_asm.S61 mov %ax, %gs
104 mov %ax, %gs
124 mov %ax, %gs
246 push %gs
291 pop %gs
/u-boot/arch/x86/cpu/
A Dwakeup.S45 mov %ax, %gs
61 movw %ax, %gs
A Dstart.S83 movw %ax, %gs
A Dsipi_vector.S92 movw %ax, %gs
/u-boot/drivers/bios_emulator/
A Dbiosemu.c258 M.x86.R_GS = sregs->gs; in BE_callRealMode()
284 sregs->gs = M.x86.R_GS; in BE_callRealMode()
349 M.x86.R_GS = sregs->gs; in BE_int86x()
370 sregs->gs = M.x86.R_GS; in BE_int86x()
/u-boot/drivers/bios_emulator/include/
A Dbiosemu.h275 u16 gs; member

Completed in 17 milliseconds