Home
last modified time | relevance | path

Searched refs:i (Results 1 – 25 of 26) sorted by relevance

12

/DragonStub/apps/lib/
H A Dcmdline.c108 int res, i = 1; in get_options() local
110 while (i < nints || validate) { in get_options()
111 int *pint = validate ? ints : ints + i; in get_options()
117 int n = validate ? 0 : nints - i; in get_options()
128 i += (range_nums - 1); in get_options()
130 i++; in get_options()
134 ints[0] = i - 1; in get_options()
197 unsigned int i, equals = 0; in next_arg() local
206 for (i = 0; args[i]; i++) { in next_arg()
207 if (isspace(args[i]) && !in_quote) in next_arg()
[all …]
H A Dvsprintf.c56 int i = 0; in skip_atoi() local
59 i = i * 10 + *((*s)++) - '0'; in skip_atoi()
62 return i; in skip_atoi()
288 int i; in number() local
320 i = 0; in number()
322 tmp[i++] = hex_asc_upper[num] | locase; in number()
330 tmp[i++] = (hex_asc_upper[((unsigned char)num) & mask] | in number()
335 i = put_dec(tmp, num) - tmp; in number()
339 if (i > precision) in number()
340 precision = i; in number()
[all …]
H A Dstring.c13 unsigned int i = 0; in atou() local
15 i = i * 10 + (*s++ - '0'); in atou()
16 return i; in atou()
/DragonStub/lib/
H A Dentry.c26 for (size_t i = 0; i < __init_array_length; i++) { in ctors() local
27 funcp func = __init_array_start[i]; in ctors()
33 for (size_t i = 0; i < __CTOR_length; i++) { in ctors() local
34 size_t current = __CTOR_length - i - 1; in ctors()
44 for (size_t i = 0; i < __DTOR_length; i++) { in dtors() local
45 funcp func = __DTOR_LIST__[i]; in dtors()
51 for (size_t i = 0; i < __fini_array_length; i++) { in dtors() local
52 size_t current = __fini_array_length - i - 1; in dtors()
H A Dmisc.c424 INTN i, j; in ValidMBR() local
435 for (i=0; i<MAX_MBR_PARTITIONS; i++) { in ValidMBR()
436 … if ( Mbr->Partition[i].OSIndicator == 0x00 || EXTRACT_UINT32(Mbr->Partition[i].SizeInLBA) == 0 ) { in ValidMBR()
440 StartingLBA = EXTRACT_UINT32(Mbr->Partition[i].StartingLBA); in ValidMBR()
441 EndingLBA = StartingLBA + EXTRACT_UINT32(Mbr->Partition[i].SizeInLBA) - 1; in ValidMBR()
464 for (j=i+1; j<MAX_MBR_PARTITIONS; j++) { in ValidMBR()
H A Dprint.c878 UINTN i, Len; in AsciiVSPrint() local
894 for (i = 0; i < Len; i++) in AsciiVSPrint()
895 Str[i] = (CHAR8)UnicodeStr[i]; in AsciiVSPrint()
978 UINTN Len, i; in PITEM() local
1007 for (i=Item->Width; i < Item->FieldWidth; i+=1) { in PITEM()
1013 for (i=Len; i < Item->Width; i++) { in PITEM()
1025 for (i=Item->Width; i < Item->FieldWidth; i+=1) { in PITEM()
1416 INTN i = (INTN)v; in FloatToString() local
1417 ValueToString(Buffer, Comma, i); in FloatToString()
1431 float f = (float)(v - i); in FloatToString()
/DragonStub/gnuefi/
H A Dreloc_loongarch64.c50 int i; in _relocate() local
52 for (i = 0; dyn[i].d_tag != DT_NULL; ++i) { in _relocate()
53 switch (dyn[i].d_tag) { in _relocate()
56 ((unsigned long)dyn[i].d_un.d_ptr in _relocate()
61 relsz = dyn[i].d_un.d_val; in _relocate()
65 relent = dyn[i].d_un.d_val; in _relocate()
70 ((unsigned long)dyn[i].d_un.d_ptr in _relocate()
H A Dreloc_mips64el.c51 int i; in _relocate() local
53 for (i = 0; dyn[i].d_tag != DT_NULL; ++i) { in _relocate()
54 switch (dyn[i].d_tag) { in _relocate()
57 ((unsigned long)dyn[i].d_un.d_ptr in _relocate()
62 relsz = dyn[i].d_un.d_val; in _relocate()
66 relent = dyn[i].d_un.d_val; in _relocate()
71 ((unsigned long)dyn[i].d_un.d_ptr in _relocate()
76 gotsz = dyn[i].d_un.d_val; in _relocate()
H A Dreloc_arm.c49 int i; in _relocate() local
51 for (i = 0; dyn[i].d_tag != DT_NULL; ++i) { in _relocate()
52 switch (dyn[i].d_tag) { in _relocate()
55 ((unsigned long)dyn[i].d_un.d_ptr in _relocate()
60 relsz = dyn[i].d_un.d_val; in _relocate()
64 relent = dyn[i].d_un.d_val; in _relocate()
H A Dreloc_x86_64.c50 int i; in _relocate() local
52 for (i = 0; dyn[i].d_tag != DT_NULL; ++i) { in _relocate()
53 switch (dyn[i].d_tag) { in _relocate()
56 ((unsigned long)dyn[i].d_un.d_ptr in _relocate()
61 relsz = dyn[i].d_un.d_val; in _relocate()
65 relent = dyn[i].d_un.d_val; in _relocate()
H A Dreloc_ia32.c48 int i; in _relocate() local
50 for (i = 0; dyn[i].d_tag != DT_NULL; ++i) { in _relocate()
51 switch (dyn[i].d_tag) { in _relocate()
54 ((unsigned long)dyn[i].d_un.d_ptr in _relocate()
59 relsz = dyn[i].d_un.d_val; in _relocate()
63 relent = dyn[i].d_un.d_val; in _relocate()
H A Dreloc_riscv64.c52 int i; in _relocate() local
54 for (i = 0; dyn[i].d_tag != DT_NULL; ++i) { in _relocate()
55 switch (dyn[i].d_tag) { in _relocate()
57 rel = (Elf_Rela *)((unsigned long)dyn[i].d_un.d_ptr + ldbase); in _relocate()
60 relsz = dyn[i].d_un.d_val; in _relocate()
63 relent = dyn[i].d_un.d_val; in _relocate()
H A Dreloc_aarch64.c49 int i; in _relocate() local
51 for (i = 0; dyn[i].d_tag != DT_NULL; ++i) { in _relocate()
52 switch (dyn[i].d_tag) { in _relocate()
55 ((unsigned long)dyn[i].d_un.d_ptr in _relocate()
60 relsz = dyn[i].d_un.d_val; in _relocate()
64 relent = dyn[i].d_un.d_val; in _relocate()
/DragonStub/inc/dragonstub/
H A Dprintk.h9 int i; \
10 for (i = 0; __fmt[i]; ++i) \
11 __mem[i] = (CHAR16)__fmt[i]; \
12 __mem[i] = 0; \
/DragonStub/inc/dragonstub/linux/
H A Dbyteorder.h196 size_t i; in cpu_to_be32_array() local
198 for (i = 0; i < len; i++) in cpu_to_be32_array()
199 dst[i] = cpu_to_be32(src[i]); in cpu_to_be32_array()
204 size_t i; in be32_to_cpu_array() local
206 for (i = 0; i < len; i++) in be32_to_cpu_array()
207 dst[i] = be32_to_cpu(src[i]); in be32_to_cpu_array()
/DragonStub/apps/
H A Delf.c26 for (int i = 0; i < EI_CLASS; i++) { in verify_ident() local
27 u8 c = *(u8 *)(buf + i); in verify_ident()
28 if (c != ELFMAG[i]) { in verify_ident()
278 for (u32 i = 0; i < phdrs_nr; ++i, ++phdr) { in efi_allocate_kernel_memory() local
352 for (u32 i = 0; i < phdrs_nr; ++i, ++phdr) { in load_program() local
H A Dhelper.c329 int i; in get_efi_config_table() local
331 for (i = 0; i < nr_tables; i++) { in get_efi_config_table()
/DragonStub/lib/ia64/
H A Dpalproc.h31 #define NESTED_SETUP(i,l,o,r) \ argument
32 alloc loc1=ar##.##pfs,i,l,o,r ;\
H A Dpalproc.S77 srlz.i;; // Needs instruction serailization.
94 srlz.i;; // Needs instruction serailization.
138 srlz.i;; // Needs instruction serailization.
153 srlz.i;; // Needs instruction serailization.
/DragonStub/lib/runtime/
H A Drtstr.c174 UINTN i; in RtStrnLen() local
175 for (i = 0; *s1 && i < Len; i++) in RtStrnLen()
177 return i; in RtStrnLen()
/DragonStub/apps/lib/libfdt/
H A Dfdt_overlay.c220 int i; in overlay_update_local_node_references() local
239 for (i = 0; i < fixup_len; i++) { in overlay_update_local_node_references()
243 poffset = fdt32_to_cpu(fixup_val[i]); in overlay_update_local_node_references()
H A Dfdt_ro.c191 int i; in fdt_num_mem_rsv() local
194 for (i = 0; (re = fdt_mem_rsv(fdt, i)) != NULL; i++) { in fdt_num_mem_rsv()
196 return i; in fdt_num_mem_rsv()
/DragonStub/
H A DMake.defaults79 HOSTARCH ?= $(shell $(HOSTCC) -dumpmachine | cut -f1 -d- | sed -e s,i[3456789]86,ia32, -e 's,ar…
80 ARCH ?= $(shell $(HOSTCC) -dumpmachine | cut -f1 -d- | sed -e s,i[3456789]86,ia32, -e 's,ar…
84 …override ARCH := $(shell $(CC) -dumpmachine | cut -f1 -d-| sed -e s,i[3456789]86,ia32, -e 's,armv[…
H A DMake.rules59 %.i: %.c
/DragonStub/inc/
H A Delf.h671 #define ELF64_R_SYM(i) ((i) >> 32) argument
672 #define ELF64_R_TYPE(i) ((i) & 0xffffffff) argument

12