/external/vboot_reference/futility/ |
D | dump_kernel_config_lib.c | 55 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/ |
D | bit_io_unittest.cc | 48 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()
|
D | puff_io_unittest.cc | 34 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 …]
|
D | bit_writer.cc | 35 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()
|
D | bit_writer.h | 41 const std::function<bool(uint8_t* buffer, size_t count)>& read_fn) = 0; 81 read_fn) override;
|
D | bit_reader.cc | 46 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()
|
D | bit_reader.h | 63 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;
|
D | puff_writer.cc | 66 pd.read_fn(&puff_buf_out_[index_], length), in Insert() 70 TEST_AND_RETURN_FALSE_SET_ERROR(pd.read_fn(nullptr, length), in Insert()
|
D | huffer.cc | 64 TEST_AND_RETURN_FALSE_SET_ERROR(bw->WriteBytes(pd.length, pd.read_fn), in HuffDeflate() 127 pd.read_fn(&literal, 1); in HuffDeflate()
|
D | puff_data.h | 44 std::function<bool(uint8_t* buffer, size_t count)> read_fn; member
|
D | puff_reader.cc | 92 pd.read_fn = [this, length](uint8_t* buffer, size_t count) mutable { in GetNext()
|
D | puffer.cc | 91 br->GetByteReaderFn(pd.length, &pd.read_fn), in PuffDeflate()
|
D | puffin_unittest.cc | 51 pd.read_fn(start, pd.length); in DecompressPuff()
|
/external/autotest/client/cros/power/ |
D | power_utils.py | 668 def _verify_registers(self, reg_name, read_fn, match_list): argument 671 r = read_fn(k)
|