Home
last modified time | relevance | path

Searched refs:struct_size (Results 1 – 25 of 33) sorted by relevance

12

/external/dtc/libfdt/
Dfdt_rw.c59 int mem_rsv_size, int struct_size) in _fdt_blocks_misordered() argument
65 (fdt_off_dt_struct(fdt) + struct_size)) in _fdt_blocks_misordered()
394 int mem_rsv_size, int struct_size) in _fdt_packblocks() argument
400 strings_off = struct_off + struct_size; in _fdt_packblocks()
405 memmove(new + struct_off, old + fdt_off_dt_struct(old), struct_size); in _fdt_packblocks()
407 fdt_set_size_dt_struct(new, struct_size); in _fdt_packblocks()
418 int mem_rsv_size, struct_size; in fdt_open_into() local
430 struct_size = fdt_size_dt_struct(fdt); in fdt_open_into()
432 struct_size = 0; in fdt_open_into()
433 while (fdt_next_tag(fdt, struct_size, &struct_size) != FDT_END) in fdt_open_into()
[all …]
/external/libmojo/mojo/edk/system/
Doptions_validation.h37 static_assert(offsetof(Options, struct_size) == 0, in UserOptionsReader()
60 return options().struct_size >= offset + size; in HasMember()
65 uint32_t struct_size = *reinterpret_cast<const uint32_t*>(options); in GetSizeForReader() local
66 if (struct_size < sizeof(uint32_t)) in GetSizeForReader()
69 return std::min(static_cast<size_t>(struct_size), sizeof(Options)); in GetSizeForReader()
Doptions_validation_unittest.cc23 uint32_t struct_size; member
43 offsetof(TestOptions, struct_size) + sizeof(uint32_t))}; in TEST()
63 options->struct_size = kSizeOfTestOptions + 1; in TEST()
73 options->struct_size = kSizeOfTestOptions + 4; in TEST()
126 options->struct_size = static_cast<uint32_t>(sizeof(TestOptions)); in TEST()
Dshared_buffer_dispatcher_unittest.cc34 EXPECT_EQ(kSizeOfCreateOptions, validated_options.struct_size); in RevalidateCreateOptions()
41 EXPECT_EQ(validated_options.struct_size, revalidated_options.struct_size); in RevalidateCreateOptions()
Dcore.cc63 if (platform_handle->struct_size != sizeof(MojoPlatformHandle)) in MojoPlatformHandleToScopedPlatformHandle()
103 if (platform_handle->struct_size != sizeof(MojoPlatformHandle)) in ScopedPlatformHandleToMojoPlatformHandle()
786 if (options && options->struct_size != sizeof(MojoCreateDataPipeOptions)) in CreateDataPipe()
790 create_options.struct_size = sizeof(MojoCreateDataPipeOptions); in CreateDataPipe()
/external/libmojo/mojo/public/cpp/system/
Dplatform_handle.cc36 platform_handle.struct_size = sizeof(MojoPlatformHandle); in WrapPlatformFile()
49 platform_handle.struct_size = sizeof(MojoPlatformHandle); in UnwrapPlatformFile()
77 platform_handle.struct_size = sizeof(MojoPlatformHandle); in WrapSharedMemoryHandle()
109 platform_handle.struct_size = sizeof(MojoPlatformHandle); in UnwrapSharedMemoryHandle()
153 platform_handle.struct_size = sizeof(MojoPlatformHandle); in WrapMachPort()
166 platform_handle.struct_size = sizeof(MojoPlatformHandle); in UnwrapMachPort()
/external/mesa3d/src/gallium/drivers/ilo/core/
Dilo_state_surface.c128 assert(info->struct_size % alignment == 0); in surface_get_gen6_buffer_offset_alignment()
143 if (info->struct_size > 1) in surface_get_gen6_buffer_offset_alignment()
144 assert(info->struct_size % alignment == 0); in surface_get_gen6_buffer_offset_alignment()
188 assert(info->struct_size == fixed); in surface_get_gen6_buffer_offset_alignment()
200 assert(info->struct_size % alignment == 0); in surface_get_gen6_buffer_offset_alignment()
230 if (!info->struct_size || info->struct_size > 2048) { in surface_validate_gen6_buffer()
242 if (info->format == GEN6_FORMAT_RAW && info->struct_size > 1) in surface_validate_gen6_buffer()
276 c = info->size / info->struct_size; in surface_get_gen6_buffer_struct_count()
277 if (info->format_size < info->size - info->struct_size * c) in surface_get_gen6_buffer_struct_count()
300 if (info->format == GEN6_FORMAT_RAW && info->struct_size == 1) { in surface_get_gen6_buffer_struct_count()
[all …]
Dilo_state_surface.h60 uint16_t struct_size; member
/external/libmojo/mojo/public/c/system/
Dbuffer.h45 uint32_t struct_size; member
80 uint32_t struct_size; member
Dplatform_handle.h57 uint32_t struct_size; member
Ddata_pipe.h46 MOJO_ALIGNAS(4) uint32_t struct_size;
Dmessage_pipe.h51 uint32_t struct_size; member
/external/libmojo/mojo/android/system/
Dcore_impl.cc76 DCHECK_EQ(options->struct_size, buffer_size); in CreateMessagePipe()
96 DCHECK_EQ(options->struct_size, buffer_size); in CreateDataPipe()
117 DCHECK_EQ(options->struct_size, buffer_size); in CreateSharedBuffer()
301 DCHECK_EQ(options->struct_size, buffer_size); in Duplicate()
/external/vulkan-validation-layers/scripts/
Dhelper_file_generator.py489 struct_size = self.GenerateStructSizePreamble()
495 struct_size += '#ifdef %s\n' % item.ifdef_protect
502 struct_size += ' case %s: \n' % self.structTypes[item.name].value
503struct_size += ' return vk_size_%s((%s*)struct_ptr);\n' % (item.name.lower(), item.name)
543 struct_size += '#endif // %s\n' % item.ifdef_protect
546 struct_size += self.GenerateStructSizePostamble()
547 return_value = struct_size_funcs + chain_size + struct_size;
/external/python/cpython3/Modules/_decimal/libmpdec/
Dmemory.c136 mpd_sh_alloc(mpd_size_t struct_size, mpd_size_t nmemb, mpd_size_t size) in mpd_sh_alloc() argument
145 req = add_size_t_overflow(req, struct_size, &overflow); in mpd_sh_alloc()
/external/python/cpython3/Modules/_ctypes/libffi/src/s390/
Dffi.c342 size_t struct_size = 0; in ffi_prep_cif_machdep() local
430 struct_size += ROUND_SIZE ((*ptr)->size); in ffi_prep_cif_machdep()
485 cif->bytes = ROUND_SIZE (n_ov * sizeof (long)) + struct_size; in ffi_prep_cif_machdep()
/external/python/cpython2/Modules/_ctypes/libffi/src/s390/
Dffi.c342 size_t struct_size = 0; in ffi_prep_cif_machdep() local
430 struct_size += ROUND_SIZE ((*ptr)->size); in ffi_prep_cif_machdep()
485 cif->bytes = ROUND_SIZE (n_ov * sizeof (long)) + struct_size; in ffi_prep_cif_machdep()
/external/libffi/src/s390/
Dffi.c345 size_t struct_size = 0; in ffi_prep_cif_machdep() local
437 struct_size += ROUND_SIZE ((*ptr)->size); in ffi_prep_cif_machdep()
492 cif->bytes = ROUND_SIZE (n_ov * sizeof (long)) + struct_size; in ffi_prep_cif_machdep()
/external/vboot_reference/tests/
Dvboot_common_tests.c215 TEST_EQ(d->struct_size, sizeof(VbSharedDataHeader), in VbSharedDataTest()
219 TEST_EQ(d->data_used, d->struct_size, "VbSharedDataInit data_used"); in VbSharedDataTest()
/external/vboot_reference/firmware/lib/
Dvboot_common_init.c38 header->struct_size = sizeof(VbSharedDataHeader); in VbSharedDataInit()
/external/mesa3d/src/intel/vulkan/
Danv_pipeline_cache.c126 size_t struct_size = in anv_shader_bin_write_data() local
132 memcpy(data, shader, struct_size); in anv_shader_bin_write_data()
133 data += struct_size; in anv_shader_bin_write_data()
/external/mesa3d/src/gallium/drivers/ilo/
Dilo_render_surface.c82 info.struct_size = in gen6_so_SURFACE_STATE()
493 info.struct_size = 1; in gen6_emit_launch_grid_surface_const()
555 info.struct_size = 1; in gen6_emit_launch_grid_surface_global()
Dilo_render_gen6.c555 const int struct_size = so_info->stride[output_buffer] * 4; in gen6_draw_update_max_svbi() local
566 count = buf_size / struct_size; in gen6_draw_update_max_svbi()
567 if (buf_size % struct_size >= elem_size) in gen6_draw_update_max_svbi()
/external/libmojo/mojo/edk/js/
Dcore.cc114 options.struct_size = 8; in CreateMessagePipe()
211 options.struct_size = 16; in CreateDataPipe()
/external/vboot_reference/firmware/include/
Dvboot_struct.h465 uint64_t struct_size; member

12