Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 33) sorted by relevance

12

/scripts/
Dcheckstack.pl128 my $size = $1;
129 $size = hex($size) if ($size =~ /^0x/);
131 if ($size > 0xf0000000) {
132 $size = - $size;
133 $size += 0x80000000;
134 $size += 0x80000000;
136 next if ($size > 0x10000000);
149 next if ($size < 100);
150 push @stack, "$intro$size\n";
153 my $size = "Dynamic ($1)";
[all …]
Dkallsyms.c432 unsigned int i, len, size; in compress_symbols() local
447 size = len; in compress_symbols()
452 size -= (p2 - p1); in compress_symbols()
453 memmove(p2, p2 + 1, size); in compress_symbols()
457 if (size < 2) break; in compress_symbols()
460 p2 = find_token(p1, size, str); in compress_symbols()
Dbloat-o-meter19 size, type, name = l[:-1].split()
25 sym[name] = sym.get(name, 0) + int(size, 16)
Drecordmcount.c113 umalloc(size_t size) in umalloc() argument
115 void *const addr = malloc(size); in umalloc()
117 fprintf(stderr, "malloc failed: %zu bytes\n", size); in umalloc()
/scripts/coccinelle/api/
Ddevm_request_and_ioremap.cocci28 expression dev,res,size;
31 -if (!devm_request_mem_region(dev, res->start, size,
38 -devm_ioremap(dev,res->start,size)
41 -devm_ioremap_nocache(dev,res->start,size)
50 expression dev,res,size;
54 -if (!devm_request_mem_region(dev, res->start, size,myname)) {
60 -devm_ioremap(dev,res->start,size)
63 -devm_ioremap_nocache(dev,res->start,size)
71 expression dev,res,size;
77 (!devm_request_mem_region@p1(dev, res->start, size,
[all …]
Dmemdup.cocci35 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);
Dmemdup_user.cocci18 expression from,to,size,flag;
22 - to = \(kmalloc\|kzalloc\)(size,flag);
23 + to = memdup_user(from,size);
33 - if (copy_from_user(to, from, size) != 0) {
40 expression from,to,size,flag;
45 * to = \(kmalloc@p\|kzalloc@p\)(size,flag);
47 if (copy_from_user(to, from, size) != 0)
/scripts/mod/
Dmodpost.h70 static inline void __endian(const void *src, void *dest, unsigned int size) in __endian() argument
73 for (i = 0; i < size; i++) in __endian()
74 ((unsigned char*)dest)[i] = ((unsigned char*)src)[size - i-1]; in __endian()
96 int size; member
120 unsigned long size; member
181 void *grab_file(const char *filename, unsigned long *size);
182 char* get_next_line(unsigned long *pos, void *file, unsigned long size);
183 void release_file(void *file, unsigned long size);
Dfile2alias.c128 unsigned long size, unsigned long id_size, in device_id_check() argument
133 if (size % id_size || size < id_size) { in device_id_check()
140 modname, device_id, id_size, device_id, size, device_id); in device_id_check()
144 if (*(uint8_t*)(symval+size-id_size+i)) { in device_id_check()
147 modname, device_id, id_size, size / id_size); in device_id_check()
150 *(uint8_t*)(symval+size-id_size+i) ); in device_id_check()
319 static void do_usb_table(void *symval, unsigned long size, in do_usb_table() argument
325 device_id_check(mod->name, "usb", size, id_size, symval); in do_usb_table()
328 size -= id_size; in do_usb_table()
330 for (i = 0; i < size; i += id_size) in do_usb_table()
[all …]
Dmodpost.c337 void *grab_file(const char *filename, unsigned long *size) in grab_file() argument
347 *size = st.st_size; in grab_file()
348 map = mmap(NULL, *size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0); in grab_file()
361 char *get_next_line(unsigned long *pos, void *file, unsigned long size) in get_next_line() argument
369 for (; *pos < size ; (*pos)++) { in get_next_line()
375 if (*p != '\n' && (*pos < size)) { in get_next_line()
390 void release_file(void *file, unsigned long size) in release_file() argument
392 munmap(file, size); in release_file()
404 hdr = grab_file(filename, &info->size); in parse_elf()
410 if (info->size < sizeof(*hdr)) { in parse_elf()
[all …]
/scripts/kconfig/
Dzconf.l49 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 = malloc(size + 1); in alloc_string()
66 memcpy(text, str, size); in alloc_string()
67 text[size] = 0; in alloc_string()
Dzconf.lex.c_shipped307 YY_BUFFER_STATE zconf_create_buffer (FILE *file,int size );
319 YY_BUFFER_STATE zconf_scan_buffer (char *base,yy_size_t size );
811 static void append_string(const char *str, int size)
813 int new_size = text_size + size + 1;
820 memcpy(text + text_size, str, size);
821 text_size += size;
825 static void alloc_string(const char *str, int size)
827 text = malloc(size + 1);
828 memcpy(text, str, size);
829 text[size] = 0;
[all …]
Dmconf.c291 int size; in set_config_filename() local
293 size = snprintf(menu_backtitle, sizeof(menu_backtitle), in set_config_filename()
295 if (size >= sizeof(menu_backtitle)) in set_config_filename()
299 size = snprintf(filename, sizeof(filename), "%s", config_filename); in set_config_filename()
300 if (size >= sizeof(filename)) in set_config_filename()
Dsymbol.c629 int size; in sym_set_string_value() local
656 size = strlen(newval) + 1; in sym_set_string_value()
658 size += 2; in sym_set_string_value()
659 sym->def[S_DEF_USER].val = val = malloc(size); in sym_set_string_value()
663 sym->def[S_DEF_USER].val = val = malloc(size); in sym_set_string_value()
949 int i, cnt, size; in sym_re_search() local
952 cnt = size = 0; in sym_re_search()
964 if (cnt + 1 >= size) { in sym_re_search()
966 size += 16; in sym_re_search()
967 sym_arr = realloc(sym_arr, size * sizeof(struct symbol *)); in sym_re_search()
/scripts/genksyms/
Dgenksyms.h81 #define xmalloc(size) ({ void *__ptr = malloc(size); \ argument
82 if(!__ptr && size != 0) { \
Dlex.lex.c_shipped288 YY_BUFFER_STATE yy_create_buffer (FILE *file,int size );
300 YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size );
1411 * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
1415 YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
1423 b->yy_buf_size = size;
1425 /* yy_ch_buf has to be 2 characters longer than the size given because
1599 int grow_size = 8 /* arbitrary grow size */;
1617 * @param size the size in bytes of the character buffer
1621 YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
1625 if ( size < 2 ||
[all …]
/scripts/dtc/
Dlivetree.c205 struct reserve_info *build_reserve_entry(uint64_t address, uint64_t size) in build_reserve_entry() argument
212 new->re.size = size; in build_reserve_entry()
485 else if (a->re.size < b->re.size) in cmp_reserve_info()
487 else if (a->re.size > b->re.size) in cmp_reserve_info()
Ddtc-lexer.lex.c_shipped288 YY_BUFFER_STATE yy_create_buffer (FILE *file,int size );
300 YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size );
1464 * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
1468 YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
1476 b->yy_buf_size = size;
1478 /* yy_ch_buf has to be 2 characters longer than the size given because
1648 int grow_size = 8 /* arbitrary grow size */;
1666 * @param size the size in bytes of the character buffer
1670 YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
1674 if ( size < 2 ||
[all …]
Dflattree.c540 ASM_EMIT_BELONG(f, "0x%08x", (unsigned int)(re->re.size >> 32)); in dt_to_asm()
541 ASM_EMIT_BELONG(f, "0x%08x", (unsigned int)(re->re.size & 0xffffffff)); in dt_to_asm()
711 re.size = fdt64_to_cpu(re.size); in flat_read_mem_reserve()
712 if (re.size == 0) in flat_read_mem_reserve()
715 new = build_reserve_entry(re.address, re.size); in flat_read_mem_reserve()
Ddata.c260 bere.size = cpu_to_fdt64(re->size); in data_append_re()
/scripts/dtc/libfdt/
Dfdt_sw.c110 int fdt_add_reservemap_entry(void *fdt, uint64_t addr, uint64_t size) in fdt_add_reservemap_entry() argument
126 re->size = cpu_to_fdt64(size); in fdt_add_reservemap_entry()
Dfdt_ro.c83 int fdt_get_mem_rsv(const void *fdt, int n, uint64_t *address, uint64_t *size) in fdt_get_mem_rsv() argument
87 *size = fdt64_to_cpu(_fdt_mem_rsv(fdt, n)->size); in fdt_get_mem_rsv()
95 while (fdt64_to_cpu(_fdt_mem_rsv(fdt, i)->size) != 0) in fdt_num_mem_rsv()
Dlibfdt.h257 int fdt_get_mem_rsv(const void *fdt, int n, uint64_t *address, uint64_t *size);
785 int fdt_add_reservemap_entry(void *fdt, uint64_t addr, uint64_t size);
828 int fdt_add_mem_rsv(void *fdt, uint64_t address, uint64_t size);
Dfdt.h27 uint64_t size; member
Dfdt_rw.c172 int fdt_add_mem_rsv(void *fdt, uint64_t address, uint64_t size) in fdt_add_mem_rsv() argument
185 re->size = cpu_to_fdt64(size); in fdt_add_mem_rsv()

12