Home
last modified time | relevance | path

Searched full:buffer (Results 1 – 25 of 2209) sorted by relevance

12345678910>>...89

/openbmc/qemu/util/
H A Dbuffer.c23 #include "qemu/buffer.h"
34 static size_t buffer_req_size(Buffer *buffer, size_t len) in buffer_req_size() argument
37 pow2ceil(buffer->offset + len)); in buffer_req_size()
40 static void buffer_adj_size(Buffer *buffer, size_t len) in buffer_adj_size() argument
42 size_t old = buffer->capacity; in buffer_adj_size()
43 buffer->capacity = buffer_req_size(buffer, len); in buffer_adj_size()
44 buffer->buffer = g_realloc(buffer->buffer, buffer->capacity); in buffer_adj_size()
45 trace_buffer_resize(buffer->name ?: "unnamed", in buffer_adj_size()
46 old, buffer->capacity); in buffer_adj_size()
48 /* make it even harder for the buffer to shrink, reset average size in buffer_adj_size()
[all …]
/openbmc/qemu/include/qemu/
H A Dbuffer.h25 typedef struct Buffer Buffer; typedef
28 * Buffer:
30 * The Buffer object provides a simple dynamically resizing
35 struct Buffer { struct
40 uint8_t *buffer; member
45 * @buffer: the buffer object
46 * @name: buffer name
48 * Optionally attach a name to the buffer, to make it easier
51 void buffer_init(Buffer *buffer, const char *name, ...) argument
56 * @buffer: the buffer object
[all …]
/openbmc/google-misc/subprojects/ncsid/src/platforms/nemora/portable/
H A Dncsi_server.h37 * Build the header for the response to the command in the buffer.
40 * request_buf: buffer containing NC-SI request.
41 * response_buf: buffer, where to put the response. Must be big enough to fit
52 * Construct simple ACK command in the buffer, given the buffer with the
56 * request_buf: buffer containing NC-SI request.
57 * response_buf: buffer, where to put the response. Must be big enough to fit
60 * Returns the size of the response in the buffer.
66 * Construct simple NACK command in the buffer, given the buffer with the
70 * request_buf: buffer containing NC-SI request.
71 * response_buf: buffer, where to put the response. Must be big enough to fit
[all …]
H A Dncsi_client.h69 * The following commands write the message to the buffer provided.
80 * buf: buffer of length >= sizeof(ncsi_set_mac_command_t) where command will
92 * buf: buffer of length >= sizeof(ncsi_simple_command_t) where command will be
112 * buf: buffer of length >= sizeof(ncsi_simple_command_t)
124 * buf: buffer of length >= sizeof(ncsi_simple_command_t)
135 * buf: buffer of length >= sizeof(ncsi_simple_command_t)
144 * buf: buffer of length >= sizeof(ncsi_simple_command_t)
153 * buf: buffer of length >= sizeof(ncsi_simple_command_t)
162 * buf: buffer of length >= sizeof(ncsi_simple_command_t)
171 * buf: buffer of length >= sizeof(ncsi_simple_command_t)
[all …]
/openbmc/u-boot/include/
H A Dbouncebuf.h3 * Generic bounce buffer implementation
14 * GEN_BB_READ -- Data are read from the buffer eg. by DMA hardware.
15 * The source buffer is copied into the bounce buffer (if unaligned, otherwise
16 * the source buffer is used directly) upon start() call, then the operation
17 * requiring the aligned transfer happens, then the bounce buffer is lost upon
22 * GEN_BB_WRITE -- Data are written into the buffer eg. by DMA hardware.
23 * The source buffer starts in an undefined state upon start() call, then the
24 * operation requiring the aligned transfer happens, then the bounce buffer is
25 * copied into the destination buffer (if unaligned, otherwise destination
26 * buffer is used directly) upon stop() call.
[all …]
H A Dhw_sha.h14 * @param in_addr A pointer to the input buffer
15 * @param bufleni Byte length of input buffer
16 * @param out_addr A pointer to the output buffer. When complete
27 * @param in_addr A pointer to the input buffer
28 * @param bufleni Byte length of input buffer
29 * @param out_addr A pointer to the output buffer. When complete
40 * @param in_addr A pointer to the input buffer
41 * @param bufleni Byte length of input buffer
42 * @param out_addr A pointer to the output buffer. When complete
53 * @param in_addr A pointer to the input buffer
[all …]
H A Dcharset.h25 * utf8_get() - get next UTF-8 code point from buffer
35 * utf8_put() - write UTF-8 code point to buffer
38 * @dst: pointer to destination buffer, updated to next position
67 * @dst: destination buffer
68 * @src: source buffer
77 * @dst: destination buffer
78 * @src: source buffer
84 * utf16_get() - get next UTF-16 code point from buffer
94 * utf16_put() - write UTF-16 code point to buffer
97 * @dst: pointer to destination buffer, updated to next position
[all …]
/openbmc/openbmc-test-automation/lib/
H A Descape.tcl6 proc escape_bash_quotes { buffer } { argument
8 # Do a bash-style escape of all single quotes in the buffer and return the result.
23 # buffer The string whose single quotes are to be escaped.
25 regsub -all {'} $buffer {'\''} new_buffer
31 proc quotes_to_curly_braces { buffer } { argument
40 # buffer The string whose quotes are to be converted to curly braces.
44 # set buffer {'Mike'\''s dog'}
45 # print_var buffer
46 # set buffer [quotes_to_curly_braces $buffer]
47 # print_var buffer
[all …]
H A Dprint.tcl100 proc replace_passwords {buffer} { argument
102 …# Replace all registered password found in buffer with a string of asterisks and return the result.
105 # buffer The string to be altered and returned.
110 if { [get_var ::env(GEN_PRINT_DEBUG) 0] } { return $buffer }
111 if { [get_var ::env(DEBUG_SHOW_PASSWORDS) 0] } { return $buffer }
116 if { $password_regex == "" } { return $buffer }
118 regsub -all "${password_regex}" $buffer {********} buffer
119 return $buffer
179 proc sprint { { buffer {} } } { argument
181 # Simply return the user's buffer.
[all …]
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/ncp/libowfat/
H A D0001-fix-incompatible-type-error-with-gcc-15.patch12 …./buffer.h:40:65: error: initialization of 'ssize_t (*)(void)' {aka 'long int (*)(void)'} from inc…
18 buffer.h | 2 +-
19 buffer/buffer_frombuf.c | 2 +-
20 buffer/buffer_stubborn.c | 2 +-
21 buffer/buffer_stubborn2.c | 2 +-
22 buffer/buffer_tosa.c | 2 +-
26 diff --git a/buffer.h b/buffer.h
28 --- a/buffer.h
29 +++ b/buffer.h
30 @@ -24,7 +24,7 @@ typedef struct buffer {
[all …]
/openbmc/qemu/tests/unit/
H A Dtest-bufferiszero.c24 static char buffer[8 * 1024 * 1024]; variable
31 g_assert(buffer_is_zero(buffer, sizeof(buffer))); in test_1()
34 buffer[sizeof(buffer) - 1] = 1; in test_1()
35 g_assert(!buffer_is_zero(buffer, sizeof(buffer))); in test_1()
36 buffer[sizeof(buffer) - 1] = 0; in test_1()
41 buffer[a - 1] = 1; in test_1()
42 buffer[a + s] = 1; in test_1()
43 g_assert(buffer_is_zero(buffer + a, s)); in test_1()
44 buffer[a - 1] = 0; in test_1()
45 buffer[a + s] = 0; in test_1()
[all …]
H A Dtest-xbzrle.c43 uint8_t *buffer = g_malloc0(XBZRLE_PAGE_SIZE); in test_encode_decode_zero() local
50 buffer[1000 + i] = i; in test_encode_decode_zero()
53 buffer[1000 + diff_len + 3] = 103; in test_encode_decode_zero()
54 buffer[1000 + diff_len + 5] = 105; in test_encode_decode_zero()
57 dlen = xbzrle_encode_buffer(buffer, buffer, XBZRLE_PAGE_SIZE, in test_encode_decode_zero()
61 g_free(buffer); in test_encode_decode_zero()
80 /* test unchanged buffer */ in test_encode_decode_unchanged()
91 uint8_t *buffer = g_malloc0(XBZRLE_PAGE_SIZE); in test_encode_decode_1_byte() local
99 dlen = xbzrle_encode_buffer(buffer, test, XBZRLE_PAGE_SIZE, in test_encode_decode_1_byte()
103 rc = xbzrle_decode_buffer(compressed, dlen, buffer, XBZRLE_PAGE_SIZE); in test_encode_decode_1_byte()
[all …]
/openbmc/qemu/audio/
H A Djackaudio.c96 static void qjack_buffer_create(QJackBuffer *buffer, int channels, int frames) in qjack_buffer_create() argument
98 buffer->channels = channels; in qjack_buffer_create()
99 buffer->frames = frames; in qjack_buffer_create()
100 buffer->used = 0; in qjack_buffer_create()
101 buffer->rptr = 0; in qjack_buffer_create()
102 buffer->wptr = 0; in qjack_buffer_create()
103 buffer->data = g_new(float *, channels); in qjack_buffer_create()
105 buffer->data[i] = g_new(float, frames); in qjack_buffer_create()
109 static void qjack_buffer_clear(QJackBuffer *buffer) in qjack_buffer_clear() argument
111 assert(buffer->data); in qjack_buffer_clear()
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/
H A D0002-Fix-gcc-build-problem.patch23 // Turn off clang unsafe buffer warnings as all accessed are guarded by runtime checks
24 -#if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
26 +#if __has_warning("-Wunsafe-buffer-usage")
28 #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
29 -#endif // defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
30 +#endif // __has_warning("-Wunsafe-buffer-usage")
39 -#if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
41 +#if __has_warning("-Wunsafe-buffer-usage")
44 +#endif // __has_warning("-Wunsafe-buffer-usage")
55 // Turn off clang unsafe buffer warnings as all accessed are guarded by runtime checks
[all …]
H A D0001-Fix-initialization-in-test-1140.patch6 * Suppress unsafe-buffer-usage
26 +// Turn off clang unsafe buffer warnings as all accessed are guarded by runtime checks
27 +#if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
29 +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
30 +#endif // defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
39 +#if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
52 +// Turn off clang unsafe buffer warnings as all accessed are guarded by runtime checks
53 +#if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
55 +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
56 +#endif // defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
[all …]
/openbmc/openbmc/meta-raspberrypi/recipes-graphics/userland/files/
H A D0012-implement-buffer-wrapping-interface-for-dispmanx.patch4 Subject: [PATCH] implement buffer wrapping interface for dispmanx
21 buffer->handle);
29 + struct wl_dispmanx_server_buffer *buffer;
40 + buffer = calloc(1, sizeof *buffer);
41 + if (buffer == NULL) {
46 + buffer->handle = handle;
47 + buffer->width = width;
48 + buffer->height = height;
49 + buffer->format = format;
51 + buffer->resource = wl_resource_create(resource->client, &wl_buffer_interface,
[all …]
/openbmc/libpldm/tests/
H A Dutils.cpp38 char buffer[1024]; in TEST() local
39 auto rc = ver2str(&version, buffer, sizeof(buffer)); in TEST()
41 EXPECT_STREQ(vstr, buffer); in TEST()
45 rc = ver2str(&version, buffer, sizeof(buffer)); in TEST()
47 EXPECT_STREQ(vstr, buffer); in TEST()
51 rc = ver2str(&version, buffer, sizeof(buffer)); in TEST()
53 EXPECT_STREQ(vstr, buffer); in TEST()
57 rc = ver2str(&version, buffer, sizeof(buffer)); in TEST()
59 EXPECT_STREQ(vstr, buffer); in TEST()
63 rc = ver2str(&version, buffer, sizeof(buffer)); in TEST()
[all …]
/openbmc/u-boot/arch/arm/mach-bcm283x/
H A Dmbox.c88 void dump_buf(struct bcm2835_mbox_hdr *buffer) in dump_buf() argument
94 p = (u32 *)buffer; in dump_buf()
95 words = buffer->buf_size / 4; in dump_buf()
101 int bcm2835_mbox_call_prop(u32 chan, struct bcm2835_mbox_hdr *buffer) in bcm2835_mbox_call_prop() argument
109 printf("mbox: TX buffer\n"); in bcm2835_mbox_call_prop()
110 dump_buf(buffer); in bcm2835_mbox_call_prop()
113 flush_dcache_range((unsigned long)buffer, in bcm2835_mbox_call_prop()
114 (unsigned long)((void *)buffer + in bcm2835_mbox_call_prop()
115 roundup(buffer->buf_size, ARCH_DMA_MINALIGN))); in bcm2835_mbox_call_prop()
118 phys_to_bus((unsigned long)buffer), in bcm2835_mbox_call_prop()
[all …]
/openbmc/u-boot/doc/
H A DREADME.arm-caches21 - Flush the buffer after the MPU writes the data and before the DMA is
25 - Invalidate the buffer before starting the DMA. In case there are any dirty
26 lines from the DMA buffer in the cache, subsequent cache-line replacements
27 may corrupt the buffer in memory while the DMA is still going on. Cache-line
30 - Invalidate the buffer after the DMA is complete and before the MPU reads
34 happens with the DMA buffer while DMA is going on we have a coherency problem.
36 Buffer Requirements:
37 - Any buffer that is invalidated(that is, typically the peripheral to
38 memory DMA buffer) should be aligned to cache-line boundary both at
39 at the beginning and at the end of the buffer.
[all …]
/openbmc/phosphor-net-ipmid/sol/
H A Dconsole_buffer.hpp16 * The console data is the buffer that holds the data that comes from the host
17 * console which is to be sent to the remote console. The buffer is needed due
19 * buffer is to support one instance of the SOL payload.
24 /** @brief Get the current size of the host console buffer.
26 * @return size of the host console buffer.
36 * console data buffer.
38 * @return iterator to read data from the buffer
47 * This API would append the input data to the host console buffer.
49 * @param[in] input - data to be written to the console buffer.
56 /** @brief Erase console buffer.
[all …]
/openbmc/slpd-lite/
H A Dslp.hpp19 using buffer = std::vector<uint8_t>; typedef
135 /** Parse a buffer and fill the header and the body of the message.
137 * @param[in] buffer - The buffer from which data should be parsed.
144 std::tuple<int, Message> parseBuffer(const buffer& buf);
149 /** Parse header data from the buffer.
151 * @param[in] buffer - The buffer from which data should be parsed.
159 std::tuple<int, Message> parseHeader(const buffer& buf);
163 * @param[in] buffer - The buffer from which data should be parsed.
171 int parseSrvTypeRqst(const buffer& buf, Message& req);
175 * @param[in] buffer - The buffer from which data should be parsed.
[all …]
/openbmc/qemu/hw/audio/
H A Dvirtio-snd.c109 virtio_snd_pcm_buffer_free(VirtIOSoundPCMBuffer *buffer) in virtio_snd_pcm_buffer_free() argument
111 g_free(buffer->elem); in virtio_snd_pcm_buffer_free()
112 g_free(buffer); in virtio_snd_pcm_buffer_free()
190 error_report("pcm info: buffer too small, got: %zu, needed: %zu", in virtio_snd_handle_pcm_info()
583 VirtIOSoundPCMBuffer *buffer, *next; in virtio_snd_pcm_get_io_msgs_count() local
587 QSIMPLEQ_FOREACH_SAFE(buffer, &stream->queue, entry, next) { in virtio_snd_pcm_get_io_msgs_count()
812 VirtIOSoundPCMBuffer *buffer = NULL; in empty_invalid_queue() local
819 buffer = QSIMPLEQ_FIRST(&vsnd->invalid); in empty_invalid_queue()
820 /* If buffer->vq != vq, our logic is fundamentally wrong, so bail out */ in empty_invalid_queue()
821 g_assert(buffer->vq == vq); in empty_invalid_queue()
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/freerdp/freerdp/
H A D0001-Fixed-compilation-warnings-in-ainput-channel.patch20 - BYTE* buffer = NULL;
21 + void* buffer = NULL;
38 - BYTE* buffer = NULL;
43 + } buffer;
46 - if (WTSVirtualChannelQuery(ainput->ainput_channel, WTSVirtualChannelReady, &buffer,
47 + buffer.pv = NULL;
49 + if (WTSVirtualChannelQuery(ainput->ainput_channel, WTSVirtualChannelReady, &buffer.pv,
56 - if (*buffer != 0)
57 + if (*buffer.pb != 0)
65 - WTSFreeMemory(buffer);
[all …]
/openbmc/kcsbridge/src/
H A Dcmd.cpp31 std::array<uint8_t, 1024> buffer; in write() local
32 std::span<uint8_t> out(buffer.begin(), 3); in write()
47 if (data.size() + 3 > buffer.size()) in write()
50 "too large {} > {}", data.size() + 3, buffer.size())); in write()
52 buffer[0] = (netfn | 1) << 2; in write()
53 buffer[0] |= lun; in write()
54 buffer[1] = cmd; in write()
55 buffer[2] = cc; in write()
56 memcpy(&buffer[3], data.data(), data.size()); in write()
57 out = std::span<uint8_t>(buffer.begin(), data.size() + 3); in write()
[all …]
/openbmc/qemu/hw/char/
H A Dxen_console.c40 struct buffer { struct
52 struct buffer buffer; argument
66 struct buffer *buffer = &con->buffer; in OBJECT_DECLARE_SIMPLE_TYPE() local
78 if ((buffer->capacity - buffer->size) < size) { in OBJECT_DECLARE_SIMPLE_TYPE()
79 buffer->capacity += (size + 1024); in OBJECT_DECLARE_SIMPLE_TYPE()
80 buffer->data = g_realloc(buffer->data, buffer->capacity); in OBJECT_DECLARE_SIMPLE_TYPE()
84 buffer->data[buffer->size++] = intf->out[ in OBJECT_DECLARE_SIMPLE_TYPE()
91 if (buffer->max_capacity && in OBJECT_DECLARE_SIMPLE_TYPE()
92 buffer->size > buffer->max_capacity) { in OBJECT_DECLARE_SIMPLE_TYPE()
95 size_t over = buffer->size - buffer->max_capacity; in OBJECT_DECLARE_SIMPLE_TYPE()
[all …]

12345678910>>...89