Searched refs:offset (Results 1 - 19 of 19) sorted by relevance

/scripts/dtc/libfdt/
H A Dfdt.c77 const void *fdt_offset_ptr(const void *fdt, int offset, int len) argument
82 if (((offset + len) < offset)
83 || ((offset + len) > fdt_size_dt_struct(fdt)))
86 p = _fdt_offset_ptr(fdt, offset);
93 uint32_t fdt_next_tag(const void *fdt, int offset, int *nextoffset) argument
99 if (offset % FDT_TAGSIZE)
102 tagp = fdt_offset_ptr(fdt, offset, FDT_TAGSIZE);
106 offset += FDT_TAGSIZE;
112 p = fdt_offset_ptr(fdt, offset
132 _fdt_check_node_offset(const void *fdt, int offset) argument
141 fdt_next_node(const void *fdt, int offset, int *depth) argument
[all...]
H A Dfdt_ro.c58 static int _fdt_nodename_eq(const void *fdt, int offset, argument
61 const char *p = fdt_offset_ptr(fdt, offset + FDT_TAGSIZE, len+1);
100 int fdt_subnode_offset_namelen(const void *fdt, int offset, argument
107 for (depth = 0, offset = fdt_next_node(fdt, offset, &depth);
108 (offset >= 0) && (depth > 0);
109 offset = fdt_next_node(fdt, offset, &depth)) {
113 && _fdt_nodename_eq(fdt, offset, name, namelen))
114 return offset;
133 int offset = 0; local
188 int offset, nextoffset; local
271 int offset, depth, namelen; local
324 int offset, depth; local
382 int offset; local
449 int offset, err; local
[all...]
H A Dlibfdt_internal.h66 int _fdt_check_node_offset(const void *fdt, int offset);
70 static inline const void *_fdt_offset_ptr(const void *fdt, int offset) argument
72 return (const char *)fdt + fdt_off_dt_struct(fdt) + offset;
75 static inline void *_fdt_offset_ptr_w(void *fdt, int offset) argument
77 return (void *)(uintptr_t)_fdt_offset_ptr(fdt, offset);
H A Dfdt_sw.c75 int offset = fdt_size_dt_struct(fdt); local
81 if ((offset + len < offset) || (offset + len > spaceleft))
84 fdt_set_size_dt_struct(fdt, offset + len);
85 return fdt_offset_ptr_w(fdt, offset, len);
113 int offset; local
120 offset = fdt_off_dt_struct(fdt);
121 if ((offset + sizeof(*re)) > fdt_totalsize(fdt))
124 re = (struct fdt_reserve_entry *)((char *)fdt + offset);
174 int struct_top, offset; local
219 int offset, nextoffset; local
[all...]
H A Dfdt_wip.c101 int offset, nextoffset; local
107 offset = nextoffset;
108 tag = fdt_next_tag(fdt, offset, &nextoffset);
112 return offset;
H A Dfdt_rw.c311 int offset, nextoffset; local
319 offset = fdt_subnode_offset_namelen(fdt, parentoffset, name, namelen);
320 if (offset >= 0)
322 else if (offset != -FDT_ERR_NOTFOUND)
323 return offset;
328 offset = nextoffset;
329 tag = fdt_next_tag(fdt, offset, &nextoffset);
332 nh = _fdt_offset_ptr_w(fdt, offset);
345 return offset;
H A Dlibfdt.h75 * offset which is out-of-bounds, or which points to an
125 const void *fdt_offset_ptr(const void *fdt, int offset, int checklen);
126 static inline void *fdt_offset_ptr_w(void *fdt, int offset, int checklen) argument
128 return (void *)(uintptr_t)fdt_offset_ptr(fdt, offset, checklen);
131 uint32_t fdt_next_tag(const void *fdt, int offset, int *nextoffset);
137 int fdt_next_node(const void *fdt, int offset, int *depth);
218 * @stroffset: offset of the string within the strings block (native endian)
262 * @parentoffset: structure block offset of a node
276 * @parentoffset: structure block offset of a node
280 * offset parentoffse
[all...]
/scripts/dtc/
H A Dtreesource.c70 while (m && (m->offset == 0)) {
110 while (m && (m->offset < i)) {
112 assert(m->offset == (i+1));
130 assert (m->offset == val.len);
143 while (m && (m->offset <= ((char *)cp - val.val))) {
145 assert(m->offset == ((char *)cp - val.val));
159 assert (m->offset == val.len);
173 while (m && (m->offset == (bp-val.val))) {
187 assert (m->offset == val.len);
215 if ((m->offset >
[all...]
H A Ddata.c209 memmove(d.val + m->offset + len, d.val + m->offset, d.len - m->offset);
210 memcpy(d.val + m->offset, p, len);
216 m->offset += len;
240 m2->offset += d1.len;
297 m->offset = d.len;
H A Dflattree.c124 static void emit_offset_label(FILE *f, const char *label, int offset) argument
127 fprintf(f, "%s\t= . + %d\n", label, offset);
179 emit_offset_label(f, m->ref, m->offset);
656 static char *flat_read_stringtable(struct inbuf *inb, int offset) argument
660 p = inb->base + offset;
663 die("String offset %d overruns string table\n",
664 offset);
672 return xstrdup(inb->base + offset);
879 die("Mem Reserve structure offset exceeds total size\n");
882 die("DT structure offset exceed
[all...]
H A Dchecks.c356 assert(m->offset == 0);
438 assert(m->offset + sizeof(cell_t) <= prop->val.len);
448 *((cell_t *)(prop->val.val + m->offset)) = cpu_to_fdt32(phandle);
462 assert(m->offset <= prop->val.len);
H A Ddtc.h79 int offset; member in struct:marker
/scripts/
H A Drecordmcount.c80 ulseek(int const fd, off_t const offset, int const whence) argument
82 off_t const w = lseek(fd, offset, whence);
129 static int (*make_nop)(void *map, size_t const offset);
131 static int make_nop_x86(void *map, size_t const offset) argument
137 ptr = map + offset;
141 op = map + offset - 1;
146 ulseek(fd_map, offset - 1, SEEK_SET);
H A Drecordmcount.pl23 # offset from the beginning of the section and not the beginning of the
30 # The trick is to change the call offset referring the start of a section to
40 # call mcount (offset: 0x10)
44 # func2: (offset: 0x20)
50 # call mcount (offset: 0x30)
54 # offset from .sched.text. If we choose global symbol func2 as a reference and
71 # call mcount (offset: 0x10)
76 # call mcount (offset: 0x20)
162 # (return offset and func name)
163 my $mcount_regex; # Find the call site to mcount (return offset)
[all...]
H A Dkallsyms.c195 int offset = 1; local
199 offset++;
213 strcmp((char *)s->sym + offset, text_range_text->etext)) ||
215 strcmp((char *)s->sym + offset, text_range_inittext->etext)))
220 if (strstr((char *)s->sym + offset, "_compiled."))
224 if( strcmp((char *)s->sym + offset, special_symbols[i]) == 0 )
332 /* table of offset markers, that give the offset in the compressed stream
H A Dcheckpatch.pl975 my $offset = $linenr - 1;
980 $line = $rawlines[$offset++];
2753 my $offset =
2757 $offset} = 1;
2994 my $offset = statement_rawlines($whitespace) - 1;
2997 #print "COND<$cond> whitespace<$whitespace> offset<$offset>\n";
3000 $suppress_ifbraces{$ln + $offset} = 1;
3002 $herectx .= "$rawlines[$ln + $offset]\n[...]\n";
/scripts/mod/
H A Dsumversion.c201 const unsigned int offset = mctx->byte_count & 0x3f; local
202 char *p = (char *)mctx->block + offset;
203 int padding = 56 - (offset + 1);
456 unsigned long offset)
467 if (lseek(fd, offset, SEEK_SET) == (off_t)-1) {
469 filename, offset, strerror(errno));
455 write_version(const char *filename, const char *sum, unsigned long offset) argument
/scripts/kconfig/
H A Dnconf.c373 int offset = 1; local
378 mvwprintw(main_window, LINES-3, offset,
382 offset += strlen(function_keys[i].key_str);
384 offset, "%s",
386 offset += strlen(function_keys[i].func) + skip;
H A Dqconf.cc731 x = header()->offset() + p.x();

Completed in 2162 milliseconds