/external/angle/src/common/spirv/ |
D | spirv_instruction_builder_autogen.cpp | 32 void WriteSpirvHeader(std::vector<uint32_t> *blob, uint32_t idCount) in WriteSpirvHeader() argument 45 ASSERT(blob->empty()); in WriteSpirvHeader() 47 blob->push_back(spv::MagicNumber); in WriteSpirvHeader() 48 blob->push_back(0x00010000); in WriteSpirvHeader() 49 blob->push_back(kANGLEGeneratorId << 16 | 0); in WriteSpirvHeader() 50 blob->push_back(idCount); in WriteSpirvHeader() 51 blob->push_back(0x00000000); in WriteSpirvHeader() 54 void WriteNop(Blob *blob) in WriteNop() argument 56 const size_t startSize = blob->size(); in WriteNop() 57 blob->push_back(0); in WriteNop() [all …]
|
D | spirv_instruction_builder_autogen.h | 23 void WriteSpirvHeader(std::vector<uint32_t> *blob, uint32_t idCount); 24 void WriteNop(Blob *blob); 25 void WriteUndef(Blob *blob, IdResultType idResultType, IdResult idResult); 26 void WriteSourceContinued(Blob *blob, LiteralString continuedSource); 27 void WriteSource(Blob *blob, 32 void WriteSourceExtension(Blob *blob, LiteralString extension); 33 void WriteName(Blob *blob, IdRef target, LiteralString name); 34 void WriteMemberName(Blob *blob, IdRef type, LiteralInteger member, LiteralString name); 35 void WriteString(Blob *blob, IdResult idResult, LiteralString string); 36 void WriteLine(Blob *blob, IdRef file, LiteralInteger line, LiteralInteger column); [all …]
|
/external/mesa3d/src/util/ |
D | blob.c | 44 grow_to_fit(struct blob *blob, size_t additional) in grow_to_fit() argument 49 if (blob->out_of_memory) in grow_to_fit() 52 if (blob->size + additional <= blob->allocated) in grow_to_fit() 55 if (blob->fixed_allocation) { in grow_to_fit() 56 blob->out_of_memory = true; in grow_to_fit() 60 if (blob->allocated == 0) in grow_to_fit() 63 to_allocate = blob->allocated * 2; in grow_to_fit() 65 to_allocate = MAX2(to_allocate, blob->allocated + additional); in grow_to_fit() 67 new_data = realloc(blob->data, to_allocate); in grow_to_fit() 69 blob->out_of_memory = true; in grow_to_fit() [all …]
|
D | blob.h | 49 struct blob { struct 91 blob_init(struct blob *blob); 105 blob_init_fixed(struct blob *blob, void *data, size_t size); 114 blob_finish(struct blob *blob) in blob_finish() argument 116 if (!blob->fixed_allocation) in blob_finish() 117 free(blob->data); in blob_finish() 121 blob_finish_get_buffer(struct blob *blob, void **buffer, size_t *size); 129 blob_write_bytes(struct blob *blob, const void *bytes, size_t to_write); 142 blob_reserve_bytes(struct blob *blob, size_t to_write); 150 blob_reserve_uint32(struct blob *blob); [all …]
|
D | blob_test.c | 125 struct blob blob; in test_write_and_read_functions() local 131 blob_init(&blob); in test_write_and_read_functions() 135 blob_write_bytes(&blob, bytes_test_str, sizeof(bytes_test_str)); in test_write_and_read_functions() 137 reserved = blob_reserve_bytes(&blob, sizeof(reserve_test_str)); in test_write_and_read_functions() 138 blob_overwrite_bytes(&blob, reserved, reserve_test_str, sizeof(reserve_test_str)); in test_write_and_read_functions() 141 str_offset = blob.size; in test_write_and_read_functions() 142 blob_write_bytes(&blob, placeholder_str, sizeof(placeholder_str)); in test_write_and_read_functions() 144 blob_write_uint32(&blob, uint32_test); in test_write_and_read_functions() 147 uint_offset = blob.size; in test_write_and_read_functions() 148 blob_write_uint32(&blob, uint32_placeholder); in test_write_and_read_functions() [all …]
|
/external/vboot_reference/tests/futility/ |
D | test_gbb_utility.sh | 18 ${FUTILITY} gbb_utility -c 16,0x10,16,0x10 ${TMP}.blob 21 ${FUTILITY} gbb_utility -s --flags=0xdeadbeef ${TMP}.blob 22 ${FUTILITY} gbb_utility -g --flags ${TMP}.blob | grep -i 0xdeadbeef 25 if ${FUTILITY} gbb_utility -s --hwid="0123456789ABCDEF" ${TMP}.blob; then 29 ${FUTILITY} gbb_utility -s --hwid="0123456789ABCDE" ${TMP}.blob 31 ${FUTILITY} gbb_utility -g ${TMP}.blob | grep "0123456789ABCDE" 39 if ${FUTILITY} gbb_utility -s --rootkey ${TMP}.data1.toolong ${TMP}.blob; then false; fi 40 if ${FUTILITY} gbb_utility -s --recoverykey ${TMP}.data2.toolong ${TMP}.blob; then false; fi 41 if ${FUTILITY} gbb_utility -s --bmpfv ${TMP}.data3.toolong ${TMP}.blob; then false; fi 50 --bmpfv ${TMP}.data3.short ${TMP}.blob [all …]
|
/external/mesa3d/src/freedreno/ir3/ |
D | ir3_disk_cache.c | 90 struct blob blob; in ir3_disk_cache_init_shader_key() local 91 blob_init(&blob); in ir3_disk_cache_init_shader_key() 92 nir_serialize(&blob, shader->nir, true); in ir3_disk_cache_init_shader_key() 93 _mesa_sha1_update(&ctx, blob.data, blob.size); in ir3_disk_cache_init_shader_key() 94 blob_finish(&blob); in ir3_disk_cache_init_shader_key() 108 struct blob blob; in compute_variant_key() local 109 blob_init(&blob); in compute_variant_key() 111 blob_write_bytes(&blob, &v->shader->cache_key, sizeof(v->shader->cache_key)); in compute_variant_key() 112 blob_write_bytes(&blob, &v->key, sizeof(v->key)); in compute_variant_key() 113 blob_write_uint8(&blob, v->binning_pass); in compute_variant_key() [all …]
|
/external/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_disk_cache.c | 71 struct blob blob; in etna_disk_cache_init_shader_key() local 73 blob_init(&blob); in etna_disk_cache_init_shader_key() 74 nir_serialize(&blob, shader->nir, true); in etna_disk_cache_init_shader_key() 75 _mesa_sha1_update(&ctx, blob.data, blob.size); in etna_disk_cache_init_shader_key() 76 blob_finish(&blob); in etna_disk_cache_init_shader_key() 85 struct blob blob; in compute_variant_key() local 87 blob_init(&blob); in compute_variant_key() 89 blob_write_bytes(&blob, &v->shader->cache_key, sizeof(v->shader->cache_key)); in compute_variant_key() 90 blob_write_bytes(&blob, &v->key, sizeof(v->key)); in compute_variant_key() 92 disk_cache_compute_key(compiler->disk_cache, blob.data, blob.size, cache_key); in compute_variant_key() [all …]
|
/external/skia/src/gpu/text/ |
D | GrTextBlobRedrawCoordinator.cpp | 45 sk_sp<GrTextBlob> blob; in drawGlyphRunList() local 47 blob = this->find(key); in drawGlyphRunList() 50 if (blob == nullptr || !blob->canReuse(paint, positionMatrix)) { in drawGlyphRunList() 51 if (blob != nullptr) { in drawGlyphRunList() 53 this->remove(blob.get()); in drawGlyphRunList() 58 blob = GrTextBlob::Make( in drawGlyphRunList() 62 blob->addKey(key); in drawGlyphRunList() 65 blob = this->addOrReturnExisting(glyphRunList, blob); in drawGlyphRunList() 69 blob->draw(canvas, clip, viewMatrix, glyphRunList.origin(), paint, sdc); in drawGlyphRunList() 73 const SkGlyphRunList& glyphRunList, sk_sp<GrTextBlob> blob) { in addOrReturnExisting() argument [all …]
|
/external/libbrillo/brillo/ |
D | secure_blob_test.cc | 26 const Blob blob(std::begin(kTestBytes), std::end(kTestBytes)); in TEST() local 27 const string obtained_string = BlobToString(blob); in TEST() 31 EXPECT_EQ(blob, obtained_blob); in TEST() 77 SecureBlob blob(32); in TEST_F() local 79 EXPECT_EQ(32, blob.size()); in TEST_F() 84 SecureBlob blob(32, 'a'); in TEST_F() local 86 for (size_t i = 0; i < blob.size(); i++) { in TEST_F() 87 EXPECT_EQ('a', blob[i]); in TEST_F() 93 SecureBlob blob(32, 0); in TEST_F() local 95 for (size_t i = 0; i < blob.size(); i++) { in TEST_F() [all …]
|
/external/mesa3d/src/gallium/drivers/nouveau/codegen/ |
D | nv50_ir_serialize.cpp | 22 nv50_ir_prog_info_serialize(struct blob *blob, struct nv50_ir_prog_info *info) in nv50_ir_prog_info_serialize() argument 24 blob_write_uint32(blob, info->bin.smemSize); in nv50_ir_prog_info_serialize() 25 blob_write_uint16(blob, info->target); in nv50_ir_prog_info_serialize() 26 blob_write_uint8(blob, info->type); in nv50_ir_prog_info_serialize() 27 blob_write_uint8(blob, info->optLevel); in nv50_ir_prog_info_serialize() 28 blob_write_uint8(blob, info->dbgFlags); in nv50_ir_prog_info_serialize() 29 blob_write_uint8(blob, info->omitLineNum); in nv50_ir_prog_info_serialize() 30 blob_write_uint8(blob, info->bin.sourceRep); in nv50_ir_prog_info_serialize() 37 blob_write_uint32(blob, num_tokens); in nv50_ir_prog_info_serialize() 38 blob_write_bytes(blob, tokens, num_tokens * sizeof(struct tgsi_token)); in nv50_ir_prog_info_serialize() [all …]
|
/external/mesa3d/src/broadcom/vulkan/ |
D | v3dv_pipeline_cache.c | 87 struct blob blob; in v3dv_pipeline_cache_upload_nir() local 88 blob_init(&blob); in v3dv_pipeline_cache_upload_nir() 90 nir_serialize(&blob, nir, false); in v3dv_pipeline_cache_upload_nir() 91 if (blob.out_of_memory) { in v3dv_pipeline_cache_upload_nir() 92 blob_finish(&blob); in v3dv_pipeline_cache_upload_nir() 103 blob_finish(&blob); in v3dv_pipeline_cache_upload_nir() 109 ralloc_size(cache->nir_cache, sizeof(*snir) + blob.size); in v3dv_pipeline_cache_upload_nir() 111 snir->size = blob.size; in v3dv_pipeline_cache_upload_nir() 112 memcpy(snir->data, blob.data, blob.size); in v3dv_pipeline_cache_upload_nir() 114 blob_finish(&blob); in v3dv_pipeline_cache_upload_nir() [all …]
|
/external/harfbuzz_ng/src/ |
D | hb-blob.cc | 82 hb_blob_t *blob = hb_blob_create_or_fail (data, length, mode, in hb_blob_create() local 84 return likely (blob) ? blob : hb_blob_get_empty (); in hb_blob_create() 113 hb_blob_t *blob; in hb_blob_create_or_fail() local 116 !(blob = hb_object_create<hb_blob_t> ())) in hb_blob_create_or_fail() 123 blob->data = data; in hb_blob_create_or_fail() 124 blob->length = length; in hb_blob_create_or_fail() 125 blob->mode = mode; in hb_blob_create_or_fail() 127 blob->user_data = user_data; in hb_blob_create_or_fail() 128 blob->destroy = destroy; in hb_blob_create_or_fail() 130 if (blob->mode == HB_MEMORY_MODE_DUPLICATE) { in hb_blob_create_or_fail() [all …]
|
/external/rust/crates/rusqlite/src/blob/ |
D | mod.rs | 203 blob: *mut ffi::sqlite3_blob, field 227 let mut blob = ptr::null_mut(); in blob_open() localVariable 239 &mut blob, in blob_open() 244 blob, in blob_open() 258 let rc = unsafe { ffi::sqlite3_blob_reopen(self.blob, row) }; in reopen() 270 unsafe { ffi::sqlite3_blob_bytes(self.blob) } in size() 304 let rc = unsafe { ffi::sqlite3_blob_close(self.blob) }; in close_() 305 self.blob = ptr::null_mut(); in close_() 324 let rc = unsafe { ffi::sqlite3_blob_read(self.blob, buf.as_mut_ptr().cast(), n, self.pos) }; in read() 354 let rc = unsafe { ffi::sqlite3_blob_write(self.blob, buf.as_ptr() as *mut _, n, self.pos) }; in write() [all …]
|
D | pos_io.rs | 49 self.blob, in write_at() 154 self.blob, in raw_read_at() 207 let mut blob = db.blob_open(DatabaseName::Main, "test_table", "content", rowid, false)?; in test_pos_io() localVariable 209 blob.seek(std::io::SeekFrom::Start(1)).unwrap(); in test_pos_io() 212 blob.write_at(&one2ten, 0).unwrap(); in test_pos_io() 215 blob.read_at_exact(&mut s, 0).unwrap(); in test_pos_io() 217 assert!(blob.read_at_exact(&mut s, 1).is_err()); in test_pos_io() 219 blob.read_at_exact(&mut s, 0).unwrap(); in test_pos_io() 223 blob.read_at_exact(&mut fives, 0).unwrap(); in test_pos_io() 226 blob.read_at_exact(&mut fives, 5).unwrap(); in test_pos_io() [all …]
|
/external/mesa3d/src/intel/vulkan/ |
D | anv_pipeline_cache.c | 147 struct blob *blob) in anv_shader_bin_write_to_blob() argument 149 blob_write_uint32(blob, shader->stage); in anv_shader_bin_write_to_blob() 151 blob_write_uint32(blob, shader->key->size); in anv_shader_bin_write_to_blob() 152 blob_write_bytes(blob, shader->key->data, shader->key->size); in anv_shader_bin_write_to_blob() 154 blob_write_uint32(blob, shader->kernel_size); in anv_shader_bin_write_to_blob() 155 blob_write_bytes(blob, shader->kernel.map, shader->kernel_size); in anv_shader_bin_write_to_blob() 157 blob_write_uint32(blob, shader->prog_data_size); in anv_shader_bin_write_to_blob() 158 blob_write_bytes(blob, shader->prog_data, shader->prog_data_size); in anv_shader_bin_write_to_blob() 159 blob_write_bytes(blob, shader->prog_data->relocs, in anv_shader_bin_write_to_blob() 163 blob_write_uint32(blob, shader->num_stats); in anv_shader_bin_write_to_blob() [all …]
|
/external/javasqlite/src/main/java/SQLite/ |
D | Blob.java | 16 private Blob blob; field in BlobR 28 BlobR(Blob blob) { in BlobR() argument 29 this.blob = blob; in BlobR() 39 int ret = blob.size - pos; in available() 71 blob.close(); in close() 72 blob = null; in close() 85 } else if (ret > blob.size) { in skip() 86 ret = blob.size; in skip() 87 pos = blob.size; in skip() 101 int n = blob.read(b, 0, pos, b.length); in read() [all …]
|
/external/mesa3d/src/mesa/main/ |
D | program_binary.c | 171 write_program_payload(struct gl_context *ctx, struct blob *blob, in write_program_payload() argument 181 blob_write_uint32(blob, sh_prog->SeparateShader); in write_program_payload() 183 serialize_glsl_program(blob, ctx, sh_prog); in write_program_payload() 197 read_program_payload(struct gl_context *ctx, struct blob_reader *blob, in read_program_payload() argument 200 sh_prog->SeparateShader = blob_read_uint32(blob); in read_program_payload() 202 if (!deserialize_glsl_program(blob, ctx, sh_prog)) in read_program_payload() 223 struct blob blob; in _mesa_get_program_binary_length() local 224 blob_init_fixed(&blob, NULL, SIZE_MAX); in _mesa_get_program_binary_length() 225 write_program_payload(ctx, &blob, sh_prog); in _mesa_get_program_binary_length() 226 *length = get_program_binary_header_size() + blob.size; in _mesa_get_program_binary_length() [all …]
|
/external/dtc/ |
D | fdtput.c | 153 static int store_key_value(char **blob, const char *node_name, in store_key_value() argument 159 node = fdt_path_offset(*blob, node_name); in store_key_value() 165 err = fdt_setprop(*blob, node, property, buf, len); in store_key_value() 167 *blob = realloc_property(*blob, node, property, len); in store_key_value() 168 err = fdt_setprop(*blob, node, property, buf, len); in store_key_value() 187 static int create_paths(char **blob, const char *in_path) in create_paths() argument 203 node = fdt_subnode_offset_namelen(*blob, offset, path, in create_paths() 206 *blob = realloc_node(*blob, path); in create_paths() 207 node = fdt_add_subnode_namelen(*blob, offset, path, in create_paths() 230 static int create_node(char **blob, const char *node_name) in create_node() argument [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_shader_cache.c | 44 write_stream_out_to_cache(struct blob *blob, in write_stream_out_to_cache() argument 47 blob_write_uint32(blob, state->stream_output.num_outputs); in write_stream_out_to_cache() 49 blob_write_bytes(blob, &state->stream_output.stride, in write_stream_out_to_cache() 51 blob_write_bytes(blob, &state->stream_output.output, in write_stream_out_to_cache() 57 copy_blob_to_driver_cache_blob(struct blob *blob, struct gl_program *prog) in copy_blob_to_driver_cache_blob() argument 59 prog->driver_cache_blob = ralloc_size(NULL, blob->size); in copy_blob_to_driver_cache_blob() 60 memcpy(prog->driver_cache_blob, blob->data, blob->size); in copy_blob_to_driver_cache_blob() 61 prog->driver_cache_blob_size = blob->size; in copy_blob_to_driver_cache_blob() 65 write_tgsi_to_cache(struct blob *blob, const struct tgsi_token *tokens, in write_tgsi_to_cache() argument 70 blob_write_uint32(blob, num_tokens); in write_tgsi_to_cache() [all …]
|
/external/pigweed/pw_blob_store/ |
D | blob_store_test.cc | 80 BlobStoreBuffer<kBufferSize> blob( in WriteTestBlock() local 82 EXPECT_EQ(OkStatus(), blob.Init()); in WriteTestBlock() 84 BlobStore::BlobWriterWithBuffer writer(blob); in WriteTestBlock() 90 BlobStore::BlobReader reader(blob); in WriteTestBlock() 107 BlobStoreBuffer<kBufferSize> blob( in ChunkReadTest() local 109 EXPECT_EQ(OkStatus(), blob.Init()); in ChunkReadTest() 112 BlobStore::BlobReader reader1(blob); in ChunkReadTest() 119 BlobStore::BlobReader reader(blob); in ChunkReadTest() 168 BlobStoreBuffer<kBufferSize> blob( in TEST_F() local 170 EXPECT_EQ(OkStatus(), blob.Init()); in TEST_F() [all …]
|
/external/mesa3d/src/compiler/nir/ |
D | nir_serialize.c | 41 struct blob *blob; member 70 struct blob_reader *blob; member 123 return read_lookup_object(ctx, blob_read_uint32(ctx->blob)); in read_object() 177 blob_write_bytes(ctx->blob, c->values, sizeof(c->values)); in write_constant() 178 blob_write_uint32(ctx->blob, c->num_elements); in write_constant() 188 blob_copy_bytes(ctx->blob, (uint8_t *)c->values, sizeof(c->values)); in read_constant() 189 c->num_elements = blob_read_uint32(ctx->blob); in read_constant() 286 blob_write_uint32(ctx->blob, flags.u32); in write_variable() 289 encode_type_to_blob(ctx->blob, var->type); in write_variable() 294 encode_type_to_blob(ctx->blob, var->interface_type); in write_variable() [all …]
|
/external/tensorflow/tensorflow/security/ |
D | README.md | 11 in [SECURITY.md](https://github.com/tensorflow/tensorflow/blob/master/SECURITY.md). 15 | [TFSA-2021-108](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory… 16 | [TFSA-2021-107](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory… 17 | [TFSA-2021-106](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory… 18 | [TFSA-2021-105](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory… 19 | [TFSA-2021-104](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory… 20 | [TFSA-2021-103](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory… 21 | [TFSA-2021-102](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory… 22 | [TFSA-2021-101](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory… 23 | [TFSA-2021-100](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory… [all …]
|
/external/mesa3d/src/gallium/drivers/iris/ |
D | iris_disk_cache.c | 100 struct blob blob; in iris_disk_cache_store() local 101 blob_init(&blob); in iris_disk_cache_store() 114 blob_write_bytes(&blob, shader->prog_data, brw_prog_data_size(stage)); in iris_disk_cache_store() 115 blob_write_bytes(&blob, shader->map, shader->prog_data->program_size); in iris_disk_cache_store() 116 blob_write_uint32(&blob, shader->num_system_values); in iris_disk_cache_store() 117 blob_write_bytes(&blob, shader->system_values, in iris_disk_cache_store() 119 blob_write_uint32(&blob, shader->kernel_input_size); in iris_disk_cache_store() 120 blob_write_bytes(&blob, prog_data->relocs, in iris_disk_cache_store() 122 blob_write_bytes(&blob, prog_data->param, in iris_disk_cache_store() 124 blob_write_bytes(&blob, &shader->bt, sizeof(shader->bt)); in iris_disk_cache_store() [all …]
|
/external/perfetto/src/trace_processor/importers/ftrace/ |
D | ftrace_parser.cc | 247 void FtraceParser::ParseFtraceStats(ConstBytes blob) { in ParseFtraceStats() argument 248 protos::pbzero::FtraceStats::Decoder evt(blob.data, blob.size); in ParseFtraceStats() 761 ConstBytes blob) { in ParseGenericFtrace() argument 762 protos::pbzero::GenericFtraceEvent::Decoder evt(blob.data, blob.size); in ParseGenericFtrace() 791 ConstBytes blob, in ParseTypedFtraceToRaw() argument 796 ProtoDecoder decoder(blob.data, blob.size); in ParseTypedFtraceToRaw() 899 ConstBytes blob) { in ParseSchedSwitch() argument 900 protos::pbzero::SchedSwitchFtraceEvent::Decoder ss(blob.data, blob.size); in ParseSchedSwitch() 910 ConstBytes blob) { in ParseSchedWakeup() argument 911 protos::pbzero::SchedWakeupFtraceEvent::Decoder sw(blob.data, blob.size); in ParseSchedWakeup() [all …]
|