/scripts/dtc/libfdt/ |
D | fdt_empty_tree.c | 13 int fdt_create_empty_tree(void *buf, int bufsize) in fdt_create_empty_tree() argument 17 err = fdt_create(buf, bufsize); in fdt_create_empty_tree() 21 err = fdt_finish_reservemap(buf); in fdt_create_empty_tree() 25 err = fdt_begin_node(buf, ""); in fdt_create_empty_tree() 29 err = fdt_end_node(buf); in fdt_create_empty_tree() 33 err = fdt_finish(buf); in fdt_create_empty_tree() 37 return fdt_open_into(buf, buf, bufsize); in fdt_create_empty_tree()
|
D | fdt_sw.c | 105 int fdt_create_with_flags(void *buf, int bufsize, uint32_t flags) in fdt_create_with_flags() argument 109 void *fdt = buf; in fdt_create_with_flags() 117 memset(buf, 0, bufsize); in fdt_create_with_flags() 139 int fdt_create(void *buf, int bufsize) in fdt_create() argument 141 return fdt_create_with_flags(buf, bufsize, 0); in fdt_create() 144 int fdt_resize(void *fdt, void *buf, int bufsize) in fdt_resize() argument 161 newtail = (char *)buf + bufsize - tailsize; in fdt_resize() 165 if (buf <= fdt) { in fdt_resize() 166 memmove(buf, fdt, headsize); in fdt_resize() 170 memmove(buf, fdt, headsize); in fdt_resize() [all …]
|
D | fdt_rw.c | 400 int fdt_open_into(const void *fdt, void *buf, int bufsize) in fdt_open_into() argument 426 err = fdt_move(fdt, buf, bufsize); in fdt_open_into() 429 fdt_set_version(buf, 17); in fdt_open_into() 430 fdt_set_size_dt_struct(buf, struct_size); in fdt_open_into() 431 fdt_set_totalsize(buf, bufsize); in fdt_open_into() 443 tmp = buf; in fdt_open_into() 448 if ((tmp + newsize) > ((char *)buf + bufsize)) in fdt_open_into() 453 memmove(buf, tmp, newsize); in fdt_open_into() 455 fdt_set_magic(buf, FDT_MAGIC); in fdt_open_into() 456 fdt_set_totalsize(buf, bufsize); in fdt_open_into() [all …]
|
D | fdt_overlay.c | 704 char *buf; in overlay_symbol_update() local 799 buf = p; in overlay_symbol_update() 802 ret = fdt_get_path(fdt, target, buf, len + 1); in overlay_symbol_update() 806 memcpy(buf, target_path, len + 1); in overlay_symbol_update() 811 buf[len] = '/'; in overlay_symbol_update() 812 memcpy(buf + len + 1, rel_path, rel_path_len); in overlay_symbol_update() 813 buf[len + 1 + rel_path_len] = '\0'; in overlay_symbol_update()
|
D | libfdt.h | 313 int fdt_move(const void *fdt, void *buf, int bufsize); 859 int fdt_get_path(const void *fdt, int nodeoffset, char *buf, int buflen); 1415 int fdt_create_with_flags(void *buf, int bufsize, uint32_t flags); 1428 int fdt_create(void *buf, int bufsize); 1430 int fdt_resize(void *fdt, void *buf, int bufsize); 1477 int fdt_create_empty_tree(void *buf, int bufsize); 1478 int fdt_open_into(const void *fdt, void *buf, int bufsize);
|
D | fdt.c | 277 int fdt_move(const void *fdt, void *buf, int bufsize) in fdt_move() argument 284 memmove(buf, fdt, fdt_totalsize(fdt)); in fdt_move()
|
/scripts/ |
D | extract-module-sig.pl | 34 my $buf = ""; 35 my $len = sysread(FD, $buf, $st[7]); 49 my $raw_magic = substr($buf, $p); 56 my $raw_info = substr($buf, $p, 12); 78 my $raw_sig = substr($buf, $p, $sig_len); 80 my $raw_kid = substr($buf, $p, $kid_len); 82 my $raw_name = substr($buf, $p, $name_len); 114 print substr($buf, 0, $module_len); 118 print substr($buf, $module_len);
|
D | sign-file.c | 82 char buf[120]; in display_openssl_errors() local 90 ERR_error_string(e, buf); in display_openssl_errors() 91 fprintf(stderr, "- SSL %s: %s:%d\n", buf, file, line); in display_openssl_errors() 116 static int pem_pw_cb(char *buf, int len, int w, void *v) in pem_pw_cb() argument 127 strcpy(buf, key_pass); in pem_pw_cb() 172 unsigned char buf[2]; in read_x509() local 181 n = BIO_read(b, buf, 2); in read_x509() 196 if (buf[0] == 0x30 && buf[1] >= 0x81 && buf[1] <= 0x84) in read_x509() 218 unsigned char buf[4096]; in main() local 360 while ((n = BIO_read(bm, buf, sizeof(buf))), in main() [all …]
|
D | extract-cert.c | 39 char buf[120]; in display_openssl_errors() local 47 ERR_error_string(e, buf); in display_openssl_errors() 48 fprintf(stderr, "- SSL %s: %s:%d\n", buf, file, line); in display_openssl_errors() 78 char buf[200]; in write_cert() local 84 X509_NAME_oneline(X509_get_subject_name(x509), buf, sizeof(buf)); in write_cert() 87 fprintf(stderr, "Extracted cert: %s\n", buf); in write_cert()
|
D | get_dvb_firmware | 529 my ($chunklength, $buf, $rcount); 544 $rcount = sysread(INFILE, $buf, $chunklength); 546 syswrite(OUTFILE, $buf); 547 sysread(INFILE, $buf, 8); 870 my ($chunklength, $buf, $rcount); 880 $rcount = sysread(INFILE, $buf, $chunklength); 882 syswrite(OUTFILE, $buf); 891 my ($buf); 895 $rcount = sysread(INFILE, $buf, 2048); 897 print $FH $buf; [all …]
|
D | extract-sys-certs.pl | 148 my $buf = ""; 149 my $len = sysread(FD, $buf, $size); 156 $len = syswrite(FD, $buf, $size);
|
D | insert-sys-cert.c | 231 char *buf; in read_file() local 245 buf = malloc(*size); in read_file() 246 if (!buf) { in read_file() 251 if (read(fd, buf, *size) != *size) { in read_file() 257 return buf; in read_file()
|
/scripts/basic/ |
D | fixdep.c | 270 char *buf; in read_file() local 283 buf = malloc(st.st_size + 1); in read_file() 284 if (!buf) { in read_file() 288 if (read(fd, buf, st.st_size) != st.st_size) { in read_file() 292 buf[st.st_size] = '\0'; in read_file() 295 return buf; in read_file() 317 void *buf; in parse_dep_file() local 367 buf = read_file(m); in parse_dep_file() 368 parse_config_file(buf); in parse_dep_file() 369 free(buf); in parse_dep_file() [all …]
|
/scripts/kconfig/lxdialog/ |
D | textbox.c | 20 static char *buf; variable 56 buf = tbuf; in dialog_textbox() 57 page = buf; /* page is pointer to start of page to be displayed */ in dialog_textbox() 143 page = buf; in dialog_textbox() 154 page = buf + strlen(buf); in dialog_textbox() 250 s = buf; in dialog_textbox() 280 if (page == buf) { in back_lines() 286 if (page == buf) { in back_lines() 311 update_text(buf, page - buf, end - buf, data); in print_page() 392 percent = (page - buf) * 100 / strlen(buf); in print_position()
|
/scripts/dtc/ |
D | yamltree.c | 53 char buf[32]; in yaml_propval_int() local 59 sprintf(buf, "0x%"PRIx8, *(uint8_t*)(data + off)); in yaml_propval_int() 62 sprintf(buf, "0x%"PRIx16, fdt16_to_cpu(*(fdt16_t*)(data + off))); in yaml_propval_int() 65 sprintf(buf, "0x%"PRIx32, fdt32_to_cpu(*(fdt32_t*)(data + off))); in yaml_propval_int() 76 sprintf(buf, "0x%"PRIx64, fdt64_to_cpu(*(fdt64_t*)(data + off))); in yaml_propval_int() 82 (yaml_char_t*)"!phandle", (yaml_char_t *)buf, in yaml_propval_int() 83 strlen(buf), 0, 0, YAML_PLAIN_SCALAR_STYLE); in yaml_propval_int() 86 (yaml_char_t*)YAML_INT_TAG, (yaml_char_t *)buf, in yaml_propval_int() 87 strlen(buf), 1, 1, YAML_PLAIN_SCALAR_STYLE); in yaml_propval_int()
|
D | fdtdump.c | 149 char *buf; in main() local 156 buf = utilfdt_read(argv[1]); in main() 157 if (buf) in main() 158 dump_blob(buf); in main()
|
D | util.c | 237 char *buf = NULL; in utilfdt_read_err() local 249 buf = xmalloc(bufsize); in utilfdt_read_err() 254 buf = xrealloc(buf, bufsize); in utilfdt_read_err() 257 ret = read(fd, &buf[offset], bufsize - offset); in utilfdt_read_err() 268 free(buf); in utilfdt_read_err() 270 *buffp = buf; in utilfdt_read_err()
|
/scripts/kconfig/ |
D | preprocess.c | 134 char buf[16]; in do_lineno() local 136 sprintf(buf, "%d", yylineno); in do_lineno() 138 return xstrdup(buf); in do_lineno() 144 char buf[256]; in do_shell() local 157 nread = fread(buf, 1, sizeof(buf), p); in do_shell() 158 if (nread == sizeof(buf)) in do_shell() 162 while (nread > 0 && buf[nread - 1] == '\n') in do_shell() 165 buf[nread] = 0; in do_shell() 169 if (buf[i] == '\n') in do_shell() 170 buf[i] = ' '; in do_shell() [all …]
|
D | gconf.c | 81 static char buf[256]; in dbg_sym_flags() local 83 bzero(buf, 256); in dbg_sym_flags() 86 strcat(buf, "const/"); in dbg_sym_flags() 88 strcat(buf, "check/"); in dbg_sym_flags() 90 strcat(buf, "choice/"); in dbg_sym_flags() 92 strcat(buf, "choiceval/"); in dbg_sym_flags() 94 strcat(buf, "valid/"); in dbg_sym_flags() 96 strcat(buf, "optional/"); in dbg_sym_flags() 98 strcat(buf, "write/"); in dbg_sym_flags() 100 strcat(buf, "changed/"); in dbg_sym_flags() [all …]
|
D | confdata.c | 208 char buf[4096]; in conf_message() local 215 vsnprintf(buf, sizeof(buf), fmt, ap); in conf_message() 216 conf_message_callback(buf); in conf_message() 755 char buf[256]; in conf_write_heading() local 757 snprintf(buf, sizeof(buf), in conf_write_heading() 763 printer->print_comment(fp, buf, printer_arg); in conf_write_heading()
|
/scripts/mod/ |
D | modpost.h | 107 buf_printf(struct buffer *buf, const char *fmt, ...); 110 buf_write(struct buffer *buf, const char *s, int len); 188 void add_moddevtable(struct buffer *buf, struct module *mod);
|
D | sumversion.c | 72 static inline void le32_to_cpu_array(uint32_t *buf, unsigned int words) in le32_to_cpu_array() argument 75 *buf = ntohl(*buf); in le32_to_cpu_array() 76 buf++; in le32_to_cpu_array() 80 static inline void cpu_to_le32_array(uint32_t *buf, unsigned int words) in cpu_to_le32_array() argument 83 *buf = htonl(*buf); in cpu_to_le32_array() 84 buf++; in cpu_to_le32_array()
|
D | modpost.c | 2136 void __attribute__((format(printf, 2, 3))) buf_printf(struct buffer *buf, in buf_printf() argument 2145 buf_write(buf, tmp, len); in buf_printf() 2149 void buf_write(struct buffer *buf, const char *s, int len) in buf_write() argument 2151 if (buf->size - buf->pos < len) { in buf_write() 2152 buf->size += len + SZ; in buf_write() 2153 buf->p = NOFAIL(realloc(buf->p, buf->size)); in buf_write() 2155 strncpy(buf->p + buf->pos, s, len); in buf_write() 2156 buf->pos += len; in buf_write() 2514 struct buffer buf = { }; in write_dump() local 2524 buf_printf(&buf, "0x%08x\t%s\t%s\t%s\t%s\n", in write_dump() [all …]
|
/scripts/gdb/linux/ |
D | timerlist.py | 159 buf = utils.read_memoryview(inf, bits, num_bytes).tobytes() 160 buf = binascii.b2a_hex(buf) 168 chunks.append(buf[start:end])
|
/scripts/coccinelle/api/ |
D | stream_open.cocci | 16 identifier f, buf, len; 19 ssize_t readstream(struct file *f, char *buf, size_t len, loff_t *ppos) 26 identifier f, buf, len; 29 ssize_t writestream(struct file *f, const char *buf, size_t len, loff_t *ppos)
|