Home
last modified time | relevance | path

Searched refs:strbuf (Results 1 – 34 of 34) sorted by relevance

/linux-4.4.14/tools/perf/util/
Dstrbuf.h45 struct strbuf { struct
54 extern void strbuf_init(struct strbuf *buf, ssize_t hint);
55 extern void strbuf_release(struct strbuf *);
56 extern char *strbuf_detach(struct strbuf *, size_t *);
59 static inline ssize_t strbuf_avail(const struct strbuf *sb) { in strbuf_avail()
63 extern void strbuf_grow(struct strbuf *, size_t);
65 static inline void strbuf_setlen(struct strbuf *sb, size_t len) { in strbuf_setlen()
74 static inline void strbuf_addch(struct strbuf *sb, int c) { in strbuf_addch()
80 extern void strbuf_remove(struct strbuf *, size_t pos, size_t len);
82 extern void strbuf_add(struct strbuf *, const void *, size_t);
[all …]
Dstrbuf.c20 void strbuf_init(struct strbuf *sb, ssize_t hint) in strbuf_init()
28 void strbuf_release(struct strbuf *sb) in strbuf_release()
36 char *strbuf_detach(struct strbuf *sb, size_t *sz) in strbuf_detach()
45 void strbuf_grow(struct strbuf *sb, size_t extra) in strbuf_grow()
54 static void strbuf_splice(struct strbuf *sb, size_t pos, size_t len, in strbuf_splice()
73 void strbuf_remove(struct strbuf *sb, size_t pos, size_t len) in strbuf_remove()
78 void strbuf_add(struct strbuf *sb, const void *data, size_t len) in strbuf_add()
85 void strbuf_addv(struct strbuf *sb, const char *fmt, va_list ap) in strbuf_addv()
108 void strbuf_addf(struct strbuf *sb, const char *fmt, ...) in strbuf_addf()
117 ssize_t strbuf_read(struct strbuf *sb, int fd, ssize_t hint) in strbuf_read()
Ddwarf-aux.h124 extern int die_get_typename(Dwarf_Die *vr_die, struct strbuf *buf);
127 extern int die_get_varname(Dwarf_Die *vr_die, struct strbuf *buf);
129 struct strbuf *buf);
Dexec_cmd.c15 struct strbuf d = STRBUF_INIT; in system_path()
70 static void add_path(struct strbuf *out, const char *path) in add_path()
85 struct strbuf new_path = STRBUF_INIT; in setup_path()
Dquote.c20 static void sq_quote_buf(struct strbuf *dst, const char *src) in sq_quote_buf()
42 void sq_quote_argv(struct strbuf *dst, const char** argv, size_t maxlen) in sq_quote_argv()
Dquote.h27 extern void sq_quote_argv(struct strbuf *, const char **argv, size_t maxlen);
Ddwarf-aux.c904 int die_get_typename(Dwarf_Die *vr_die, struct strbuf *buf) in die_get_typename()
947 int die_get_varname(Dwarf_Die *vr_die, struct strbuf *buf) in die_get_varname()
972 struct strbuf *buf) in die_get_var_innermost_scope()
1032 int die_get_var_range(Dwarf_Die *sp_die, Dwarf_Die *vr_die, struct strbuf *buf) in die_get_var_range()
Dparse-options.c10 static struct strbuf error_buf = STRBUF_INIT;
508 struct strbuf buf = STRBUF_INIT; in parse_options_subcommand()
Dhelp.c124 struct strbuf buf = STRBUF_INIT; in list_commands_in_dir()
DBuild28 libperf-y += strbuf.o
Dheader.c1585 struct strbuf sb; in process_cpu_topology()
1695 struct strbuf sb; in process_numa_topology()
1755 struct strbuf sb; in process_pmu_mappings()
Dpmu.c634 struct strbuf buf; in pmu_formats_string()
Dprobe-event.c2162 struct strbuf *result) in perf_probe_event__sprintf()
2202 struct strbuf buf = STRBUF_INIT; in show_perf_probe_event()
Dprobe-finder.c1296 struct strbuf buf; in collect_variables_cb()
/linux-4.4.14/arch/sparc/kernel/
Diommu.c269 struct strbuf *strbuf; in dma_4u_map_page() local
277 strbuf = dev->archdata.stc; in dma_4u_map_page()
300 if (strbuf->strbuf_enabled) in dma_4u_map_page()
320 static void strbuf_flush(struct strbuf *strbuf, struct iommu *iommu, in strbuf_flush() argument
326 if (strbuf->strbuf_ctxflush && in strbuf_flush()
331 flushreg = strbuf->strbuf_ctxflush; in strbuf_flush()
332 matchreg = STC_CTXMATCH_ADDR(strbuf, ctx); in strbuf_flush()
357 iommu_write(strbuf->strbuf_pflush, vaddr); in strbuf_flush()
368 STC_FLUSHFLAG_INIT(strbuf); in strbuf_flush()
369 iommu_write(strbuf->strbuf_fsync, strbuf->strbuf_flushflag_pa); in strbuf_flush()
[all …]
Dsbus.c543 struct strbuf *strbuf; in sbus_iommu_init() local
557 strbuf = kzalloc(sizeof(*strbuf), GFP_ATOMIC); in sbus_iommu_init()
558 if (!iommu || !strbuf) in sbus_iommu_init()
562 op->dev.archdata.stc = strbuf; in sbus_iommu_init()
573 strbuf->strbuf_control = reg_base + STRBUF_CONTROL; in sbus_iommu_init()
574 strbuf->strbuf_pflush = reg_base + STRBUF_PFLUSH; in sbus_iommu_init()
575 strbuf->strbuf_fsync = reg_base + STRBUF_FSYNC; in sbus_iommu_init()
577 strbuf->strbuf_enabled = 1; in sbus_iommu_init()
579 strbuf->strbuf_flushflag = (volatile unsigned long *) in sbus_iommu_init()
580 ((((unsigned long)&strbuf->__flushflag_buf[0]) in sbus_iommu_init()
[all …]
Dpsycho_common.c36 struct strbuf *strbuf = &pbm->stc; in psycho_check_stc_error() local
40 if (!strbuf->strbuf_control) in psycho_check_stc_error()
43 err_base = strbuf->strbuf_err_stat; in psycho_check_stc_error()
44 tag_base = strbuf->strbuf_tag_diag; in psycho_check_stc_error()
45 line_base = strbuf->strbuf_line_diag; in psycho_check_stc_error()
57 control = upa_readq(strbuf->strbuf_control); in psycho_check_stc_error()
58 upa_writeq(control | PSYCHO_STRBUF_CTRL_DENAB, strbuf->strbuf_control); in psycho_check_stc_error()
74 upa_writeq(control, strbuf->strbuf_control); in psycho_check_stc_error()
Dpci_schizo.c129 struct strbuf *strbuf = &pbm->stc; in __schizo_check_stc_error_pbm() local
150 control = upa_readq(strbuf->strbuf_control); in __schizo_check_stc_error_pbm()
152 strbuf->strbuf_control); in __schizo_check_stc_error_pbm()
168 upa_writeq(control, strbuf->strbuf_control); in __schizo_check_stc_error_pbm()
Dpci_impl.h143 struct strbuf stc;
/linux-4.4.14/scripts/dtc/
Dflattree.c259 void *etarget, struct data *strbuf, in flatten_tree() argument
284 nameoff = stringtable_insert(strbuf, prop->name); in flatten_tree()
300 emit->cell(etarget, stringtable_insert(strbuf, "name")); in flatten_tree()
310 flatten_tree(child, emit, etarget, strbuf, vi); in flatten_tree()
376 struct data strbuf = empty_data; in dt_to_blob() local
387 flatten_tree(bi->dt, &bin_emitter, &dtbuf, &strbuf, vi); in dt_to_blob()
393 make_fdt_header(&fdt, vi, reservebuf.len, dtbuf.len, strbuf.len, in dt_to_blob()
426 blob = data_merge(blob, strbuf); in dt_to_blob()
449 static void dump_stringtable_asm(FILE *f, struct data strbuf) in dump_stringtable_asm() argument
454 p = strbuf.val; in dump_stringtable_asm()
[all …]
/linux-4.4.14/drivers/acpi/
Dproc.c99 char strbuf[5]; in acpi_system_write_wakeup_device() local
105 if (copy_from_user(strbuf, buffer, count)) in acpi_system_write_wakeup_device()
107 strbuf[count] = '\0'; in acpi_system_write_wakeup_device()
108 sscanf(strbuf, "%s", str); in acpi_system_write_wakeup_device()
/linux-4.4.14/tools/perf/
Dbuiltin-help.c60 struct strbuf buffer = STRBUF_INIT; in check_emacsclient_version()
110 struct strbuf man_page = STRBUF_INIT; in exec_woman_emacs()
126 struct strbuf man_page = STRBUF_INIT; in exec_man_konqueror()
165 struct strbuf shell_cmd = STRBUF_INIT; in exec_man_cmd()
325 struct strbuf new_path = STRBUF_INIT; in setup_man_path()
384 static int get_html_page_path(struct strbuf *page_path, const char *page) in get_html_page_path()
417 struct strbuf page_path; /* it leaks but we exec bellow */ in show_html_page()
Dperf.c306 struct strbuf buf; in handle_alias()
453 struct strbuf cmd = STRBUF_INIT; in execv_dashed_external()
/linux-4.4.14/net/tipc/
Deth_media.c42 char *strbuf, int bufsz) in tipc_eth_addr2str() argument
47 sprintf(strbuf, "%pM", addr->value); in tipc_eth_addr2str()
Dbearer.h112 char *strbuf,
/linux-4.4.14/fs/hfsplus/
Dxattr.c695 char *strbuf; in hfsplus_listxattr() local
715 strbuf = kmalloc(NLS_MAX_CHARSET_SIZE * HFSPLUS_ATTR_MAX_STRLEN + in hfsplus_listxattr()
717 if (!strbuf) { in hfsplus_listxattr()
751 strbuf, &xattr_name_len)) { in hfsplus_listxattr()
758 if (can_list(strbuf)) in hfsplus_listxattr()
759 res += name_len(strbuf, xattr_name_len); in hfsplus_listxattr()
760 } else if (can_list(strbuf)) { in hfsplus_listxattr()
761 if (size < (res + name_len(strbuf, xattr_name_len))) { in hfsplus_listxattr()
766 strbuf, xattr_name_len); in hfsplus_listxattr()
774 kfree(strbuf); in hfsplus_listxattr()
Ddir.c136 char *strbuf; in hfsplus_readdir() local
148 strbuf = kmalloc(NLS_MAX_CHARSET_SIZE * HFSPLUS_MAX_STRLEN + 1, GFP_KERNEL); in hfsplus_readdir()
149 if (!strbuf) { in hfsplus_readdir()
208 err = hfsplus_uni2asc(sb, &fd.key->cat.name, strbuf, &len); in hfsplus_readdir()
222 if (!dir_emit(ctx, strbuf, len, in hfsplus_readdir()
249 if (!dir_emit(ctx, strbuf, len, in hfsplus_readdir()
278 kfree(strbuf); in hfsplus_readdir()
/linux-4.4.14/fs/hfs/
Ddir.c59 char strbuf[HFS_MAX_NAMELEN]; in hfs_readdir() local
124 len = hfs_mac2asc(sb, strbuf, &fd.key->cat.CName); in hfs_readdir()
131 if (!dir_emit(ctx, strbuf, len, in hfs_readdir()
140 if (!dir_emit(ctx, strbuf, len, in hfs_readdir()
/linux-4.4.14/arch/sparc/include/asm/
Diommu_64.h45 struct strbuf { struct
/linux-4.4.14/drivers/net/wimax/i2400m/
Dcontrol.c283 char *strbuf, size_t strbuf_size) in i2400m_msg_check_status() argument
298 if (strbuf) in i2400m_msg_check_status()
299 snprintf(strbuf, strbuf_size, "%s (%d)", str, status); in i2400m_msg_check_status()
/linux-4.4.14/drivers/video/fbdev/sis/
Dsis_main.c149 char strbuf[16], strbuf1[20]; in sisfb_search_mode() local
181 sprintf(strbuf, "%ux%ux%u", xres, yres, depth); in sisfb_search_mode()
182 nameptr = strbuf; in sisfb_search_mode()
185 sprintf(strbuf, "%ux%ux%u", xres, yres, depth); in sisfb_search_mode()
186 nameptr = strbuf; in sisfb_search_mode()
190 sprintf(strbuf, "%ux%ux8", xres, yres); in sisfb_search_mode()
191 nameptr = strbuf; in sisfb_search_mode()
/linux-4.4.14/drivers/video/fbdev/aty/
Datyfb_base.c3170 char strbuf[16]; in aty_init_lcd() local
3272 sprintf(strbuf, "%d", in aty_init_lcd()
3276 sprintf(strbuf, ",%d", in aty_init_lcd()
3279 strcat(refresh_rates_buf, strbuf); in aty_init_lcd()
/linux-4.4.14/drivers/android/
Dbinder.c2969 char strbuf[11]; in binder_open() local
2971 snprintf(strbuf, sizeof(strbuf), "%u", proc->pid); in binder_open()
2972 proc->debugfs_entry = debugfs_create_file(strbuf, S_IRUGO, in binder_open()
/linux-4.4.14/drivers/scsi/
Dgdth.c201 static char strbuf[MAX_SERBUF+1]; variable
251 i = vsprintf(strbuf,fmt,args); in ser_printk()
252 ser_puts(strbuf); in ser_printk()