Home
last modified time | relevance | path

Searched refs:read_fn (Results 1 – 14 of 14) sorted by relevance

/external/vboot_reference/futility/
Ddump_kernel_config_lib.c55 static int SkipWithRead(void *ctx, ReadFullyFn read_fn, size_t count) in SkipWithRead() argument
64 if (read_fn(ctx, buf, to_read) != to_read) { in SkipWithRead()
72 static char *FindKernelConfigFromStream(void *ctx, ReadFullyFn read_fn, in FindKernelConfigFromStream() argument
81 if (read_fn(ctx, &key_block, sizeof(key_block)) != sizeof(key_block)) { in FindKernelConfigFromStream()
86 if (to_skip < 0 || SkipWithRead(ctx, read_fn, to_skip)) { in FindKernelConfigFromStream()
93 if (read_fn(ctx, &preamble, sizeof(preamble)) != sizeof(preamble)) { in FindKernelConfigFromStream()
98 if (to_skip < 0 || SkipWithRead(ctx, read_fn, to_skip)) { in FindKernelConfigFromStream()
116 if (to_skip < 0 || SkipWithRead(ctx, read_fn, to_skip)) { in FindKernelConfigFromStream()
126 if (read_fn(ctx, ret, CROS_CONFIG_SIZE) != CROS_CONFIG_SIZE) { in FindKernelConfigFromStream()
145 ReadFullyFn read_fn = ReadFullyWithRead; in FindKernelConfig() local
[all …]
/external/puffin/src/
Dbit_io_unittest.cc48 std::function<bool(uint8_t*, size_t)> read_fn; in TEST() local
49 ASSERT_TRUE(br.GetByteReaderFn(2, &read_fn)); in TEST()
50 ASSERT_TRUE(read_fn(tmp, 2)); in TEST()
52 ASSERT_TRUE(read_fn(tmp, 0)); in TEST()
53 ASSERT_FALSE(read_fn(tmp, 1)); in TEST()
Dpuff_io_unittest.cc34 pd.read_fn = [](uint8_t* buffer, size_t count) { in TestLiteralLength()
56 pd.read_fn(&byte, 1); in TestLiteralLength()
164 pd.read_fn = [&tmp, &index](uint8_t* buffer, size_t count) { in TEST()
196 ASSERT_TRUE(pd.read_fn(tmp3, 3)); in TEST()
197 ASSERT_FALSE(pd.read_fn(tmp3, 1)); in TEST()
205 ASSERT_TRUE(pd.read_fn(tmp3, 1)); in TEST()
207 ASSERT_FALSE(pd.read_fn(tmp3, 2)); in TEST()
345 pd.read_fn = [](uint8_t* buffer, size_t count) { in TEST()
362 pd.read_fn(&byte, 1); in TEST()
395 pd.read_fn(&byte, 1); in TEST()
[all …]
Dbit_writer.cc35 const std::function<bool(uint8_t* buffer, size_t count)>& read_fn) { in WriteBytes() argument
40 TEST_AND_RETURN_FALSE(read_fn(&out_buf_[index_], nbytes)); in WriteBytes()
Dbit_writer.h41 const std::function<bool(uint8_t* buffer, size_t count)>& read_fn) = 0;
81 read_fn) override;
Dbit_reader.cc46 size_t length, std::function<bool(uint8_t*, size_t)>* read_fn) { in GetByteReaderFn() argument
51 *read_fn = [this, length](uint8_t* buffer, size_t count) mutable { in GetByteReaderFn()
Dbit_reader.h63 std::function<bool(uint8_t* buffer, size_t count)>* read_fn) = 0;
97 std::function<bool(uint8_t* buffer, size_t count)>* read_fn) override;
Dpuff_writer.cc66 pd.read_fn(&puff_buf_out_[index_], length), in Insert()
70 TEST_AND_RETURN_FALSE_SET_ERROR(pd.read_fn(nullptr, length), in Insert()
Dhuffer.cc64 TEST_AND_RETURN_FALSE_SET_ERROR(bw->WriteBytes(pd.length, pd.read_fn), in HuffDeflate()
127 pd.read_fn(&literal, 1); in HuffDeflate()
Dpuff_data.h44 std::function<bool(uint8_t* buffer, size_t count)> read_fn; member
Dpuff_reader.cc92 pd.read_fn = [this, length](uint8_t* buffer, size_t count) mutable { in GetNext()
Dpuffer.cc91 br->GetByteReaderFn(pd.length, &pd.read_fn), in PuffDeflate()
Dpuffin_unittest.cc51 pd.read_fn(start, pd.length); in DecompressPuff()
/external/autotest/client/cros/power/
Dpower_utils.py668 def _verify_registers(self, reg_name, read_fn, match_list): argument
671 r = read_fn(k)