/system/core/include/utils/ |
H A D | Compat.h | 28 static inline off64_t lseek64(int fd, off64_t offset, int whence) { argument 29 return lseek(fd, offset, whence); 32 static inline ssize_t pread64(int fd, void* buf, size_t nbytes, off64_t offset) { argument 33 return pread(fd, buf, nbytes, offset); 36 static inline ssize_t pwrite64(int fd, const void* buf, size_t nbytes, off64_t offset) { argument 37 return pwrite(fd, buf, nbytes, offset);
|
/system/bt/tools/scripts/ |
H A D | btsnooz.py | 96 offset = 0 97 while offset < len(decompressed): 98 length, delta_time_ms, type = struct.unpack_from('=HIb', decompressed, offset) 99 offset += 7 + length - 1 103 offset = 0 104 while offset < len(decompressed): 105 length, delta_time_ms, type = struct.unpack_from('=HIb', decompressed, offset) 107 offset += 7 112 sys.stdout.write(decompressed[offset : offset [all...] |
/system/core/libcutils/ |
H A D | open_memstream.c | 71 size_t offset; /* current write offset */ member in struct:__anon1610 79 * current offset. We also have to take into account the extra '\0' 86 DBUG(("+++ ensureCap off=%d size=%d\n", stream->offset, writeSize)); 88 size_t neededSize = stream->offset + writeSize + 1; 129 if (stream->eof < stream->offset) { 131 stream->eof, stream->offset-1)); 133 stream->offset - stream->eof); 137 memcpy(*stream->bufp + stream->offset, buf, size); 138 stream->offset 162 seek_memstream(void* cookie, fpos_t offset, int whence) argument [all...] |
/system/core/libpixelflinger/codeflinger/ |
H A D | ARMAssemblerInterface.cpp | 54 uint32_t offset = abs(immed8); local 61 ((W&1)<<21) | (((offset&0xF0)<<4)|(offset&0xF)); 69 int Rn, uint32_t offset) 71 LDR(cc, Rd, Rn, offset); 74 int Rn, uint32_t offset) 76 STR(cc, Rd, Rn, offset); 68 ADDR_LDR(int cc, int Rd, int Rn, uint32_t offset) argument 73 ADDR_STR(int cc, int Rd, int Rn, uint32_t offset) argument
|
/system/core/include/cutils/ |
H A D | ashmem.h | 21 int ashmem_pin_region(int fd, size_t offset, size_t len); 22 int ashmem_unpin_region(int fd, size_t offset, size_t len);
|
/system/core/libdiskconfig/ |
H A D | diskutils.c | 34 write_raw_image(const char *dst, const char *src, loff_t offset, int test) argument 44 ALOGI("Writing RAW image '%s' to '%s' (offset=%llu)", src, dst, (unsigned long long)offset); 56 if (lseek64(dst_fd, offset, SEEK_SET) != offset) { 57 ALOGE("Could not seek to offset %lld in %s.", (long long)offset, dst); 105 ALOGI("Wrote %" PRIu64 " bytes to %s @ %lld", total, dst, (long long)offset);
|
H A D | write_lst.c | 73 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/extras/libfec/ |
H A D | fec_read.cpp | 66 /* checks if `offset' is within a corrupted block */ 67 static inline bool is_erasure(fec_handle *f, uint64_t offset, argument 70 if (unlikely(offset >= f->data_size)) { 78 uint64_t n = offset / FEC_BLOCKSIZE; 84 /* check if `offset' is within a block expected to contain zeros */ 85 static inline bool is_zero(fec_handle *f, uint64_t offset) argument 89 if (!v->hash || unlikely(offset >= f->data_size)) { 93 uint64_t hash_offset = (offset / FEC_BLOCKSIZE) * SHA256_DIGEST_LENGTH; 103 /* reads and decodes a single block starting from `offset', returns the number 105 static int __ecc_read(fec_handle *f, void *rs, uint8_t *dest, uint64_t offset, argument 232 ecc_read(fec_handle *f, uint8_t *dest, size_t count, uint64_t offset, size_t *errors) argument 283 verity_read(fec_handle *f, uint8_t *dest, size_t count, uint64_t offset, size_t *errors) argument 402 fec_seek(struct fec_handle *f, int64_t offset, int whence) argument 457 get_max_count(uint64_t offset, size_t count, uint64_t max) argument 470 raw_pread(fec_handle *f, void *buf, size_t count, uint64_t offset) argument 494 raw_pwrite(fec_handle *f, const void *buf, size_t count, uint64_t offset) argument 519 fec_pread(struct fec_handle *f, void *buf, size_t count, uint64_t offset) argument [all...] |
H A D | fec_process.cpp | 24 uint64_t offset; member in struct:process_info 35 debug("thread %d: [%" PRIu64 ", %" PRIu64 ")", p->id, p->offset, 36 p->offset + p->count); 38 p->rc = p->func(p->f, p->buf, p->count, p->offset, &p->errors); 43 ssize_t process(fec_handle *f, uint8_t *buf, size_t count, uint64_t offset, argument 62 uint64_t start = (offset / FEC_BLOCKSIZE) * FEC_BLOCKSIZE; 71 uint64_t pos = offset; 87 info[i].buf = &buf[pos - offset]; 89 info[i].offset = pos;
|
H A D | fec_open.cpp | 40 /* performs a binary search to find a metadata offset from a file so that 43 static int find_offset(uint64_t file_size, int roots, uint64_t *offset, argument 46 check(offset); 70 *offset = mi; 71 debug("file_size = %" PRIu64 " -> offset = %" PRIu64, file_size, 77 warn("could not determine offset"); 88 /* computes the verity metadata offset for a file with size `f->size' */ 89 static int find_verity_offset(fec_handle *f, uint64_t *offset) argument 92 check(offset); 94 return find_offset(f->data_size, 0, offset, get_verity_siz 99 parse_ecc_header(fec_handle *f, uint64_t offset) argument 205 parse_ecc(fec_handle *f, uint64_t offset) argument 316 uint64_t offset = f->data_size - VERITY_METADATA_SIZE; local 357 uint64_t offset = f->data_size - FEC_BLOCKSIZE; local [all...] |
/system/extras/libpagemap/ |
H A D | pm_memusage.c | 32 /* 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); 96 if (mu->p_swap->offset_array[offset] == USHRT_MAX) { 97 fprintf(stderr, "SWAP offset %d ref. count if overflowing ushort type.\n", offset); [all...] |
/system/update_engine/common/ |
H A D | multi_range_http_fetcher.h | 60 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 {} // for now, doesn't support this 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...] |
/system/extras/zram-perf/ |
H A D | zram-perf.cpp | 66 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/extras/f2fs_utils/ |
H A D | f2fs_ioutils.c | 97 static int dev_write_fd(void *buf, __u64 offset, size_t len) argument 99 if (lseek64(config.fd, (off64_t)offset, SEEK_SET) < 0) 153 int dev_read_version(void *buf, __u64 offset, size_t len) argument 158 int dev_read(void *buf, __u64 offset, size_t len) argument 163 int dev_write(void *buf, __u64 offset, size_t len) argument 166 return dev_write_fd(buf, offset, len); 168 return dev_write_sparse(buf, offset, len); 173 int dev_fill(void *buf, __u64 offset, size_t len) argument 177 return dev_write_fd(buf, offset, len);
|
/system/extras/perfprofd/quipper/ |
H A D | perf_reader.h | 180 bool ReadAttr(const ConstBufferWithSize& data, size_t* offset); 181 bool ReadEventAttr(const ConstBufferWithSize& data, size_t* offset, 184 size_t* offset, std::vector<u64>* ids); 187 bool ReadEventType(const ConstBufferWithSize& data, size_t* offset); 194 size_t offset, size_t size); 196 size_t offset, size_t size); 198 size_t offset, size_t size); 200 size_t offset, size_t size); 202 size_t offset, size_t size); 204 size_t offset, size_ [all...] |
H A D | perf_utils.cc | 116 uint64_t offset = kuint64max; local 119 offset = offsetof(event_t, sample.array); 122 offset = sizeof(event.mmap) - sizeof(event.mmap.filename) + 127 offset = sizeof(event.fork); 130 offset = sizeof(event.comm) - sizeof(event.comm.comm) + 134 offset = sizeof(event.lost); 137 offset = sizeof(event.read); 140 offset = sizeof(event.mmap2) - sizeof(event.mmap2.filename) + 147 // Make sure the offset was valid 148 CHECK_NE(offset, kuint64ma [all...] |
/system/extras/libfec/include/fec/ |
H A D | ecc.h | 50 /* 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 D | powerave.py | 13 offset = 0.0 variable 18 if o == '-o': offset = float(a) 34 val -= offset
|
/system/bt/service/doc/ |
H A D | IBluetoothGattServerCallback.txt | 42 * |characteristic_id|. |offset| is the index of the characteristic value that 48 * If |offset| is invalid then sendResponse should be called with 54 in int offset, in boolean is_long, 60 * |descriptor_id|. |offset| is the index of the descriptor value that 66 * If |offset| is invalid then sendResponse should be called with 72 in int offset, in boolean is_long, 80 * |request_id|. |offset| is the index of the characteristic value that the 82 * |offset|. If |need_response| is false, then this is a "Write Without 87 * If |offset| is invalid, then sendResponse should be called with 91 in int offset, i [all...] |
/system/core/libion/kernel-headers/linux/ |
H A D | ion_test.h | 26 __u64 offset; member in struct:ion_test_rw_data
|
/system/core/libion/original-kernel-headers/linux/ |
H A D | ion_test.h | 26 * @offset: offset into the ion buffer to start reading 32 __u64 offset; member in struct:ion_test_rw_data
|
/system/extras/verity/fec/ |
H A D | image.h | 97 uint64_t offset = fec_ecc_interleave(i, ctx->rs_n, ctx->rounds); local 99 if (unlikely(offset >= ctx->inp_size)) { 103 return ctx->input[offset]; 109 uint64_t offset = fec_ecc_interleave(i, ctx->rs_n, ctx->rounds); local 111 if (unlikely(offset >= ctx->inp_size)) { 113 } else if (ctx->output && ctx->output[offset] != value) { 114 ctx->output[offset] = value;
|
/system/bt/stack/gatt/ |
H A D | att_protocol.c | 58 p_buf->offset = L2CAP_MIN_OFFSET; 79 p_buf->offset = L2CAP_MIN_OFFSET; 113 p_buf->offset = L2CAP_MIN_OFFSET; 135 p_buf->offset = L2CAP_MIN_OFFSET; 163 p_buf->offset = L2CAP_MIN_OFFSET; 197 p_buf->offset = L2CAP_MIN_OFFSET; 218 BT_HDR *attp_build_handle_cmd(UINT8 op_code, UINT16 handle, UINT16 offset) argument 225 p_buf->offset = L2CAP_MIN_OFFSET; 234 UINT16_TO_STREAM (p, offset); 257 p_buf->offset 274 attp_build_value_cmd(UINT16 payload_size, UINT8 op_code, UINT16 handle, UINT16 offset, UINT16 len, UINT8 *p_data) argument 361 UINT16 offset = 0; local 509 UINT16 offset = 0, handle; local [all...] |
/system/bt/stack/avrc/ |
H A D | avrc_opt.c | 62 p_cmd->offset = AVCT_MSG_OFFSET; 63 p_data = (UINT8 *)(p_cmd + 1) + p_cmd->offset; 70 p_cmd->len = (UINT16)(p_data + p_msg->vendor_len - (UINT8 *)(p_cmd + 1) - p_cmd->offset); 102 p_cmd->offset = AVCT_MSG_OFFSET; 103 p_data = (UINT8 *)(p_cmd + 1) + p_cmd->offset; 109 p_cmd->len = p_data + AVRC_UNIT_OPRND_BYTES - (UINT8 *)(p_cmd + 1) - p_cmd->offset; 145 p_cmd->offset = AVCT_MSG_OFFSET; 146 p_data = (UINT8 *)(p_cmd + 1) + p_cmd->offset; 153 p_cmd->len = p_data + AVRC_SUB_OPRND_BYTES - (UINT8 *)(p_cmd + 1) - p_cmd->offset;
|
/system/bt/hci/src/ |
H A D | packet_fragmenter.c | 70 uint8_t *stream = packet->data + packet->offset; 92 stream = packet->data + packet->offset; 99 packet->offset += max_data_size; 104 stream = packet->data + packet->offset; 181 partial_packet->offset = packet->len; 200 packet->offset = HCI_ACL_PREAMBLE_SIZE; 201 uint16_t projected_offset = partial_packet->offset + (packet->len - HCI_ACL_PREAMBLE_SIZE); 204 packet->len = partial_packet->len - partial_packet->offset; 209 partial_packet->data + partial_packet->offset, 210 packet->data + packet->offset, [all...] |