/scripts/ |
D | kallsyms.c | 96 size_t i; in check_symbol_range() local 99 for (i = 0; i < entries; ++i) { in check_symbol_range() 100 ar = &ranges[i]; in check_symbol_range() 190 size_t i; in symbol_in_range() local 193 for (i = 0; i < entries; ++i) { in symbol_in_range() 194 ar = &ranges[i]; in symbol_in_range() 236 int i; in symbol_valid() local 266 for (i = 0; special_symbols[i]; i++) in symbol_valid() 267 if (strcmp(sym_name, special_symbols[i]) == 0) in symbol_valid() 270 for (i = 0; special_prefixes[i]; i++) { in symbol_valid() [all …]
|
D | pnmtologo.c | 128 unsigned int i, j; in read_image() local 166 for (i = 0; i < logo_height; i++) { in read_image() 167 logo_data[i] = malloc(logo_width*sizeof(struct color)); in read_image() 168 if (!logo_data[i]) in read_image() 177 for (i = 0; i < logo_height; i++) in read_image() 179 logo_data[i][j].red = logo_data[i][j].green = in read_image() 180 logo_data[i][j].blue = 255*(1-get_number(fp)); in read_image() 186 for (i = 0; i < logo_height; i++) in read_image() 188 logo_data[i][j].red = logo_data[i][j].green = in read_image() 189 logo_data[i][j].blue = get_number255(fp, maxval); in read_image() [all …]
|
D | conmakehash.c | 54 int i; in addpair() local 60 for ( i = 0 ; i < unicount[fp] ; i++ ) in addpair() 61 if ( unitable[fp][i] == un ) in addpair() 85 int i, nuni, nent; in main() local 112 for ( i = 0 ; i < fontlen ; i++ ) in main() 113 unicount[i] = 0; in main() 189 for (i=fp0; i<=fp1; i++) in main() 190 addpair(i,i); in main() 221 for(i=fp0; i<=fp1; i++) in main() 222 addpair(i,un0-fp0+i); in main() [all …]
|
D | check_00index.sh | 9 for i in $(tail -n +12 00-INDEX |grep -E '^[a-zA-Z0-9]+'); do 10 if [ ! -e $i ]; then 11 obsolete="$obsolete $i" 18 for i in $(find . -maxdepth 1 -type d); do 19 if [ "$i" != "." ]; then 20 new=$(echo $i|perl -ne 's,./(.*),$1/,; print $_') 25 for i in $search; do 26 if [ "$(grep -P "^$i" 00-INDEX)" == "" ]; then 27 dir="$dir $i" 34 for i in $(find . -maxdepth 1 -type f); do [all …]
|
D | sortextable.c | 176 #define SPECIAL(i) ((i) - (SHN_HIRESERVE + 1)) argument 178 static inline int is_shndx_special(unsigned int i) in is_shndx_special() argument 180 return i != SHN_XINDEX && i >= SHN_LORESERVE && i <= SHN_HIRESERVE; in is_shndx_special() 214 int i; in x86_sort_relative_table() local 216 i = 0; in x86_sort_relative_table() 217 while (i < image_size) { in x86_sort_relative_table() 218 uint32_t *loc = (uint32_t *)(extab_image + i); in x86_sort_relative_table() 220 w(r(loc) + i, loc); in x86_sort_relative_table() 221 w(r(loc + 1) + i + 4, loc + 1); in x86_sort_relative_table() 222 w(r(loc + 2) + i + 8, loc + 2); in x86_sort_relative_table() [all …]
|
D | get_maintainer.pl | 602 for (my $i = $start; $i < $end; $i++) { 603 my $line = $typevalue[$i]; 620 for (my $i = $start; $i < $end; $i++) { 621 my $line = $typevalue[$i]; 665 my $i; 669 for ($i = $start; $i < $end; $i++) { 670 my $line = $typevalue[$i]; 684 for ($i = $start; $i < $end; $i++) { 685 my $line = $typevalue[$i]; 719 my $i; [all …]
|
D | markup_oops.pl | 323 my $i; 331 $i = $center; 332 while ($i >= $start) { 333 $reglines[$i] = process_x86_regs($lines[$i], $center - $i); 334 $i = $i - 1; 337 $i = $start; 338 while ($i < $finish) { 340 if ($i == $center) { 341 $line = "*$lines[$i] "; 343 $line = " $lines[$i] "; [all …]
|
D | sortextable.h | 112 int i; in do_func() local 129 for (i = 0; i < num_sections; i++) { in do_func() 130 idx = r(&shdr[i].sh_name); in do_func() 132 extab_sec = shdr + i; in do_func() 133 extab_index = i; in do_func() 135 if ((r(&shdr[i].sh_type) == SHT_REL || in do_func() 136 r(&shdr[i].sh_type) == SHT_RELA) && in do_func() 137 r(&shdr[i].sh_info) == extab_index) { in do_func() 138 relocs = (void *)ehdr + _r(&shdr[i].sh_offset); in do_func() 139 relocs_size = _r(&shdr[i].sh_size); in do_func() [all …]
|
D | cleanpatch | 25 my($i, $c); 27 for ($i = 0; $i < length($li); $i++) { 28 $c = substr($li, $i, 1); 60 my($c, $i); 64 for ($i = 0; $i < length($li); $i++) { 65 $c = substr($li,$i,1); 194 my $i; 200 for ($i = scalar(@hunk_lines)-1; $i > 0; $i--) { 201 $l = $hunk_lines[$i];
|
D | headerdep.pl | 65 for my $i (@opt_include) { 67 $stripped =~ s/^$i\///; 80 for my $i (@opt_include) { 81 my $path = "$i/$filename"; 103 for my $i (0 .. $#lines) { 104 my $line = $lines[$i]; 107 push @{$deps{$header}}, [$i + 1, $dep]; 119 for my $i (0 .. $#$cycle - 1) { 120 $cycle->[$i]->[0] = $cycle->[$i + 1]->[0];
|
D | cleanfile | 25 my($i, $c); 27 for ($i = 0; $i < length($li); $i++) { 28 $c = substr($li, $i, 1); 60 my($c, $i); 64 for ($i = 0; $i < length($li); $i++) { 65 $c = substr($li,$i,1);
|
/scripts/selinux/genheaders/ |
D | genheaders.c | 48 int i, j, k; in main() local 66 for (i = 0; secclass_map[i].name; i++) { in main() 67 struct security_class_mapping *map = &secclass_map[i]; in main() 74 for (i = 1; i < isids_len; i++) in main() 75 initial_sid_to_string[i] = stoupperx(initial_sid_to_string[i]); in main() 80 for (i = 0; secclass_map[i].name; i++) { in main() 81 struct security_class_mapping *map = &secclass_map[i]; in main() 85 fprintf(fout, "%2d\n", i+1); in main() 90 for (i = 1; i < isids_len; i++) { in main() 91 const char *s = initial_sid_to_string[i]; in main() [all …]
|
/scripts/selinux/mdp/ |
D | mdp.c | 53 int i, j, mls = 0; in main() local 76 for (i = 0; secclass_map[i].name; i++) in main() 77 fprintf(fout, "class %s\n", secclass_map[i].name); in main() 82 for (i = 1; i < initial_sid_to_string_len; i++) in main() 83 fprintf(fout, "sid %s\n", initial_sid_to_string[i]); in main() 87 for (i = 0; secclass_map[i].name; i++) { in main() 88 struct security_class_mapping *map = &secclass_map[i]; in main() 107 for (i = 0; secclass_map[i].name; i++) in main() 109 secclass_map[i].name); in main() 114 for (i = 1; i < initial_sid_to_string_len; i++) in main() [all …]
|
/scripts/kconfig/lxdialog/ |
D | inputbox.c | 47 int i, x, y, box_y, box_x, box_width; in dialog_inputbox() local 77 for (i = 0; i < width - 2; i++) in dialog_inputbox() 107 for (i = 0; i < box_width - 1; i++) in dialog_inputbox() 108 waddch(dialog, instr[show_x + i]); in dialog_inputbox() 139 for (i = pos - 1; i < len; i++) { in dialog_inputbox() 140 instr[i] = instr[i+1]; in dialog_inputbox() 148 for (i = 0; i < box_width; i++) { in dialog_inputbox() 149 if (!instr[show_x + i]) { in dialog_inputbox() 153 waddch(dialog, instr[show_x + i]); in dialog_inputbox() 166 for (i = 0; i < box_width; i++) { in dialog_inputbox() [all …]
|
D | textbox.c | 60 int i, x, y, cur_x, cur_y, key = 0; in dialog_textbox() local 75 for (i = 0; i < *_vscroll; i++) in dialog_textbox() 124 for (i = 0; i < width - 2; i++) in dialog_textbox() 250 for (i = 0; keys[i]; i++) { in dialog_textbox() 251 if (key == keys[i]) { in dialog_textbox() 282 int i; in back_lines() local 286 for (i = 0; i < n; i++) { in back_lines() 315 int i, passed_end = 0; in print_page() local 320 for (i = 0; i < height; i++) in print_page() 328 for (i = 0; i < height; i++) { in print_page() [all …]
|
D | menubox.c | 81 int i; in do_print_item() local 82 for (i = 0; i < menu_width; i++) in do_print_item() 187 int i, j, x, y, box_x, box_y; in dialog_menu() local 218 for (i = 0; i < width - 2; i++) in dialog_menu() 269 for (i = 0; i < max_choice; i++) { in dialog_menu() 270 print_item(first_item + i, i, i == choice); in dialog_menu() 289 i = max_choice; in dialog_menu() 291 for (i = choice + 1; i < max_choice; i++) { in dialog_menu() 292 item_set(scroll + i); in dialog_menu() 297 if (i == max_choice) in dialog_menu() [all …]
|
D | checklist.c | 33 int i; in print_item() local 42 for (i = 0; i < list_width; i++) in print_item() 120 int i, x, y, box_x, box_y; in dialog_checklist() local 155 for (i = 0; i < width - 2; i++) in dialog_checklist() 194 for (i = 0; i < max_choice; i++) { in dialog_checklist() 195 item_set(scroll + i); in dialog_checklist() 196 print_item(list, i, i == choice); in dialog_checklist() 211 for (i = 0; i < max_choice; i++) { in dialog_checklist() 212 item_set(i + scroll); in dialog_checklist() 217 if (i < max_choice || key == KEY_UP || key == KEY_DOWN || in dialog_checklist() [all …]
|
/scripts/dtc/ |
D | util.c | 139 static char get_oct_char(const char *s, int *i) in get_oct_char() argument 146 strncpy(x, s + *i, 3); in get_oct_char() 152 (*i) += endx - x; in get_oct_char() 162 static char get_hex_char(const char *s, int *i) in get_hex_char() argument 169 strncpy(x, s + *i, 2); in get_hex_char() 175 (*i) += endx - x; in get_hex_char() 179 char get_escape_char(const char *s, int *i) in get_escape_char() argument 181 char c = s[*i]; in get_escape_char() 182 int j = *i + 1; in get_escape_char() 226 (*i) = j; in get_escape_char() [all …]
|
D | fdtdump.c | 23 int i; in print_data() local 34 for (i = 0; i < len; i += 4) in print_data() 36 i < (len - 4) ? " " : ""); in print_data() 40 for (i = 0; i < len; i++) in print_data() 41 printf("%02x%s", *p++, i < len - 1 ? " " : ""); in print_data() 61 int i; in dump_blob() local 88 for (i = 0; ; i++) { in dump_blob() 89 addr = fdt64_to_cpu(p_rsvmap[i].address); in dump_blob() 90 size = fdt64_to_cpu(p_rsvmap[i].size); in dump_blob()
|
/scripts/mod/ |
D | file2alias.c | 109 int i; in device_id_check() local 120 for (i = 0; i < id_size; i++ ) { in device_id_check() 121 if (*(uint8_t*)(symval+size-id_size+i)) { in device_id_check() 125 for (i = 0; i < id_size; i++ ) in device_id_check() 127 *(uint8_t*)(symval+size-id_size+i) ); in device_id_check() 212 unsigned int init = *bcd, i, j; in incbcd() local 222 for (i=0 ; i < chars ; i++) { in incbcd() 223 c = (*bcd >> (i << 2)) & 0xf; in incbcd() 225 for (j=0 ; j < i ; j++) in incbcd() 235 for (i=0 ; i < chars ; i++) { in incbcd() [all …]
|
D | modpost.h | 69 #define ELF64_MIPS_R_SYM(i) \ argument 70 ((__extension__ (_Elf64_Mips_R_Info_union)(i)).r_info_fields.r_sym) 72 #define ELF64_MIPS_R_TYPE(i) \ argument 73 ((__extension__ (_Elf64_Mips_R_Info_union)(i)).r_info_fields.r_type1) 79 unsigned int i; in __endian() local 80 for (i = 0; i < size; i++) in __endian() 81 ((unsigned char*)dest)[i] = ((unsigned char*)src)[size - i-1]; in __endian() 151 static inline int is_shndx_special(unsigned int i) in is_shndx_special() argument 153 return i != SHN_XINDEX && i >= SHN_LORESERVE && i <= SHN_HIRESERVE; in is_shndx_special() 161 #define SPECIAL(i) ((i) - (SHN_HIRESERVE + 1)) argument
|
D | sumversion.c | 233 unsigned long i; in parse_string() local 236 for (i = 1; i < len; i++) { in parse_string() 237 add_char(file[i], md); in parse_string() 238 if (file[i] == '"' && file[i-1] != '\\') in parse_string() 241 return i; in parse_string() 246 unsigned long i; in parse_comment() local 248 for (i = 2; i < len; i++) { in parse_comment() 249 if (file[i-1] == '*' && file[i] == '/') in parse_comment() 252 return i; in parse_comment() 259 unsigned long i, len; in parse_file() local [all …]
|
/scripts/gcc-plugins/ |
D | randomize_layout_plugin.c | 155 int i; in raninit() local 162 for (i=0; i < 30; ++i) in raninit() 176 unsigned long i; in partition_struct() local 185 for (i = 0; i < length; i++) { in partition_struct() 187 size_groups[group_idx].tree_start = fields[i]; in partition_struct() 188 size_groups[group_idx].start = i; in partition_struct() 192 accum_size += (unsigned long)int_size_in_bytes(TREE_TYPE(fields[i])); in partition_struct() 212 unsigned long i, x; in performance_shuffle() local 218 for (i = num_groups - 1; i > 0; i--) { in performance_shuffle() 220 randnum = ranval(prng_state) % (i + 1); in performance_shuffle() [all …]
|
/scripts/kconfig/ |
D | nconf.gui.c | 177 int i; in get_line_no() local 183 for (i = 0; text[i] != '\0'; i++) in get_line_no() 184 if (text[i] == '\n') in get_line_no() 191 int i; in get_line() local 197 for (i = 0; text[i] != '\0' && lines < line_no; i++) in get_line() 198 if (text[i] == '\n') in get_line() 200 return text+i; in get_line() 218 int i; in fill_window() local 223 for (i = 0; i < total_lines; i++) { in fill_window() 225 const char *line = get_line(text, i); in fill_window() [all …]
|
/scripts/coccinelle/api/ |
D | simple_open.cocci | 15 identifier i, f; 17 -int open_f(struct inode *i, struct file *f) 20 -if (i->i_private) 21 -f->private_data = i->i_private; 23 -f->private_data = i->i_private; 41 identifier i, f; 44 int open_f@p(struct inode *i, struct file *f) 47 if (i->i_private) 48 f->private_data = i->i_private; 50 f->private_data = i->i_private;
|