Home
last modified time | relevance | path

Searched refs:buf_size (Results 1 – 25 of 36) sorted by relevance

12

/illumos-kvm-cmd/
H A Dqemu-option.h51 const char *get_opt_name(char *buf, int buf_size, const char *p, char delim);
52 const char *get_opt_value(char *buf, int buf_size, const char *p);
53 int get_next_param_value(char *buf, int buf_size,
55 int get_param_value(char *buf, int buf_size,
57 int check_params(char *buf, int buf_size,
H A Dcutils.c28 void pstrcpy(char *buf, int buf_size, const char *str) in pstrcpy() argument
33 if (buf_size <= 0) in pstrcpy()
38 if (c == 0 || q >= buf + buf_size - 1) in pstrcpy()
46 char *pstrcat(char *buf, int buf_size, const char *s) in pstrcat() argument
50 if (len < buf_size) in pstrcat()
51 pstrcpy(buf + len, buf_size - len, s); in pstrcat()
H A Dqemu-option.c46 const char *get_opt_name(char *buf, int buf_size, const char *p, char delim) in get_opt_name() argument
52 if (q && (q - buf) < buf_size - 1) in get_opt_name()
70 const char *get_opt_value(char *buf, int buf_size, const char *p) in get_opt_value() argument
81 if (q && (q - buf) < buf_size - 1) in get_opt_value()
91 int get_next_param_value(char *buf, int buf_size, in get_next_param_value() argument
104 *pstr = get_opt_value(buf, buf_size, p); in get_next_param_value()
119 int get_param_value(char *buf, int buf_size, in get_param_value() argument
122 return get_next_param_value(buf, buf_size, tag, &str); in get_param_value()
125 int check_params(char *buf, int buf_size, in check_params() argument
133 p = get_opt_name(buf, buf_size, p, '='); in check_params()
H A Dblock.h188 void bdrv_get_format(BlockDriverState *bs, char *buf, int buf_size);
219 char *bdrv_snapshot_dump(char *buf, int buf_size, QEMUSnapshotInfo *sn);
221 char *get_human_readable_size(char *buf, int buf_size, int64_t size);
H A Dsavevm.c173 int buf_size; /* 0 when writing */ member
468 f->buf_size = len; in qemu_fill_buffer()
536 l = f->buf_size - f->buf_index; in qemu_get_buffer()
539 l = f->buf_size - f->buf_index; in qemu_get_buffer()
558 if (f->buf_index >= f->buf_size) { in qemu_peek_byte()
560 if (f->buf_index >= f->buf_size) in qemu_peek_byte()
571 if (f->buf_index >= f->buf_size) { in qemu_get_byte()
573 if (f->buf_index >= f->buf_size) in qemu_get_byte()
581 return f->buf_offset - f->buf_size + f->buf_index; in qemu_ftell()
600 f->buf_size = 0; in qemu_fseek()
H A Dqemu-common.h146 void pstrcpy(char *buf, int buf_size, const char *str);
147 char *pstrcat(char *buf, int buf_size, const char *s);
H A Dconsole.c60 int buf_size; member
68 l = f->buf_size - f->count; in qemu_fifo_write()
73 l = f->buf_size - f->wptr; in qemu_fifo_write()
78 if (f->wptr >= f->buf_size) in qemu_fifo_write()
95 l = f->buf_size - f->rptr; in qemu_fifo_read()
100 if (f->rptr >= f->buf_size) in qemu_fifo_read()
1459 s->out_fifo.buf_size = sizeof(s->out_fifo_buf); in text_console_do_init()
H A Dqemu-img.c96 static int read_password(char *buf, int buf_size) in read_password() argument
106 if (i < (buf_size - 1)) in read_password()
145 static int read_password(char *buf, int buf_size) in read_password() argument
171 if (i < (buf_size - 1)) in read_password()
H A Dblock.c1433 void bdrv_get_format(BlockDriverState *bs, char *buf, int buf_size) in bdrv_get_format() argument
1438 pstrcpy(buf, buf_size, bs->drv->format_name); in bdrv_get_format()
1974 char *get_human_readable_size(char *buf, int buf_size, int64_t size) in get_human_readable_size() argument
1981 snprintf(buf, buf_size, "%" PRId64, size); in get_human_readable_size()
1986 snprintf(buf, buf_size, "%0.1f%c", in get_human_readable_size()
1991 snprintf(buf, buf_size, "%" PRId64 "%c", in get_human_readable_size()
2002 char *bdrv_snapshot_dump(char *buf, int buf_size, QEMUSnapshotInfo *sn) in bdrv_snapshot_dump() argument
2014 snprintf(buf, buf_size, in bdrv_snapshot_dump()
2035 snprintf(buf, buf_size, in bdrv_snapshot_dump()
H A Dnet.c81 static int get_str_sep(char *buf, int buf_size, const char **pp, int sep) in get_str_sep() argument
91 if (buf_size > 0) { in get_str_sep()
92 if (len > buf_size - 1) in get_str_sep()
93 len = buf_size - 1; in get_str_sep()
/illumos-kvm-cmd/target-ia64/
H A Dfirmware.c50 unsigned long buf_size; // size of hob buffer member
86 static int hob_init(void *buffer ,unsigned long buf_size);
125 hob_init(void *buffer, unsigned long buf_size) in hob_init() argument
130 if (sizeof(HOB_INFO) + sizeof(HOB_GENERIC_HEADER) > buf_size) { in hob_init()
141 phit->buf_size = buf_size; in hob_init()
167 if (phit->length + data_size > phit->buf_size) { in hob_add()
/illumos-kvm-cmd/block/
H A Dcloop.c40 static int cloop_probe(const uint8_t *buf, int buf_size, const char *filename) in cloop_probe() argument
46 if(length>buf_size) in cloop_probe()
47 length=buf_size; in cloop_probe()
H A Dparallels.c56 static int parallels_probe(const uint8_t *buf, int buf_size, const char *filename) in parallels_probe() argument
60 if (buf_size < HEADER_SIZE) in parallels_probe()
H A Dbochs.c93 static int bochs_probe(const uint8_t *buf, int buf_size, const char *filename) in bochs_probe() argument
97 if (buf_size < HEADER_SIZE) in bochs_probe()
H A Dcow.c48 static int cow_probe(const uint8_t *buf, int buf_size, const char *filename) in cow_probe() argument
52 if (buf_size >= sizeof(struct cow_header_v2) && in cow_probe()
H A Draw.c63 static int raw_probe(const uint8_t *buf, int buf_size, const char *filename) in raw_probe() argument
H A Dqcow.c80 static int qcow_probe(const uint8_t *buf, int buf_size, const char *filename) in qcow_probe() argument
84 if (buf_size >= sizeof(QCowHeader) && in qcow_probe()
395 const uint8_t *buf, int buf_size) in decompress_buffer() argument
403 strm->avail_in = buf_size; in decompress_buffer()
H A Dvpc.c144 static int vpc_probe(const uint8_t *buf, int buf_size, const char *filename) in vpc_probe() argument
146 if (buf_size >= 8 && !strncmp((char *)buf, "conectix", 8)) in vpc_probe()
/illumos-kvm-cmd/tests/
H A Dlinux-test.c252 void pstrcpy(char *buf, int buf_size, const char *str) in pstrcpy() argument
257 if (buf_size <= 0) in pstrcpy()
262 if (c == 0 || q >= buf + buf_size - 1) in pstrcpy()
270 char *pstrcat(char *buf, int buf_size, const char *s) in pstrcat() argument
274 if (len < buf_size) in pstrcat()
275 pstrcpy(buf + len, buf_size - len, s); in pstrcat()
/illumos-kvm-cmd/hw/
H A Dloader.c114 void pstrcpy_targphys(const char *name, target_phys_addr_t dest, int buf_size, in pstrcpy_targphys() argument
120 if (buf_size <= 0) return; in pstrcpy_targphys()
121 nulp = memchr(source, 0, buf_size); in pstrcpy_targphys()
125 rom_add_blob_fixed(name, source, buf_size, dest); in pstrcpy_targphys()
126 ptr = rom_ptr(dest + buf_size - 1); in pstrcpy_targphys()
H A Dloader.h20 target_phys_addr_t dest, int buf_size,
H A Dvirtio-serial-bus.c148 size_t buf_size; in do_flush_queued_data() local
151 buf_size = port->elem.out_sg[i].iov_len - port->iov_offset; in do_flush_queued_data()
155 buf_size); in do_flush_queued_data()
160 if (ret == -EAGAIN || (ret >= 0 && ret < buf_size)) { in do_flush_queued_data()
/illumos-kvm-cmd/net/
H A Dslirp.c37 static int get_str_sep(char *buf, int buf_size, const char **pp, int sep) in get_str_sep() argument
47 if (buf_size > 0) { in get_str_sep()
48 if (len > buf_size - 1) in get_str_sep()
49 len = buf_size - 1; in get_str_sep()
/illumos-kvm-cmd/tcg/
H A Dtcg.h378 char *tcg_get_arg_str_i32(TCGContext *s, char *buf, int buf_size, TCGv_i32 arg);
393 char *tcg_get_arg_str_i64(TCGContext *s, char *buf, int buf_size, TCGv_i64 arg);
H A Dtcg.c744 static char *tcg_get_arg_str_idx(TCGContext *s, char *buf, int buf_size, in tcg_get_arg_str_idx() argument
751 pstrcpy(buf, buf_size, ts->name); in tcg_get_arg_str_idx()
754 snprintf(buf, buf_size, "loc%d", idx - s->nb_globals); in tcg_get_arg_str_idx()
756 snprintf(buf, buf_size, "tmp%d", idx - s->nb_globals); in tcg_get_arg_str_idx()
761 char *tcg_get_arg_str_i32(TCGContext *s, char *buf, int buf_size, TCGv_i32 arg) in tcg_get_arg_str_i32() argument
763 return tcg_get_arg_str_idx(s, buf, buf_size, GET_TCGV_I32(arg)); in tcg_get_arg_str_i32()
766 char *tcg_get_arg_str_i64(TCGContext *s, char *buf, int buf_size, TCGv_i64 arg) in tcg_get_arg_str_i64() argument
768 return tcg_get_arg_str_idx(s, buf, buf_size, GET_TCGV_I64(arg)); in tcg_get_arg_str_i64()

Completed in 43 milliseconds

12