Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 38) sorted by relevance

12

/scripts/dtc/libfdt/
Dfdt.c77 const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int len) in fdt_offset_ptr() argument
79 unsigned absoffset = offset + fdt_off_dt_struct(fdt); in fdt_offset_ptr()
81 if ((absoffset < offset) in fdt_offset_ptr()
87 if (((offset + len) < offset) in fdt_offset_ptr()
88 || ((offset + len) > fdt_size_dt_struct(fdt))) in fdt_offset_ptr()
91 return _fdt_offset_ptr(fdt, offset); in fdt_offset_ptr()
98 int offset = startoffset; in fdt_next_tag() local
102 tagp = fdt_offset_ptr(fdt, offset, FDT_TAGSIZE); in fdt_next_tag()
106 offset += FDT_TAGSIZE; in fdt_next_tag()
113 p = fdt_offset_ptr(fdt, offset++, 1); in fdt_next_tag()
[all …]
Dfdt_ro.c58 static int _fdt_nodename_eq(const void *fdt, int offset, in _fdt_nodename_eq() argument
61 const char *p = fdt_offset_ptr(fdt, offset + FDT_TAGSIZE, len+1); in _fdt_nodename_eq()
94 int offset; in fdt_get_max_phandle() local
96 for (offset = fdt_next_node(fdt, -1, NULL);; in fdt_get_max_phandle()
97 offset = fdt_next_node(fdt, offset, NULL)) { in fdt_get_max_phandle()
100 if (offset == -FDT_ERR_NOTFOUND) in fdt_get_max_phandle()
103 if (offset < 0) in fdt_get_max_phandle()
106 phandle = fdt_get_phandle(fdt, offset); in fdt_get_max_phandle()
134 static int _nextprop(const void *fdt, int offset) in _nextprop() argument
140 tag = fdt_next_tag(fdt, offset, &nextoffset); in _nextprop()
[all …]
Dfdt_sw.c75 int offset = fdt_size_dt_struct(fdt); in _fdt_grab_space() local
81 if ((offset + len < offset) || (offset + len > spaceleft)) in _fdt_grab_space()
84 fdt_set_size_dt_struct(fdt, offset + len); in _fdt_grab_space()
85 return _fdt_offset_ptr_w(fdt, offset); in _fdt_grab_space()
145 int offset; in fdt_add_reservemap_entry() local
152 offset = fdt_off_dt_struct(fdt); in fdt_add_reservemap_entry()
153 if ((offset + sizeof(*re)) > fdt_totalsize(fdt)) in fdt_add_reservemap_entry()
156 re = (struct fdt_reserve_entry *)((char *)fdt + offset); in fdt_add_reservemap_entry()
160 fdt_set_off_dt_struct(fdt, offset + sizeof(*re)); in fdt_add_reservemap_entry()
206 int struct_top, offset; in _fdt_find_add_string() local
[all …]
Dlibfdt_internal.h65 int _fdt_check_node_offset(const void *fdt, int offset);
66 int _fdt_check_prop_offset(const void *fdt, int offset);
70 static inline const void *_fdt_offset_ptr(const void *fdt, int offset) in _fdt_offset_ptr() argument
72 return (const char *)fdt + fdt_off_dt_struct(fdt) + offset; in _fdt_offset_ptr()
75 static inline void *_fdt_offset_ptr_w(void *fdt, int offset) in _fdt_offset_ptr_w() argument
77 return (void *)(uintptr_t)_fdt_offset_ptr(fdt, offset); in _fdt_offset_ptr_w()
Dfdt_wip.c118 int _fdt_node_end_offset(void *fdt, int offset) in _fdt_node_end_offset() argument
122 while ((offset >= 0) && (depth >= 0)) in _fdt_node_end_offset()
123 offset = fdt_next_node(fdt, offset, &depth); in _fdt_node_end_offset()
125 return offset; in _fdt_node_end_offset()
Dlibfdt.h147 const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int checklen);
149 static inline void *fdt_offset_ptr_w(void *fdt, int offset, int checklen) in fdt_offset_ptr_w() argument
151 return (void *)(uintptr_t)fdt_offset_ptr(fdt, offset, checklen); in fdt_offset_ptr_w()
154 uint32_t fdt_next_tag(const void *fdt, int offset, int *nextoffset);
160 int fdt_next_node(const void *fdt, int offset, int *depth);
169 int fdt_first_subnode(const void *fdt, int offset);
182 int fdt_next_subnode(const void *fdt, int offset);
490 int fdt_next_property_offset(const void *fdt, int offset);
544 int offset,
635 const void *fdt_getprop_by_offset(const void *fdt, int offset,
Dfdt_rw.c337 int offset, nextoffset; in fdt_add_subnode_namelen() local
345 offset = fdt_subnode_offset_namelen(fdt, parentoffset, name, namelen); in fdt_add_subnode_namelen()
346 if (offset >= 0) in fdt_add_subnode_namelen()
348 else if (offset != -FDT_ERR_NOTFOUND) in fdt_add_subnode_namelen()
349 return offset; in fdt_add_subnode_namelen()
354 offset = nextoffset; in fdt_add_subnode_namelen()
355 tag = fdt_next_tag(fdt, offset, &nextoffset); in fdt_add_subnode_namelen()
358 nh = _fdt_offset_ptr_w(fdt, offset); in fdt_add_subnode_namelen()
371 return offset; in fdt_add_subnode_namelen()
/scripts/
Dfaddr2line101 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:"
Dinsert-sys-cert.c63 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 …]
Drecordmcount.c113 ulseek(int const fd, off_t const offset, int const whence) in ulseek() argument
117 file_ptr = file_map + offset; in ulseek()
120 file_ptr += offset; in ulseek()
123 file_ptr = file_map + (sb.st_size - offset); in ulseek()
198 static int (*make_nop)(void *map, size_t const offset);
200 static int make_nop_x86(void *map, size_t const offset) in make_nop_x86() argument
206 ptr = map + offset; in make_nop_x86()
210 op = map + offset - 1; in make_nop_x86()
215 ulseek(fd_map, offset - 1, SEEK_SET); in make_nop_x86()
240 static int make_nop_arm(void *map, size_t const offset) in make_nop_arm() argument
[all …]
Dkallsyms.c389 long long offset; in write_src() local
393 offset = table[i].addr - relative_base; in write_src()
394 overflow = (offset < 0 || offset > UINT_MAX); in write_src()
396 offset = table[i].addr; in write_src()
397 overflow = (offset < 0 || offset > INT_MAX); in write_src()
399 offset = relative_base - table[i].addr - 1; in write_src()
400 overflow = (offset < INT_MIN || offset >= 0); in write_src()
409 printf("\t.long\t%#x\n", (int)offset); in write_src()
Drecordmcount.pl430 my $offset = 0; # offset of ref_func to section beginning
468 printf FILE "\t%s %s + %d\n", $type, $ref_func, $cur_offset - $offset;
525 $offset = hex $1;
533 $offset = hex $1;
Dextract_xc3028.pl46 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);
DMakefile.kasan14 -fasan-shadow-offset=$(KASAN_SHADOW_OFFSET) \
/scripts/dtc/
Dtreesource.c72 while (m && (m->offset == 0)) { in write_propval_string()
112 while (m && (m->offset <= (i + 1))) { in write_propval_string()
114 assert(m->offset == (i+1)); in write_propval_string()
132 assert (m->offset == val.len); in write_propval_string()
145 while (m && (m->offset <= ((char *)cp - val.val))) { in write_propval_cells()
147 assert(m->offset == ((char *)cp - val.val)); in write_propval_cells()
161 assert (m->offset == val.len); in write_propval_cells()
175 while (m && (m->offset == (bp-val.val))) { in write_propval_bytes()
189 assert (m->offset == val.len); in write_propval_bytes()
217 if ((m->offset > 0) && (prop->val.val[m->offset - 1] != '\0')) in write_propval()
[all …]
Dutil.c234 off_t bufsize = 1024, offset = 0; in utilfdt_read_err_len() local
248 if (offset == bufsize) { in utilfdt_read_err_len()
253 ret = read(fd, &buf[offset], bufsize - offset); in utilfdt_read_err_len()
258 offset += ret; in utilfdt_read_err_len()
301 int offset; in utilfdt_write_err() local
312 offset = 0; in utilfdt_write_err()
314 while (offset < totalsize) { in utilfdt_write_err()
315 ret = write(fd, ptr + offset, totalsize - offset); in utilfdt_write_err()
320 offset += ret; in utilfdt_write_err()
Ddata.c132 memmove(d.val + m->offset + len, d.val + m->offset, d.len - m->offset); in data_insert_at_marker()
133 memcpy(d.val + m->offset, p, len); in data_insert_at_marker()
139 m->offset += len; in data_insert_at_marker()
163 m2->offset += d1.len; in data_merge()
245 m->offset = d.len; in data_add_marker()
Dfdtput.c168 int node, offset = 0; in create_paths() local
174 for (sep = path; *sep; path = sep + 1, offset = node) { in create_paths()
180 node = fdt_subnode_offset_namelen(blob, offset, path, in create_paths()
183 node = fdt_add_subnode_namelen(blob, offset, path, in create_paths()
Dflattree.c124 static void emit_offset_label(FILE *f, const char *label, int offset) in emit_offset_label() argument
127 fprintf(f, "%s\t= . + %d\n", label, offset); in emit_offset_label()
171 emit_offset_label(f, m->ref, m->offset); in asm_emit_data()
659 static char *flat_read_stringtable(struct inbuf *inb, int offset) in flat_read_stringtable() argument
663 p = inb->base + offset; in flat_read_stringtable()
667 offset); in flat_read_stringtable()
675 return xstrdup(inb->base + offset); in flat_read_stringtable()
Dchecks.c420 assert(m->offset == 0); in check_phandle_prop()
529 assert(m->offset + sizeof(cell_t) <= prop->val.len); in fixup_phandle_references()
537 *((fdt32_t *)(prop->val.val + m->offset)) = in fixup_phandle_references()
543 *((fdt32_t *)(prop->val.val + m->offset)) = cpu_to_fdt32(phandle); in fixup_phandle_references()
562 assert(m->offset <= prop->val.len); in fixup_path_references()
/scripts/gdb/linux/
Dcpus.py40 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/mod/
Dsumversion.c201 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()
456 unsigned long offset) in write_version() argument
467 if (lseek(fd, offset, SEEK_SET) == (off_t)-1) { in write_version()
469 filename, offset, strerror(errno)); in write_version()
/scripts/kconfig/
Dnconf.c368 int offset = 1; in print_function_line() local
374 mvwprintw(main_window, lines-3, offset, in print_function_line()
378 offset += strlen(function_keys[i].key_str); in print_function_line()
380 offset, "%s", in print_function_line()
382 offset += strlen(function_keys[i].func) + skip; in print_function_line()
Dmconf.c371 if (pos->offset >= start && pos->offset < end) { in update_text()
385 memcpy(buf + pos->offset, header, sizeof(header) - 1); in update_text()
/scripts/coccinelle/iterators/
Duse_after_iter.cocci2 /// variable ends up pointing to an address at an offset from the list head,

12