/scripts/ |
D | checkstack.pl | 135 my $size = $1; 136 $size = hex($size) if ($size =~ /^0x/); 138 if ($size > 0xf0000000) { 139 $size = - $size; 140 $size += 0x80000000; 141 $size += 0x80000000; 143 next if ($size > 0x10000000); 156 next if ($size < 100); 157 push @stack, "$intro$size\n"; 160 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 | 25 my ($file, $func, $size, $type) = split; 41 $su{"${file}\t${func}"} = {size => $size, type => $type}; 54 my $x = $old->{$_}{size}; 55 my $y = $new->{$_}{size};
|
D | extract-sys-certs.pl | 100 my $size; 127 $size = unpack 'L!', $packed; 128 $end = $start + $size; 130 printf "Have %u bytes of certs at VMA 0x%x\n", $size, $start; 149 my $len = sysread(FD, $buf, $size); 151 die "Short read on $vmlinux\n" if ($len != $size); 156 $len = syswrite(FD, $buf, $size); 158 die "Short write on $keyring\n" if ($len != $size);
|
D | faddr2line | 103 local size= 104 [[ $func_addr =~ "/" ]] && size=${func_addr#*/} 147 if [[ -n $size ]] && [[ $size -ne $sym_size ]]; then 149 echo "skipping $func address at $addr 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 | 25 size, type, name = line.split() 34 sym[name] = sym.get(name, 0) + int(size, 16)
|
D | kallsyms.c | 535 unsigned int i, len, size; in compress_symbols() local 550 size = len; in compress_symbols() 555 size -= (p2 - p1); in compress_symbols() 556 memmove(p2, p2 + 1, size); in compress_symbols() 560 if (size < 2) break; in compress_symbols() 563 p2 = find_token(p1, size, str); in compress_symbols()
|
/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 | util.c | 52 int n, size = 128; /* start with 128 bytes */ in xasprintf() local 59 p = xrealloc(p, size); in xasprintf() 63 n = vsnprintf(p, size, fmt, ap); in xasprintf() 67 if (n > -1 && n < size) in xasprintf() 71 size = n + 1; /* precisely what is needed */ in xasprintf() 73 size *= 2; /* twice the old size */ in xasprintf() 340 int utilfdt_decode_type(const char *fmt, int *type, int *size) in utilfdt_decode_type() argument 348 *size = -1; in utilfdt_decode_type() 367 *size = qualifier == 'b' ? 1 : in utilfdt_decode_type()
|
D | fdtdump.c | 62 uint64_t addr, size; in dump_blob() local 90 size = fdt64_to_cpu(p_rsvmap[i].size); in dump_blob() 91 if (addr == 0 && size == 0) in dump_blob() 95 (unsigned long long)addr, (unsigned long long)size); in dump_blob()
|
D | data.c | 200 struct data data_append_re(struct data d, uint64_t address, uint64_t size) in data_append_re() argument 205 re.size = cpu_to_fdt64(size); in data_append_re()
|
D | flattree.c | 316 d = data_append_re(d, re->address, re->size); in flatten_reserve_list() 541 ASM_EMIT_BELONG(f, "0x%08x", (unsigned int)(re->size >> 32)); in dt_to_asm() 542 ASM_EMIT_BELONG(f, "0x%08x", (unsigned int)(re->size & 0xffffffff)); in dt_to_asm() 712 uint64_t address, size; in flat_read_mem_reserve() local 716 size = fdt64_to_cpu(re.size); in flat_read_mem_reserve() 717 if (size == 0) in flat_read_mem_reserve() 720 new = build_reserve_entry(address, size); in flat_read_mem_reserve()
|
/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 | 77 static inline void __endian(const void *src, void *dest, unsigned int size) in __endian() argument 80 for (i = 0; i < size; i++) in __endian() 81 ((unsigned char*)dest)[i] = ((unsigned char*)src)[size - i-1]; in __endian() 103 int size; member 127 unsigned long size; member 188 void *grab_file(const char *filename, unsigned long *size); 189 char* get_next_line(unsigned long *pos, void *file, unsigned long size); 190 void release_file(void *file, unsigned long size);
|
D | file2alias.c | 106 unsigned long size, unsigned long id_size, in device_id_check() argument 111 if (size % id_size || size < id_size) { in device_id_check() 117 modname, device_id, id_size, device_id, size, device_id); in device_id_check() 121 if (*(uint8_t*)(symval+size-id_size+i)) { in device_id_check() 124 modname, device_id, id_size, size / id_size); in device_id_check() 127 *(uint8_t*)(symval+size-id_size+i) ); in device_id_check() 309 static void do_usb_table(void *symval, unsigned long size, in do_usb_table() argument 315 device_id_check(mod->name, "usb", size, id_size, symval); in do_usb_table() 318 size -= id_size; in do_usb_table() 320 for (i = 0; i < size; i += id_size) in do_usb_table() [all …]
|
D | modpost.c | 361 void *grab_file(const char *filename, unsigned long *size) in grab_file() argument 373 *size = st.st_size; in grab_file() 374 map = mmap(NULL, *size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0); in grab_file() 388 char *get_next_line(unsigned long *pos, void *file, unsigned long size) in get_next_line() argument 396 for (; *pos < size ; (*pos)++) { in get_next_line() 402 if (*p != '\n' && (*pos < size)) { in get_next_line() 417 void release_file(void *file, unsigned long size) in release_file() argument 419 munmap(file, size); in release_file() 431 hdr = grab_file(filename, &info->size); in parse_elf() 442 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()
|