Home
last modified time | relevance | path

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

12

/linux-2.6.39/tools/perf/util/
Dstrbuf.h44 struct strbuf { struct
53 extern void strbuf_init(struct strbuf *buf, ssize_t hint);
54 extern void strbuf_release(struct strbuf *);
55 extern char *strbuf_detach(struct strbuf *, size_t *);
58 static inline ssize_t strbuf_avail(const struct strbuf *sb) { in strbuf_avail()
62 extern void strbuf_grow(struct strbuf *, size_t);
64 static inline void strbuf_setlen(struct strbuf *sb, size_t len) { in strbuf_setlen()
73 static inline void strbuf_addch(struct strbuf *sb, int c) { in strbuf_addch()
79 extern void strbuf_remove(struct strbuf *, size_t pos, size_t len);
81 extern void strbuf_add(struct strbuf *, const void *, size_t);
[all …]
Dstrbuf.c19 void strbuf_init(struct strbuf *sb, ssize_t hint) in strbuf_init()
27 void strbuf_release(struct strbuf *sb) in strbuf_release()
35 char *strbuf_detach(struct strbuf *sb, size_t *sz) in strbuf_detach()
44 void strbuf_grow(struct strbuf *sb, size_t extra) in strbuf_grow()
53 static void strbuf_splice(struct strbuf *sb, size_t pos, size_t len, in strbuf_splice()
72 void strbuf_remove(struct strbuf *sb, size_t pos, size_t len) in strbuf_remove()
77 void strbuf_add(struct strbuf *sb, const void *data, size_t len) in strbuf_add()
84 void strbuf_addf(struct strbuf *sb, const char *fmt, ...) in strbuf_addf()
108 ssize_t strbuf_read(struct strbuf *sb, int fd, ssize_t hint) in strbuf_read()
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);
Dhelp.c123 struct strbuf buf = STRBUF_INIT; in list_commands_in_dir()
/linux-2.6.39/arch/sparc/kernel/
Diommu.c358 struct strbuf *strbuf; in dma_4u_map_page() local
366 strbuf = dev->archdata.stc; in dma_4u_map_page()
389 if (strbuf->strbuf_enabled) in dma_4u_map_page()
409 static void strbuf_flush(struct strbuf *strbuf, struct iommu *iommu, in strbuf_flush() argument
415 if (strbuf->strbuf_ctxflush && in strbuf_flush()
420 flushreg = strbuf->strbuf_ctxflush; in strbuf_flush()
421 matchreg = STC_CTXMATCH_ADDR(strbuf, ctx); in strbuf_flush()
446 iommu_write(strbuf->strbuf_pflush, vaddr); in strbuf_flush()
457 STC_FLUSHFLAG_INIT(strbuf); in strbuf_flush()
458 iommu_write(strbuf->strbuf_fsync, strbuf->strbuf_flushflag_pa); in strbuf_flush()
[all …]
Dsbus.c542 struct strbuf *strbuf; in sbus_iommu_init() local
558 strbuf = kzalloc(sizeof(*strbuf), GFP_ATOMIC); in sbus_iommu_init()
559 if (!strbuf) in sbus_iommu_init()
563 op->dev.archdata.stc = strbuf; in sbus_iommu_init()
574 strbuf->strbuf_control = reg_base + STRBUF_CONTROL; in sbus_iommu_init()
575 strbuf->strbuf_pflush = reg_base + STRBUF_PFLUSH; in sbus_iommu_init()
576 strbuf->strbuf_fsync = reg_base + STRBUF_FSYNC; in sbus_iommu_init()
578 strbuf->strbuf_enabled = 1; in sbus_iommu_init()
580 strbuf->strbuf_flushflag = (volatile unsigned long *) in sbus_iommu_init()
581 ((((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_impl.h141 struct strbuf stc;
Dpci_schizo.c128 struct strbuf *strbuf = &pbm->stc; in __schizo_check_stc_error_pbm() local
149 control = upa_readq(strbuf->strbuf_control); in __schizo_check_stc_error_pbm()
151 strbuf->strbuf_control); in __schizo_check_stc_error_pbm()
167 upa_writeq(control, strbuf->strbuf_control); in __schizo_check_stc_error_pbm()
/linux-2.6.39/scripts/dtc/
Dflattree.c259 void *etarget, struct data *strbuf, in flatten_tree() argument
281 nameoff = stringtable_insert(strbuf, prop->name); in flatten_tree()
297 emit->cell(etarget, stringtable_insert(strbuf, "name")); in flatten_tree()
307 flatten_tree(child, emit, etarget, strbuf, vi); in flatten_tree()
373 struct data strbuf = empty_data; in dt_to_blob() local
384 flatten_tree(bi->dt, &bin_emitter, &dtbuf, &strbuf, vi); in dt_to_blob()
390 make_fdt_header(&fdt, vi, reservebuf.len, dtbuf.len, strbuf.len, in dt_to_blob()
423 blob = data_merge(blob, strbuf); in dt_to_blob()
446 static void dump_stringtable_asm(FILE *f, struct data strbuf) in dump_stringtable_asm() argument
451 p = strbuf.val; in dump_stringtable_asm()
[all …]
/linux-2.6.39/tools/perf/
Dbuiltin-help.c73 struct strbuf buffer = STRBUF_INIT; in check_emacsclient_version()
121 struct strbuf man_page = STRBUF_INIT; in exec_woman_emacs()
135 struct strbuf man_page = STRBUF_INIT; in exec_man_konqueror()
169 struct strbuf shell_cmd = STRBUF_INIT; in exec_man_cmd()
322 struct strbuf new_path = STRBUF_INIT; in setup_man_path()
378 static void get_html_page_path(struct strbuf *page_path, const char *page) in get_html_page_path()
407 struct strbuf page_path; /* it leaks but we exec bellow */ in show_html_page()
Dperf.c200 struct strbuf buf; in handle_alias()
364 struct strbuf cmd = STRBUF_INIT; in execv_dashed_external()
/linux-2.6.39/drivers/staging/brcm80211/brcmfmac/
Ddhd_common.c141 struct bcmstrbuf *strbuf = &b; in dhd_dump() local
143 bcm_binit(strbuf, buf, buflen); in dhd_dump()
146 bcm_bprintf(strbuf, "%s\n", dhd_version); in dhd_dump()
147 bcm_bprintf(strbuf, "\n"); in dhd_dump()
148 bcm_bprintf(strbuf, "pub.up %d pub.txoff %d pub.busstate %d\n", in dhd_dump()
150 bcm_bprintf(strbuf, "pub.hdrlen %d pub.maxctl %d pub.rxsz %d\n", in dhd_dump()
152 bcm_bprintf(strbuf, "pub.iswl %d pub.drv_version %ld pub.mac %pM\n", in dhd_dump()
154 bcm_bprintf(strbuf, "pub.bcmerror %d tickcnt %d\n", dhdp->bcmerror, in dhd_dump()
157 bcm_bprintf(strbuf, "dongle stats:\n"); in dhd_dump()
158 bcm_bprintf(strbuf, in dhd_dump()
[all …]
Ddhd_sdio.c1517 dhd_dump_pct(struct bcmstrbuf *strbuf, char *desc, uint num, uint div) in dhd_dump_pct() argument
1522 bcm_bprintf(strbuf, "%s N/A", desc); in dhd_dump_pct()
1526 bcm_bprintf(strbuf, "%s %d.%02d", desc, q1, q2); in dhd_dump_pct()
1530 void dhd_bus_dump(dhd_pub_t *dhdp, struct bcmstrbuf *strbuf) in dhd_bus_dump() argument
1534 bcm_bprintf(strbuf, "Bus SDIO structure:\n"); in dhd_bus_dump()
1535 bcm_bprintf(strbuf, in dhd_bus_dump()
1538 bcm_bprintf(strbuf, in dhd_bus_dump()
1542 bcm_bprintf(strbuf, "intr %d intrcount %d lastintrs %d spurious %d\n", in dhd_bus_dump()
1544 bcm_bprintf(strbuf, "pollrate %d pollcnt %d regfails %d\n", in dhd_bus_dump()
1547 bcm_bprintf(strbuf, "\nAdditional counters:\n"); in dhd_bus_dump()
[all …]
Ddhd_proto.h67 extern void dhd_prot_dump(dhd_pub_t *dhdp, struct bcmstrbuf *strbuf);
Ddhd_bus.h66 extern void dhd_bus_dump(dhd_pub_t *dhdp, struct bcmstrbuf *strbuf);
Ddhd_cdc.c315 void dhd_prot_dump(dhd_pub_t *dhdp, struct bcmstrbuf *strbuf) in dhd_prot_dump() argument
317 bcm_bprintf(strbuf, "Protocol CDC: reqid %d\n", dhdp->prot->reqid); in dhd_prot_dump()
/linux-2.6.39/fs/hfs/
Ddir.c57 char strbuf[HFS_MAX_NAMELEN]; in hfs_readdir() local
123 len = hfs_mac2asc(sb, strbuf, &fd.key->cat.CName); in hfs_readdir()
130 if (filldir(dirent, strbuf, len, filp->f_pos, in hfs_readdir()
139 if (filldir(dirent, strbuf, len, filp->f_pos, in hfs_readdir()
/linux-2.6.39/drivers/acpi/
Dproc.c345 char strbuf[5]; in acpi_system_write_wakeup_device() local
354 if (copy_from_user(strbuf, buffer, len)) in acpi_system_write_wakeup_device()
356 strbuf[len] = '\0'; in acpi_system_write_wakeup_device()
357 sscanf(strbuf, "%s", str); in acpi_system_write_wakeup_device()
/linux-2.6.39/drivers/staging/tidspbridge/dynload/
Dcload.c594 char *strbuf; in dload_strings() local
608 strbuf = (char *)dlthis->mysym->dload_allocate(dlthis->mysym, ssiz + in dload_strings()
612 strbuf = (char *)dlthis->mysym->dload_allocate(dlthis->mysym, ssiz); in dload_strings()
614 if (strbuf == NULL) { in dload_strings()
618 dlthis->str_head = strbuf; in dload_strings()
620 dlthis->str_temp = strbuf + ssiz; in dload_strings()
623 if ((unsigned)(dlthis->strm->read_buffer(dlthis->strm, strbuf, in dload_strings()
630 dload_reorder(strbuf, ssiz, dlthis->reorder_map); in dload_strings()
632 if ((!sec_names_only) && (~dload_checksum(strbuf, ssiz) != in dload_strings()
640 dload_reorder(strbuf, ssiz, in dload_strings()
[all …]
/linux-2.6.39/arch/sparc/include/asm/
Diommu_64.h46 struct strbuf { struct
/linux-2.6.39/fs/hfsplus/
Ddir.c126 char strbuf[HFSPLUS_MAX_STRLEN + 1]; in hfsplus_readdir() local
184 err = hfsplus_uni2asc(sb, &fd.key->cat.name, strbuf, &len); in hfsplus_readdir()
198 if (filldir(dirent, strbuf, len, filp->f_pos, in hfsplus_readdir()
207 if (filldir(dirent, strbuf, len, filp->f_pos, in hfsplus_readdir()
/linux-2.6.39/drivers/net/wimax/i2400m/
Dcontrol.c281 char *strbuf, size_t strbuf_size) in i2400m_msg_check_status() argument
296 if (strbuf) in i2400m_msg_check_status()
297 snprintf(strbuf, strbuf_size, "%s (%d)", str, status); in i2400m_msg_check_status()

12