/openbmc/u-boot/fs/jffs2/ |
H A D | mini_inflate.c | 24 /* associate a stream with a block of data and reset the stream */ 25 static void init_stream(struct bitstream *stream, unsigned char *data, in init_stream() argument 28 stream->error = NO_ERROR; in init_stream() 29 stream->memcpy = inflate_memcpy; in init_stream() 30 stream->decoded = 0; in init_stream() 31 stream->data = data; in init_stream() 32 stream->bit = 0; /* The first bit of the stream is the lsb of the in init_stream() 37 stream->codes.bits = 8; in init_stream() 38 stream->codes.num_symbols = 19; in init_stream() 39 stream->codes.lengths = stream->code_lengths; in init_stream() [all …]
|
/openbmc/phosphor-logging/test/openpower-pels/ |
H A D | stream_test.cpp | 16 #include "extensions/openpower-pels/stream.hpp" 29 Stream stream{data}; in TEST() local 33 stream >> v; in TEST() 38 stream >> v; in TEST() 43 stream >> v; in TEST() 48 stream >> v; in TEST() 53 stream.read(v, 5); in TEST() 57 EXPECT_EQ(stream.remaining(), 0); in TEST() 61 EXPECT_THROW(stream >> v, std::out_of_range); in TEST() 67 Stream stream(data); in TEST() local [all …]
|
H A D | fru_identity_test.cpp | 33 Stream stream{data}; in TEST() local 35 FRUIdentity fru{stream}; in TEST() 48 Stream newStream{newData}; in TEST() 62 Stream stream{data}; in TEST() local 64 FRUIdentity fru{stream}; in TEST() 76 Stream newStream{newData}; in TEST() 87 Stream stream{data}; in TEST() local 89 EXPECT_THROW(FRUIdentity fru{stream}, std::out_of_range); in TEST() 109 Stream stream{data}; in testHWCallout() local 110 fru.flatten(stream); in testHWCallout() [all …]
|
/openbmc/openpower-hw-diags/attn/pel/ |
H A D | stream.hpp | 44 * @class Stream 49 class Stream class 52 Stream() = delete; 53 ~Stream() = default; 54 Stream(const Stream&) = default; 55 Stream& operator=(const Stream&) = default; 56 Stream(Stream&&) = default; 57 Stream& operator=(Stream&&) = default; 64 explicit Stream(std::vector<uint8_t>& data) : _data(data), _offset(0) {} in Stream() function in attn::pel::Stream 72 Stream(std::vector<uint8_t>& data, std::size_t offset) : in Stream() function in attn::pel::Stream [all …]
|
H A D | primary_src.cpp | 8 PrimarySrc::PrimarySrc(Stream& pel) in PrimarySrc() 13 void PrimarySrc::flatten(Stream& stream) const in flatten() 15 stream << _header << _version << _flags << _reserved1B << _wordCount in flatten() 20 stream << word; in flatten() 23 stream.write(_asciiString.data(), _asciiString.size()); in flatten() 26 void PrimarySrc::unflatten(Stream& stream) in unflatten() argument 28 stream >> _header >> _version >> _flags >> _reserved1B >> _wordCount >> in unflatten() 33 stream >> word; in unflatten() 36 stream.read(_asciiString.data(), _asciiString.size()); in unflatten()
|
H A D | private_header.cpp | 8 PrivateHeader::PrivateHeader(Stream& pel) in PrivateHeader() 13 void PrivateHeader::flatten(Stream& stream) const in flatten() 15 stream << _header << _createTimestamp << _commitTimestamp << _creatorID in flatten() 20 void PrivateHeader::unflatten(Stream& stream) in unflatten() argument 22 stream >> _header >> _createTimestamp >> _commitTimestamp >> _creatorID >> in unflatten()
|
/openbmc/phosphor-logging/extensions/openpower-pels/ |
H A D | stream.hpp | 43 * @class Stream 48 class Stream class 51 Stream() = delete; 52 ~Stream() = default; 53 Stream(const Stream&) = default; 54 Stream& operator=(const Stream&) = delete; 55 Stream(Stream&&) = delete; 56 Stream& operator=(Stream&&) = delete; 63 explicit Stream(std::vector<uint8_t>& data) : _data(data), _offset(0) {} in Stream() function in openpower::pels::Stream 71 Stream(std::vector<uint8_t>& data, std::size_t offset) : in Stream() function in openpower::pels::Stream [all …]
|
H A D | generic.hpp | 4 #include "stream.hpp" 32 * Fills in this class's data fields from the stream. 34 * @param[in] pel - the PEL data stream 36 explicit Generic(Stream& pel); 39 * @brief Flatten the section into the stream 41 * @param[in] stream - The stream to write to 43 void flatten(Stream& stream) const override; 67 * @brief Fills in the object from the stream data 69 * @param[in] stream - The stream to read from 71 void unflatten(Stream& stream);
|
H A D | ascii_string.hpp | 4 #include "stream.hpp" 41 * Fills in this class's data fields from the stream. 43 * @param[in] pel - the PEL data stream 45 explicit AsciiString(Stream& stream); 55 * @brief Flatten the object into the stream 57 * @param[in] stream - The stream to write to 59 void flatten(Stream& stream) const; 62 * @brief Fills in the object from the stream data 64 * @param[in] stream - The stream to read from 66 void unflatten(Stream& stream);
|
H A D | failing_mtms.hpp | 6 #include "stream.hpp" 41 * Fills in this class's data fields from the stream. 43 * @param[in] pel - the PEL data stream 45 explicit FailingMTMS(Stream& pel); 48 * @brief Flatten the section into the stream 50 * @param[in] stream - The stream to write to 52 void flatten(Stream& stream) const override; 102 * @brief Fills in the object from the stream data 104 * @param[in] stream - The stream to read from 106 void unflatten(Stream& stream);
|
H A D | private_header.hpp | 5 #include "stream.hpp" 61 * Fills in this class's data fields from the stream. 63 * @param[in] pel - the PEL data stream 66 explicit PrivateHeader(Stream& pel); 69 * @brief Flatten the section into the stream 71 * @param[in] stream - The stream to write to 73 void flatten(Stream& stream) const override; 233 * @brief Fills in the object from the stream data 235 * @param[in] stream - The stream to read from 237 void unflatten(Stream& stream); [all …]
|
H A D | user_data.hpp | 4 #include "stream.hpp" 35 * Fills in this class's data fields from the stream. 37 * @param[in] pel - the PEL data stream 39 explicit UserData(Stream& pel); 57 * @brief Flatten the section into the stream 59 * @param[in] stream - The stream to write to 61 void flatten(Stream& stream) const override; 109 * @brief Fills in the object from the stream data 111 * @param[in] stream - The stream to read from 113 void unflatten(Stream& stream);
|
H A D | mtms.hpp | 3 #include "stream.hpp" 56 * Fills in this class's data fields from the stream. 58 * @param[in] pel - the PEL data stream 60 explicit MTMS(Stream& stream); 164 * @brief Stream extraction operator for MTMS 166 * @param[in] s - the stream 169 * @return Stream& 171 Stream& operator>>(Stream& s, MTMS& mtms); 174 * @brief Stream insertion operator for MTMS 176 * @param[out] s - the stream [all …]
|
/openbmc/u-boot/fs/cramfs/ |
H A D | uncompress.c | 19 * only have one stream, and we'll initialize it only once even if it 28 static z_stream stream; variable 35 inflateReset (&stream); in cramfs_uncompress_block() 37 stream.next_in = src; in cramfs_uncompress_block() 38 stream.avail_in = srclen; in cramfs_uncompress_block() 40 stream.next_out = dst; in cramfs_uncompress_block() 41 stream.avail_out = 4096 * 2; in cramfs_uncompress_block() 43 err = inflate (&stream, Z_FINISH); in cramfs_uncompress_block() 47 return stream.total_out; in cramfs_uncompress_block() 59 stream.zalloc = gzalloc; in cramfs_uncompress_init() [all …]
|
/openbmc/qemu/hw/audio/ |
H A D | virtio-snd.c | 36 static void virtio_snd_pcm_flush(VirtIOSoundPCMStream *stream); 123 * Get a specific stream from the virtio sound card device. 127 * @stream_id: stream id 137 * Get params for a specific stream. 140 * @stream_id: stream id 162 VirtIOSoundPCMStream *stream = NULL; in virtio_snd_handle_pcm_info() local 201 stream = virtio_snd_pcm_get_stream(s, stream_id); in virtio_snd_handle_pcm_info() 202 if (!stream) { in virtio_snd_handle_pcm_info() 203 error_report("Invalid stream id: %"PRIu32, stream_id); in virtio_snd_handle_pcm_info() 207 val = stream->info; in virtio_snd_handle_pcm_info() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/uw-imap/uw-imap/ |
H A D | uw-imap-fix-incompatible-pointer-types.patch | 30 @@ -302,7 +302,7 @@ int mbx_isvalid (MAILSTREAM **stream,char *name,char *tmp,int *ld,char *lock, 39 @@ -776,7 +776,7 @@ void mbx_flag (MAILSTREAM *stream,char *sequence,char *flag,long flags) 40 stream->user_flags[LOCAL->ffuserflag]) || (oldpid != LOCAL->lastpid)) 41 mbx_update_header (stream); 43 - utime (stream->mailbox,tp); 44 + utime (stream->mailbox, (const struct utimbuf *)tp); 48 @@ -1075,7 +1075,7 @@ long mbx_copy (MAILSTREAM *stream,char *sequence,char *mailbox,long options) 55 MM_NOCRITICAL (stream); /* release critical */ 57 @@ -1213,7 +1213,7 @@ long mbx_append (MAILSTREAM *stream,char *mailbox,append_t af,void *data) 66 @@ -1446,7 +1446,7 @@ long mbx_parse (MAILSTREAM *stream) [all …]
|
H A D | 0001-Fix-Wincompatible-function-pointer-types.patch | 30 @@ -103,8 +103,8 @@ long mh_copy (MAILSTREAM *stream,char *sequence,char *mailbox, 32 long mh_append (MAILSTREAM *stream,char *mailbox,append_t af,void *data); 41 @@ -1194,7 +1194,7 @@ long mh_append (MAILSTREAM *stream,char *mailbox,append_t af,void *data) 63 @@ -125,7 +125,7 @@ long mix_unsubscribe (MAILSTREAM *stream,char *mailbox); 64 long mix_create (MAILSTREAM *stream,char *mailbox); 65 long mix_delete (MAILSTREAM *stream,char *mailbox); 66 long mix_rename (MAILSTREAM *stream,char *old,char *newname); 69 MAILSTREAM *mix_open (MAILSTREAM *stream); 70 void mix_close (MAILSTREAM *stream,long options); 71 void mix_abort (MAILSTREAM *stream); [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-multimedia/libmad/libmad/ |
H A D | CVE-2017-8374.patch | 41 int decode_header(struct mad_header *header, struct mad_stream *stream) 49 + mad_bit_init(&bufend_ptr, stream->bufend); 52 + if (mad_bit_length(&stream->ptr, &bufend_ptr) < 32) { 53 + stream->error = MAD_ERROR_BUFLEN; 58 mad_bit_skip(&stream->ptr, 11); 59 @@ -225,8 +232,13 @@ int decode_header(struct mad_header *header, struct mad_stream *stream) 65 + if (mad_bit_length(&stream->ptr, &bufend_ptr) < 16) { 66 + stream->error = MAD_ERROR_BUFLEN; 69 header->crc_target = mad_bit_read(&stream->ptr, 16); 74 @@ -338,7 +350,7 @@ int mad_header_decode(struct mad_header *header, struct mad_stream *stream) [all …]
|
H A D | CVE-2017-8372_CVE-2017-8373.patch | 25 The previous frame data is stored in *stream->main_data and contains 26 stream->md_len bytes. If stream->md_len is larger than the data we 44 @@ -2608,6 +2608,11 @@ int mad_layer_III(struct mad_stream *stream, struct mad_frame *frame) 49 + stream->error = MAD_ERROR_LOSTSYNC; 50 + stream->sync = 0; 56 @@ -2625,8 +2630,11 @@ int mad_layer_III(struct mad_stream *stream, struct mad_frame *frame) 61 - *stream->main_data + stream->md_len - si.main_data_begin); 62 + memmove(stream->main_data, 63 + *stream->main_data + stream->md_len - si.main_data_begin, 65 + stream->md_len = si.main_data_begin; [all …]
|
/openbmc/u-boot/fs/btrfs/ |
H A D | compression.c | 66 z_stream stream; in decompress_zlib() local 70 memset(&stream, 0, sizeof(stream)); in decompress_zlib() 74 stream.total_in = 0; in decompress_zlib() 76 stream.next_out = dbuf; in decompress_zlib() 77 stream.avail_out = dlen; in decompress_zlib() 78 stream.total_out = 0; in decompress_zlib() 89 if (Z_OK != inflateInit2(&stream, wbits)) in decompress_zlib() 92 while (stream.total_in < clen) { in decompress_zlib() 93 stream.next_in = cbuf + stream.total_in; in decompress_zlib() 94 stream.avail_in = min((u32) (clen - stream.total_in), in decompress_zlib() [all …]
|
/openbmc/qemu/ui/ |
H A D | vnc-clipboard.c | 31 z_stream stream = { in inflate_buffer() local 41 stream.next_out = out + stream.total_out; in inflate_buffer() 42 stream.avail_out = out_len - stream.total_out; in inflate_buffer() 44 ret = inflateInit(&stream); in inflate_buffer() 49 while (stream.avail_in) { in inflate_buffer() 50 ret = inflate(&stream, Z_FINISH); in inflate_buffer() 55 *size = stream.total_out; in inflate_buffer() 56 inflateEnd(&stream); in inflate_buffer() 64 stream.next_out = out + stream.total_out; in inflate_buffer() 65 stream.avail_out = out_len - stream.total_out; in inflate_buffer() [all …]
|
/openbmc/openbmc-tools/dbus-pcap/ |
H A D | dbus-pcap | 178 self.stream = iter(buf) 191 _ = bytes(islice(self.stream, advance)) 195 val = islice(self.stream, size) 207 remaining = bytes(self.stream) 246 def parse_fixed(endian, stream, tc): argument 249 val = bytes(stream.autotake(tc)) 263 stream.dump_assert(False) 266 def parse_string(endian, stream, tc): argument 269 size = parse_fixed(endian, stream, TypeContainer(prop.nature, None)) 273 # stream.dump_assert(size > 0) [all …]
|
/openbmc/qemu/audio/ |
H A D | paaudio.c | 32 pa_stream *stream; member 38 pa_stream *stream; member 85 #define CHECK_DEAD_GOTO(c, stream, label, msg) \ argument 88 !(stream) || !PA_STREAM_IS_GOOD (pa_stream_get_state ((stream)))) { \ 90 ((stream) && pa_stream_get_state ((stream)) == PA_STREAM_FAILED)) { \ 107 CHECK_DEAD_GOTO(c, p->stream, unlock_and_fail, in qpa_get_buffer_in() 111 r = pa_stream_peek(p->stream, &p->read_data, &p->read_length); in qpa_get_buffer_in() 135 CHECK_DEAD_GOTO(c, p->stream, unlock, in qpa_put_buffer_in() 144 r = pa_stream_drop(p->stream); in qpa_put_buffer_in() 160 CHECK_DEAD_GOTO(c, p->stream, unlock_and_fail, in qpa_read() [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 030 | 59 self.vm.cmd('block-stream', device='drive0') 79 self.vm.cmd('block-stream', device='mid', job_id='stream-mid') 81 self.wait_until_completed(drive='stream-mid') 95 self.vm.cmd('block-stream', device='drive0') 128 self.vm.cmd('block-stream', device='drive0', base=mid_img) 142 self.vm.cmd('block-stream', device='drive0', base=backing_img) 155 result = self.vm.qmp('block-stream', device='nonexistent') 160 result = self.vm.qmp('block-stream', device='mid') 180 result = self.vm.qmp('block-stream', job_id='stream', 188 num_ops = 4 # Number of parallel block-stream operations [all …]
|
/openbmc/qemu/qapi/ |
H A D | audio.json | 59 # @in: options of the capture stream 61 # @out: options of the playback stream 75 # @in: options of the capture stream 77 # @out: options of the playback stream 117 # @in: options of the capture stream 119 # @out: options of the playback stream 136 # @in: options of the capture stream 138 # @out: options of the playback stream 173 # @in: options of the capture stream 175 # @out: options of the playback stream [all …]
|