/scripts/ |
D | checkstack.pl | 133 my $size = $1; 134 $size = hex($size) if ($size =~ /^0x/); 136 if ($size > 0xf0000000) { 137 $size = - $size; 138 $size += 0x80000000; 139 $size += 0x80000000; 141 next if ($size > 0x10000000); 154 next if ($size < 100); 155 push @stack, "$intro$size\n"; 158 my $size = "Dynamic ($1)"; [all …]
|
D | insert-sys-cert.c | 65 int size; member 99 s->size = 0; in get_symbol_from_map() 166 s->size = 0; in get_symbol_from_table() 176 s->size = elf_sym->st_size; in get_symbol_from_table() 201 static void *map_file(char *file_name, int *size) in map_file() argument 217 *size = st.st_size; in map_file() 218 map = mmap(NULL, *size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in map_file() 228 static char *read_file(char *file_name, int *size) in read_file() argument 244 *size = st.st_size; in read_file() 245 buf = malloc(*size); in read_file() [all …]
|
D | stackdelta | 24 my ($file, $func, $size, $type) = split; 40 $su{"${file}\t${func}"} = {size => $size, type => $type}; 53 my $x = $old->{$_}{size}; 54 my $y = $new->{$_}{size};
|
D | extract-sys-certs.pl | 98 my $size; 125 $size = unpack 'L!', $packed; 126 $end = $start + $size; 128 printf "Have %u bytes of certs at VMA 0x%x\n", $size, $start; 147 my $len = sysread(FD, $buf, $size); 149 die "Short read on $vmlinux\n" if ($len != $size); 154 $len = syswrite(FD, $buf, $size); 156 die "Short write on $keyring\n" if ($len != $size);
|
D | faddr2line | 95 local size= 96 [[ $func_addr =~ "/" ]] && size=${func_addr#*/} 129 if [[ -n $size ]] && [[ $size -ne $sym_size ]]; then 131 echo "skipping $func address at $hexaddr due to size mismatch ($size != $sym_size)"
|
D | asn1_compiler.c | 307 unsigned char size; member 329 clen = (dlen < token->size) ? dlen : token->size; in directive_compare() 339 if (dlen == token->size) { in directive_compare() 344 return dlen - token->size; /* shorter -> negative */ in directive_compare() 424 tokens[tix].size = q - p; in tokenise() 427 tokens[tix].content = malloc(tokens[tix].size + 1); in tokenise() 432 memcpy(tokens[tix].content, start, tokens[tix].size); in tokenise() 433 tokens[tix].content[tokens[tix].size] = 0; in tokenise() 465 tokens[tix].size = q - p; in tokenise() 467 tokens[tix].content = malloc(tokens[tix].size + 1); in tokenise() [all …]
|
D | bloat-o-meter | 22 size, type, name = l[:-1].split() 31 sym[name] = sym.get(name, 0) + int(size, 16)
|
D | kallsyms.c | 518 unsigned int i, len, size; in compress_symbols() local 533 size = len; in compress_symbols() 538 size -= (p2 - p1); in compress_symbols() 539 memmove(p2, p2 + 1, size); in compress_symbols() 543 if (size < 2) break; in compress_symbols() 546 p2 = find_token(p1, size, str); in compress_symbols()
|
D | extract_xc3028.pl | 131 my $size = ord(substr($out,$i,1))*256+ord(substr($out,$i+1,1)); 135 if ($size>0 && $size <0x8000) { 136 for (my $j=0;$j<$size;$j++) { 139 $i+=$size;
|
/scripts/dtc/ |
D | fdtget.c | 46 int size; /* data size (1/2/4) */ member 69 int i, size; in show_data() local 94 size = disp->size; in show_data() 95 if (size == -1) { in show_data() 96 size = (len % 4) == 0 ? 4 : 1; in show_data() 97 } else if (len % size) { in show_data() 105 for (i = 0; i < len; i += size, p += size) { in show_data() 108 value = size == 4 ? fdt32_to_cpu(*(const uint32_t *)p) : in show_data() 109 size == 2 ? (*p << 8) | p[1] : *p; in show_data() 313 disp.size = -1; in main() [all …]
|
D | fdtput.c | 40 int size; /* data size (1/2/4) */ member 94 len = disp->size == -1 ? 4 : disp->size; in encode_value() 121 disp->size == 1 ? "byte" : in encode_value() 122 disp->size == 2 ? "short" : "int", in encode_value() 306 disp.size = -1; in main() 334 &disp.size)) in main()
|
D | fdtdump.c | 61 uint64_t addr, size; in dump_blob() local 89 size = fdt64_to_cpu(p_rsvmap[i].size); in dump_blob() 90 if (addr == 0 && size == 0) in dump_blob() 94 (unsigned long long)addr, (unsigned long long)size); in dump_blob()
|
D | livetree.c | 299 struct reserve_info *build_reserve_entry(uint64_t address, uint64_t size) in build_reserve_entry() argument 306 new->re.size = size; in build_reserve_entry() 587 else if (a->re.size < b->re.size) in cmp_reserve_info() 589 else if (a->re.size > b->re.size) in cmp_reserve_info()
|
D | util.c | 310 int utilfdt_decode_type(const char *fmt, int *type, int *size) in utilfdt_decode_type() argument 318 *size = -1; in utilfdt_decode_type() 337 *size = qualifier == 'b' ? 1 : in utilfdt_decode_type()
|
/scripts/coccinelle/api/ |
D | memdup.cocci | 35 expression from,to,size,flag; 40 - to = \(kmalloc@p\|kzalloc@p\)(size,flag); 41 + to = kmemdup(from,size,flag); 43 - memcpy(to, from, size); 46 expression from,to,size,flag; 51 * to = \(kmalloc@p\|kzalloc@p\)(size,flag); 52 to = kmemdup(from,size,flag); 54 * memcpy(to, from, size);
|
D | memdup_user.cocci | 18 expression from,to,size; 22 - to = \(kmalloc\|kzalloc\)(size,GFP_KERNEL); 23 + to = memdup_user(from,size); 33 - if (copy_from_user(to, from, size) != 0) { 40 expression from,to,size; 45 * to = \(kmalloc@p\|kzalloc@p\)(size,GFP_KERNEL); 47 if (copy_from_user(to, from, size) != 0)
|
/scripts/kconfig/ |
D | zconf.l | 49 static void append_string(const char *str, int size) in append_string() argument 51 int new_size = text_size + size + 1; in append_string() 58 memcpy(text + text_size, str, size); in append_string() 59 text_size += size; in append_string() 63 static void alloc_string(const char *str, int size) in alloc_string() argument 65 text = xmalloc(size + 1); in alloc_string() 66 memcpy(text, str, size); in alloc_string() 67 text[size] = 0; in alloc_string()
|
D | util.c | 131 void *xmalloc(size_t size) in xmalloc() argument 133 void *p = malloc(size); in xmalloc() 140 void *xcalloc(size_t nmemb, size_t size) in xcalloc() argument 142 void *p = calloc(nmemb, size); in xcalloc()
|
D | zconf.lex.c_shipped | 164 /* On IA-64, the buffer size is 16k, not 8k. 316 YY_BUFFER_STATE zconf_create_buffer (FILE *file,int size ); 328 YY_BUFFER_STATE zconf_scan_buffer (char *base,yy_size_t size ); 836 static void append_string(const char *str, int size) 838 int new_size = text_size + size + 1; 845 memcpy(text + text_size, str, size); 846 text_size += size; 850 static void alloc_string(const char *str, int size) 852 text = xmalloc(size + 1); 853 memcpy(text, str, size); [all …]
|
D | lkc.h | 116 void *xmalloc(size_t size); 117 void *xcalloc(size_t nmemb, size_t size);
|
/scripts/mod/ |
D | modpost.h | 76 static inline void __endian(const void *src, void *dest, unsigned int size) in __endian() argument 79 for (i = 0; i < size; i++) in __endian() 80 ((unsigned char*)dest)[i] = ((unsigned char*)src)[size - i-1]; in __endian() 102 int size; member 126 unsigned long size; member 187 void *grab_file(const char *filename, unsigned long *size); 188 char* get_next_line(unsigned long *pos, void *file, unsigned long size); 189 void release_file(void *file, unsigned long size);
|
D | file2alias.c | 156 unsigned long size, unsigned long id_size, in device_id_check() argument 161 if (size % id_size || size < id_size) { in device_id_check() 167 modname, device_id, id_size, device_id, size, device_id); in device_id_check() 171 if (*(uint8_t*)(symval+size-id_size+i)) { in device_id_check() 174 modname, device_id, id_size, size / id_size); in device_id_check() 177 *(uint8_t*)(symval+size-id_size+i) ); in device_id_check() 359 static void do_usb_table(void *symval, unsigned long size, in do_usb_table() argument 365 device_id_check(mod->name, "usb", size, id_size, symval); in do_usb_table() 368 size -= id_size; in do_usb_table() 370 for (i = 0; i < size; i += id_size) in do_usb_table() [all …]
|
D | modpost.c | 345 void *grab_file(const char *filename, unsigned long *size) in grab_file() argument 357 *size = st.st_size; in grab_file() 358 map = mmap(NULL, *size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0); in grab_file() 372 char *get_next_line(unsigned long *pos, void *file, unsigned long size) in get_next_line() argument 380 for (; *pos < size ; (*pos)++) { in get_next_line() 386 if (*p != '\n' && (*pos < size)) { in get_next_line() 401 void release_file(void *file, unsigned long size) in release_file() argument 403 munmap(file, size); in release_file() 415 hdr = grab_file(filename, &info->size); in parse_elf() 426 if (info->size < sizeof(*hdr)) { in parse_elf() [all …]
|
/scripts/genksyms/ |
D | genksyms.h | 81 #define xmalloc(size) ({ void *__ptr = malloc(size); \ argument 82 if(!__ptr && size != 0) { \
|
/scripts/dtc/libfdt/ |
D | fdt_sw.c | 142 int fdt_add_reservemap_entry(void *fdt, uint64_t addr, uint64_t size) in fdt_add_reservemap_entry() argument 158 re->size = cpu_to_fdt64(size); in fdt_add_reservemap_entry()
|