Home
last modified time | relevance | path

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

12

/linux-6.1.9/tools/perf/util/
Dstrbuf.h50 struct strbuf { struct
59 int strbuf_init(struct strbuf *buf, ssize_t hint);
60 void strbuf_release(struct strbuf *buf);
61 char *strbuf_detach(struct strbuf *buf, size_t *);
64 static inline ssize_t strbuf_avail(const struct strbuf *sb) { in strbuf_avail()
68 int strbuf_grow(struct strbuf *buf, size_t);
70 static inline int strbuf_setlen(struct strbuf *sb, size_t len) { in strbuf_setlen()
83 int strbuf_addch(struct strbuf *sb, int c);
85 int strbuf_add(struct strbuf *buf, const void *, size_t);
86 static inline int strbuf_addstr(struct strbuf *sb, const char *s) { in strbuf_addstr()
[all …]
Dstrbuf.c20 int strbuf_init(struct strbuf *sb, ssize_t hint) in strbuf_init()
29 void strbuf_release(struct strbuf *sb) in strbuf_release()
37 char *strbuf_detach(struct strbuf *sb, size_t *sz) in strbuf_detach()
46 int strbuf_grow(struct strbuf *sb, size_t extra) in strbuf_grow()
73 int strbuf_addch(struct strbuf *sb, int c) in strbuf_addch()
84 int strbuf_add(struct strbuf *sb, const void *data, size_t len) in strbuf_add()
94 static int strbuf_addv(struct strbuf *sb, const char *fmt, va_list ap) in strbuf_addv()
128 int strbuf_addf(struct strbuf *sb, const char *fmt, ...) in strbuf_addf()
139 ssize_t strbuf_read(struct strbuf *sb, int fd, ssize_t hint) in strbuf_read()
Ddwarf-aux.h13 struct strbuf;
117 int die_get_typename(Dwarf_Die *vr_die, struct strbuf *buf);
120 int die_get_varname(Dwarf_Die *vr_die, struct strbuf *buf);
121 int die_get_var_range(Dwarf_Die *sp_die, Dwarf_Die *vr_die, struct strbuf *buf);
Ddwarf-aux.c1039 int die_get_typename(Dwarf_Die *vr_die, struct strbuf *buf) in die_get_typename()
1077 int die_get_varname(Dwarf_Die *vr_die, struct strbuf *buf) in die_get_varname()
1101 struct strbuf *buf) in die_get_var_innermost_scope()
1163 int die_get_var_range(Dwarf_Die *sp_die, Dwarf_Die *vr_die, struct strbuf *buf) in die_get_var_range()
1218 struct strbuf *buf __maybe_unused) in die_get_var_range()
Dprobe-event.c1969 struct strbuf buf; in synthesize_perf_probe_arg()
2007 struct strbuf buf; in synthesize_perf_probe_point()
2046 struct strbuf buf; in synthesize_perf_probe_command()
2076 struct strbuf *buf, int depth) in __synthesize_probe_trace_arg_ref()
2093 struct strbuf *buf) in synthesize_probe_trace_arg()
2135 synthesize_probe_trace_args(struct probe_trace_event *tev, struct strbuf *buf) in synthesize_probe_trace_args()
2146 synthesize_uprobe_trace_def(struct probe_trace_point *tp, struct strbuf *buf) in synthesize_uprobe_trace_def()
2174 synthesize_kprobe_trace_def(struct probe_trace_point *tp, struct strbuf *buf) in synthesize_kprobe_trace_def()
2189 struct strbuf buf; in synthesize_probe_trace_command()
2294 struct strbuf buf = STRBUF_INIT; in convert_to_perf_probe_event()
[all …]
Dmetricgroup.c645 static int encode_metric_id(struct strbuf *sb, const char *x) in encode_metric_id()
669 static int decode_metric_id(struct strbuf *sb, const char *x) in decode_metric_id()
697 struct strbuf sb = STRBUF_INIT; in decode_all_metric_ids()
753 static int metricgroup__build_event_string(struct strbuf *events, in metricgroup__build_event_string()
1473 struct strbuf events = STRBUF_INIT; in parse_ids()
Dprobe-file.c779 static int synthesize_sdt_probe_arg(struct strbuf *buf, int i, const char *arg) in synthesize_sdt_probe_arg()
828 struct strbuf buf; in synthesize_sdt_probe_command()
/linux-6.1.9/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.c545 struct strbuf *strbuf; in sbus_iommu_init() local
559 strbuf = kzalloc(sizeof(*strbuf), GFP_ATOMIC); in sbus_iommu_init()
560 if (!iommu || !strbuf) in sbus_iommu_init()
564 op->dev.archdata.stc = strbuf; in sbus_iommu_init()
575 strbuf->strbuf_control = reg_base + STRBUF_CONTROL; in sbus_iommu_init()
576 strbuf->strbuf_pflush = reg_base + STRBUF_PFLUSH; in sbus_iommu_init()
577 strbuf->strbuf_fsync = reg_base + STRBUF_FSYNC; in sbus_iommu_init()
579 strbuf->strbuf_enabled = 1; in sbus_iommu_init()
581 strbuf->strbuf_flushflag = (volatile unsigned long *) in sbus_iommu_init()
582 ((((unsigned long)&strbuf->__flushflag_buf[0]) in sbus_iommu_init()
[all …]
Dpsycho_common.c38 struct strbuf *strbuf = &pbm->stc; in psycho_check_stc_error() local
42 if (!strbuf->strbuf_control) in psycho_check_stc_error()
45 err_base = strbuf->strbuf_err_stat; in psycho_check_stc_error()
46 tag_base = strbuf->strbuf_tag_diag; in psycho_check_stc_error()
47 line_base = strbuf->strbuf_line_diag; in psycho_check_stc_error()
59 control = upa_readq(strbuf->strbuf_control); in psycho_check_stc_error()
60 upa_writeq(control | PSYCHO_STRBUF_CTRL_DENAB, strbuf->strbuf_control); in psycho_check_stc_error()
76 upa_writeq(control, strbuf->strbuf_control); in psycho_check_stc_error()
Dpci_schizo.c131 struct strbuf *strbuf = &pbm->stc; in __schizo_check_stc_error_pbm() local
152 control = upa_readq(strbuf->strbuf_control); in __schizo_check_stc_error_pbm()
154 strbuf->strbuf_control); in __schizo_check_stc_error_pbm()
170 upa_writeq(control, strbuf->strbuf_control); in __schizo_check_stc_error_pbm()
Dpci_impl.h148 struct strbuf stc;
/linux-6.1.9/scripts/dtc/
Dflattree.c237 void *etarget, struct data *strbuf, in flatten_tree() argument
262 nameoff = stringtable_insert(strbuf, prop->name); in flatten_tree()
278 emit->cell(etarget, stringtable_insert(strbuf, "name")); in flatten_tree()
288 flatten_tree(child, emit, etarget, strbuf, vi); in flatten_tree()
353 struct data strbuf = empty_data; in dt_to_blob() local
364 flatten_tree(dti->dt, &bin_emitter, &dtbuf, &strbuf, vi); in dt_to_blob()
370 make_fdt_header(&fdt, vi, reservebuf.len, dtbuf.len, strbuf.len, in dt_to_blob()
410 blob = data_merge(blob, strbuf); in dt_to_blob()
433 static void dump_stringtable_asm(FILE *f, struct data strbuf) in dump_stringtable_asm() argument
438 p = strbuf.val; in dump_stringtable_asm()
[all …]
/linux-6.1.9/drivers/ntb/hw/idt/
Dntb_hw_idt.c2343 char *strbuf; in idt_dbgfs_info_read() local
2351 strbuf = kmalloc(size, GFP_KERNEL); in idt_dbgfs_info_read()
2352 if (strbuf == NULL) in idt_dbgfs_info_read()
2356 off += scnprintf(strbuf + off, size - off, in idt_dbgfs_info_read()
2360 off += scnprintf(strbuf + off, size - off, in idt_dbgfs_info_read()
2364 off += scnprintf(strbuf + off, size - off, "Peers:\n"); in idt_dbgfs_info_read()
2366 off += scnprintf(strbuf + off, size - off, in idt_dbgfs_info_read()
2373 off += scnprintf(strbuf + off, size - off, in idt_dbgfs_info_read()
2375 off += scnprintf(strbuf + off, size - off, "PCIe Gen %d x%d lanes\n", in idt_dbgfs_info_read()
2379 off += scnprintf(strbuf + off, size - off, "NTB Mapping Table:\n"); in idt_dbgfs_info_read()
[all …]
/linux-6.1.9/drivers/acpi/
Dproc.c95 char strbuf[5]; in acpi_system_write_wakeup_device() local
101 if (copy_from_user(strbuf, buffer, count)) in acpi_system_write_wakeup_device()
103 strbuf[count] = '\0'; in acpi_system_write_wakeup_device()
104 sscanf(strbuf, "%s", str); in acpi_system_write_wakeup_device()
/linux-6.1.9/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-6.1.9/fs/hfsplus/
Dxattr.c682 char *strbuf; in hfsplus_listxattr() local
702 strbuf = kmalloc(NLS_MAX_CHARSET_SIZE * HFSPLUS_ATTR_MAX_STRLEN + in hfsplus_listxattr()
704 if (!strbuf) { in hfsplus_listxattr()
738 strbuf, &xattr_name_len)) { in hfsplus_listxattr()
745 if (can_list(strbuf)) in hfsplus_listxattr()
746 res += name_len(strbuf, xattr_name_len); in hfsplus_listxattr()
747 } else if (can_list(strbuf)) { in hfsplus_listxattr()
748 if (size < (res + name_len(strbuf, xattr_name_len))) { in hfsplus_listxattr()
753 strbuf, xattr_name_len); in hfsplus_listxattr()
761 kfree(strbuf); in hfsplus_listxattr()
Ddir.c135 char *strbuf; in hfsplus_readdir() local
147 strbuf = kmalloc(NLS_MAX_CHARSET_SIZE * HFSPLUS_MAX_STRLEN + 1, GFP_KERNEL); in hfsplus_readdir()
148 if (!strbuf) { in hfsplus_readdir()
207 err = hfsplus_uni2asc(sb, &fd.key->cat.name, strbuf, &len); in hfsplus_readdir()
221 if (!dir_emit(ctx, strbuf, len, in hfsplus_readdir()
248 if (!dir_emit(ctx, strbuf, len, in hfsplus_readdir()
283 kfree(strbuf); in hfsplus_readdir()
/linux-6.1.9/fs/hfs/
Ddir.c53 char strbuf[HFS_MAX_NAMELEN]; in hfs_readdir() local
118 len = hfs_mac2asc(sb, strbuf, &fd.key->cat.CName); in hfs_readdir()
125 if (!dir_emit(ctx, strbuf, len, in hfs_readdir()
134 if (!dir_emit(ctx, strbuf, len, in hfs_readdir()
/linux-6.1.9/arch/sparc/include/asm/
Diommu_64.h74 struct strbuf { struct
/linux-6.1.9/fs/
Dlibfs.c1416 char strbuf[DNAME_INLINE_LEN]; in generic_ci_d_compare() local
1429 memcpy(strbuf, str, len); in generic_ci_d_compare()
1430 strbuf[len] = 0; in generic_ci_d_compare()
1431 qstr.name = strbuf; in generic_ci_d_compare()
/linux-6.1.9/tools/perf/bench/
Devlist-open-close.c194 struct strbuf buf; in bench__repeat_event_string()
/linux-6.1.9/tools/perf/
Dbuiltin-help.c72 struct strbuf buffer = STRBUF_INIT; in check_emacsclient_version()
/linux-6.1.9/drivers/android/
Dbinder.c5636 char strbuf[11]; in binder_open() local
5638 snprintf(strbuf, sizeof(strbuf), "%u", proc->pid); in binder_open()
5645 proc->debugfs_entry = debugfs_create_file(strbuf, 0444, in binder_open()
5652 char strbuf[11]; in binder_open() local
5655 snprintf(strbuf, sizeof(strbuf), "%u", proc->pid); in binder_open()
5663 strbuf, &proc_fops, (void *)(unsigned long)proc->pid); in binder_open()
5671 strbuf, error); in binder_open()

12