/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 | 109 int fdt_create_with_flags(void *buf, int bufsize, uint32_t flags) in fdt_create_with_flags() argument 113 void *fdt = buf; in fdt_create_with_flags() 121 memset(buf, 0, bufsize); in fdt_create_with_flags() 143 int fdt_create(void *buf, int bufsize) in fdt_create() argument 145 return fdt_create_with_flags(buf, bufsize, 0); in fdt_create() 148 int fdt_resize(void *fdt, void *buf, int bufsize) in fdt_resize() argument 169 newtail = (char *)buf + bufsize - tailsize; in fdt_resize() 173 if (buf <= fdt) { in fdt_resize() 174 memmove(buf, fdt, headsize); in fdt_resize() 178 memmove(buf, fdt, headsize); in fdt_resize() [all …]
|
D | fdt_rw.c | 415 int fdt_open_into(const void *fdt, void *buf, int bufsize) in fdt_open_into() argument 442 err = fdt_move(fdt, buf, bufsize); in fdt_open_into() 445 fdt_set_version(buf, 17); in fdt_open_into() 446 fdt_set_size_dt_struct(buf, struct_size); in fdt_open_into() 447 fdt_set_totalsize(buf, bufsize); in fdt_open_into() 459 tmp = buf; in fdt_open_into() 464 if ((tmp + newsize) > ((char *)buf + bufsize)) in fdt_open_into() 469 memmove(buf, tmp, newsize); in fdt_open_into() 471 fdt_set_magic(buf, FDT_MAGIC); in fdt_open_into() 472 fdt_set_totalsize(buf, bufsize); in fdt_open_into() [all …]
|
D | fdt_overlay.c | 705 char *buf; in overlay_symbol_update() local 810 buf = p; in overlay_symbol_update() 813 ret = fdt_get_path(fdt, target, buf, len + 1); in overlay_symbol_update() 817 memcpy(buf, target_path, len + 1); in overlay_symbol_update() 822 buf[len] = '/'; in overlay_symbol_update() 823 memcpy(buf + len + 1, rel_path, rel_path_len); in overlay_symbol_update() 824 buf[len + 1 + rel_path_len] = '\0'; in overlay_symbol_update()
|
D | libfdt.h | 318 int fdt_move(const void *fdt, void *buf, int bufsize); 864 int fdt_get_path(const void *fdt, int nodeoffset, char *buf, int buflen); 1420 int fdt_create_with_flags(void *buf, int bufsize, uint32_t flags); 1433 int fdt_create(void *buf, int bufsize); 1435 int fdt_resize(void *fdt, void *buf, int bufsize); 1482 int fdt_create_empty_tree(void *buf, int bufsize); 1483 int fdt_open_into(const void *fdt, void *buf, int bufsize);
|
/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 | 89 char buf[120]; in display_openssl_errors() local 97 ERR_error_string(e, buf); in display_openssl_errors() 98 fprintf(stderr, "- SSL %s: %s:%d\n", buf, file, line); in display_openssl_errors() 123 static int pem_pw_cb(char *buf, int len, int w, void *v) in pem_pw_cb() argument 134 strcpy(buf, key_pass); in pem_pw_cb() 179 unsigned char buf[2]; in read_x509() local 188 n = BIO_read(b, buf, 2); in read_x509() 203 if (buf[0] == 0x30 && buf[1] >= 0x81 && buf[1] <= 0x84) in read_x509() 225 unsigned char buf[4096]; in main() local 367 while ((n = BIO_read(bm, buf, sizeof(buf))), in main() [all …]
|
D | extract-cert.c | 46 char buf[120]; in display_openssl_errors() local 54 ERR_error_string(e, buf); in display_openssl_errors() 55 fprintf(stderr, "- SSL %s: %s:%d\n", buf, file, line); in display_openssl_errors() 87 char buf[200]; in write_cert() local 93 X509_NAME_oneline(X509_get_subject_name(x509), buf, sizeof(buf)); in write_cert() 96 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 | 265 char *buf; in read_file() local 278 buf = malloc(st.st_size + 1); in read_file() 279 if (!buf) { in read_file() 283 if (read(fd, buf, st.st_size) != st.st_size) { in read_file() 287 buf[st.st_size] = '\0'; in read_file() 290 return buf; in read_file() 311 void *buf; in parse_dep_file() local 361 buf = read_file(m); in parse_dep_file() 362 parse_config_file(buf); in parse_dep_file() 363 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, dtb_ld16(data + off)); in yaml_propval_int() 65 sprintf(buf, "0x%"PRIx32, dtb_ld32(data + off)); in yaml_propval_int() 76 sprintf(buf, "0x%"PRIx64, dtb_ld64(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 | 238 char *buf = NULL; in utilfdt_read_err() local 250 buf = xmalloc(bufsize); in utilfdt_read_err() 255 buf = xrealloc(buf, bufsize); in utilfdt_read_err() 258 ret = read(fd, &buf[offset], bufsize - offset); in utilfdt_read_err() 269 free(buf); in utilfdt_read_err() 271 *buffp = buf; in utilfdt_read_err()
|
/scripts/coccinelle/api/ |
D | device_attr_show.cocci | 20 identifier show, dev, attr, buf; 24 ssize_t show(struct device *dev, struct device_attribute *attr, char *buf) 32 identifier show, dev, attr, buf; 35 ssize_t show(struct device *dev, struct device_attribute *attr, char *buf)
|
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)
|
/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[4096]; 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 | 82 static char buf[256]; in dbg_sym_flags() local 84 bzero(buf, 256); in dbg_sym_flags() 87 strcat(buf, "const/"); in dbg_sym_flags() 89 strcat(buf, "check/"); in dbg_sym_flags() 91 strcat(buf, "choice/"); in dbg_sym_flags() 93 strcat(buf, "choiceval/"); in dbg_sym_flags() 95 strcat(buf, "valid/"); in dbg_sym_flags() 97 strcat(buf, "optional/"); in dbg_sym_flags() 99 strcat(buf, "write/"); in dbg_sym_flags() 101 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() 736 char buf[256]; in conf_write_heading() local 738 snprintf(buf, sizeof(buf), in conf_write_heading() 744 printer->print_comment(fp, buf, printer_arg); in conf_write_heading()
|
/scripts/gdb/linux/ |
D | timerlist.py | 159 buf = utils.read_memoryview(inf, bits, num_bytes).tobytes() 160 buf = binascii.b2a_hex(buf) 161 if type(buf) is not str: 162 buf=buf.decode() 170 chunks.append(buf[start:end])
|
/scripts/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() 395 char *buf, *pos, *firstline; in get_src_version() local 408 buf = read_text_file(filelist); in get_src_version() 410 pos = buf; in get_src_version() 428 free(buf); in get_src_version()
|
D | modpost.c | 101 char *buf; in read_text_file() local 114 buf = NOFAIL(malloc(st.st_size + 1)); in read_text_file() 121 bytes_read = read(fd, buf, nbytes); in read_text_file() 129 buf[st.st_size] = '\0'; in read_text_file() 133 return buf; in read_text_file() 2139 void __attribute__((format(printf, 2, 3))) buf_printf(struct buffer *buf, in buf_printf() argument 2148 buf_write(buf, tmp, len); in buf_printf() 2152 void buf_write(struct buffer *buf, const char *s, int len) in buf_write() argument 2154 if (buf->size - buf->pos < len) { in buf_write() 2155 buf->size += len + SZ; in buf_write() [all …]
|
D | modpost.h | 108 buf_printf(struct buffer *buf, const char *fmt, ...); 111 buf_write(struct buffer *buf, const char *s, int len); 196 void add_moddevtable(struct buffer *buf, struct module *mod);
|