Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 1084) sorted by relevance

12345678910>>...44

/hardware/google/gfxstream/guest/mesa/src/util/
Dvma.c33 uint64_t offset; member
76 assert(hole->offset > 0); in util_vma_heap_validate()
85 assert(hole->size + hole->offset == 0 || in util_vma_heap_validate()
86 hole->size + hole->offset > hole->offset); in util_vma_heap_validate()
93 assert(hole->size + hole->offset > hole->offset && in util_vma_heap_validate()
94 hole->size + hole->offset < prev_offset); in util_vma_heap_validate()
96 prev_offset = hole->offset; in util_vma_heap_validate()
108 uint64_t offset, uint64_t size) in util_vma_hole_alloc() argument
110 assert(hole->offset <= offset); in util_vma_hole_alloc()
111 assert(hole->size >= offset - hole->offset + size); in util_vma_hole_alloc()
[all …]
Dos_memory_fd.c54 size_t offset; member
96 *ptr = (void*)((uintptr_t)mapped_ptr + header.offset); in os_import_memory_fd()
98 *size = header.size - header.offset; in os_import_memory_fd()
110 size_t alloc_size, offset; in os_malloc_aligned_fd() local
148 offset = (size_t)((uintptr_t)buf - (uintptr_t)ptr); in os_malloc_aligned_fd()
151 header->offset = offset; in os_malloc_aligned_fd()
152 ((size_t*)buf)[-1] = offset; in os_malloc_aligned_fd()
177 size_t offset = ((size_t*)ptr)[-1]; in os_free_fd() local
178 struct memory_header* header = (struct memory_header*)((uintptr_t)ptr - offset); in os_free_fd()
181 assert(offset == header->offset); in os_free_fd()
/hardware/google/aemu/host-common/
DHostAddressSpace_unittest.cpp84 uint64_t offset; in TEST_F() local
85 allocRes = hwFuncs->allocSharedHostRegion(4096, &offset); in TEST_F()
89 int freeRes = hwFuncs->freeSharedHostRegion(offset); in TEST_F()
93 freeRes = hwFuncs->freeSharedHostRegion(offset); in TEST_F()
114 uint64_t offset; in TEST_F() local
115 allocRes = hwFuncs->allocSharedHostRegionLocked(4096, &offset); in TEST_F()
119 int freeRes = hwFuncs->freeSharedHostRegionLocked(offset); in TEST_F()
123 freeRes = hwFuncs->freeSharedHostRegionLocked(offset); in TEST_F()
140 uint64_t offset; in TEST_F() local
141 int allocRes = hwFuncs->allocSharedHostRegion(4096, &offset); in TEST_F()
[all …]
/hardware/google/pixel/misc_writer/
Dmisc_writer.cpp31 bool MiscWriter::OffsetAndSizeInVendorSpace(size_t offset, size_t size) { in OffsetAndSizeInVendorSpace() argument
33 return size <= total_size && offset <= total_size - size; in OffsetAndSizeInVendorSpace()
36 bool MiscWriter::WriteMiscPartitionVendorSpace(const void* data, size_t size, size_t offset, in WriteMiscPartitionVendorSpace() argument
38 if (!OffsetAndSizeInVendorSpace(offset, size)) { in WriteMiscPartitionVendorSpace()
39 *err = android::base::StringPrintf("Out of bound write (offset %zu size %zu)", offset, size); in WriteMiscPartitionVendorSpace()
46 return write_misc_partition(data, size, misc_blk_device, VENDOR_SPACE_OFFSET_IN_MISC + offset, in WriteMiscPartitionVendorSpace()
51 size_t offset = 0; in PerformAction() local
56 offset = override_offset.value_or(kThemeFlagOffsetInVendorSpace); in PerformAction()
63 offset = override_offset.value_or(kSotaFlagOffsetInVendorSpace); in PerformAction()
69 offset = override_offset.value_or(kPkvmFlagOffsetInVendorSpace); in PerformAction()
[all …]
Dmisc_writer_test.cpp46 void CheckMiscPartitionVendorSpaceContent(size_t offset, const std::string& expected);
51 void MiscWriterTest::CheckMiscPartitionVendorSpaceContent(size_t offset, in CheckMiscPartitionVendorSpaceContent() argument
53 ASSERT_TRUE(MiscWriter::OffsetAndSizeInVendorSpace(offset, expected.size())); in CheckMiscPartitionVendorSpaceContent()
62 VENDOR_SPACE_OFFSET_IN_MISC + offset)); in CheckMiscPartitionVendorSpaceContent()
81 size_t offset = 12360; in TEST_F() local
82 ASSERT_TRUE(misc_writer_->PerformAction(offset)); in TEST_F()
84 CheckMiscPartitionVendorSpaceContent(offset, expected); in TEST_F()
87 ASSERT_TRUE(misc_writer_->PerformAction(offset)); in TEST_F()
89 CheckMiscPartitionVendorSpaceContent(offset, zeros); in TEST_F()
116 size_t offset = MiscWriter::kMaxRamSizeOffsetInVendorSpace; in TEST_F() local
[all …]
/hardware/google/gfxstream/guest/OpenglCodecCommon/
DIndexRangeCache.h48 size_t offset,
54 size_t offset,
59 void invalidateRange(size_t offset, size_t size);
65 offset(0), in IndexRangeKey()
73 offset(_offset), in IndexRangeKey()
78 size_t end = offset + count * glSizeof(type);
79 size_t end_other = rhs.offset + rhs.count * glSizeof(rhs.type);
81 if (offset != rhs.offset) return offset < rhs.offset;
90 size_t offset; member
DIndexRangeCache.cpp23 size_t offset, in addRange() argument
31 mIndexRangeCache[IndexRangeKey(type, offset, count, primitiveRestartEnabled)] = r; in addRange()
35 size_t offset, in findRange() argument
42 IndexRangeKey(type, offset, count, primitiveRestartEnabled)); in findRange()
56 void IndexRangeCache::invalidateRange(size_t offset, size_t size) { in invalidateRange() argument
57 size_t invalidateStart = offset; in invalidateRange()
58 size_t invalidateEnd = offset + size; in invalidateRange()
63 size_t rangeStart = it->first.offset; in invalidateRange()
65 it->first.offset + in invalidateRange()
/hardware/interfaces/bluetooth/hci/
Dhci_packetizer.cc41 size_t offset = packet_length_offset_for_type[static_cast<uint8_t>(type)]; in HciGetPacketLengthForType() local
43 return header[offset]; in HciGetPacketLengthForType()
45 return (((header[offset + 1]) << 8) | header[offset]); in HciGetPacketLengthForType()
54 size_t* offset) { in OnDataReady() argument
56 size_t bytes_available = buffer.size() - *offset; in OnDataReady()
68 packet_.insert(packet_.end(), buffer.begin() + *offset, in OnDataReady()
69 buffer.begin() + *offset + bytes_to_copy); in OnDataReady()
72 *offset += bytes_to_copy; in OnDataReady()
79 packet_completed = OnDataReady(packet_type, buffer, offset); in OnDataReady()
90 packet_.insert(packet_.end(), buffer.begin() + *offset, in OnDataReady()
[all …]
/hardware/google/aemu/host-common/testing/
DHostAddressSpace.cpp186 static uint64_t offsetToPhysAddr(uint64_t offset) { in offsetToPhysAddr() argument
187 return kPciStart + offset; in offsetToPhysAddr()
254 int allocSharedHostRegion(uint64_t page_aligned_size, uint64_t* offset) { in allocSharedHostRegion() argument
256 if (!offset) return -EINVAL; in allocSharedHostRegion()
260 return allocSharedHostRegionLocked(page_aligned_size, offset); in allocSharedHostRegion()
263 int allocSharedHostRegionLocked(uint64_t page_aligned_size, uint64_t* offset) { in allocSharedHostRegionLocked() argument
264 if (!offset) return -EINVAL; in allocSharedHostRegionLocked()
270 *offset = off; in allocSharedHostRegionLocked()
278 int allocSharedHostRegionFixedLocked(uint64_t page_aligned_size, uint64_t offset) { in allocSharedHostRegionFixedLocked() argument
279 mPhysicalOffsetAllocator.allocFixed(page_aligned_size, offset); in allocSharedHostRegionFixedLocked()
[all …]
/hardware/google/pixel/pixelstats/
DTempResidencyReporter.cpp43 bool updateOffsetAndCheckBound(int *offset, const int &bytes_read, const int &data_len) { in updateOffsetAndCheckBound() argument
44 *offset += bytes_read; in updateOffsetAndCheckBound()
45 return *offset <= data_len; in updateOffsetAndCheckBound()
56 int offset = 0; in parse_file_contents() local
59 while (sscanf(data + offset, "THERMAL ZONE: %31s\n%n", sensor_name, &bytes_read) == 1) { in parse_file_contents()
64 if (!updateOffsetAndCheckBound(&offset, bytes_read, data_len)) in parse_file_contents()
69 if (!sscanf(data + offset, "MAX_TEMP: %f\n%n", &temp_residency_stats.max_temp, in parse_file_contents()
71 !updateOffsetAndCheckBound(&offset, bytes_read, data_len)) in parse_file_contents()
74 if (!sscanf(data + offset, "MAX_TEMP_TIMESTAMP: %" PRId64 "s\n%n", in parse_file_contents()
76 !updateOffsetAndCheckBound(&offset, bytes_read, data_len)) in parse_file_contents()
[all …]
/hardware/google/graphics/zuma/libacryl_plugins/
Dlibacryl_hdr_plugin.cpp133 uint32_t set_and_get_next_offset(uint32_t offset, uint32_t value) { in set_and_get_next_offset()
134 commands[cmdlist.command_count].offset = offset; in set_and_get_next_offset()
137 return offset + sizeof(value); in set_and_get_next_offset()
143 hdr_mode.offset = G2D_LAYER_HDRMODE(layer); in updateLayer()
153 void updateDouble(const containerT &container, uint32_t offset) { in updateDouble()
155 offset = set_and_get_next_offset(offset, container[n] | container[n + 1] << 16); in updateDouble()
157 set_and_get_next_offset(offset, container.back()); in updateDouble()
161 void updateSingle(const containerT &container, uint32_t offset) { in updateSingle()
163 offset = set_and_get_next_offset(offset, item); in updateSingle()
166 …TmCoef(const displaycolor::IDisplayColorZuma::IDpp::DtmData::ConfigType &config, uint32_t offset) { in updateTmCoef()
[all …]
/hardware/nxp/secure_element/pn8x/ls_client/src/
DLsLib.cpp434 uint8_t len_byte, offset; in LSC_loadapplet() local
437 offset = 0; in LSC_loadapplet()
450 if (temp_buf[offset] == TAG_LSC_CMD_ID) { in LSC_loadapplet()
452 offset = offset + 1; in LSC_loadapplet()
453 len_byte = Numof_lengthbytes(&temp_buf[offset], &wLen); in LSC_loadapplet()
461 offset = offset + len_byte; in LSC_loadapplet()
463 memcpy(pTranscv_Info->sSendData, &temp_buf[offset], wLen); in LSC_loadapplet()
479 } else if ((temp_buf[offset] == (0x7F)) && in LSC_loadapplet()
480 (temp_buf[offset + 1] == (0x21))) { in LSC_loadapplet()
498 offset = offset + 2; in LSC_loadapplet()
[all …]
/hardware/google/aemu/base/include/aemu/base/
Daddress_space.h40 uint64_t offset; member
126 uint64_t offset) in address_space_allocator_find_available_block_at_offset() argument
143 offset >= block->offset && in address_space_allocator_find_available_block_at_offset()
144 offset < block->offset + this_size) { in address_space_allocator_find_available_block_at_offset()
211 new_block->offset = to_borrow_from->offset + new_size; in address_space_allocator_split_block()
238 uint64_t offset) in address_space_allocator_split_block_at_offset() argument
250 address_space_assert(offset >= allocator->blocks[i].offset); in address_space_allocator_split_block_at_offset()
251 if (offset == allocator->blocks[i].offset) { in address_space_allocator_split_block_at_offset()
256 allocator->blocks[i].size - size, offset + size); in address_space_allocator_split_block_at_offset()
262 (allocator->blocks[i].size - size - (offset - allocator->blocks[i].offset)) != 0; in address_space_allocator_split_block_at_offset()
[all …]
/hardware/google/graphics/common/libion/test/
Dion_test_fixture.h114 void *ptr, size_t size, off_t offset);
119 void ionTestWriteDma(int fd, void *ptr, size_t size, off_t offset) { in ionTestWriteDma() argument
120 ionTestMapping(fd, true, ION_IOC_TEST_DMA_MAPPING, ptr, size, offset); in ionTestWriteDma()
122 void ionTestReadDma(int fd, void *ptr, size_t size, off_t offset) { in ionTestReadDma() argument
123 ionTestMapping(fd, false, ION_IOC_TEST_DMA_MAPPING, ptr, size, offset); in ionTestReadDma()
125 void ionTestWriteKernel(int fd, void *ptr, size_t size, off_t offset) { in ionTestWriteKernel() argument
126 ionTestMapping(fd, true, ION_IOC_TEST_KERNEL_MAPPING, ptr, size, offset); in ionTestWriteKernel()
128 void ionTestReadKernel(int fd, void *ptr, size_t size, off_t offset) { in ionTestReadKernel() argument
129 ionTestMapping(fd, false, ION_IOC_TEST_KERNEL_MAPPING, ptr, size, offset); in ionTestReadKernel()
132 void fill(void *ptr, size_t size, off_t offset);
[all …]
/hardware/google/graphics/gs201/libacryl_plugins/
Dlibacryl_hdr_plugin.cpp113 uint32_t set_and_get_next_offset(uint32_t offset, uint32_t value) { in set_and_get_next_offset()
114 commands[cmdlist.command_count].offset = offset; in set_and_get_next_offset()
117 return offset + sizeof(value); in set_and_get_next_offset()
123 hdr_mode.offset = G2D_LAYER_HDRMODE(layer); in updateLayer()
133 void updateDouble(const containerT &container, uint32_t offset) { in updateDouble()
135 offset = set_and_get_next_offset(offset, container[n] | container[n + 1] << 16); in updateDouble()
137 set_and_get_next_offset(offset, container.back()); in updateDouble()
141 void updateSingle(const containerT &container, uint32_t offset) { in updateSingle()
143 offset = set_and_get_next_offset(offset, item); in updateSingle()
146 …mCoef(const displaycolor::IDisplayColorGS101::IDpp::DtmData::ConfigType &config, uint32_t offset) { in updateTmCoef()
[all …]
/hardware/google/graphics/gs101/libacryl_plugins/
Dlibacryl_hdr_plugin.cpp113 uint32_t set_and_get_next_offset(uint32_t offset, uint32_t value) { in set_and_get_next_offset()
114 commands[cmdlist.command_count].offset = offset; in set_and_get_next_offset()
117 return offset + sizeof(value); in set_and_get_next_offset()
123 hdr_mode.offset = G2D_LAYER_HDRMODE(layer); in updateLayer()
133 void updateDouble(const containerT &container, uint32_t offset) { in updateDouble()
135 offset = set_and_get_next_offset(offset, container[n] | container[n + 1] << 16); in updateDouble()
137 set_and_get_next_offset(offset, container.back()); in updateDouble()
141 void updateSingle(const containerT &container, uint32_t offset) { in updateSingle()
143 offset = set_and_get_next_offset(offset, item); in updateSingle()
146 …mCoef(const displaycolor::IDisplayColorGS101::IDpp::DtmData::ConfigType &config, uint32_t offset) { in updateTmCoef()
[all …]
/hardware/broadcom/wlan/bcmdhd/wifi_hal/
Dlink_layer_stats.cpp100 uint32_t offset = 0, num_radios = 0, per_radio_size = 0, data_len = 0; in handleResponse() local
171 data_ptr = data + offset; in handleResponse()
189 offset += per_radio_size; in handleResponse()
194 data_rem_len = data_len - offset; in handleResponse()
209 data_ptr = (data + offset); in handleResponse()
212 data_len, offset); in handleResponse()
228 offset += fixed_iface_ml_stat_size; in handleResponse()
246 ret = convertToExternalIfaceMlstatStructure(&data, &offset, &outbuf, in handleResponse()
262 } else if ((data_len >= (offset + sizeof(wifi_iface_stat)))) { in handleResponse()
263 iface_stat = (data + offset); in handleResponse()
[all …]
/hardware/google/gfxstream/guest/GoldfishAddressSpace/include/
Daddress_space.h37 uint64_t offset; member
51 address_space_handle_t, size_t size, uint64_t* phys_addr, uint64_t* offset);
53 address_space_handle_t, uint64_t offset);
56 address_space_handle_t, uint64_t offset, uint64_t size);
58 address_space_handle_t, uint64_t offset);
62 address_space_handle_t, uint64_t offset, uint64_t size, uint64_t pgoff);
/hardware/qcom/display/msm8909/libgralloc/
Dmemalloc.h46 unsigned int offset; member
66 unsigned int offset, int fd) = 0;
70 unsigned int offset, int fd) = 0;
74 unsigned int offset) = 0;
78 unsigned int offset, int fd, int op) = 0;
/hardware/qcom/display/msm8994/libgralloc/
Dmemalloc.h46 unsigned int offset; member
65 unsigned int offset, int fd) = 0;
69 unsigned int offset, int fd) = 0;
73 unsigned int offset) = 0;
77 unsigned int offset, int fd, int op) = 0;
/hardware/qcom/display/msm8226/libgralloc/
Dmemalloc.h46 unsigned int offset; member
65 unsigned int offset, int fd) = 0;
69 unsigned int offset, int fd) = 0;
73 unsigned int offset) = 0;
77 unsigned int offset, int fd, int op) = 0;
/hardware/qcom/display/msm8909w_3100/libgralloc/
Dmemalloc.h46 unsigned int offset; member
66 unsigned int offset, int fd) = 0;
70 unsigned int offset, int fd) = 0;
74 unsigned int offset) = 0;
78 unsigned int offset, int fd, int op) = 0;
/hardware/qcom/display/msm8996/libgralloc/
Dmemalloc.h46 unsigned int offset; member
66 unsigned int offset, int fd) = 0;
70 unsigned int offset, int fd) = 0;
74 unsigned int offset) = 0;
78 unsigned int offset, int fd, int op) = 0;
/hardware/qcom/display/msm8960/libgralloc/
Dmemalloc.h46 int offset; member
65 int offset, int fd) = 0;
69 int offset, int fd) = 0;
73 int offset) = 0;
77 int offset, int fd, int op) = 0;
/hardware/qcom/display/msm8909/gralloc/
Dgr_ion_alloc.h49 unsigned int offset = 0; member
67 int FreeBuffer(void *base, unsigned int size, unsigned int offset, int fd, int ion_handle);
68 int MapBuffer(void **base, unsigned int size, unsigned int offset, int fd);
70 int UnmapBuffer(void *base, unsigned int size, unsigned int offset);
71 int CleanBuffer(void *base, unsigned int size, unsigned int offset, int handle, int op);

12345678910>>...44