Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 20 of 20) sorted by relevance

/scripts/dtc/
Dsrcpos.c232 void srcpos_update(struct srcpos *pos, const char *text, int len) in srcpos_update() argument
236 pos->file = current_srcfile; in srcpos_update()
238 pos->first_line = current_srcfile->lineno; in srcpos_update()
239 pos->first_column = current_srcfile->colno; in srcpos_update()
249 pos->last_line = current_srcfile->lineno; in srcpos_update()
250 pos->last_column = current_srcfile->colno; in srcpos_update()
254 srcpos_copy(struct srcpos *pos) in srcpos_copy() argument
259 if (!pos) in srcpos_copy()
263 assert(pos->next == NULL); in srcpos_copy()
264 memcpy(pos_new, pos, sizeof(struct srcpos)); in srcpos_copy()
[all …]
Dsrcpos.h87 extern void srcpos_update(struct srcpos *pos, const char *text, int len);
88 extern struct srcpos *srcpos_copy(struct srcpos *pos);
91 extern char *srcpos_string(struct srcpos *pos);
92 extern char *srcpos_string_first(struct srcpos *pos, int level);
93 extern char *srcpos_string_last(struct srcpos *pos, int level);
96 extern void PRINTF(3, 0) srcpos_verror(struct srcpos *pos, const char *prefix,
98 extern void PRINTF(3, 4) srcpos_error(struct srcpos *pos, const char *prefix,
Dchecks.c68 struct srcpos *pos = NULL; in check_msg() local
75 pos = prop->srcpos; in check_msg()
77 pos = node->srcpos; in check_msg()
79 if (pos) { in check_msg()
80 file_str = srcpos_string(pos); in check_msg()
105 if (!prop && pos) { in check_msg()
106 pos = node->srcpos; in check_msg()
107 while (pos->next) { in check_msg()
108 pos = pos->next; in check_msg()
110 file_str = srcpos_string(pos); in check_msg()
Ddt_to_config309 my $pos = shift;
311 substr $$pr_flags_ref, $pos, 1, $pr_flag_value[$pos];
Dtreesource.c264 size_t pos = m->offset + chunk_len; in write_propval() local
265 fprintf(f, pos == len ? "%s" : "%s,", in write_propval()
/scripts/
Dcleanfile23 my $pos = 0;
30 my $npos = ($pos+$nsp+8) & ~7;
31 my $ntab = ($npos >> 3) - ($pos >> 3);
33 $pos = $npos;
37 $pos += $nsp;
40 $pos = 0;
45 $pos += $nsp;
48 $pos++;
61 my $pos = 0;
67 $pos = ($pos+8) & ~7;
[all …]
Dcleanpatch23 my $pos = 0;
30 my $npos = ($pos+$nsp+8) & ~7;
31 my $ntab = ($npos >> 3) - ($pos >> 3);
33 $pos = $npos;
37 $pos += $nsp;
40 $pos = 0;
45 $pos += $nsp;
48 $pos++;
61 my $pos = 0;
67 $pos = ($pos+8) & ~7;
[all …]
Dextract-ikconfig19 if pos=`tr "$cf1\n$cf2" "\n$cf2=" < "$1" | grep -abo "^$cf2"`
21 pos=${pos%%:*}
22 tail -c+$(($pos+8)) "$1" | zcat > $tmp1 2> /dev/null
33 for pos in `tr "$1\n$2" "\n$2=" < "$img" | grep -abo "^$2"`
35 pos=${pos%%:*}
36 tail -c+$pos "$img" | $3 > $tmp2 2> /dev/null
Dextract-vmlinux30 for pos in `tr "$1\n$2" "\n$2=" < "$img" | grep -abo "^$2"`
32 pos=${pos%%:*}
33 tail -c+$pos "$img" | $3 > $tmp 2> /dev/null
Dkallsyms.c294 unsigned int i, pos; in shrink_table() local
296 pos = 0; in shrink_table()
299 if (pos != i) in shrink_table()
300 table[pos] = table[i]; in shrink_table()
301 pos++; in shrink_table()
306 table_cnt = pos; in shrink_table()
Dcheckpatch.pl2573 my $pos = 0;
2586 for ($pos = 0; $pos < $len; $pos++) {
2587 my $string = substr($line, $pos);
2589 $pos += length($1) - 1;
2590 } elsif (substr($line, $pos, 1) eq '(') {
2591 $last_openparen = $pos;
3959 my $pos = pos_last_openparen($rest);
3960 if ($pos >= 0) {
3965 "\t" x ($pos / $tabsize) .
3966 " " x ($pos % $tabsize);
[all …]
/scripts/kconfig/
Dlist.h49 #define list_for_each_entry(pos, head, member) \ argument
50 for (pos = list_entry((head)->next, typeof(*pos), member); \
51 &pos->member != (head); \
52 pos = list_entry(pos->member.next, typeof(*pos), member))
61 #define list_for_each_entry_safe(pos, n, head, member) \ argument
62 for (pos = list_entry((head)->next, typeof(*pos), member), \
63 n = list_entry(pos->member.next, typeof(*pos), member); \
64 &pos->member != (head); \
65 pos = n, n = list_entry(n->member.next, typeof(*n), member))
Dmconf.c323 struct subtitle_list *pos, *tmp; in set_subtitle() local
325 for (pos = subtitles; pos != NULL; pos = tmp) { in set_subtitle()
326 tmp = pos->next; in set_subtitle()
327 free(pos); in set_subtitle()
333 if (pos) { in set_subtitle()
334 pos->next = xcalloc(1, sizeof(*pos)); in set_subtitle()
335 pos = pos->next; in set_subtitle()
337 subtitles = pos = xcalloc(1, sizeof(*pos)); in set_subtitle()
339 pos->text = sp->text; in set_subtitle()
348 struct subtitle_list *pos, *tmp; in reset_subtitle() local
[all …]
Dqconf.cc788 QPoint p = e->pos(); in mouseReleaseEvent()
841 QPoint p = e->pos(); in mouseDoubleClickEvent()
1277 configSettings->setValue("/window x", pos().x()); in saveSettings()
1278 configSettings->setValue("/window y", pos().y()); in saveSettings()
1790 configSettings->setValue("/window x", pos().x()); in saveSettings()
1791 configSettings->setValue("/window y", pos().y()); in saveSettings()
/scripts/kconfig/lxdialog/
Dinputbox.c36 int show_x, len, pos; in dialog_inputbox() local
89 pos = len; in dialog_inputbox()
118 if (pos) { in dialog_inputbox()
125 if (pos < len) { in dialog_inputbox()
126 for (i = pos - 1; i < len; i++) { in dialog_inputbox()
131 pos--; in dialog_inputbox()
147 if (pos > 0) { in dialog_inputbox()
162 pos--; in dialog_inputbox()
166 if (pos < len) { in dialog_inputbox()
181 pos++; in dialog_inputbox()
[all …]
Dutil.c253 struct subtitle_list *pos; in dialog_clear() local
258 for (pos = dlg.subtitles; pos != NULL; pos = pos->next) { in dialog_clear()
260 len += strlen(pos->text) + 3; in dialog_clear()
270 for (pos = dlg.subtitles; pos != NULL; pos = pos->next) { in dialog_clear()
281 if (skip < strlen(pos->text)) { in dialog_clear()
282 waddstr(stdscr, pos->text + skip); in dialog_clear()
285 skip -= strlen(pos->text); in dialog_clear()
/scripts/mod/
Dsumversion.c306 char *cmd, *file, *line, *dir, *pos; in parse_source_files() local
327 pos = file; in parse_source_files()
330 while ((line = get_line(&pos))) { in parse_source_files()
395 char *buf, *pos, *firstline; in get_src_version() local
410 pos = buf; in get_src_version()
411 firstline = get_line(&pos); in get_src_version()
Dmodpost.c2154 if (buf->size - buf->pos < len) { in buf_write()
2158 strncpy(buf->p + buf->pos, s, len); in buf_write()
2159 buf->pos += len; in buf_write()
2406 if (fwrite(b->p, 1, b->pos, file) != b->pos) { in write_buf()
2429 if (st.st_size != b->pos) in write_if_changed()
2432 tmp = NOFAIL(malloc(b->pos)); in write_if_changed()
2433 if (fread(tmp, 1, b->pos, file) != b->pos) in write_if_changed()
2436 if (memcmp(tmp, b->p, b->pos) != 0) in write_if_changed()
2456 char *buf, *pos, *line; in read_dump() local
2463 pos = buf; in read_dump()
[all …]
Dmodpost.h103 int pos; member
Dfile2alias.c1519 buf_write(buf, mod->dev_table_buf.p, mod->dev_table_buf.pos); in add_moddevtable()