/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 | 419 int fdt_open_into(const void *fdt, void *buf, int bufsize) in fdt_open_into() argument 448 err = fdt_move(fdt, buf, bufsize); in fdt_open_into() 451 fdt_set_version(buf, 17); in fdt_open_into() 452 fdt_set_size_dt_struct(buf, struct_size); in fdt_open_into() 453 fdt_set_totalsize(buf, bufsize); in fdt_open_into() 465 tmp = buf; in fdt_open_into() 470 if ((tmp + newsize) > ((char *)buf + bufsize)) in fdt_open_into() 476 memmove(buf, tmp, newsize); in fdt_open_into() 478 fdt_set_magic(buf, FDT_MAGIC); in fdt_open_into() 479 fdt_set_totalsize(buf, bufsize); in fdt_open_into() [all …]
|
D | libfdt.h | 331 int fdt_move(const void *fdt, void *buf, int bufsize); 890 int fdt_get_path(const void *fdt, int nodeoffset, char *buf, int buflen); 1453 int fdt_create_with_flags(void *buf, int bufsize, uint32_t flags); 1466 int fdt_create(void *buf, int bufsize); 1468 int fdt_resize(void *fdt, void *buf, int bufsize); 1515 int fdt_create_empty_tree(void *buf, int bufsize); 1516 int fdt_open_into(const void *fdt, void *buf, int bufsize);
|
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 | fdt_ro.c | 542 int fdt_get_path(const void *fdt, int nodeoffset, char *buf, int buflen) in fdt_get_path() argument 559 } while (buf[p-1] != '/'); in fdt_get_path() 568 memcpy(buf + p, name, namelen); in fdt_get_path() 570 buf[p++] = '/'; in fdt_get_path() 581 buf[p] = '\0'; in fdt_get_path()
|
/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() 125 static int pem_pw_cb(char *buf, int len, int w, void *v) in pem_pw_cb() argument 136 strcpy(buf, key_pass); in pem_pw_cb() 182 unsigned char buf[2]; in read_x509() local 191 n = BIO_read(b, buf, 2); in read_x509() 206 if (buf[0] == 0x30 && buf[1] >= 0x81 && buf[1] <= 0x84) in read_x509() 228 unsigned char buf[4096]; in main() local 370 while ((n = BIO_read(bm, buf, sizeof(buf))), in main() [all …]
|
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()
|
D | kallsyms.c | 417 static char * s_name(char *buf) in s_name() argument 420 return buf + 1; in s_name() 481 char buf[KSYM_NAME_LEN]; in write_src() local 615 expand_symbol(best_table[i], best_table_len[i], buf); in write_src() 616 printf("\t.asciz\t\"%s\"\n", buf); in write_src() 617 off += strlen(buf) + 1; in write_src()
|
/scripts/basic/ |
D | fixdep.c | 215 char *buf; in read_file() local 228 buf = malloc(st.st_size + 1); in read_file() 229 if (!buf) { in read_file() 233 if (read(fd, buf, st.st_size) != st.st_size) { in read_file() 237 buf[st.st_size] = '\0'; in read_file() 240 return buf; in read_file() 261 void *buf; in parse_dep_file() local 311 buf = read_file(m); in parse_dep_file() 312 parse_config_file(buf); in parse_dep_file() 313 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 | 54 char buf[32]; in yaml_propval_int() local 60 sprintf(buf, "0x%"PRIx8, *(uint8_t*)(data + off)); in yaml_propval_int() 63 sprintf(buf, "0x%"PRIx16, dtb_ld16(data + off)); in yaml_propval_int() 66 sprintf(buf, "0x%"PRIx32, dtb_ld32(data + off)); in yaml_propval_int() 77 sprintf(buf, "0x%"PRIx64, dtb_ld64(data + off)); in yaml_propval_int() 83 (yaml_char_t*)"!phandle", (yaml_char_t *)buf, in yaml_propval_int() 84 strlen(buf), 0, 0, YAML_PLAIN_SCALAR_STYLE); in yaml_propval_int() 87 (yaml_char_t*)YAML_INT_TAG, (yaml_char_t *)buf, in yaml_propval_int() 88 strlen(buf), 1, 1, YAML_PLAIN_SCALAR_STYLE); in yaml_propval_int()
|
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()
|
D | fdtput.c | 121 const char *property, const char *buf, int len) in store_key_value() argument 132 err = fdt_setprop(blob, node, property, buf, len); in store_key_value()
|
/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 | 78 static char buf[256]; in dbg_sym_flags() local 80 bzero(buf, 256); in dbg_sym_flags() 83 strcat(buf, "const/"); in dbg_sym_flags() 85 strcat(buf, "check/"); in dbg_sym_flags() 87 strcat(buf, "choice/"); in dbg_sym_flags() 89 strcat(buf, "choiceval/"); in dbg_sym_flags() 91 strcat(buf, "valid/"); in dbg_sym_flags() 93 strcat(buf, "optional/"); in dbg_sym_flags() 95 strcat(buf, "write/"); in dbg_sym_flags() 97 strcat(buf, "changed/"); in dbg_sym_flags() [all …]
|
/scripts/mod/ |
D | modpost.c | 113 char *buf; in read_text_file() local 126 buf = NOFAIL(malloc(st.st_size + 1)); in read_text_file() 133 bytes_read = read(fd, buf, nbytes); in read_text_file() 141 buf[st.st_size] = '\0'; in read_text_file() 145 return buf; in read_text_file() 1655 char *buf, *p; in extract_crcs_for_object() local 1675 buf = read_text_file(cmd_file); in extract_crcs_for_object() 1676 p = buf; in extract_crcs_for_object() 1713 free(buf); in extract_crcs_for_object() 1723 char *buf, *p, *obj; in mod_set_crcs() local [all …]
|
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() 393 char *buf; in get_src_version() local 401 buf = read_text_file(filelist); in get_src_version() 404 while ((fname = strsep(&buf, "\n"))) { in get_src_version() 414 free(buf); in get_src_version()
|
D | modpost.h | 110 buf_printf(struct buffer *buf, const char *fmt, ...); 113 buf_write(struct buffer *buf, const char *s, int len); 186 void add_moddevtable(struct buffer *buf, struct module *mod);
|
/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])
|