| /linux/tools/perf/util/ |
| H A D | strbuf.h | 50 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 …]
|
| H A D | strbuf.c | 20 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()
|
| H A D | dwarf-aux.h | 13 struct strbuf; 126 int die_get_typename_from_type(Dwarf_Die *type_die, struct strbuf *buf); 129 int die_get_typename(Dwarf_Die *vr_die, struct strbuf *buf); 132 int die_get_varname(Dwarf_Die *vr_die, struct strbuf *buf); 162 int die_get_var_range(Dwarf_Die *sp_die, Dwarf_Die *vr_die, struct strbuf *buf);
|
| H A D | pfm.c | 174 print_attr_flags(struct strbuf *buf, const pfm_event_attr_info_t *info) in print_attr_flags() 186 struct strbuf *buf) in print_libpfm_event() 288 struct strbuf storage; in print_libpfm_events()
|
| H A D | probe-event.c | 2033 struct strbuf buf; in synthesize_perf_probe_arg() 2071 struct strbuf buf; in synthesize_perf_probe_point() 2110 struct strbuf buf; in synthesize_perf_probe_command() 2144 struct strbuf *buf, int depth) in __synthesize_probe_trace_arg_ref() 2161 struct strbuf *buf) in synthesize_probe_trace_arg() 2203 synthesize_probe_trace_args(struct probe_trace_event *tev, struct strbuf *buf) in synthesize_probe_trace_args() 2214 synthesize_uprobe_trace_def(struct probe_trace_point *tp, struct strbuf *buf) in synthesize_uprobe_trace_def() 2242 synthesize_kprobe_trace_def(struct probe_trace_point *tp, struct strbuf *buf) in synthesize_kprobe_trace_def() 2257 struct strbuf buf; in synthesize_probe_trace_command() 2360 struct strbuf buf = STRBUF_INIT; in convert_to_perf_probe_event() [all …]
|
| H A D | evlist.h | 26 struct strbuf; 457 void evlist__format_evsels(struct evlist *evlist, struct strbuf *sb, size_t max_length);
|
| H A D | dwarf-aux.c | 1107 int die_get_typename_from_type(Dwarf_Die *type_die, struct strbuf *buf) in die_get_typename_from_type() 1155 int die_get_typename(Dwarf_Die *vr_die, struct strbuf *buf) in die_get_typename() 1172 int die_get_varname(Dwarf_Die *vr_die, struct strbuf *buf) in die_get_varname() 1258 struct strbuf *buf) in die_get_var_innermost_scope() 1320 int die_get_var_range(Dwarf_Die *sp_die, Dwarf_Die *vr_die, struct strbuf *buf) in die_get_var_range()
|
| H A D | metricgroup.c | 451 static int encode_metric_id(struct strbuf *sb, const char *x) in encode_metric_id() 474 static int decode_metric_id(struct strbuf *sb, const char *x) in decode_metric_id() 502 struct strbuf sb = STRBUF_INIT; in decode_all_metric_ids() 558 static int metricgroup__build_event_string(struct strbuf *events, in metricgroup__build_event_string() 1266 struct strbuf events = STRBUF_INIT; in parse_ids()
|
| H A D | parse-events.h | 21 struct strbuf;
|
| H A D | parse-events.c | 43 static int parse_events_terms__to_strbuf(const struct parse_events_terms *terms, struct strbuf *sb); 1456 struct strbuf sb; in parse_events_add_pmu() 1510 struct strbuf sb; in parse_events_add_pmu() 1627 struct strbuf sb; in parse_events_multi_pmu_add() 1642 struct strbuf sb; in parse_events_multi_pmu_add() 2253 struct strbuf sb = STRBUF_INIT; in __parse_events() 2782 static int parse_events_terms__to_strbuf(const struct parse_events_terms *terms, struct strbuf *sb) in parse_events_terms__to_strbuf()
|
| /linux/arch/sparc/kernel/ |
| H A D | iommu.c | 268 struct strbuf *strbuf; in dma_4u_map_phys() local 286 strbuf = dev->archdata.stc; in dma_4u_map_phys() 308 if (strbuf->strbuf_enabled) in dma_4u_map_phys() 330 static void strbuf_flush(struct strbuf *strbuf, struct iommu *iommu, in strbuf_flush() argument 336 if (strbuf->strbuf_ctxflush && in strbuf_flush() 341 flushreg = strbuf->strbuf_ctxflush; in strbuf_flush() 342 matchreg = STC_CTXMATCH_ADDR(strbuf, ctx); in strbuf_flush() 367 iommu_write(strbuf->strbuf_pflush, vaddr); in strbuf_flush() 378 STC_FLUSHFLAG_INIT(strbuf); in strbuf_flush() 379 iommu_write(strbuf->strbuf_fsync, strbuf->strbuf_flushflag_pa); in strbuf_flush() [all …]
|
| H A D | sbus.c | 546 struct strbuf *strbuf; in sbus_iommu_init() local 560 strbuf = kzalloc_obj(*strbuf, GFP_ATOMIC); in sbus_iommu_init() 561 if (!iommu || !strbuf) in sbus_iommu_init() 565 op->dev.archdata.stc = strbuf; in sbus_iommu_init() 576 strbuf->strbuf_control = reg_base + STRBUF_CONTROL; in sbus_iommu_init() 577 strbuf->strbuf_pflush = reg_base + STRBUF_PFLUSH; in sbus_iommu_init() 578 strbuf->strbuf_fsync = reg_base + STRBUF_FSYNC; in sbus_iommu_init() 580 strbuf->strbuf_enabled = 1; in sbus_iommu_init() 582 strbuf->strbuf_flushflag = (volatile unsigned long *) in sbus_iommu_init() 583 ((((unsigned long)&strbuf->__flushflag_buf[0]) in sbus_iommu_init() [all …]
|
| H A D | psycho_common.c | 39 struct strbuf *strbuf = &pbm->stc; in psycho_check_stc_error() local 43 if (!strbuf->strbuf_control) in psycho_check_stc_error() 46 err_base = strbuf->strbuf_err_stat; in psycho_check_stc_error() 47 tag_base = strbuf->strbuf_tag_diag; in psycho_check_stc_error() 48 line_base = strbuf->strbuf_line_diag; in psycho_check_stc_error() 60 control = upa_readq(strbuf->strbuf_control); in psycho_check_stc_error() 61 upa_writeq(control | PSYCHO_STRBUF_CTRL_DENAB, strbuf->strbuf_control); in psycho_check_stc_error() 77 upa_writeq(control, strbuf->strbuf_control); in psycho_check_stc_error()
|
| H A D | pci_schizo.c | 134 struct strbuf *strbuf = &pbm->stc; in __schizo_check_stc_error_pbm() local 155 control = upa_readq(strbuf->strbuf_control); in __schizo_check_stc_error_pbm() 157 strbuf->strbuf_control); in __schizo_check_stc_error_pbm() 173 upa_writeq(control, strbuf->strbuf_control); in __schizo_check_stc_error_pbm()
|
| H A D | pci_impl.h | 147 struct strbuf stc;
|
| /linux/drivers/ntb/hw/idt/ |
| H A D | ntb_hw_idt.c | 2339 char *strbuf; in idt_dbgfs_info_read() local 2347 strbuf = kmalloc(size, GFP_KERNEL); in idt_dbgfs_info_read() 2348 if (strbuf == NULL) in idt_dbgfs_info_read() 2352 off += scnprintf(strbuf + off, size - off, in idt_dbgfs_info_read() 2356 off += scnprintf(strbuf + off, size - off, in idt_dbgfs_info_read() 2360 off += scnprintf(strbuf + off, size - off, "Peers:\n"); in idt_dbgfs_info_read() 2362 off += scnprintf(strbuf + off, size - off, in idt_dbgfs_info_read() 2369 off += scnprintf(strbuf + off, size - off, in idt_dbgfs_info_read() 2371 off += scnprintf(strbuf + off, size - off, "PCIe Gen %d x%d lanes\n", in idt_dbgfs_info_read() 2375 off += scnprintf(strbuf + off, size - off, "NTB Mapping Table:\n"); in idt_dbgfs_info_read() [all …]
|
| /linux/drivers/acpi/ |
| H A D | proc.c | 93 char strbuf[5]; in acpi_system_write_wakeup_device() local 99 if (copy_from_user(strbuf, buffer, count)) in acpi_system_write_wakeup_device() 101 strbuf[count] = '\0'; in acpi_system_write_wakeup_device() 102 sscanf(strbuf, "%s", str); in acpi_system_write_wakeup_device()
|
| /linux/net/tipc/ |
| H A D | eth_media.c | 42 char *strbuf, int bufsz) in tipc_eth_addr2str() argument 47 sprintf(strbuf, "%pM", addr->value); in tipc_eth_addr2str()
|
| H A D | bearer.h | 112 char *strbuf,
|
| /linux/fs/hfs/ |
| H A D | dir.c | 53 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/fs/hfsplus/ |
| H A D | dir.c | 135 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_str(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/drivers/android/binder/ |
| H A D | rust_binderfs.c | 493 char strbuf[20 + 1]; in rust_binderfs_create_proc_file() local 499 snprintf(strbuf, sizeof(strbuf), "%u", pid); in rust_binderfs_create_proc_file() 500 return rust_binderfs_create_file(dir, strbuf, &rust_binder_proc_fops, data); in rust_binderfs_create_proc_file()
|
| /linux/arch/sparc/include/asm/ |
| H A D | iommu_64.h | 74 struct strbuf { struct
|
| /linux/tools/perf/ |
| H A D | builtin-list.c | 308 static void fix_escape_fprintf(FILE *fp, struct strbuf *buf, const char *fmt, ...) in fix_escape_fprintf() 374 struct strbuf buf; in json_print_event() 467 struct strbuf buf; in json_print_metric()
|
| /linux/tools/perf/arch/x86/util/ |
| H A D | evsel.c | 184 struct strbuf sb = STRBUF_INIT; in intel_evsel__open_strerror()
|