Searched refs:buf (Results 1 - 18 of 18) sorted by relevance

/scripts/kconfig/lxdialog/
H A Dtextbox.c32 static const char *buf; variable
63 buf = tbuf;
64 page = buf; /* page is pointer to start of page to be displayed */
139 page = buf;
148 /* point to last char in buf */
149 page = buf + strlen(buf);
269 * 'page' will be updated to point to the desired line in 'buf'.
284 if (page == buf) {
290 if (page == buf) {
[all...]
/scripts/dtc/libfdt/
H A Dfdt_rw.c389 int fdt_open_into(const void *fdt, void *buf, int bufsize) argument
413 err = fdt_move(fdt, buf, bufsize);
416 fdt_set_version(buf, 17);
417 fdt_set_size_dt_struct(buf, struct_size);
418 fdt_set_totalsize(buf, bufsize);
430 tmp = buf;
435 if ((tmp + newsize) > ((char *)buf + bufsize))
440 memmove(buf, tmp, newsize);
442 fdt_set_magic(buf, FDT_MAGIC);
443 fdt_set_totalsize(buf, bufsiz
[all...]
H A Dfdt.c192 int fdt_move(const void *fdt, void *buf, int bufsize) argument
199 memmove(buf, fdt, fdt_totalsize(fdt));
H A Dlibfdt.h193 * @buf: pointer to memory where the device is to be moved
194 * @bufsize: size of the memory space at buf
197 * fdt to the buffer at buf of size bufsize. The buffer may overlap
209 int fdt_move(const void *fdt, void *buf, int bufsize);
435 * @buf: character buffer to contain the returned path (will be overwritten)
436 * @buflen: size of the character buffer at buf
439 * nodeoffset, and records that path in the buffer at buf.
446 * buf contains the absolute path of the node at
456 int fdt_get_path(const void *fdt, int nodeoffset, char *buf, int buflen);
784 int fdt_create(void *buf, in
[all...]
H A Dfdt_ro.c268 int fdt_get_path(const void *fdt, int nodeoffset, char *buf, int buflen) argument
288 } while (buf[p-1] != '/');
296 memcpy(buf + p, name, namelen);
298 buf[p++] = '/';
308 buf[p] = '\0';
H A Dfdt_sw.c88 int fdt_create(void *buf, int bufsize) argument
90 void *fdt = buf;
95 memset(buf, 0, bufsize);
/scripts/mod/
H A Dmodpost.h100 buf_printf(struct buffer *buf, const char *fmt, ...);
103 buf_write(struct buffer *buf, const char *s, int len);
171 void add_moddevtable(struct buffer *buf, struct module *mod);
H A Dmodpost.c1756 void __attribute__((format(printf, 2, 3))) buf_printf(struct buffer *buf, argument
1765 buf_write(buf, tmp, len);
1769 void buf_write(struct buffer *buf, const char *s, int len) argument
1771 if (buf->size - buf->pos < len) {
1772 buf->size += len + SZ;
1773 buf->p = realloc(buf->p, buf->size);
1775 strncpy(buf
2082 struct buffer buf = { }; local
2108 struct buffer buf = { }; local
[all...]
H A Dsumversion.c72 static inline void le32_to_cpu_array(uint32_t *buf, unsigned int words) argument
75 *buf = ntohl(*buf);
76 buf++;
80 static inline void cpu_to_le32_array(uint32_t *buf, unsigned int words) argument
83 *buf = htonl(*buf);
84 buf++;
H A Dfile2alias.c1152 void add_moddevtable(struct buffer *buf, struct module *mod) argument
1154 buf_printf(buf, "\n");
1155 buf_write(buf, mod->dev_table_buf.p, mod->dev_table_buf.pos);
/scripts/kconfig/
H A Dzconf.l302 struct buffer *buf = malloc(sizeof(*buf));
303 memset(buf, 0, sizeof(*buf));
313 buf->parent = current_buf;
314 current_buf = buf;
H A Dgconf.c84 static char buf[256]; local
86 bzero(buf, 256);
89 strcat(buf, "const/");
91 strcat(buf, "check/");
93 strcat(buf, "choice/");
95 strcat(buf, "choiceval/");
97 strcat(buf, "valid/");
99 strcat(buf, "optional/");
101 strcat(buf, "write/");
103 strcat(buf, "change
[all...]
H A Dconfdata.c106 struct stat buf; local
114 if (!stat(fullname, &buf))
585 char buf[256]; local
587 snprintf(buf, sizeof(buf),
593 printer->print_comment(fp, buf, printer_arg);
H A Dnconf.c1212 char buf[1024]; local
1214 vsnprintf(buf, sizeof(buf), fmt, ap);
1215 btn_dialog(main_window, buf, 1, "<OK>");
H A Dexpr.c1115 char buf[32]; local
1116 sprintf(buf, "<unknown type %d>", e->type);
1117 fn(data, NULL, buf);
/scripts/
H A Drecordmcount.c91 uread(int const fd, void *const buf, size_t const count) argument
93 size_t const n = read(fd, buf, count);
102 uwrite(int const fd, void const *const buf, size_t const count) argument
104 size_t const n = write(fd, buf, count);
H A Dkallsyms.c293 char buf[KSYM_NAME_LEN]; local
367 expand_symbol(best_table[i], best_table_len[i], buf);
368 printf("\t.asciz\t\"%s\"\n", buf);
369 off += strlen(buf) + 1;
/scripts/genksyms/
H A Dgenksyms.c219 char buf[20]; local
221 snprintf(buf, sizeof(buf), "%d", enum_counter++);
228 mk_node(buf), NULL);
230 defn = mk_node(buf);

Completed in 1708 milliseconds