Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 25 of 127) sorted by relevance

123456

/xen/tools/console/testsuite/
A Dconsole-dom0.c12 static void generate_random_buffer(char *buffer, size_t size) in generate_random_buffer() argument
17 buffer[i] = random() & 0xFF; in generate_random_buffer()
21 static void canonicalize(char *buffer) in canonicalize() argument
25 reader = writer = buffer; in canonicalize()
37 char buffer[4096]; in main() local
53 while ((line = fgets(buffer, sizeof(buffer), stdin))) { in main()
73 line = fgets(buffer, sizeof(buffer), stdin); in main()
96 generate_random_buffer(buffer, size); in main()
97 fwrite(buffer, size, 1, stdout); in main()
101 line = fgets(buffer, sizeof(buffer), stdin); in main()
A Dconsole-domU.c9 static void canonicalize(char *buffer) in canonicalize() argument
13 reader = writer = buffer; in canonicalize()
25 char buffer[4096]; in main() local
42 line = fgets(buffer, sizeof(buffer), stdin); in main()
/xen/xen/common/coverage/
A Dgcov.c39 size_t gcov_store_uint32(void *buffer, size_t off, uint32_t v) in gcov_store_uint32() argument
43 if ( buffer ) in gcov_store_uint32()
45 data = buffer + off; in gcov_store_uint32()
64 size_t gcov_store_uint64(void *buffer, size_t off, uint64_t v) in gcov_store_uint64() argument
68 if ( buffer ) in gcov_store_uint64()
70 data = buffer + off; in gcov_store_uint64()
109 if ( copy_to_guest_offset(buffer, *off, buf, buf_size) ) in gcov_info_dump_payload()
166 if ( copy_to_guest_offset(buffer, *off, (char*)&payload_size, in gcov_dump_one_record()
172 return gcov_info_dump_payload(info, buffer, off); in gcov_dump_one_record()
175 static int gcov_dump_all(XEN_GUEST_HANDLE_PARAM(char) buffer, in gcov_dump_all() argument
[all …]
A Dgcc_4_7.c149 size_t gcov_info_to_gcda(char *buffer, const struct gcov_info *info) in gcov_info_to_gcda() argument
159 pos += gcov_store_uint32(buffer, pos, GCOV_DATA_MAGIC); in gcov_info_to_gcda()
160 pos += gcov_store_uint32(buffer, pos, info->version); in gcov_info_to_gcda()
161 pos += gcov_store_uint32(buffer, pos, info->stamp); in gcov_info_to_gcda()
168 pos += gcov_store_uint32(buffer, pos, GCOV_TAG_FUNCTION); in gcov_info_to_gcda()
169 pos += gcov_store_uint32(buffer, pos, GCOV_TAG_FUNCTION_LENGTH); in gcov_info_to_gcda()
170 pos += gcov_store_uint32(buffer, pos, fi_ptr->ident); in gcov_info_to_gcda()
171 pos += gcov_store_uint32(buffer, pos, fi_ptr->lineno_checksum); in gcov_info_to_gcda()
172 pos += gcov_store_uint32(buffer, pos, fi_ptr->cfg_checksum); in gcov_info_to_gcda()
182 pos += gcov_store_uint32(buffer, pos, in gcov_info_to_gcda()
[all …]
A Dgcov.h35 size_t gcov_info_to_gcda(char *buffer, const struct gcov_info *info);
37 size_t gcov_store_uint32(void *buffer, size_t off, uint32_t v);
38 size_t gcov_store_uint64(void *buffer, size_t off, uint64_t v);
A Dllvm.c108 static int dump(XEN_GUEST_HANDLE_PARAM(char) buffer, uint32_t *buf_size) in dump() argument
126 copy_to_guest_offset(buffer, off, (const char *)src, size); \ in dump()
135 clear_guest_offset(buffer, off, *buf_size - off); in dump()
/xen/tools/libxl/
A Dosdeps.c26 int vasprintf(char **buffer, const char *fmt, va_list ap) in vasprintf() argument
31 *buffer = 0; in vasprintf()
33 nchars = vsnprintf(*buffer, 0, fmt, ap); in vasprintf()
40 tmpbuff = (char*)realloc(*buffer, size); in vasprintf()
44 free(*buffer); in vasprintf()
48 *buffer=tmpbuff; in vasprintf()
50 nchars = vsnprintf(*buffer, size, fmt, ap); in vasprintf()
57 int asprintf(char **buffer, char *fmt, ...) in asprintf() argument
63 status = vasprintf (buffer, fmt, ap); in asprintf()
/xen/tools/libxc/
A Dxc_mem_paging.c26 unsigned int op, uint64_t gfn, void *buffer) in xc_mem_paging_memop() argument
29 DECLARE_HYPERCALL_BOUNCE(buffer, XC_PAGE_SIZE, in xc_mem_paging_memop()
39 if ( buffer ) in xc_mem_paging_memop()
41 if ( xc_hypercall_bounce_pre(xch, buffer) ) in xc_mem_paging_memop()
47 set_xen_guest_handle(mpo.buffer, buffer); in xc_mem_paging_memop()
52 if ( buffer ) in xc_mem_paging_memop()
53 xc_hypercall_bounce_post(xch, buffer); in xc_mem_paging_memop()
111 uint64_t gfn, void *buffer) in xc_mem_paging_load() argument
115 if ( !buffer ) in xc_mem_paging_load()
119 gfn, buffer); in xc_mem_paging_load()
/xen/tools/console/daemon/
A Dio.c99 struct buffer buffer; argument
313 struct buffer *buffer = &con->buffer; in buffer_append() local
328 buffer->data = realloc(buffer->data, buffer->capacity); in buffer_append()
352 buffer->data + buffer->size - size, in buffer_append()
357 buffer->data + buffer->size - size, in buffer_append()
373 buffer->data + buffer->consumed, in buffer_append()
374 buffer->size - buffer->consumed); in buffer_append()
375 buffer->size -= buffer->consumed; in buffer_append()
382 buffer->data + buffer->max_capacity, in buffer_append()
397 if (buffer->consumed == buffer->size) { in buffer_advance()
[all …]
/xen/tools/xentrace/
A Dmread.c71 if ( h->map[h->last].buffer in mread64()
81 if ( h->map[bind].buffer in mread64()
98 if(h->map[h->clock].buffer == NULL) in mread64()
110 if(h->map[h->clock].buffer) in mread64()
113 munmap(h->map[h->clock].buffer, MREAD_BUF_SIZE); in mread64()
120 h->map[h->clock].buffer = mmap(NULL, MREAD_BUF_SIZE, PROT_READ, in mread64()
124 dprintf(warn, " mmap returned %p\n", h->map[h->clock].buffer); in mread64()
125 if ( h->map[h->clock].buffer == MAP_FAILED ) in mread64()
127 h->map[h->clock].buffer = NULL; in mread64()
137 b=h->map[bind].buffer; in mread64()
/xen/tools/libs/toollog/include/
A Dxentoollog.h116 #define XTL_NEW_LOGGER(LOGGER,buffer) ({ \ argument
119 (buffer).vtable.vmessage = LOGGER##_vmessage; \
120 (buffer).vtable.progress = LOGGER##_progress; \
121 (buffer).vtable.destroy = LOGGER##_destroy; \
125 xtl_log((xentoollog_logger*)&buffer, \
129 *new_consumer = buffer; \
/xen/tools/pygrub/src/fsimage/
A Dfsimage.c48 PyObject * buffer; in fsimage_file_read() local
56 buffer = in fsimage_file_read()
63 if (buffer == NULL) in fsimage_file_read()
70 PyString_AS_STRING(buffer) + bytesread; in fsimage_file_read()
72 PyBytes_AS_STRING(buffer) + bytesread; in fsimage_file_read()
79 Py_DECREF(buffer); in fsimage_file_read()
94 if (_PyString_Resize(&buffer, bytesread + bufsize) < 0) in fsimage_file_read()
96 if (_PyBytes_Resize(&buffer, bytesread + bufsize) < 0) in fsimage_file_read()
103 _PyString_Resize(&buffer, bytesread); in fsimage_file_read()
105 _PyBytes_Resize(&buffer, bytesread); in fsimage_file_read()
[all …]
/xen/xen/arch/x86/cpu/microcode/
A Dcore.c554 char buffer[]; member
567 xfree(buffer); in microcode_update_helper()
578 xfree(buffer); in microcode_update_helper()
585 patch = parse_blob(buffer->buffer, buffer->len); in microcode_update_helper()
586 xfree(buffer); in microcode_update_helper()
671 struct ucode_buf *buffer; in microcode_update() local
679 buffer = xmalloc_flex_struct(struct ucode_buf, buffer, len); in microcode_update()
680 if ( !buffer ) in microcode_update()
683 ret = copy_from_guest(buffer->buffer, buf, len); in microcode_update()
686 xfree(buffer); in microcode_update()
[all …]
/xen/tools/libvchan/
A Dinit.c102 ctrl->read.buffer = ((void*)ctrl->ring) + SMALL_RING_OFFSET; in init_gnt_srv()
105 ctrl->read.buffer = ((void*)ctrl->ring) + LARGE_RING_OFFSET; in init_gnt_srv()
110 if (!ctrl->read.buffer) in init_gnt_srv()
116 ctrl->write.buffer = ((void*)ctrl->ring) + SMALL_RING_OFFSET; in init_gnt_srv()
119 ctrl->write.buffer = ((void*)ctrl->ring) + LARGE_RING_OFFSET; in init_gnt_srv()
124 if (!ctrl->write.buffer) in init_gnt_srv()
178 if (!ctrl->write.buffer) in init_gnt_cli()
186 ctrl->read.buffer = ((void*)ctrl->ring) + SMALL_RING_OFFSET; in init_gnt_cli()
189 ctrl->read.buffer = ((void*)ctrl->ring) + LARGE_RING_OFFSET; in init_gnt_cli()
196 if (!ctrl->read.buffer) in init_gnt_cli()
[all …]
/xen/tools/ocaml/libs/xb/
A Dxs_ring_stubs.c55 unsigned char *buffer = Bytes_val(ml_buffer); in ml_interface_read() local
91 memcpy(buffer, intf->req + MASK_XENSTORE_IDX(cons), len); in ml_interface_read()
94 memcpy(buffer, intf->req + MASK_XENSTORE_IDX(cons), data); in ml_interface_read()
95 memcpy(buffer + data, intf->req, len - data); in ml_interface_read()
114 const unsigned char *buffer = Bytes_val(ml_buffer); in ml_interface_write() local
150 memcpy(intf->rsp + MASK_XENSTORE_IDX(prod), buffer, len); in ml_interface_write()
153 memcpy(intf->rsp + MASK_XENSTORE_IDX(prod), buffer, space); in ml_interface_write()
154 memcpy(intf->rsp, buffer + space, len - space); in ml_interface_write()
/xen/tools/xenstore/
A Dxs_lib.c153 char *buffer, size_t buf_len) in xs_perm_to_string() argument
157 *buffer = 'w'; in xs_perm_to_string()
160 *buffer = 'r'; in xs_perm_to_string()
163 *buffer = 'b'; in xs_perm_to_string()
166 *buffer = 'n'; in xs_perm_to_string()
172 snprintf(buffer+1, buf_len-1, "%i", (int)perm->id); in xs_perm_to_string()
A Dxenstored_core.c164 trace("%c", (data->buffer[i] != '\0') ? data->buffer[i] : ' '); in trace_io()
225 out->buffer, conn); in write_messages()
650 vec[i] = data->buffer + off; in get_strings()
706 if (!bdata->buffer) { in send_reply()
771 return in->buffer; in onearg()
782 if (!xs_perm_to_string(&perms->p[i], buffer, sizeof(buffer))) in perms_to_strings()
786 *len + strlen(buffer) + 1); in perms_to_strings()
790 *len += strlen(buffer) + 1; in perms_to_strings()
851 off = atoi(in->buffer + strlen(in->buffer) + 1); in send_directory_part()
1269 permstr = in->buffer + strlen(in->buffer) + 1; in do_set_perms()
[all …]
/xen/xen/common/
A Dunlzma.c64 uint8_t *buffer; member
90 rc->ptr = rc->buffer; in rc_read()
103 rc->buffer = (uint8_t *)buffer; in rc_init()
106 rc->ptr = rc->buffer; in rc_init()
272 uint8_t *buffer; member
300 return wr->buffer[pos]; in peek_old_byte()
305 return wr->buffer[pos]; in peek_old_byte()
607 wr.buffer = output; in unlzma()
612 if (wr.buffer == NULL) in unlzma()
648 *posp = rc.ptr-rc.buffer; in unlzma()
[all …]
/xen/tools/firmware/rombios/32bit/
A Dpmm.c103 uint32_t buffer; member
133 uint8_t buffer[0]; member
182 #define MEMBLK_HEADER_SIZE ((int)(&((memblk_t *)0)->buffer))
186 #define memblk_buffer(_mb) ((uint32_t)(&(_mb)->buffer))
475 pmmDeallocate(uint32_t buffer) in pmmDeallocate() argument
477 memblk_t *mb = buffer_memblk(buffer); in pmmDeallocate()
524 ret = pmmDeallocate(ap->dealloc.buffer); in pmm()
525 PMM_DEBUG("Dealloc buffer=%x ret=%x\n", ap->dealloc.buffer, ret); in pmm()
/xen/xen/include/asm-x86/hvm/
A Demulate.h103 void *buffer);
126 void *buffer, unsigned int size);
128 const void *buffer, unsigned int size);
/xen/xen/arch/arm/
A Dgic-v3-its.c303 void *buffer; in its_map_cbaser() local
309 buffer = _xzalloc(ITS_CMD_QUEUE_SZ, SZ_64K); in its_map_cbaser()
310 if ( !buffer ) in its_map_cbaser()
313 if ( virt_to_maddr(buffer) & ~GENMASK(51, 12) ) in its_map_cbaser()
315 xfree(buffer); in its_map_cbaser()
319 reg |= GITS_VALID_BIT | virt_to_maddr(buffer); in its_map_cbaser()
341 return buffer; in its_map_cbaser()
354 void *buffer; in its_map_baser() local
372 if ( !buffer ) in its_map_baser()
377 xfree(buffer); in its_map_baser()
[all …]
/xen/xen/arch/x86/hvm/
A Demulate.c47 unsigned char buffer[16]; in hvmtrace_io_assist() local
57 *(uint64_t *)buffer = p->addr; in hvmtrace_io_assist()
374 BUG_ON(buffer == NULL); in hvmemul_do_io_buffer()
382 memset(buffer, 0xff, size); in hvmemul_do_io_buffer()
495 void *buffer) in hvmemul_do_pio_buffer() argument
939 if ( size > sizeof(cache->buffer) ) in hvmemul_phys_mmio_access()
963 memcpy(&buffer[offset], &cache->buffer[offset], chunk); in hvmemul_phys_mmio_access()
964 else if ( memcmp(&buffer[offset], &cache->buffer[offset], chunk) != 0 ) in hvmemul_phys_mmio_access()
977 memcpy(&cache->buffer[offset], &buffer[offset], chunk); in hvmemul_phys_mmio_access()
3031 buffer += i; in hvmemul_read_cache()
[all …]
/xen/xen/drivers/acpi/
A Dosl.c58 static char buffer[512]; in acpi_os_vprintf() local
60 vsnprintf(buffer, sizeof(buffer), fmt, args); in acpi_os_vprintf()
62 printk("%s", buffer); in acpi_os_vprintf()
/xen/xen/arch/x86/boot/
A Dmkelf32.c263 char buffer[1024] = {}; in main() local
435 do_write(outfd, buffer, bytes); in main()
439 todo = ((dat_siz - bytes) > sizeof(buffer)) ? in main()
440 sizeof(buffer) : (dat_siz - bytes); in main()
441 do_read(infd, buffer, todo); in main()
442 do_write(outfd, buffer, todo); in main()
458 do_write(outfd, buffer, 4-((sizeof(out_shstrtab)+sizeof(out_shstrtab_extra)+dat_siz)&3)); in main()
463 do_write(outfd, buffer, 4-((sizeof(out_shstrtab)+dat_siz)&3)); in main()
/xen/xen/tools/kconfig/
A Dlexer.l34 struct buffer { struct
35 struct buffer *parent; argument
39 struct buffer *current_buf; argument

Completed in 35 milliseconds

123456