Home
last modified time | relevance | path

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

123456

/OK3568_Linux_fs/kernel/tools/perf/util/
H A 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 …]
H A 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()
H A 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);
/OK3568_Linux_fs/kernel/arch/sparc/kernel/
H A 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 …]
H A 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 …]
H A 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()
/OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/
H A Ddhd_linux_lb.c576 struct bcmstrbuf *strbuf, uint64 *napi_latency) in dhd_lb_stats_dump_napi_latency() argument
580 bcm_bprintf(strbuf, "napi-latency(us): \t count\n"); in dhd_lb_stats_dump_napi_latency()
582 bcm_bprintf(strbuf, "%16u: \t %llu\n", 1U<<i, napi_latency[i]); in dhd_lb_stats_dump_napi_latency()
587 struct bcmstrbuf *strbuf, uint32 **hist) in dhd_lb_stats_dump_histo() argument
601 bcm_bprintf(strbuf, "CPU: \t\t"); in dhd_lb_stats_dump_histo()
603 bcm_bprintf(strbuf, "%d\t", i); in dhd_lb_stats_dump_histo()
604 bcm_bprintf(strbuf, "\nBin\n"); in dhd_lb_stats_dump_histo()
607 bcm_bprintf(strbuf, "%d:\t\t", 1<<i); in dhd_lb_stats_dump_histo()
609 bcm_bprintf(strbuf, "%d\t", hist[i][j]); in dhd_lb_stats_dump_histo()
611 bcm_bprintf(strbuf, "\n"); in dhd_lb_stats_dump_histo()
[all …]
H A Ddhd_timesync.c255 struct bcmstrbuf strbuf; in dhd_read_proc_ts_tx_dump() local
274 bcm_binit(&strbuf, buf, count); in dhd_read_proc_ts_tx_dump()
275 bcm_bprintf(&strbuf, "Tx Log dump\n"); in dhd_read_proc_ts_tx_dump()
276 dhd_timesync_ts_log_dump_item(&ts->tx_timestamps, &strbuf); in dhd_read_proc_ts_tx_dump()
277 ret = simple_read_from_buffer(user_buf, count, loff, buf, (count - strbuf.size)); in dhd_read_proc_ts_tx_dump()
293 struct bcmstrbuf strbuf; in dhd_read_proc_ts_rx_dump() local
312 bcm_binit(&strbuf, buf, count); in dhd_read_proc_ts_rx_dump()
313 bcm_bprintf(&strbuf, "Rx Log dump\n"); in dhd_read_proc_ts_rx_dump()
314 dhd_timesync_ts_log_dump_item(&ts->rx_timestamps, &strbuf); in dhd_read_proc_ts_rx_dump()
315 ret = simple_read_from_buffer(user_buf, count, loff, buf, (count - strbuf.size)); in dhd_read_proc_ts_rx_dump()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/
H A Ddhd_linux_lb.c576 struct bcmstrbuf *strbuf, uint64 *napi_latency) in dhd_lb_stats_dump_napi_latency() argument
580 bcm_bprintf(strbuf, "napi-latency(us): \t count\n"); in dhd_lb_stats_dump_napi_latency()
582 bcm_bprintf(strbuf, "%16u: \t %llu\n", 1U<<i, napi_latency[i]); in dhd_lb_stats_dump_napi_latency()
587 struct bcmstrbuf *strbuf, uint32 **hist) in dhd_lb_stats_dump_histo() argument
601 bcm_bprintf(strbuf, "CPU: \t\t"); in dhd_lb_stats_dump_histo()
603 bcm_bprintf(strbuf, "%d\t", i); in dhd_lb_stats_dump_histo()
604 bcm_bprintf(strbuf, "\nBin\n"); in dhd_lb_stats_dump_histo()
607 bcm_bprintf(strbuf, "%d:\t\t", 1<<i); in dhd_lb_stats_dump_histo()
609 bcm_bprintf(strbuf, "%d\t", hist[i][j]); in dhd_lb_stats_dump_histo()
611 bcm_bprintf(strbuf, "\n"); in dhd_lb_stats_dump_histo()
[all …]
H A Ddhd_timesync.c255 struct bcmstrbuf strbuf; in dhd_read_proc_ts_tx_dump() local
274 bcm_binit(&strbuf, buf, count); in dhd_read_proc_ts_tx_dump()
275 bcm_bprintf(&strbuf, "Tx Log dump\n"); in dhd_read_proc_ts_tx_dump()
276 dhd_timesync_ts_log_dump_item(&ts->tx_timestamps, &strbuf); in dhd_read_proc_ts_tx_dump()
277 ret = simple_read_from_buffer(user_buf, count, loff, buf, (count - strbuf.size)); in dhd_read_proc_ts_tx_dump()
293 struct bcmstrbuf strbuf; in dhd_read_proc_ts_rx_dump() local
312 bcm_binit(&strbuf, buf, count); in dhd_read_proc_ts_rx_dump()
313 bcm_bprintf(&strbuf, "Rx Log dump\n"); in dhd_read_proc_ts_rx_dump()
314 dhd_timesync_ts_log_dump_item(&ts->rx_timestamps, &strbuf); in dhd_read_proc_ts_rx_dump()
315 ret = simple_read_from_buffer(user_buf, count, loff, buf, (count - strbuf.size)); in dhd_read_proc_ts_rx_dump()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/
H A Ddhd_linux_lb.c546 struct bcmstrbuf *strbuf, uint32 **hist) in dhd_lb_stats_dump_histo() argument
560 bcm_bprintf(strbuf, "CPU: \t\t"); in dhd_lb_stats_dump_histo()
562 bcm_bprintf(strbuf, "%d\t", i); in dhd_lb_stats_dump_histo()
563 bcm_bprintf(strbuf, "\nBin\n"); in dhd_lb_stats_dump_histo()
566 bcm_bprintf(strbuf, "%d:\t\t", 1<<i); in dhd_lb_stats_dump_histo()
568 bcm_bprintf(strbuf, "%d\t", hist[i][j]); in dhd_lb_stats_dump_histo()
570 bcm_bprintf(strbuf, "\n"); in dhd_lb_stats_dump_histo()
572 bcm_bprintf(strbuf, "Per CPU Total \t"); in dhd_lb_stats_dump_histo()
578 bcm_bprintf(strbuf, "%d\t", per_cpu_total[i]); in dhd_lb_stats_dump_histo()
581 bcm_bprintf(strbuf, "\nTotal\t\t%d \n", total); in dhd_lb_stats_dump_histo()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/infineon/
H A Ddhd_linux_lb.c538 struct bcmstrbuf *strbuf, uint32 **hist) in dhd_lb_stats_dump_histo() argument
552 bcm_bprintf(strbuf, "CPU: \t\t"); in dhd_lb_stats_dump_histo()
554 bcm_bprintf(strbuf, "%d\t", i); in dhd_lb_stats_dump_histo()
555 bcm_bprintf(strbuf, "\nBin\n"); in dhd_lb_stats_dump_histo()
558 bcm_bprintf(strbuf, "%d:\t\t", 1<<i); in dhd_lb_stats_dump_histo()
560 bcm_bprintf(strbuf, "%d\t", hist[i][j]); in dhd_lb_stats_dump_histo()
562 bcm_bprintf(strbuf, "\n"); in dhd_lb_stats_dump_histo()
564 bcm_bprintf(strbuf, "Per CPU Total \t"); in dhd_lb_stats_dump_histo()
570 bcm_bprintf(strbuf, "%d\t", per_cpu_total[i]); in dhd_lb_stats_dump_histo()
573 bcm_bprintf(strbuf, "\nTotal\t\t%d \n", total); in dhd_lb_stats_dump_histo()
[all …]
H A Ddhd_proto.h125 extern void dhd_prot_dump(dhd_pub_t *dhdp, struct bcmstrbuf *strbuf);
169 struct bcmstrbuf *strbuf, const char * fmt);
170 extern void dhd_prot_print_info(dhd_pub_t *dhd, struct bcmstrbuf *strbuf);
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/infineon/bcmdhd/
H A Ddhd_linux_lb.c546 struct bcmstrbuf *strbuf, uint32 **hist) in dhd_lb_stats_dump_histo() argument
560 bcm_bprintf(strbuf, "CPU: \t\t"); in dhd_lb_stats_dump_histo()
562 bcm_bprintf(strbuf, "%d\t", i); in dhd_lb_stats_dump_histo()
563 bcm_bprintf(strbuf, "\nBin\n"); in dhd_lb_stats_dump_histo()
566 bcm_bprintf(strbuf, "%d:\t\t", 1<<i); in dhd_lb_stats_dump_histo()
568 bcm_bprintf(strbuf, "%d\t", hist[i][j]); in dhd_lb_stats_dump_histo()
570 bcm_bprintf(strbuf, "\n"); in dhd_lb_stats_dump_histo()
572 bcm_bprintf(strbuf, "Per CPU Total \t"); in dhd_lb_stats_dump_histo()
578 bcm_bprintf(strbuf, "%d\t", per_cpu_total[i]); in dhd_lb_stats_dump_histo()
581 bcm_bprintf(strbuf, "\nTotal\t\t%d \n", total); in dhd_lb_stats_dump_histo()
[all …]
H A Ddhd_proto.h125 extern void dhd_prot_dump(dhd_pub_t *dhdp, struct bcmstrbuf *strbuf);
169 struct bcmstrbuf *strbuf, const char * fmt);
170 extern void dhd_prot_print_info(dhd_pub_t *dhd, struct bcmstrbuf *strbuf);
/OK3568_Linux_fs/u-boot/scripts/dtc/
H A Dflattree.c251 void *etarget, struct data *strbuf, in flatten_tree() argument
276 nameoff = stringtable_insert(strbuf, prop->name); in flatten_tree()
292 emit->cell(etarget, stringtable_insert(strbuf, "name")); in flatten_tree()
302 flatten_tree(child, emit, etarget, strbuf, vi); in flatten_tree()
367 struct data strbuf = empty_data; in dt_to_blob() local
378 flatten_tree(dti->dt, &bin_emitter, &dtbuf, &strbuf, vi); in dt_to_blob()
384 make_fdt_header(&fdt, vi, reservebuf.len, dtbuf.len, strbuf.len, in dt_to_blob()
424 blob = data_merge(blob, strbuf); in dt_to_blob()
447 static void dump_stringtable_asm(FILE *f, struct data strbuf) in dump_stringtable_asm() argument
452 p = strbuf.val; in dump_stringtable_asm()
[all …]
/OK3568_Linux_fs/kernel/scripts/dtc/
H A Dflattree.c236 void *etarget, struct data *strbuf, in flatten_tree() argument
261 nameoff = stringtable_insert(strbuf, prop->name); in flatten_tree()
277 emit->cell(etarget, stringtable_insert(strbuf, "name")); in flatten_tree()
287 flatten_tree(child, emit, etarget, strbuf, vi); in flatten_tree()
352 struct data strbuf = empty_data; in dt_to_blob() local
363 flatten_tree(dti->dt, &bin_emitter, &dtbuf, &strbuf, vi); in dt_to_blob()
369 make_fdt_header(&fdt, vi, reservebuf.len, dtbuf.len, strbuf.len, in dt_to_blob()
409 blob = data_merge(blob, strbuf); in dt_to_blob()
432 static void dump_stringtable_asm(FILE *f, struct data strbuf) in dump_stringtable_asm() argument
437 p = strbuf.val; in dump_stringtable_asm()
[all …]
/OK3568_Linux_fs/kernel/drivers/ntb/hw/idt/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/acpi/
H A 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()
/OK3568_Linux_fs/kernel/fs/hfsplus/
H A Dxattr.c683 char *strbuf; in hfsplus_listxattr() local
703 strbuf = kmalloc(NLS_MAX_CHARSET_SIZE * HFSPLUS_ATTR_MAX_STRLEN + in hfsplus_listxattr()
705 if (!strbuf) { in hfsplus_listxattr()
739 strbuf, &xattr_name_len)) { in hfsplus_listxattr()
746 if (can_list(strbuf)) in hfsplus_listxattr()
747 res += name_len(strbuf, xattr_name_len); in hfsplus_listxattr()
748 } else if (can_list(strbuf)) { in hfsplus_listxattr()
749 if (size < (res + name_len(strbuf, xattr_name_len))) { in hfsplus_listxattr()
754 strbuf, xattr_name_len); in hfsplus_listxattr()
762 kfree(strbuf); in hfsplus_listxattr()
H A 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()
/OK3568_Linux_fs/kernel/net/tipc/
H A Deth_media.c42 char *strbuf, int bufsz) in tipc_eth_addr2str() argument
47 sprintf(strbuf, "%pM", addr->value); in tipc_eth_addr2str()
/OK3568_Linux_fs/kernel/fs/hfs/
H A 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()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_indep_power/
H A Ddhd_proto.h113 extern void dhd_prot_dump(dhd_pub_t *dhdp, struct bcmstrbuf *strbuf);
156 struct bcmstrbuf *strbuf, const char * fmt);
157 extern void dhd_prot_print_info(dhd_pub_t *dhd, struct bcmstrbuf *strbuf);
H A Ddhd_common.c674 struct bcmstrbuf *strbuf = &b; in dhd_dump() local
680 bcm_binit(strbuf, buf, buflen); in dhd_dump()
683 bcm_bprintf(strbuf, "%s\n", dhd_version); in dhd_dump()
684 bcm_bprintf(strbuf, "\n"); in dhd_dump()
685 bcm_bprintf(strbuf, "pub.up %d pub.txoff %d pub.busstate %d\n", in dhd_dump()
687 bcm_bprintf(strbuf, "pub.hdrlen %u pub.maxctl %u pub.rxsz %u\n", in dhd_dump()
689 bcm_bprintf(strbuf, "pub.iswl %d pub.drv_version %ld pub.mac %s\n", in dhd_dump()
691 bcm_bprintf(strbuf, "pub.bcmerror %d tickcnt %u\n", dhdp->bcmerror, dhdp->tickcnt); in dhd_dump()
693 bcm_bprintf(strbuf, "dongle stats:\n"); in dhd_dump()
694 bcm_bprintf(strbuf, "tx_packets %lu tx_bytes %lu tx_errors %lu tx_dropped %lu\n", in dhd_dump()
[all …]

123456