/scripts/dtc/libfdt/ |
D | fdt.c | 109 const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int len) in fdt_offset_ptr() argument 111 unsigned absoffset = offset + fdt_off_dt_struct(fdt); in fdt_offset_ptr() 113 if ((absoffset < offset) in fdt_offset_ptr() 119 if (((offset + len) < offset) in fdt_offset_ptr() 120 || ((offset + len) > fdt_size_dt_struct(fdt))) in fdt_offset_ptr() 123 return fdt_offset_ptr_(fdt, offset); in fdt_offset_ptr() 130 int offset = startoffset; in fdt_next_tag() local 134 tagp = fdt_offset_ptr(fdt, offset, FDT_TAGSIZE); in fdt_next_tag() 138 offset += FDT_TAGSIZE; in fdt_next_tag() 145 p = fdt_offset_ptr(fdt, offset++, 1); in fdt_next_tag() [all …]
|
D | fdt_ro.c | 13 static int fdt_nodename_eq_(const void *fdt, int offset, in fdt_nodename_eq_() argument 17 const char *p = fdt_get_name(fdt, offset, &olen); in fdt_nodename_eq_() 105 int offset = -1; in fdt_find_max_phandle() local 110 offset = fdt_next_node(fdt, offset, NULL); in fdt_find_max_phandle() 111 if (offset < 0) { in fdt_find_max_phandle() 112 if (offset == -FDT_ERR_NOTFOUND) in fdt_find_max_phandle() 115 return offset; in fdt_find_max_phandle() 118 value = fdt_get_phandle(fdt, offset); in fdt_find_max_phandle() 150 int offset = n * sizeof(struct fdt_reserve_entry); in fdt_mem_rsv() local 151 int absoffset = fdt_off_mem_rsvmap(fdt) + offset; in fdt_mem_rsv() [all …]
|
D | fdt_sw.c | 92 int offset = fdt_size_dt_struct(fdt); in fdt_grab_space_() local 98 if ((offset + len < offset) || (offset + len > spaceleft)) in fdt_grab_space_() 101 fdt_set_size_dt_struct(fdt, offset + len); in fdt_grab_space_() 102 return fdt_offset_ptr_w_(fdt, offset); in fdt_grab_space_() 183 int offset; in fdt_add_reservemap_entry() local 187 offset = fdt_off_dt_struct(fdt); in fdt_add_reservemap_entry() 188 if ((offset + sizeof(*re)) > fdt_totalsize(fdt)) in fdt_add_reservemap_entry() 191 re = (struct fdt_reserve_entry *)((char *)fdt + offset); in fdt_add_reservemap_entry() 195 fdt_set_off_dt_struct(fdt, offset + sizeof(*re)); in fdt_add_reservemap_entry() 247 int struct_top, offset; in fdt_add_string_() local [all …]
|
D | libfdt_internal.h | 21 int fdt_check_node_offset_(const void *fdt, int offset); 22 int fdt_check_prop_offset_(const void *fdt, int offset); 26 static inline const void *fdt_offset_ptr_(const void *fdt, int offset) in fdt_offset_ptr_() argument 28 return (const char *)fdt + fdt_off_dt_struct(fdt) + offset; in fdt_offset_ptr_() 31 static inline void *fdt_offset_ptr_w_(void *fdt, int offset) in fdt_offset_ptr_w_() argument 33 return (void *)(uintptr_t)fdt_offset_ptr_(fdt, offset); in fdt_offset_ptr_w_()
|
D | fdt_wip.c | 73 int fdt_node_end_offset_(void *fdt, int offset) in fdt_node_end_offset_() argument 77 while ((offset >= 0) && (depth >= 0)) in fdt_node_end_offset_() 78 offset = fdt_next_node(fdt, offset, &depth); in fdt_node_end_offset_() 80 return offset; in fdt_node_end_offset_()
|
D | libfdt.h | 111 const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int checklen); 113 static inline void *fdt_offset_ptr_w(void *fdt, int offset, int checklen) in fdt_offset_ptr_w() argument 115 return (void *)(uintptr_t)fdt_offset_ptr(fdt, offset, checklen); in fdt_offset_ptr_w() 118 uint32_t fdt_next_tag(const void *fdt, int offset, int *nextoffset); 179 int fdt_next_node(const void *fdt, int offset, int *depth); 188 int fdt_first_subnode(const void *fdt, int offset); 201 int fdt_next_subnode(const void *fdt, int offset); 581 int fdt_next_property_offset(const void *fdt, int offset); 638 int offset, 729 const void *fdt_getprop_by_offset(const void *fdt, int offset,
|
D | fdt_rw.c | 322 int offset, nextoffset; in fdt_add_subnode_namelen() local 330 offset = fdt_subnode_offset_namelen(fdt, parentoffset, name, namelen); in fdt_add_subnode_namelen() 331 if (offset >= 0) in fdt_add_subnode_namelen() 333 else if (offset != -FDT_ERR_NOTFOUND) in fdt_add_subnode_namelen() 334 return offset; in fdt_add_subnode_namelen() 339 offset = nextoffset; in fdt_add_subnode_namelen() 340 tag = fdt_next_tag(fdt, offset, &nextoffset); in fdt_add_subnode_namelen() 343 nh = fdt_offset_ptr_w_(fdt, offset); in fdt_add_subnode_namelen() 356 return offset; in fdt_add_subnode_namelen()
|
/scripts/gdb/linux/ |
D | utils.py | 95 def read_u16(buffer, offset): argument 96 buffer_val = buffer[offset:offset + 2] 112 def read_u32(buffer, offset): argument 114 return read_u16(buffer, offset) + (read_u16(buffer, offset + 2) << 16) 116 return read_u16(buffer, offset + 2) + (read_u16(buffer, offset) << 16) 119 def read_u64(buffer, offset): argument 121 return read_u32(buffer, offset) + (read_u32(buffer, offset + 4) << 32) 123 return read_u32(buffer, offset + 4) + (read_u32(buffer, offset) << 32)
|
D | cpus.py | 40 offset = gdb.parse_and_eval( 44 offset = gdb.parse_and_eval( 48 offset = 0 49 pointer = var_ptr.cast(utils.get_long_type()) + offset
|
/scripts/ |
D | faddr2line | 101 local offset=${func_addr#*+} 102 offset=${offset%/*} 106 if [[ -z $func ]] || [[ -z $offset ]] || [[ $func = $func_addr ]]; then 131 local addr=$(($sym_base + $offset)) 133 warn "bad address: $sym_base + $offset" 154 if [[ $offset -gt $sym_size ]]; then 156 echo "skipping $func address at $addr due to size mismatch ($offset > $sym_size)" 165 echo "$func+$offset/$sym_size:"
|
D | insert-sys-cert.c | 63 unsigned long offset; member 82 unsigned long offset = x[i].sh_offset; in get_offset_from_address() local 85 return addr - start + offset; in get_offset_from_address() 101 s->offset = 0; in get_symbol_from_map() 128 s->offset = get_offset_from_address(hdr, s->address); in get_symbol_from_map() 130 s->content = (void *)hdr + s->offset; in get_symbol_from_map() 168 s->offset = 0; in get_symbol_from_table() 178 s->offset = s->address - sec->sh_addr in get_symbol_from_table() 181 s->content = (void *)hdr + s->offset; in get_symbol_from_table() 265 info("offset: 0x%lx\n", (unsigned long)s->offset); in print_sym() [all …]
|
D | recordmcount.c | 79 static off_t ulseek(off_t const offset, int const whence) in ulseek() argument 83 file_ptr = file_map + offset; in ulseek() 86 file_ptr += offset; in ulseek() 89 file_ptr = file_map + (sb.st_size - offset); in ulseek() 218 static int (*make_nop)(void *map, size_t const offset); 220 static int make_nop_x86(void *map, size_t const offset) in make_nop_x86() argument 226 ptr = map + offset; in make_nop_x86() 230 op = map + offset - 1; in make_nop_x86() 235 if (ulseek(offset - 1, SEEK_SET) < 0) in make_nop_x86() 262 static int make_nop_arm(void *map, size_t const offset) in make_nop_arm() argument [all …]
|
D | Makefile.kasan | 21 -fasan-shadow-offset=$(KASAN_SHADOW_OFFSET), \ 23 -mllvm -asan-mapping-offset=$(KASAN_SHADOW_OFFSET))) 41 instrumentation_flags := -mllvm -hwasan-mapping-offset=$(KASAN_SHADOW_OFFSET)
|
D | kallsyms.c | 368 long long offset; in write_src() local 372 offset = table[i].addr - relative_base; in write_src() 373 overflow = (offset < 0 || offset > UINT_MAX); in write_src() 375 offset = table[i].addr; in write_src() 376 overflow = (offset < 0 || offset > INT_MAX); in write_src() 378 offset = relative_base - table[i].addr - 1; in write_src() 379 overflow = (offset < INT_MIN || offset >= 0); in write_src() 388 printf("\t.long\t%#x\n", (int)offset); in write_src()
|
D | nsdeps | 43 offset=$(wc -l ${source_file}.tmp | awk '{print $1;}') 45 tail -n +$((offset +1)) ${source_file} | grep -v MODULE_IMPORT_NS >> ${source_file}.tmp
|
D | recordmcount.pl | 454 my $offset = 0; # offset of ref_func to section beginning 492 printf FILE "\t%s %s + %d\n", $type, $ref_func, $cur_offset - $offset; 557 $offset = hex $1; 565 $offset = hex $1;
|
D | bpf_helpers_doc.py | 145 offset = self.reader.read().find('* Start of BPF helper function descriptions:') 146 if offset == -1: 148 self.reader.seek(offset)
|
D | extract_xc3028.pl | 46 my ($offset, $length) = @_; 49 sysseek(INFILE, $offset, SEEK_SET); 104 my ($offset, $length) = @_; 105 my $out = get_hunk($offset, $length); 119 my ($offset, $length) = @_; 120 my $out = get_hunk($offset, $length);
|
/scripts/dtc/ |
D | treesource.c | 144 return next->offset - m->offset; in type_marker_length() 180 if ((m->offset > 0) && (prop->val.val[m->offset - 1] != '\0')) in guess_value_type() 182 if ((m->offset % sizeof(cell_t)) != 0) in guess_value_type() 223 dummy_marker.offset = 0; in write_propval() 229 size_t chunk_len = (m->next ? m->next->offset : len) - m->offset; in write_propval() 230 size_t data_len = type_marker_length(m) ? : len - m->offset; in write_propval() 231 const char *p = &prop->val.val[m->offset]; in write_propval() 238 else if (m->offset) in write_propval() 264 size_t pos = m->offset + chunk_len; in write_propval()
|
D | util.c | 238 size_t bufsize = 1024, offset = 0; in utilfdt_read_err() local 252 if (offset == bufsize) { in utilfdt_read_err() 257 ret = read(fd, &buf[offset], bufsize - offset); in utilfdt_read_err() 262 offset += ret; in utilfdt_read_err() 294 int offset; in utilfdt_write_err() local 305 offset = 0; in utilfdt_write_err() 307 while (offset < totalsize) { in utilfdt_write_err() 308 ret = write(fd, ptr + offset, totalsize - offset); in utilfdt_write_err() 313 offset += ret; in utilfdt_write_err()
|
D | data.c | 119 memmove(d.val + m->offset + len, d.val + m->offset, d.len - m->offset); in data_insert_at_marker() 120 memcpy(d.val + m->offset, p, len); in data_insert_at_marker() 126 m->offset += len; in data_insert_at_marker() 150 m2->offset += d1.len; in data_merge() 232 m->offset = d.len; in data_add_marker()
|
D | fdtput.c | 154 int node, offset = 0; in create_paths() local 160 for (sep = path; *sep; path = sep + 1, offset = node) { in create_paths() 166 node = fdt_subnode_offset_namelen(blob, offset, path, in create_paths() 169 node = fdt_add_subnode_namelen(blob, offset, path, in create_paths()
|
D | yamltree.c | 36 int off, start_offset = markers->offset; in yaml_propval_int() 69 if (m->offset == (start_offset + off)) { in yaml_propval_int() 143 char *data = &prop->val.val[m->offset]; in yaml_propval()
|
D | flattree.c | 109 static void emit_offset_label(FILE *f, const char *label, int offset) in emit_offset_label() argument 112 fprintf(f, "%s\t= . + %d\n", label, offset); in emit_offset_label() 156 emit_offset_label(f, m->ref, m->offset); in asm_emit_data() 644 static char *flat_read_stringtable(struct inbuf *inb, int offset) in flat_read_stringtable() argument 648 p = inb->base + offset; in flat_read_stringtable() 652 offset); in flat_read_stringtable() 660 return xstrdup(inb->base + offset); in flat_read_stringtable()
|
/scripts/mod/ |
D | sumversion.c | 201 const unsigned int offset = mctx->byte_count & 0x3f; in md4_final_ascii() local 202 char *p = (char *)mctx->block + offset; in md4_final_ascii() 203 int padding = 56 - (offset + 1); in md4_final_ascii() 434 unsigned long offset) in write_version() argument 445 if (lseek(fd, offset, SEEK_SET) == (off_t)-1) { in write_version() 447 filename, offset, strerror(errno)); in write_version()
|