Home
last modified time | relevance | path

Searched refs:blob (Results 1 – 25 of 1202) sorted by relevance

12345678910>>...49

/external/mesa3d/src/compiler/
Dblob.c44 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 …]
Dblob.h49 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()
126 blob_write_bytes(struct blob *blob, const void *bytes, size_t to_write);
139 blob_reserve_bytes(struct blob *blob, size_t to_write);
147 blob_reserve_uint32(struct blob *blob);
155 blob_reserve_intptr(struct blob *blob);
[all …]
/external/vboot_reference/tests/futility/
Dtest_gbb_utility.sh18 ${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/u-boot/arch/powerpc/cpu/mpc85xx/
Dfdt.c29 extern void ft_qe_setup(void *blob);
30 extern void ft_fixup_num_cores(void *blob);
31 extern void ft_srio_setup(void *blob);
36 void ft_fixup_cpu(void *blob, u64 memory_limit) in ft_fixup_cpu() argument
49 off = fdt_node_offset_by_prop_value(blob, -1, "device_type", "cpu", 4); in ft_fixup_cpu()
51 u32 *reg = (u32 *)fdt_getprop(blob, off, "reg", 0); in ft_fixup_cpu()
58 fdt_setprop_string(blob, off, "status", in ft_fixup_cpu()
61 fdt_setprop_string(blob, off, "status", in ft_fixup_cpu()
77 fdt_setprop(blob, off, "cpu-release-addr", in ft_fixup_cpu()
81 fdt_setprop_string(blob, off, "enable-method", in ft_fixup_cpu()
[all …]
/external/u-boot/arch/x86/cpu/baytrail/
Dfsp_configs.c35 const void *blob = gd->fdt_blob; in update_fsp_configs() local
43 node = fdtdec_next_compatible(blob, 0, COMPAT_INTEL_BAYTRAIL_FSP); in update_fsp_configs()
49 fsp_upd->mrc_init_tseg_size = fdtdec_get_int(blob, node, in update_fsp_configs()
52 fsp_upd->mrc_init_mmio_size = fdtdec_get_int(blob, node, in update_fsp_configs()
55 fsp_upd->mrc_init_spd_addr1 = fdtdec_get_int(blob, node, in update_fsp_configs()
58 fsp_upd->mrc_init_spd_addr2 = fdtdec_get_int(blob, node, in update_fsp_configs()
61 fsp_upd->emmc_boot_mode = fdtdec_get_int(blob, node, in update_fsp_configs()
64 fsp_upd->enable_sdio = fdtdec_get_bool(blob, node, "fsp,enable-sdio"); in update_fsp_configs()
65 fsp_upd->enable_sdcard = fdtdec_get_bool(blob, node, in update_fsp_configs()
67 fsp_upd->enable_hsuart0 = fdtdec_get_bool(blob, node, in update_fsp_configs()
[all …]
/external/mesa3d/src/compiler/glsl/tests/
Dblob_test.c121 struct blob blob; in test_write_and_read_functions() local
127 blob_init(&blob); in test_write_and_read_functions()
131 blob_write_bytes(&blob, bytes_test_str, sizeof(bytes_test_str)); in test_write_and_read_functions()
133 reserved = blob_reserve_bytes(&blob, sizeof(reserve_test_str)); in test_write_and_read_functions()
134 blob_overwrite_bytes(&blob, reserved, reserve_test_str, sizeof(reserve_test_str)); in test_write_and_read_functions()
137 str_offset = blob.size; in test_write_and_read_functions()
138 blob_write_bytes(&blob, placeholder_str, sizeof(placeholder_str)); in test_write_and_read_functions()
140 blob_write_uint32(&blob, uint32_test); in test_write_and_read_functions()
143 uint_offset = blob.size; in test_write_and_read_functions()
144 blob_write_uint32(&blob, uint32_placeholder); in test_write_and_read_functions()
[all …]
/external/u-boot/arch/arm/cpu/armv8/fsl-layerscape/
Dfdt.c31 int fdt_fixup_phy_connection(void *blob, int offset, phy_interface_t phyc) in fdt_fixup_phy_connection() argument
33 return fdt_setprop_string(blob, offset, "phy-connection-type", in fdt_fixup_phy_connection()
38 void ft_fixup_cpu(void *blob) in ft_fixup_cpu() argument
49 off = fdt_path_offset(blob, "/cpus"); in ft_fixup_cpu()
55 fdt_support_default_count_cells(blob, off, &addr_cells, NULL); in ft_fixup_cpu()
57 off = fdt_node_offset_by_prop_value(blob, off_prev, "device_type", in ft_fixup_cpu()
60 reg = (fdt32_t *)fdt_getprop(blob, off, "reg", 0); in ft_fixup_cpu()
64 fdt_del_node(blob, off); in ft_fixup_cpu()
69 off = fdt_node_offset_by_prop_value(blob, off_prev, in ft_fixup_cpu()
82 node = fdt_path_offset(blob, "/psci"); in ft_fixup_cpu()
[all …]
/external/libbrillo/brillo/
Dsecure_blob_unittest.cc25 const Blob blob(std::begin(kTestBytes), std::end(kTestBytes)); in TEST() local
26 const string obtained_string = BlobToString(blob); in TEST()
30 EXPECT_EQ(blob, obtained_blob); in TEST()
76 SecureBlob blob(32); in TEST_F() local
78 EXPECT_EQ(32, blob.size()); in TEST_F()
83 SecureBlob blob(32, 'a'); in TEST_F() local
85 for (size_t i = 0; i < blob.size(); i++) { in TEST_F()
86 EXPECT_EQ('a', blob[i]); in TEST_F()
92 SecureBlob blob(32, 0); in TEST_F() local
94 for (size_t i = 0; i < blob.size(); i++) { in TEST_F()
[all …]
/external/u-boot/arch/x86/cpu/braswell/
Dfsp_configs.c49 const void *blob = gd->fdt_blob; in update_fsp_configs() local
57 node = fdt_node_offset_by_compatible(blob, 0, "intel,braswell-fsp"); in update_fsp_configs()
63 node = fdt_node_offset_by_compatible(blob, node, in update_fsp_configs()
71 memory_upd->mrc_init_tseg_size = fdtdec_get_int(blob, node, in update_fsp_configs()
73 memory_upd->mrc_init_mmio_size = fdtdec_get_int(blob, node, in update_fsp_configs()
75 memory_upd->mrc_init_spd_addr1 = fdtdec_get_int(blob, node, in update_fsp_configs()
77 memory_upd->mrc_init_spd_addr2 = fdtdec_get_int(blob, node, in update_fsp_configs()
79 memory_upd->igd_dvmt50_pre_alloc = fdtdec_get_int(blob, node, in update_fsp_configs()
81 memory_upd->aperture_size = fdtdec_get_int(blob, node, in update_fsp_configs()
83 memory_upd->gtt_size = fdtdec_get_int(blob, node, in update_fsp_configs()
[all …]
/external/u-boot/arch/powerpc/cpu/mpc8xxx/
Dfdt.c23 static int ft_del_cpuhandle(void *blob, int cpuhandle) in ft_del_cpuhandle() argument
30 off = fdt_node_offset_by_prop_value(blob, -1, "cpu-handle", in ft_del_cpuhandle()
33 fdt_delprop(blob, off, "cpu-handle"); in ft_del_cpuhandle()
35 off = fdt_node_offset_by_prop_value(blob, -1, "cpu-handle", in ft_del_cpuhandle()
42 void ft_fixup_num_cores(void *blob) { in ft_fixup_num_cores() argument
48 off = fdt_node_offset_by_prop_value(blob, -1, "device_type", "cpu", 4); in ft_fixup_num_cores()
50 u32 *reg = (u32 *)fdt_getprop(blob, off, "reg", 0); in ft_fixup_num_cores()
54 int ph = fdt_get_phandle(blob, off); in ft_fixup_num_cores()
57 if (-FDT_ERR_NOTFOUND == ft_del_cpuhandle(blob, ph)) { in ft_fixup_num_cores()
58 fdt_del_node(blob, off); in ft_fixup_num_cores()
[all …]
/external/u-boot/arch/powerpc/cpu/mpc83xx/
Dfdt.c14 extern void ft_qe_setup(void *blob);
22 void fdt_fixup_muram (void *blob) in fdt_fixup_muram() argument
28 do_fixup_by_compat(blob, "fsl,qe-muram-data", "reg", in fdt_fixup_muram()
33 void ft_cpu_setup(void *blob, bd_t *bd) in ft_cpu_setup() argument
45 fdt_fixup_crypto_node(blob, 0); in ft_cpu_setup()
50 fdt_fixup_crypto_node(blob, 0x0204); in ft_cpu_setup()
65 nodeoffset = fdt_path_offset(blob, "/aliases"); in ft_cpu_setup()
68 prop = fdt_getprop(blob, nodeoffset, "ethernet0", NULL); in ft_cpu_setup()
72 path = fdt_path_offset(blob, prop); in ft_cpu_setup()
73 prop = fdt_getprop(blob, path, "interrupts", in ft_cpu_setup()
[all …]
/external/mesa3d/src/compiler/nir/
Dnir_serialize.c37 struct blob *blob; member
54 struct blob_reader *blob; member
88 blob_write_intptr(ctx->blob, write_lookup_object(ctx, obj)); in write_object()
108 return read_lookup_object(ctx, blob_read_intptr(ctx->blob)); in read_object()
114 blob_write_bytes(ctx->blob, c->values, sizeof(c->values)); in write_constant()
115 blob_write_uint32(ctx->blob, c->num_elements); in write_constant()
125 blob_copy_bytes(ctx->blob, (uint8_t *)c->values, sizeof(c->values)); in read_constant()
126 c->num_elements = blob_read_uint32(ctx->blob); in read_constant()
138 encode_type_to_blob(ctx->blob, var->type); in write_variable()
139 blob_write_uint32(ctx->blob, !!(var->name)); in write_variable()
[all …]
/external/u-boot/lib/
Dfdtdec.c85 fdt_addr_t fdtdec_get_addr_size_fixed(const void *blob, int node, in fdtdec_get_addr_size_fixed() argument
107 prop = fdt_getprop(blob, node, prop_name, &len); in fdtdec_get_addr_size_fixed()
125 addr = fdt_translate_address(blob, node, prop_addr); in fdtdec_get_addr_size_fixed()
141 fdt_addr_t fdtdec_get_addr_size_auto_parent(const void *blob, int parent, in fdtdec_get_addr_size_auto_parent() argument
150 na = fdt_address_cells(blob, parent); in fdtdec_get_addr_size_auto_parent()
156 ns = fdt_size_cells(blob, parent); in fdtdec_get_addr_size_auto_parent()
164 return fdtdec_get_addr_size_fixed(blob, node, prop_name, index, na, in fdtdec_get_addr_size_auto_parent()
168 fdt_addr_t fdtdec_get_addr_size_auto_noparent(const void *blob, int node, in fdtdec_get_addr_size_auto_noparent() argument
177 parent = fdt_parent_offset(blob, node); in fdtdec_get_addr_size_auto_noparent()
183 return fdtdec_get_addr_size_auto_parent(blob, parent, node, prop_name, in fdtdec_get_addr_size_auto_noparent()
[all …]
/external/harfbuzz_ng/src/
Dhb-blob.cc79 hb_blob_t *blob; in hb_blob_create() local
83 !(blob = hb_object_create<hb_blob_t> ())) { in hb_blob_create()
89 blob->data = data; in hb_blob_create()
90 blob->length = length; in hb_blob_create()
91 blob->mode = mode; in hb_blob_create()
93 blob->user_data = user_data; in hb_blob_create()
94 blob->destroy = destroy; in hb_blob_create()
96 if (blob->mode == HB_MEMORY_MODE_DUPLICATE) { in hb_blob_create()
97 blob->mode = HB_MEMORY_MODE_READONLY; in hb_blob_create()
98 if (!blob->try_make_writable ()) { in hb_blob_create()
[all …]
/external/u-boot/arch/arm/cpu/armv7/ls102xa/
Dfdt.c73 void ft_cpu_setup(void *blob, bd_t *bd) in ft_cpu_setup() argument
86 fdt_fixup_crypto_node(blob, 0); in ft_cpu_setup()
92 fdt_fixup_crypto_node(blob, sec_in32(&sec->secvid_ms)); in ft_cpu_setup()
96 off = fdt_node_offset_by_prop_value(blob, -1, "device_type", "cpu", 4); in ft_cpu_setup()
99 fdt_setprop(blob, off, "clock-frequency", &val, 4); in ft_cpu_setup()
100 off = fdt_node_offset_by_prop_value(blob, off, in ft_cpu_setup()
104 do_fixup_by_prop_u32(blob, "device_type", "soc", in ft_cpu_setup()
107 ft_fixup_enet_phy_connect_type(blob); in ft_cpu_setup()
110 do_fixup_by_compat_u32(blob, "fsl,16550-FIFO64", in ft_cpu_setup()
114 sysclk_path = fdt_get_alias(blob, "sysclk"); in ft_cpu_setup()
[all …]
/external/u-boot/include/
Dfdtdec.h215 int fdtdec_parse_phandle_with_args(const void *blob, int src_node,
238 int fdtdec_next_alias(const void *blob, const char *name,
252 enum fdt_compat_id fdtdec_lookup(const void *blob, int node);
266 int fdtdec_next_compatible(const void *blob, int node,
283 int fdtdec_next_compatible_subnode(const void *blob, int node,
309 fdt_addr_t fdtdec_get_addr_size_fixed(const void *blob, int node,
331 fdt_addr_t fdtdec_get_addr_size_auto_parent(const void *blob, int parent,
357 fdt_addr_t fdtdec_get_addr_size_auto_noparent(const void *blob, int node,
384 fdt_addr_t fdtdec_get_addr(const void *blob, int node,
412 fdt_addr_t fdtdec_get_addr_size(const void *blob, int node,
[all …]
Dfdt_support.h79 int fdt_fixup_memory(void *blob, u64 start, u64 size);
96 int fdt_fixup_memory_banks(void *blob, u64 start[], u64 size[], int banks);
98 static inline int fdt_fixup_memory_banks(void *blob, u64 start[], u64 size[], in fdt_fixup_memory_banks() argument
121 int fdt_fixup_display(void *blob, const char *path, const char *display);
124 void fsl_fdt_fixup_dr_usb(void *blob, bd_t *bd);
126 static inline void fsl_fdt_fixup_dr_usb(void *blob, bd_t *bd) {} in fsl_fdt_fixup_dr_usb() argument
130 void fdt_fixup_crypto_node(void *blob, int sec_rev);
132 static inline void fdt_fixup_crypto_node(void *blob, int sec_rev) {} in fdt_fixup_crypto_node() argument
149 int fdt_record_loadable(void *blob, u32 index, const char *name,
155 int fdt_pci_dma_ranges(void *blob, int phb_off, struct pci_controller *hose);
[all …]
/external/javasqlite/src/main/java/SQLite/
DBlob.java16 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/u-boot/common/
Dfdt_support.c417 int fdt_fixup_memory_banks(void *blob, u64 start[], u64 size[], int banks) in fdt_fixup_memory_banks() argument
430 err = fdt_check_header(blob); in fdt_fixup_memory_banks()
437 nodeoffset = fdt_find_or_add_subnode(blob, 0, "memory"); in fdt_fixup_memory_banks()
441 err = fdt_setprop(blob, nodeoffset, "device_type", "memory", in fdt_fixup_memory_banks()
465 len = fdt_pack_reg(blob, tmp, start, size, banks); in fdt_fixup_memory_banks()
467 err = fdt_setprop(blob, nodeoffset, "reg", tmp, len); in fdt_fixup_memory_banks()
477 int fdt_fixup_memory(void *blob, u64 start, u64 size) in fdt_fixup_memory() argument
479 return fdt_fixup_memory_banks(blob, &start, &size, 1); in fdt_fixup_memory()
560 int fdt_record_loadable(void *blob, u32 index, const char *name, in fdt_record_loadable() argument
566 err = fdt_check_header(blob); in fdt_record_loadable()
[all …]
/external/skqp/src/gpu/text/
DGrTextBlobCache.h57 void remove(GrTextBlob* blob) { in remove() argument
58 auto id = GrTextBlob::GetKey(*blob).fUniqueID; in remove()
62 fCurrentSize -= blob->size(); in remove()
63 fBlobList.remove(blob); in remove()
64 idEntry->removeBlob(blob); in remove()
70 void makeMRU(GrTextBlob* blob) { in makeMRU() argument
71 if (fBlobList.head() == blob) { in makeMRU()
75 fBlobList.remove(blob); in makeMRU()
76 fBlobList.addToHead(blob); in makeMRU()
82 static void BlobGlyphCount(int* glyphCount, int* runCount, const SkTextBlob* blob) { in BlobGlyphCount() argument
[all …]
/external/u-boot/board/freescale/mpc8569mds/
Dmpc8569mds.c307 static void fdt_board_disable_serial(void *blob, bd_t *bd, const char *alias) in fdt_board_disable_serial() argument
313 off = fdt_path_offset(blob, alias); in fdt_board_disable_serial()
320 err = fdt_setprop(blob, off, "status", status, strlen(status) + 1); in fdt_board_disable_serial()
352 static void fdt_board_fixup_qe_uart(void *blob, bd_t *bd) in fdt_board_fixup_qe_uart() argument
369 fdt_board_disable_serial(blob, bd, "serial1"); in fdt_board_fixup_qe_uart()
375 off = fdt_node_offset_by_compatible(blob, off, "ucc_geth"); in fdt_board_fixup_qe_uart()
382 idx = fdt_getprop(blob, off, "cell-index", &len); in fdt_board_fixup_qe_uart()
388 fdt_setprop(blob, off, "device_type", devtype, strlen(devtype) + 1); in fdt_board_fixup_qe_uart()
389 fdt_setprop(blob, off, "compatible", compat, strlen(compat) + 1); in fdt_board_fixup_qe_uart()
390 fdt_setprop(blob, off, "tx-clock-name", clk, strlen(clk) + 1); in fdt_board_fixup_qe_uart()
[all …]
/external/dtc/
Dfdtput.c167 static int store_key_value(char **blob, const char *node_name, in store_key_value() argument
173 node = fdt_path_offset(*blob, node_name); in store_key_value()
179 err = fdt_setprop(*blob, node, property, buf, len); in store_key_value()
181 *blob = realloc_property(*blob, node, property, len); in store_key_value()
182 err = fdt_setprop(*blob, node, property, buf, len); in store_key_value()
201 static int create_paths(char **blob, const char *in_path) in create_paths() argument
217 node = fdt_subnode_offset_namelen(*blob, offset, path, in create_paths()
220 *blob = realloc_node(*blob, path); in create_paths()
221 node = fdt_add_subnode_namelen(*blob, offset, path, in create_paths()
244 static int create_node(char **blob, const char *node_name) in create_node() argument
[all …]
/external/mesa3d/src/intel/vulkan/
Danv_pipeline_cache.c97 struct blob *blob) in anv_shader_bin_write_to_blob() argument
101 ok = blob_write_uint32(blob, shader->key->size); in anv_shader_bin_write_to_blob()
102 ok = blob_write_bytes(blob, shader->key->data, shader->key->size); in anv_shader_bin_write_to_blob()
104 ok = blob_write_uint32(blob, shader->kernel_size); in anv_shader_bin_write_to_blob()
105 ok = blob_write_bytes(blob, shader->kernel.map, shader->kernel_size); in anv_shader_bin_write_to_blob()
107 ok = blob_write_uint32(blob, shader->prog_data_size); in anv_shader_bin_write_to_blob()
108 ok = blob_write_bytes(blob, shader->prog_data, shader->prog_data_size); in anv_shader_bin_write_to_blob()
109 ok = blob_write_bytes(blob, shader->prog_data->param, in anv_shader_bin_write_to_blob()
113 ok = blob_write_uint32(blob, shader->bind_map.surface_count); in anv_shader_bin_write_to_blob()
114 ok = blob_write_uint32(blob, shader->bind_map.sampler_count); in anv_shader_bin_write_to_blob()
[all …]
/external/u-boot/drivers/misc/
Dfsl_portals.c87 static int fdt_qportal(void *blob, int off, int id, char *name, in fdt_qportal() argument
97 childoff = fdt_subnode_offset(blob, off, name); in fdt_qportal()
109 dev_off = fdt_path_offset(blob, handle); in fdt_qportal()
117 childoff = fdt_add_subnode(blob, off, name); in fdt_qportal()
120 dev_off = fdt_path_offset(blob, handle); in fdt_qportal()
125 dev_handle = fdt_get_phandle(blob, dev_off); in fdt_qportal()
127 dev_handle = fdt_alloc_phandle(blob); in fdt_qportal()
128 ret = fdt_set_phandle(blob, dev_off, in fdt_qportal()
134 ret = fdt_setprop(blob, childoff, "dev-handle", in fdt_qportal()
141 ret = fdt_setprop(blob, childoff, "fsl,liodn", in fdt_qportal()
[all …]
/external/mesa3d/src/mesa/main/
Dprogram_binary.c169 write_program_payload(struct gl_context *ctx, struct blob *blob, in write_program_payload() argument
180 serialize_glsl_program(blob, ctx, sh_prog); in write_program_payload()
194 read_program_payload(struct gl_context *ctx, struct blob_reader *blob, in read_program_payload() argument
197 if (!deserialize_glsl_program(blob, ctx, sh_prog)) in read_program_payload()
218 struct blob blob; in _mesa_get_program_binary_length() local
219 blob_init_fixed(&blob, NULL, SIZE_MAX); in _mesa_get_program_binary_length()
220 write_program_payload(ctx, &blob, sh_prog); in _mesa_get_program_binary_length()
221 *length = get_program_binary_header_size() + blob.size; in _mesa_get_program_binary_length()
222 blob_finish(&blob); in _mesa_get_program_binary_length()
231 struct blob blob; in _mesa_get_program_binary() local
[all …]

12345678910>>...49