/system/core/libcutils/ |
D | open_memstream.c | 71 size_t offset; /* current write offset */ member 86 DBUG(("+++ ensureCap off=%d size=%d\n", stream->offset, writeSize)); in ensureCapacity() 88 size_t neededSize = stream->offset + writeSize + 1; in ensureCapacity() 129 if (stream->eof < stream->offset) { in write_memstream() 131 stream->eof, stream->offset-1)); in write_memstream() 133 stream->offset - stream->eof); in write_memstream() 137 memcpy(*stream->bufp + stream->offset, buf, size); in write_memstream() 138 stream->offset += size; in write_memstream() 140 if (stream->offset > stream->eof) { in write_memstream() 142 DBUG(("+++ EOF advanced to %d, appending nul\n", stream->offset)); in write_memstream() [all …]
|
/system/extras/perfprofd/quipper/ |
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_t size); [all …]
|
D | perf_reader.cc | 230 size_t* offset, in ReadStringFromBuffer() argument 233 offset, &dest->len)) { in ReadStringFromBuffer() 239 if (buffer.size < *offset + dest->len) { in ReadStringFromBuffer() 243 dest->str = string(buffer.ptr + *offset); in ReadStringFromBuffer() 244 *offset += dest->len / sizeof(*buffer.ptr); in ReadStringFromBuffer() 793 uint64_t offset = GetPerfSampleDataOffset(event); in ReadPerfSampleInfo() local 796 reinterpret_cast<const uint64_t*>(&event) + offset / sizeof(uint64_t), in ReadPerfSampleInfo() 802 size_t expected_size = event.header.size - offset; in ReadPerfSampleInfo() 822 uint64_t offset = GetPerfSampleDataOffset(*event); in WritePerfSampleInfo() local 824 size_t expected_size = event->header.size - offset; in WritePerfSampleInfo() [all …]
|
D | perf_utils.cc | 116 uint64_t offset = kuint64max; in GetPerfSampleDataOffset() local 119 offset = offsetof(event_t, sample.array); in GetPerfSampleDataOffset() 122 offset = sizeof(event.mmap) - sizeof(event.mmap.filename) + in GetPerfSampleDataOffset() 127 offset = sizeof(event.fork); in GetPerfSampleDataOffset() 130 offset = sizeof(event.comm) - sizeof(event.comm.comm) + in GetPerfSampleDataOffset() 134 offset = sizeof(event.lost); in GetPerfSampleDataOffset() 137 offset = sizeof(event.read); in GetPerfSampleDataOffset() 140 offset = sizeof(event.mmap2) - sizeof(event.mmap2.filename) + in GetPerfSampleDataOffset() 148 CHECK_NE(offset, kuint64max); in GetPerfSampleDataOffset() 149 CHECK_EQ(offset % sizeof(uint64_t), 0U); in GetPerfSampleDataOffset() [all …]
|
/system/core/libpixelflinger/codeflinger/ |
D | ARMAssemblerInterface.cpp | 54 uint32_t offset = abs(immed8); in __immed8_pre() local 61 ((W&1)<<21) | (((offset&0xF0)<<4)|(offset&0xF)); in __immed8_pre() 69 int Rn, uint32_t offset) in ADDR_LDR() argument 71 LDR(cc, Rd, Rn, offset); in ADDR_LDR() 74 int Rn, uint32_t offset) in ADDR_STR() argument 76 STR(cc, Rd, Rn, offset); in ADDR_STR()
|
D | ARMAssembler.cpp | 176 int32_t offset = int32_t(target_pc - (bt.pc+2)); in generate() local 177 *bt.pc |= offset & 0xFFFFFF; in generate() 278 int32_t offset = int32_t(pc - (mPC+2)); in B() local 279 *mPC++ = (cc<<28) | (0xA<<24) | (offset & 0xFFFFFF); in B() 284 int32_t offset = int32_t(pc - (mPC+2)); in BL() local 285 *mPC++ = (cc<<28) | (0xB<<24) | (offset & 0xFFFFFF); in BL() 299 void ARMAssembler::LDR(int cc, int Rd, int Rn, uint32_t offset) { in LDR() argument 300 *mPC++ = (cc<<28) | (1<<26) | (1<<20) | (Rn<<16) | (Rd<<12) | offset; in LDR() 302 void ARMAssembler::LDRB(int cc, int Rd, int Rn, uint32_t offset) { in LDRB() argument 303 *mPC++ = (cc<<28) | (1<<26) | (1<<22) | (1<<20) | (Rn<<16) | (Rd<<12) | offset; in LDRB() [all …]
|
D | ARMAssemblerProxy.cpp | 212 void ARMAssemblerProxy::LDR(int cc, int Rd, int Rn, uint32_t offset) { in LDR() argument 213 mTarget->LDR(cc, Rd, Rn, offset); in LDR() 215 void ARMAssemblerProxy::LDRB(int cc, int Rd, int Rn, uint32_t offset) { in LDRB() argument 216 mTarget->LDRB(cc, Rd, Rn, offset); in LDRB() 218 void ARMAssemblerProxy::STR(int cc, int Rd, int Rn, uint32_t offset) { in STR() argument 219 mTarget->STR(cc, Rd, Rn, offset); in STR() 221 void ARMAssemblerProxy::STRB(int cc, int Rd, int Rn, uint32_t offset) { in STRB() argument 222 mTarget->STRB(cc, Rd, Rn, offset); in STRB() 224 void ARMAssemblerProxy::LDRH(int cc, int Rd, int Rn, uint32_t offset) { in LDRH() argument 225 mTarget->LDRH(cc, Rd, Rn, offset); in LDRH() [all …]
|
/system/extras/f2fs_utils/ |
D | f2fs_ioutils.c | 97 static int dev_write_fd(void *buf, __u64 offset, size_t len) in dev_write_fd() argument 99 if (lseek64(config.fd, (off64_t)offset, SEEK_SET) < 0) in dev_write_fd() 150 int dev_read_version(void *buf, __u64 offset, size_t len) in dev_read_version() argument 155 int dev_read(void *buf, __u64 offset, size_t len) in dev_read() argument 160 int dev_write(void *buf, __u64 offset, size_t len) in dev_write() argument 163 return dev_write_fd(buf, offset, len); in dev_write() 165 return dev_write_sparse(buf, offset, len); in dev_write() 170 int dev_fill(void *buf, __u64 offset, size_t len) in dev_fill() argument 174 return dev_write_fd(buf, offset, len); in dev_fill()
|
/system/bt/hci/src/ |
D | packet_fragmenter.c | 69 uint8_t *stream = packet->data + packet->offset; in fragment_and_dispatch() 91 stream = packet->data + packet->offset; in fragment_and_dispatch() 98 packet->offset += max_data_size; in fragment_and_dispatch() 103 stream = packet->data + packet->offset; in fragment_and_dispatch() 160 partial_packet->offset = packet->len; in reassemble_and_dispatch() 179 packet->offset = HCI_ACL_PREAMBLE_SIZE; in reassemble_and_dispatch() 180 uint16_t projected_offset = partial_packet->offset + (packet->len - HCI_ACL_PREAMBLE_SIZE); in reassemble_and_dispatch() 183 packet->len = partial_packet->len - partial_packet->offset; in reassemble_and_dispatch() 188 partial_packet->data + partial_packet->offset, in reassemble_and_dispatch() 189 packet->data + packet->offset, in reassemble_and_dispatch() [all …]
|
/system/bt/stack/gatt/ |
D | att_protocol.c | 58 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_mtu_cmd() 81 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_exec_write_cmd() 121 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_err_cmd() 145 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_browse_cmd() 175 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_read_by_type_value_cmd() 211 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_read_multi_cmd() 234 BT_HDR *attp_build_handle_cmd(UINT8 op_code, UINT16 handle, UINT16 offset) in attp_build_handle_cmd() argument 243 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_handle_cmd() 253 UINT16_TO_STREAM (p, offset); in attp_build_handle_cmd() 278 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_opcode_cmd() [all …]
|
/system/bt/stack/avrc/ |
D | avrc_api.c | 104 return (UINT8 *)(p_pkt + 1) + p_pkt->offset; in avrc_get_data_ptr() 119 const int offset = MAX(AVCT_MSG_OFFSET, p_pkt->offset); in avrc_copy_packet() local 122 (BT_HDR *)GKI_getbuf((UINT16)(BT_HDR_SIZE + offset + pkt_len)); in avrc_copy_packet() 127 p_pkt_copy->offset = offset; in avrc_copy_packet() 159 p_orig_data = ((UINT8 *)(p_fcb->p_fmsg + 1) + p_fcb->p_fmsg->offset); in avrc_prep_end_frag() 164 p_pkt_new->offset += (AVRC_MAX_CTRL_DATA_LEN - AVRC_VENDOR_HDR_SIZE - AVRC_MIN_META_HDR_SIZE); in avrc_prep_end_frag() 165 p_data = (UINT8 *)(p_pkt_new+1) + p_pkt_new->offset; in avrc_prep_end_frag() 201 int offset_len = MAX(AVCT_MSG_OFFSET, p_pkt->offset); in avrc_send_continue_frag() 207 p_pkt->offset = AVCT_MSG_OFFSET; in avrc_send_continue_frag() 210 p_old = (UINT8 *)(p_pkt_old+1) + p_pkt_old->offset; in avrc_send_continue_frag() [all …]
|
D | avrc_opt.c | 62 p_cmd->offset = AVCT_MSG_OFFSET; in avrc_vendor_msg() 63 p_data = (UINT8 *)(p_cmd + 1) + p_cmd->offset; in avrc_vendor_msg() 72 p_cmd->len = (UINT16) (p_data + p_msg->vendor_len - (UINT8 *)(p_cmd + 1) - p_cmd->offset); in avrc_vendor_msg() 106 p_cmd->offset = AVCT_MSG_OFFSET; in AVRC_UnitCmd() 107 p_data = (UINT8 *)(p_cmd + 1) + p_cmd->offset; in AVRC_UnitCmd() 113 p_cmd->len = p_data + AVRC_UNIT_OPRND_BYTES - (UINT8 *)(p_cmd + 1) - p_cmd->offset; in AVRC_UnitCmd() 151 p_cmd->offset = AVCT_MSG_OFFSET; in AVRC_SubCmd() 152 p_data = (UINT8 *)(p_cmd + 1) + p_cmd->offset; in AVRC_SubCmd() 159 p_cmd->len = p_data + AVRC_SUB_OPRND_BYTES - (UINT8 *)(p_cmd + 1) - p_cmd->offset; in AVRC_SubCmd()
|
D | avrc_bld_ct.c | 48 p_start = (UINT8 *)(p_pkt + 1) + p_pkt->offset; in avrc_bld_next_cmd() 80 p_start = (UINT8 *)(p_pkt + 1) + p_pkt->offset; in avrc_bld_set_abs_volume_cmd() 106 p_start = (UINT8 *)(p_pkt + 1) + p_pkt->offset; in avrc_bld_vol_change_notfn() 129 UINT16 offset = 0, chnl = AVCT_DATA_CTRL, len=AVRC_META_CMD_POOL_SIZE; in avrc_bld_init_cmd_buffer() local 139 offset = AVRC_MSG_PASS_THRU_OFFSET; in avrc_bld_init_cmd_buffer() 143 offset = AVRC_MSG_VENDOR_OFFSET; in avrc_bld_init_cmd_buffer() 155 p_pkt->offset = offset; in avrc_bld_init_cmd_buffer() 156 p_data = (UINT8 *)(p_pkt + 1) + p_pkt->offset; in avrc_bld_init_cmd_buffer()
|
/system/bt/bta/hf_client/ |
D | bta_hf_client_at.c | 657 int offset; in bta_hf_client_parse_uint32() local 659 res = sscanf(buffer, "%u%n", &value, &offset); in bta_hf_client_parse_uint32() 665 buffer += offset; in bta_hf_client_parse_uint32() 686 int offset; in bta_hf_client_parse_cind_values() local 689 while((res = sscanf(buffer, "%u%n", &value, &offset)) > 0) in bta_hf_client_parse_cind_values() 694 buffer += offset; in bta_hf_client_parse_cind_values() 717 int offset; in bta_hf_client_parse_cind_list() local 723 while ((res = sscanf(buffer, "(\"%128[^\"]\",(%u%*[-,]%u))%n", name, &min, &max, &offset)) > 2) in bta_hf_client_parse_cind_list() 726 buffer += offset; in bta_hf_client_parse_cind_list() 833 int offset; in bta_hf_client_parse_ciev() local [all …]
|
/system/bt/stack/rfcomm/ |
D | rfc_ts_frames.c | 51 p_buf->offset = L2CAP_MIN_OFFSET; in rfc_send_sabme() 83 p_buf->offset = L2CAP_MIN_OFFSET; in rfc_send_ua() 115 p_buf->offset = L2CAP_MIN_OFFSET; in rfc_send_dm() 147 p_buf->offset = L2CAP_MIN_OFFSET; in rfc_send_disc() 176 p_buf->offset -= RFCOMM_CTRL_FRAME_LEN; in rfc_send_buf_uih() 178 p_buf->offset--; in rfc_send_buf_uih() 186 p_buf->offset--; in rfc_send_buf_uih() 188 p_data = (UINT8 *)(p_buf + 1) + p_buf->offset; in rfc_send_buf_uih() 211 p_data = (UINT8 *)(p_buf + 1) + p_buf->offset + p_buf->len++; in rfc_send_buf_uih() 213 *p_data = RFCOMM_UIH_FCS ((UINT8 *)(p_buf + 1) + p_buf->offset, dlci); in rfc_send_buf_uih() [all …]
|
/system/core/libdiskconfig/ |
D | diskutils.c | 34 write_raw_image(const char *dst, const char *src, loff_t offset, int test) in write_raw_image() argument 44 ALOGI("Writing RAW image '%s' to '%s' (offset=%llu)", src, dst, (unsigned long long)offset); in write_raw_image() 56 if (lseek64(dst_fd, offset, SEEK_SET) != offset) { in write_raw_image() 57 ALOGE("Could not seek to offset %lld in %s.", (long long)offset, dst); in write_raw_image() 105 ALOGI("Wrote %" PRIu64 " bytes to %s @ %lld", total, dst, (long long)offset); in write_raw_image()
|
D | write_lst.c | 73 if (lseek64(fd, lst->offset, SEEK_SET) != (loff_t)lst->offset) { in wlist_commit() 74 ALOGE("Cannot seek to the specified position (%lld).", (long long)lst->offset); in wlist_commit() 81 (long long)lst->offset); in wlist_commit() 85 ALOGI("Would write %d bytes @ offset %lld.", lst->len, (long long)lst->offset); in wlist_commit()
|
/system/bt/stack/hcic/ |
D | hcicmds.c | 50 p->offset = 0; in btsnd_hcic_inquiry() 74 p->offset = 0; in btsnd_hcic_inq_cancel() 94 p->offset = 0; in btsnd_hcic_per_inq_mode() 120 p->offset = 0; in btsnd_hcic_exit_per_inq() 146 p->offset = 0; in btsnd_hcic_create_conn() 177 p->offset = 0; in btsnd_hcic_disconnect() 200 p->offset = 0; in btsnd_hcic_add_SCO_conn() 224 p->offset = 0; in btsnd_hcic_create_conn_cancel() 246 p->offset = 0; in btsnd_hcic_accept_conn() 270 p->offset = 0; in btsnd_hcic_reject_conn() [all …]
|
D | hciblecmds.c | 49 p->offset = 0; in btsnd_hcic_ble_set_local_used_feat() 69 p->offset = 0; in btsnd_hcic_ble_set_random_addr() 94 p->offset = 0; in btsnd_hcic_ble_write_adv_params() 122 p->offset = 0; in btsnd_hcic_ble_read_adv_chnl_tx_power() 143 p->offset = 0; in btsnd_hcic_ble_set_adv_data() 174 p->offset = 0; in btsnd_hcic_ble_set_scan_rsp_data() 208 p->offset = 0; in btsnd_hcic_ble_set_adv_enable() 231 p->offset = 0; in btsnd_hcic_ble_set_scan_params() 257 p->offset = 0; in btsnd_hcic_ble_set_scan_enable() 287 p->offset = 0; in btsnd_hcic_ble_create_ll_conn() [all …]
|
/system/bt/embdrv/sbc/decoder/srce/ |
D | synthesis-sbc.c | 264 OI_UINT offset = context->common.filterBufferOffset; in OI_SBC_SynthFrame_80() local 269 if (offset == 0) { in OI_SBC_SynthFrame_80() 274 offset = context->common.filterBufferLen - 80; in OI_SBC_SynthFrame_80() 276 offset -= 1*8; in OI_SBC_SynthFrame_80() 280 DCT2_8(context->common.filterBuffer[ch] + offset, s); in OI_SBC_SynthFrame_80() 281 SYNTH80(pcm + ch, context->common.filterBuffer[ch] + offset, pcmStrideShift); in OI_SBC_SynthFrame_80() 286 context->common.filterBufferOffset = offset; in OI_SBC_SynthFrame_80() 295 OI_UINT offset = context->common.filterBufferOffset; in OI_SBC_SynthFrame_4SB() local 300 if (offset == 0) { in OI_SBC_SynthFrame_4SB() 305 offset =context->common.filterBufferLen - 80; in OI_SBC_SynthFrame_4SB() [all …]
|
/system/core/libsparse/ |
D | backed_block.c | 36 int64_t offset; member 40 int64_t offset; member 97 return bb->file.offset; in backed_block_file_offset() 99 return bb->fd.offset; in backed_block_file_offset() 225 a->file.offset + a->len != b->file.offset) { in merge_bb() 231 a->fd.offset + a->len != b->fd.offset) { in merge_bb() 325 int64_t offset, unsigned int len, unsigned int block) in backed_block_add_file() argument 336 bb->file.offset = offset; in backed_block_add_file() 343 int backed_block_add_fd(struct backed_block_list *bbl, int fd, int64_t offset, in backed_block_add_fd() argument 355 bb->fd.offset = offset; in backed_block_add_fd() [all …]
|
/system/core/include/utils/ |
D | Compat.h | 28 static inline off64_t lseek64(int fd, off64_t offset, int whence) { in lseek64() argument 29 return lseek(fd, offset, whence); in lseek64() 32 static inline ssize_t pread64(int fd, void* buf, size_t nbytes, off64_t offset) { in pread64() argument 33 return pread(fd, buf, nbytes, offset); in pread64()
|
/system/core/fs_mgr/ |
D | fs_mgr_verity.c | 527 unsigned int length, off64_t *offset) in metadata_add() argument 534 *offset = ftell(fp); in metadata_add() 545 unsigned int slength, off64_t *offset) in metadata_find() argument 582 rc = metadata_add(fp, start + sizeof(magic), stag, slength, offset); in metadata_find() 601 *offset = start; in metadata_find() 613 rc = metadata_add(fp, start, stag, slength, offset); in metadata_find() 631 static int write_verity_state(const char *fname, off64_t offset, int32_t mode) in write_verity_state() argument 644 if (TEMP_FAILURE_RETRY(pwrite64(fd, &s, sizeof(s), offset)) != sizeof(s)) { in write_verity_state() 646 sizeof(s), fname, offset, strerror(errno)); in write_verity_state() 660 static int read_verity_state(const char *fname, off64_t offset, int *mode) in read_verity_state() argument [all …]
|
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/include/linux/ |
D | bitops.h | 120 find_next_bit(const unsigned long *addr, unsigned long size, unsigned long offset) in find_next_bit() argument 122 const unsigned long *p = addr + BITOP_WORD(offset); in find_next_bit() 123 unsigned long result = offset & ~(BITS_PER_LONG-1); in find_next_bit() 126 if (offset >= size) in find_next_bit() 129 offset %= BITS_PER_LONG; in find_next_bit() 130 if (offset) { in find_next_bit() 132 tmp &= (~0UL << offset); in find_next_bit()
|
/system/core/toolbox/upstream-netbsd/bin/dd/ |
D | position.c | 74 (off_t)in.offset * (off_t)in.dbsz, SEEK_CUR) == -1) { in pos_in() 87 for (bcnt = in.dbsz, cnt = in.offset, warned = 0; cnt;) { in pos_in() 141 (off_t)out.offset * (off_t)out.dbsz, SEEK_SET) == -1) in pos_out() 150 t_op.mt_count = out.offset; in pos_out() 159 for (cnt = 0; cnt < out.offset; ++cnt) { in pos_out() 178 while (cnt++ < out.offset) in pos_out()
|