Home
last modified time | relevance | path

Searched refs:stream (Results 1 – 25 of 384) sorted by relevance

12345678910>>...16

/openbmc/u-boot/fs/jffs2/
H A Dmini_inflate.c25 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()
40 stream->codes.symbols = stream->code_symbols; in init_stream()
[all …]
/openbmc/phosphor-logging/test/openpower-pels/
H A Dstream_test.cpp17 Stream stream{data}; in TEST() local
21 stream >> v; in TEST()
26 stream >> v; in TEST()
31 stream >> v; in TEST()
36 stream >> v; in TEST()
41 stream.read(v, 5); in TEST()
45 EXPECT_EQ(stream.remaining(), 0); in TEST()
49 EXPECT_THROW(stream >> v, std::out_of_range); in TEST()
55 Stream stream(data); in TEST() local
61 stream << v3 << v2 << v4 << v1; in TEST()
[all …]
H A Dpel_utils.cpp205 Stream stream{src}; in pelDataFactory() local
207 stream.offset(2); // In the header in pelDataFactory()
208 stream << size; in pelDataFactory()
212 stream.offset(8 + 6); in pelDataFactory()
213 stream << size; in pelDataFactory()
245 Stream stream{data}; in pelFactory() local
246 stream.offset(createTimestampPHOffset); in pelFactory()
247 stream << timestamp; in pelFactory()
248 stream.offset(commitTimestampPHOffset); in pelFactory()
249 stream << timestamp; in pelFactory()
[all …]
H A Dfru_identity_test.cpp21 Stream stream{data}; in TEST() local
23 FRUIdentity fru{stream}; in TEST()
50 Stream stream{data}; in TEST() local
52 FRUIdentity fru{stream}; in TEST()
75 Stream stream{data}; in TEST() local
77 EXPECT_THROW(FRUIdentity fru{stream}, std::out_of_range); in TEST()
97 Stream stream{data}; in testHWCallout() local
98 fru.flatten(stream); in testHWCallout()
102 stream.offset(0); in testHWCallout()
103 FRUIdentity newFRU{stream}; in testHWCallout()
[all …]
/openbmc/u-boot/fs/cramfs/
H A Duncompress.c28 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()
60 stream.zfree = gzfree; in cramfs_uncompress_init()
[all …]
/openbmc/qemu/hw/audio/
H A Dvirtio-snd.c36 static void virtio_snd_pcm_flush(VirtIOSoundPCMStream *stream);
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()
207 val = stream->info; in virtio_snd_handle_pcm_info()
389 static void virtio_snd_pcm_close(VirtIOSoundPCMStream *stream) in virtio_snd_pcm_close() argument
391 if (stream) { in virtio_snd_pcm_close()
392 virtio_snd_pcm_flush(stream); in virtio_snd_pcm_close()
393 if (stream->info.direction == VIRTIO_SND_D_OUTPUT) { in virtio_snd_pcm_close()
394 AUD_close_out(&stream->pcm->snd->card, stream->voice.out); in virtio_snd_pcm_close()
[all …]
/openbmc/u-boot/fs/btrfs/
H A Dcompression.c66 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/openbmc/meta-openembedded/meta-oe/recipes-multimedia/libmad/libmad/
H A DCVE-2017-8374.patch41 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 DCVE-2017-8372_CVE-2017-8373.patch25 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/qemu/ui/
H A Dvnc-clipboard.c31 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/meta-openembedded/meta-oe/recipes-devtools/uw-imap/uw-imap/
H A Duw-imap-fix-incompatible-pointer-types.patch30 @@ -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 D0001-Fix-Wincompatible-function-pointer-types.patch30 @@ -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 …]
H A D0001-Support-OpenSSL-1.1.patch22 @@ -227,8 +227,16 @@ static char *ssl_start_work (SSLSTREAM *stream,char *host,unsigned long flags)
25 SSL_CTX_set_verify (stream->context,SSL_VERIFY_NONE,NIL);
26 - else SSL_CTX_set_verify (stream->context,SSL_VERIFY_PEER,ssl_open_verify);
29 + X509_VERIFY_PARAM *param = SSL_CTX_get0_param(stream->context);
34 + SSL_CTX_set_verify (stream->context,SSL_VERIFY_PEER,ssl_open_verify);
37 SSL_CTX_set_default_verify_paths (stream->context);
40 @@ -266,6 +274,7 @@ static char *ssl_start_work (SSLSTREAM *stream,char *host,unsigned long flags)
41 if (SSL_write (stream->con,"",0) < 0)
46 (err = ssl_validate_cert (cert = SSL_get_peer_certificate (stream->con),
48 @@ -275,6 +284,7 @@ static char *ssl_start_work (SSLSTREAM *stream,char *host,unsigned long flags)
/openbmc/phosphor-buttons/src/
H A Dgpio.cpp157 std::fstream stream; in configGpio() local
159 stream.exceptions(std::ifstream::failbit | std::ifstream::badbit); in configGpio()
173 stream.open(devPath, std::fstream::out); in configGpio()
176 stream << gpioNum; in configGpio()
177 stream.close(); in configGpio()
194 stream.open(devPath, std::fstream::in); in configGpio()
197 stream >> currentValue; in configGpio()
198 stream.close(); in configGpio()
213 stream.open(devPath, std::fstream::out); in configGpio()
216 stream << direction; in configGpio()
[all …]
/openbmc/smbios-mdr/src/
H A Dsystem.cpp44 std::stringstream stream; in uuid() local
45 stream << std::setfill('0') << std::hex; in uuid()
46 stream << std::setw(8) << systemInfo->uuid.timeLow; in uuid()
47 stream << "-"; in uuid()
48 stream << std::setw(4) << systemInfo->uuid.timeMid; in uuid()
49 stream << "-"; in uuid()
50 stream << std::setw(4) << systemInfo->uuid.timeHiAndVer; in uuid()
51 stream << "-"; in uuid()
52 stream << std::setw(2) << static_cast<int>(systemInfo->uuid.clockSeqHi); in uuid()
53 stream << std::setw(2) in uuid()
[all …]
/openbmc/openpower-hw-diags/attn/pel/
H A Dprimary_src.cpp13 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()
/openbmc/qemu/disas/
H A Dxtensa.c50 info->fprintf_func(info->stream, ".byte 0x%02x", buffer[0]); in print_insn_xtensa()
57 info->fprintf_func(info->stream, ".byte 0x%02x", buffer[0]); in print_insn_xtensa()
69 info->fprintf_func(info->stream, "%s 0x%02x", in print_insn_xtensa()
77 info->fprintf_func(info->stream, "{ "); in print_insn_xtensa()
85 info->fprintf_func(info->stream, "; "); in print_insn_xtensa()
90 info->fprintf_func(info->stream, "???"); in print_insn_xtensa()
95 info->fprintf_func(info->stream, "%s", xtensa_opcode_name(isa, opc)); in print_insn_xtensa()
102 info->fprintf_func(info->stream, vopnd ? ", " : "\t"); in print_insn_xtensa()
107 info->fprintf_func(info->stream, "???"); in print_insn_xtensa()
111 info->fprintf_func(info->stream, "%s%d", in print_insn_xtensa()
[all …]
H A Dcapstone.c109 FILE *stream = info->stream; in cap_dump_insn_units() local
115 print(stream, " %08x", ldl_be_p(insn->bytes + i)); in cap_dump_insn_units()
120 print(stream, " %08x", ldl_le_p(insn->bytes + i)); in cap_dump_insn_units()
128 print(stream, " %04x", lduw_be_p(insn->bytes + i)); in cap_dump_insn_units()
132 print(stream, " %04x", lduw_le_p(insn->bytes + i)); in cap_dump_insn_units()
139 print(stream, " %02x", insn->bytes[i]); in cap_dump_insn_units()
148 FILE *stream = info->stream; in cap_dump_insn() local
151 print(stream, "0x%08" PRIx64 ": ", insn->address); in cap_dump_insn()
163 print(stream, "%*s", width, ""); in cap_dump_insn()
167 print(stream, " %-8s %s\n", insn->mnemonic, insn->op_str); in cap_dump_insn()
[all …]
H A Dhppa.c1784 #define fputs_filtered(STR,F) (*info->fprintf_func) (info->stream, "%s", STR)
1789 (*info->fprintf_func) (info->stream, "%s", reg ? reg_names[reg] : "r0"); in fput_reg()
1795 (*info->fprintf_func) (info->stream, "%s", reg ? fp_reg_names[reg] : "fr0"); in fput_fp_reg()
1803 (*info->fprintf_func) (info->stream, "fpe%d", reg * 2 + 1); in fput_fp_reg_r()
1805 (*info->fprintf_func) (info->stream, "%sR", fp_reg_names[reg]); in fput_fp_reg_r()
1811 (*info->fprintf_func) (info->stream, "%s", control_reg[reg]); in fput_creg()
1817 (*info->fprintf_func) (info->stream, "dr%d", reg); in fput_dreg()
1826 (*info->fprintf_func) (info->stream, "-%x", - (int) num); in fput_const()
1828 (*info->fprintf_func) (info->stream, "%x", num); in fput_const()
1992 info->fprintf_func(info->stream, " %02x %02x %02x %02x ", in print_insn_hppa()
[all …]
H A Dsh4.c1162 fprintf_function fprintf_fn, void *stream) in print_movxy() argument
1166 fprintf_fn (stream, "%s\t", op->name); in print_movxy()
1176 fprintf_fn (stream, "@r%d", rn); in print_movxy()
1183 fprintf_fn (stream, "@r%d+", rn); in print_movxy()
1187 fprintf_fn (stream, "@r%d+r8", rn); in print_movxy()
1191 fprintf_fn (stream, "@r%d+r9", rn); in print_movxy()
1194 fprintf_fn (stream, "a%c", '0' + rm); in print_movxy()
1197 fprintf_fn (stream, "x%c", '0' + rm); in print_movxy()
1200 fprintf_fn (stream, "y%c", '0' + rm); in print_movxy()
1203 fprintf_fn (stream, "%c%c", in print_movxy()
[all …]
/openbmc/qemu/audio/
H A Dpaaudio.c32 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/openbmc-tools/dbus-pcap/
H A Ddbus-pcap178 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))
274 val = bytes(stream.take(size + 1))
[all …]
/openbmc/phosphor-logging/extensions/openpower-pels/
H A Dgeneric.cpp13 void Generic::unflatten(Stream& stream) in unflatten() argument
15 stream >> _header; in unflatten()
26 stream >> _data; in unflatten()
29 void Generic::flatten(Stream& stream) const in flatten()
31 stream << _header << _data; in flatten()
/openbmc/u-boot/tools/
H A Dgetline.c21 static int getstr(char **lineptr, size_t *n, FILE *stream, in getstr() argument
28 if (!lineptr || !n || !stream) in getstr()
42 register int c = getc(stream); in getstr()
63 if (c == EOF || ferror (stream)) { in getstr()
86 int getline (char **lineptr, size_t *n, FILE *stream) in getline() argument
88 return getstr(lineptr, n, stream, '\n', 0); in getline()
/openbmc/qemu/util/
H A Dqemu-print.c49 int qemu_vfprintf(FILE *stream, const char *fmt, va_list ap) in qemu_vfprintf() argument
51 if (!stream) { in qemu_vfprintf()
54 return vfprintf(stream, fmt, ap); in qemu_vfprintf()
61 int qemu_fprintf(FILE *stream, const char *fmt, ...) in qemu_fprintf() argument
67 ret = qemu_vfprintf(stream, fmt, ap); in qemu_fprintf()

12345678910>>...16