Searched refs:offset (Results 26 - 50 of 502) sorted by relevance

1234567891011>>

/system/extras/libpagemap/
H A Dpm_memusage.c32 /* We use an array of int to store the references to a given offset in the swap
33 1 GiB swap means 512KiB size array: offset are the index */
70 fprintf(stderr, "Error allocating proportional swap offset array.\n");
86 void pm_memusage_pswap_add_offset(pm_memusage_t *mu, unsigned int offset) { argument
92 if (offset >= mu->p_swap->array_size) {
93 fprintf(stderr, "SWAP offset %d is out of swap bounds.\n", offset);
97 if (mu->p_swap->offset_array[offset] == USHRT_MAX) {
98 fprintf(stderr, "SWAP offset %d ref. count if overflowing ushort type.\n", offset);
[all...]
/system/update_engine/common/
H A Dmulti_range_http_fetcher.h60 void AddRange(off_t offset, size_t size) { argument
62 ranges_.push_back(Range(offset, size));
65 void AddRange(off_t offset) { argument
66 ranges_.push_back(Range(offset));
70 void SetOffset(off_t offset) override;
122 // A range object defining the offset and length of a download chunk. Zero
123 // length indicates an unspecified end offset (note that it is impossible to
127 Range(off_t offset, size_t length) : offset_(offset), length_(length) {} argument
128 explicit Range(off_t offset) argument
130 inline off_t offset() const { return offset_; } function in class:chromeos_update_engine::MultiRangeHttpFetcher::Range
[all...]
H A Dmulti_range_http_fetcher.cc77 base_fetcher_->SetOffset(range.offset());
83 delegate_->SeekToOffset(range.offset());
183 std::string range_str = base::StringPrintf("%jd+", offset());
191 void MultiRangeHttpFetcher::SetOffset(off_t offset) { argument
194 if (!range.HasLength() || static_cast<size_t>(offset) < range.length()) {
195 bytes_received_this_range_ = offset;
197 base_fetcher_->SetOffset(range.offset() + offset);
203 delegate_->SeekToOffset(range.offset() + offset);
[all...]
/system/extras/ioshark/
H A Dioshark_bench_mmap.c47 off_t offset; member in struct:mmap_io_ent_tab_s
59 size_t total_len, off_t offset)
69 mio->table[mio->num_entries].offset = offset;
73 offset += mio->table[mio->num_entries].len;
80 off_t *offset)
98 *offset = mio->table[i].offset;
99 mio->table[i].offset += iolength;
106 mmap_do_io(void *db_node, int prot, off_t offset, size_ argument
58 setup_mmap_io_state(struct mmap_io_ent_s *mio, size_t total_len, off_t offset) argument
79 mmap_getnext_off_len(struct mmap_io_ent_s *mio, off_t *offset) argument
170 off_t offset = file_op->mmap_offset; local
[all...]
/system/extras/zram-perf/
H A Dzram-perf.cpp66 for (uint64_t offset = 0; offset < devSize; offset += page_size) {
82 for (uint64_t offset = 0; offset < devSize; offset += page_size) {
83 if (offset == 0)
84 lseek(m_fd, offset, SEEK_SET);
103 for (uint64_t offset = 0; offset < devSiz
[all...]
/system/bt/stack/avrc/
H A Davrc_opt.cc56 p_cmd->offset = AVCT_MSG_OFFSET;
57 p_data = (uint8_t*)(p_cmd + 1) + p_cmd->offset;
66 p_cmd->offset);
97 p_cmd->offset = AVCT_MSG_OFFSET;
98 p_data = (uint8_t*)(p_cmd + 1) + p_cmd->offset;
105 p_data + AVRC_UNIT_OPRND_BYTES - (uint8_t*)(p_cmd + 1) - p_cmd->offset;
140 p_cmd->offset = AVCT_MSG_OFFSET;
141 p_data = (uint8_t*)(p_cmd + 1) + p_cmd->offset;
150 p_data + AVRC_SUB_OPRND_BYTES - (uint8_t*)(p_cmd + 1) - p_cmd->offset;
/system/bt/vendor_libs/test_vendor_lib/src/
H A Dhci_packet.cc15 Iterator Iterator::operator+(size_t offset) { argument
18 return itr += offset;
21 Iterator& Iterator::operator+=(size_t offset) { argument
22 size_t new_offset = index_ + offset;
45 Iterator Iterator::operator-(size_t offset) { argument
48 return itr -= offset;
53 Iterator& Iterator::operator-=(size_t offset) { argument
54 index_ = offset > index_ ? 0 : index_ - offset;
/system/core/libdiskconfig/
H A Dwrite_lst.c73 if (lseek64(fd, lst->offset, SEEK_SET) != (loff_t)lst->offset) {
74 ALOGE("Cannot seek to the specified position (%lld).", (long long)lst->offset);
81 (long long)lst->offset);
85 ALOGI("Would write %d bytes @ offset %lld.", lst->len, (long long)lst->offset);
/system/core/libunwindstack/tests/
H A DElfFake.cpp35 bool ElfInterfaceFake::GetFunctionName(uint64_t, uint64_t, std::string* name, uint64_t* offset) { argument
42 *offset = entry.offset;
46 bool ElfInterfaceFake::GetGlobalVariable(const std::string& global, uint64_t* offset) { argument
51 *offset = entry->second;
H A DElfTestUtils.cpp66 uint64_t offset = sizeof(Ehdr); local
67 ehdr.e_shoff = offset;
76 copy_func(offset, &shdr, sizeof(shdr));
77 offset += ehdr.e_shentsize;
80 uint64_t gnu_offset = offset;
81 offset += ehdr.e_shentsize;
89 copy_func(offset, &shdr, sizeof(shdr));
102 offset = symtab_offset + 0x100;
122 copy_func(offset, buf.data(), buf.size());
128 shdr.sh_addr = offset;
[all...]
H A DSymbolsTest.cpp65 uint64_t offset = 0x1000; local
66 this->memory_.SetMemory(offset, &sym, sizeof(sym));
92 uint64_t offset = 0x1000; local
93 this->memory_.SetMemory(offset, &sym, sizeof(sym));
107 this->memory_.SetMemory(offset, &sym, sizeof(sym));
115 this->memory_.SetMemory(offset, &sym, sizeof(sym));
125 uint64_t offset = 0x1000; local
129 this->memory_.SetMemory(offset, &sym, sizeof(sym));
132 offset += sizeof(sym);
135 this->memory_.SetMemory(offset,
184 uint64_t offset = 0x1000; local
226 uint64_t offset = 0x1000; local
252 uint64_t offset = 0x1000; local
287 uint64_t offset = 0x1000; local
374 uint64_t offset; local
[all...]
/system/extras/simpleperf/
H A Dtracing.h29 size_t offset; member in struct:TracingField
36 uint32_t offset; member in struct:TracingFieldPlace
40 return ConvertBytesToValue(raw_data + offset, size);
52 place.offset = field.offset;
/system/extras/libfec/include/fec/
H A Decc.h50 /* returns a physical offset for a byte in an RS block */
51 inline uint64_t fec_ecc_interleave(uint64_t offset, int rsn, uint64_t rounds) argument
53 return (offset / rsn) + (offset % rsn) * rounds * FEC_BLOCKSIZE;
/system/extras/tests/workloads/
H A Dpowerave.py13 offset = 0.0 variable
18 if o == '-o': offset = float(a)
34 val -= offset
/system/bt/bta/hf_client/
H A Dbta_hf_client_at.h48 unsigned int offset; member in struct:__anon151
/system/bt/packet/base/
H A Diterator.h36 Iterator operator+(size_t offset);
37 Iterator& operator+=(size_t offset);
41 Iterator operator-(size_t offset);
43 Iterator& operator-=(size_t offset);
/system/core/libion/kernel-headers/linux/
H A Dion_test.h26 __u64 offset; member in struct:ion_test_rw_data
/system/core/libion/original-kernel-headers/linux/
H A Dion_test.h26 * @offset: offset into the ion buffer to start reading
32 __u64 offset; member in struct:ion_test_rw_data
/system/core/libunwindstack/include/unwindstack/
H A DMapInfo.h37 MapInfo(uint64_t start, uint64_t end, uint64_t offset, uint64_t flags, const std::string& name) argument
40 offset(offset),
48 uint64_t offset = 0; member in struct:unwindstack::MapInfo
52 // This value is only non-zero if the offset is non-zero but there is
53 // no elf signature found at that offset. This indicates that the
/system/core/property_service/libpropertyinfoparser/include/property_info_parser/
H A Dproperty_info_parser.h74 const char* c_string(uint32_t offset) const {
75 if (offset != 0 && offset > size()) return nullptr;
76 return static_cast<const char*>(data_base_ + offset);
79 const uint32_t* uint32_array(uint32_t offset) const {
80 if (offset != 0 && offset > size()) return nullptr;
81 return reinterpret_cast<const uint32_t*>(data_base_ + offset);
84 uint32_t uint32(uint32_t offset) const {
85 if (offset !
[all...]
/system/nfc/src/nfc/nfc/
H A Dnfc_test.cc57 (p_data->offset >= (NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE))) {
/system/update_engine/payload_consumer/
H A Dfake_file_descriptor.cc28 // Find the first offset greater or equal than the current position where a
32 // A failure range that includes the current offset results in an
55 off64_t FakeFileDescriptor::Seek(off64_t offset, int whence) { argument
58 offset_ = offset;
61 offset_ += offset;
64 if (offset > size_)
/system/extras/verity/fec/
H A Dimage.h94 uint64_t offset = fec_ecc_interleave(i, ctx->rs_n, ctx->rounds); local
96 if (unlikely(offset >= ctx->inp_size)) {
100 return ctx->input[offset];
106 uint64_t offset = fec_ecc_interleave(i, ctx->rs_n, ctx->rounds); local
108 if (unlikely(offset >= ctx->inp_size)) {
110 } else if (ctx->output && ctx->output[offset] != value) {
111 ctx->output[offset] = value;
/system/core/libunwindstack/
H A DElfInterfaceArm.cpp64 bool ElfInterfaceArm::GetPrel31Addr(uint32_t offset, uint32_t* addr) { argument
66 if (!memory_->Read32(offset, &data)) {
68 last_error_.address = offset;
74 *addr = offset + value;
82 bool ElfInterfaceArm::HandleType(uint64_t offset, uint32_t type, uint64_t load_bias) { argument
88 if (!memory_->ReadField(offset, &phdr, &phdr.p_vaddr, sizeof(phdr.p_vaddr))) {
91 if (!memory_->ReadField(offset, &phdr, &phdr.p_memsz, sizeof(phdr.p_memsz))) {
171 uint64_t* offset) {
174 // the thumb function names. Adjust the address and offset to account
176 if (ElfInterface32::GetFunctionName(addr | 1, load_bias, name, offset)) {
170 GetFunctionName(uint64_t addr, uint64_t load_bias, std::string* name, uint64_t* offset) argument
[all...]
/system/media/audio_utils/include/audio_utils/
H A DErrorLog.h117 ssize_t offset; local
118 for (offset = 0; offset < (ssize_t)lines; ++offset) {
120 mEntries[(mIdx + numberOfEntries - offset) % numberOfEntries];
125 if (offset > 0) {
126 offset--;
128 for (; offset >= 0; --offset) {
130 mEntries[(mIdx + numberOfEntries - offset)
[all...]

Completed in 1448 milliseconds

1234567891011>>