/hardware/libhardware/modules/sensors/dynamic_sensor/ |
D | RingBuffer.cpp | 24 RingBuffer::RingBuffer(size_t size) in RingBuffer() argument 25 : mSize(size), in RingBuffer() 36 ssize_t RingBuffer::write(const sensors_event_t *ev, size_t size) { in write() argument 42 if (size > numAvailableToWrite) { in write() 43 size = numAvailableToWrite; in write() 49 if (copy > size) { in write() 50 copy = size; in write() 55 if (size > copy) { in write() 56 memcpy(mData, &ev[copy], (size - copy) * sizeof(sensors_event_t)); in write() 59 mWritePos += size; in write() [all …]
|
D | HidRawDevice.cpp | 73 if (reportIdSet.size() > 1) { in HidRawDevice() 151 reportDescriptor.size = descriptorSize; in populateDeviceInfo() 175 return mDigestVector.size() > 0; in generateDigest() 197 size_t size = packet->getByteSize() + 1; // report id size in getFeature() local 200 if (mIoBuffer.size() < size) { in getFeature() 201 mIoBuffer.resize(size); in getFeature() 204 int res = ::ioctl(mDevFd, HIDIOCGFEATURE(size), mIoBuffer.data()); in getFeature() 211 if (static_cast<size_t>(res) != size) { in getFeature() 213 << " returned " << res << " bytes, does not match expected " << size << LOG_ENDL; in getFeature() 220 out->resize(size - 1); in getFeature() [all …]
|
/hardware/intel/common/libwsbm/src/ |
D | wsbm_mm.c | 65 return entry->size; in wsbmMMTailSpace() 69 wsbmMMRemoveSpaceFromTail(struct _WsbmMM *mm, unsigned long size) in wsbmMMRemoveSpaceFromTail() argument 80 if (entry->size <= size) in wsbmMMRemoveSpaceFromTail() 83 entry->size -= size; in wsbmMMRemoveSpaceFromTail() 89 unsigned long start, unsigned long size) in wsbmMMCreateTailNode() argument 98 child->size = size; in wsbmMMCreateTailNode() 109 wsbmMMSplitAtStart(struct _WsbmMMNode *parent, unsigned long size) in wsbmMMSplitAtStart() argument 120 child->size = size; in wsbmMMSplitAtStart() 127 parent->size -= size; in wsbmMMSplitAtStart() 128 parent->start += size; in wsbmMMSplitAtStart() [all …]
|
/hardware/qcom/camera/msm8998/QCamera2/util/ |
D | camscope_packet_type.cpp | 231 uint32_t size) { in fill_camscope_base() argument 233 scope_struct->size = size; in fill_camscope_base() 253 uint32_t packet_type, uint32_t size, in fill_camscope_sw_base() argument 256 fill_camscope_base(&(scope_struct->base), packet_type, size); in fill_camscope_sw_base() 280 uint32_t size, struct timeval timestamp, in fill_camscope_timing() argument 283 fill_camscope_sw_base(&(scope_struct->sw_base), packet_type, size, in fill_camscope_timing() 309 uint32_t packet_type, uint32_t size, in fill_camscope_in_out_timing() argument 315 fill_camscope_sw_base(&(scope_struct->sw_base), packet_type, size, in fill_camscope_in_out_timing() 343 uint32_t size = sizeof(scope_struct); in camscope_base_log() local 345 camscope_reserve((camscope_section_type)camscope_section, size); in camscope_base_log() [all …]
|
/hardware/interfaces/thermal/1.0/default/ |
D | Thermal.cpp | 59 ssize_t size = mModule->getTemperatures(mModule, nullptr, 0); in getTemperatures() local 60 if (size >= 0) { in getTemperatures() 62 list.resize(size); in getTemperatures() 63 size = mModule->getTemperatures(mModule, list.data(), list.size()); in getTemperatures() 64 if (size >= 0) { in getTemperatures() 65 temperatures.resize(list.size()); in getTemperatures() 66 for (size_t i = 0; i < list.size(); ++i) { in getTemperatures() 96 if (size < 0) { in getTemperatures() 98 status.debugMessage = strerror(-size); in getTemperatures() 115 ssize_t size = mModule->getCpuUsages(mModule, nullptr); in getCpuUsages() local [all …]
|
/hardware/qcom/msm8998/json-c/ |
D | printbuf.c | 39 p->size = 32; in printbuf_new() 41 if(!(p->buf = (char*)malloc(p->size))) { in printbuf_new() 62 if (p->size >= min_size) in printbuf_extend() 65 new_size = p->size * 2; in printbuf_extend() 71 p->bpos, min_size, p->size, new_size); in printbuf_extend() 75 p->size = new_size; in printbuf_extend() 80 int printbuf_memappend(struct printbuf *p, const char *buf, int size) in printbuf_memappend() argument 82 if (p->size <= p->bpos + size + 1) { in printbuf_memappend() 83 if (printbuf_extend(p, p->bpos + size + 1) < 0) in printbuf_memappend() 86 memcpy(p->buf + p->bpos, buf, size); in printbuf_memappend() [all …]
|
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/ |
D | storage_manager.c | 38 long size; member 71 … inv_error_t (*save_func)(unsigned char *data), size_t size, unsigned int key) in inv_register_load_store() argument 86 ds.hd[ds.num].size = size; in inv_register_load_store() 89 ds.total_size += size + sizeof(struct data_header_t); in inv_register_load_store() 99 inv_error_t inv_get_mpl_state_size(size_t *size) in inv_get_mpl_state_size() argument 101 *size = ds.total_size; in inv_get_mpl_state_size() 141 len = MIN(hd->size, len); in inv_load_mpl_states() 142 len = hd->size; in inv_load_mpl_states() 154 if (entry >= 0 && len >= hd->size) { in inv_load_mpl_states() 155 if (hd->size != ds.hd[entry].size) in inv_load_mpl_states() [all …]
|
/hardware/invensense/6515/libsensors_iio/software/core/mllite/ |
D | storage_manager.c | 38 long size; member 71 … inv_error_t (*save_func)(unsigned char *data), size_t size, unsigned int key) in inv_register_load_store() argument 86 ds.hd[ds.num].size = size; in inv_register_load_store() 89 ds.total_size += size + sizeof(struct data_header_t); in inv_register_load_store() 99 inv_error_t inv_get_mpl_state_size(size_t *size) in inv_get_mpl_state_size() argument 101 *size = ds.total_size; in inv_get_mpl_state_size() 141 len = MIN(hd->size, len); in inv_load_mpl_states() 142 len = hd->size; in inv_load_mpl_states() 154 if (entry >= 0 && len >= hd->size) { in inv_load_mpl_states() 155 if (hd->size != ds.hd[entry].size) in inv_load_mpl_states() [all …]
|
/hardware/qcom/bt/msm8909/libbt-vendor/src/ |
D | hw_rome.c | 61 int read_vs_hci_event(int fd, unsigned char* buf, int size); 295 int read_vs_hci_event(int fd, unsigned char* buf, int size) in read_vs_hci_event() argument 300 if (size <= 0) { in read_vs_hci_event() 330 if (buf[2] < (size - 3)) in read_vs_hci_event() 333 remain = size - 3; in read_vs_hci_event() 354 int hci_send_wipower_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) in hci_send_wipower_vs_cmd() argument 360 ret = do_write(fd, cmd, size); in hci_send_wipower_vs_cmd() 361 if (ret != size) { in hci_send_wipower_vs_cmd() 379 int hci_send_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) in hci_send_vs_cmd() argument 384 ret = do_write(fd, cmd, size); in hci_send_vs_cmd() [all …]
|
/hardware/qcom/bt/msm8998/libbt-vendor/src/ |
D | hw_rome.c | 66 int read_vs_hci_event(int fd, unsigned char* buf, int size); 302 int read_vs_hci_event(int fd, unsigned char* buf, int size) in read_vs_hci_event() argument 307 if (size <= 0) { in read_vs_hci_event() 337 if (buf[2] < (size - 3)) in read_vs_hci_event() 340 remain = size - 3; in read_vs_hci_event() 361 int hci_send_wipower_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) in hci_send_wipower_vs_cmd() argument 367 ret = do_write(fd, cmd, size); in hci_send_wipower_vs_cmd() 368 if (ret != size) { in hci_send_wipower_vs_cmd() 386 int hci_send_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) in hci_send_vs_cmd() argument 391 ret = do_write(fd, cmd, size); in hci_send_vs_cmd() [all …]
|
/hardware/qcom/bt/sdm845/libbt-vendor/src/ |
D | hw_rome.c | 65 int read_vs_hci_event(int fd, unsigned char* buf, int size); 316 int read_vs_hci_event(int fd, unsigned char* buf, int size) in read_vs_hci_event() argument 321 if (size <= 0) { in read_vs_hci_event() 351 if (buf[2] < (size - 3)) in read_vs_hci_event() 354 remain = size - 3; in read_vs_hci_event() 375 int hci_send_wipower_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) in hci_send_wipower_vs_cmd() argument 381 ret = do_write(fd, cmd, size); in hci_send_wipower_vs_cmd() 382 if (ret != size) { in hci_send_wipower_vs_cmd() 400 int hci_send_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) in hci_send_vs_cmd() argument 405 ret = do_write(fd, cmd, size); in hci_send_vs_cmd() [all …]
|
/hardware/qcom/bt/msm8992/libbt-vendor/src/ |
D | hw_rome.c | 272 int read_vs_hci_event(int fd, unsigned char* buf, int size) in read_vs_hci_event() argument 277 if (size <= 0) { in read_vs_hci_event() 307 if (buf[2] < (size - 3)) in read_vs_hci_event() 310 remain = size - 3; in read_vs_hci_event() 331 int hci_send_wipower_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) in hci_send_wipower_vs_cmd() argument 337 ret = do_write(fd, cmd, size); in hci_send_wipower_vs_cmd() 338 if (ret != size) { in hci_send_wipower_vs_cmd() 356 int hci_send_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) in hci_send_vs_cmd() argument 361 ret = do_write(fd, cmd, size); in hci_send_vs_cmd() 362 if (ret != size) { in hci_send_vs_cmd() [all …]
|
/hardware/intel/bootstub/ |
D | sfi.c | 44 int sfi_add_e820_entry(struct boot_params *bp, memory_map_t *mb_mmap, u64 start, u64 size, int type) in sfi_add_e820_entry() argument 60 e820_entry->size = size; in sfi_add_e820_entry() 62 mb_mmap_entry->length_low = size; in sfi_add_e820_entry() 77 e820_entry->size = size; in sfi_add_e820_entry() 80 mb_mmap_entry->size = 20; in sfi_add_e820_entry() 83 mb_mmap_entry->length_low = size; in sfi_add_e820_entry() 96 unsigned long long start, end, size; in sfi_setup_mmap() local 118 size = mentry->pages << 12; in sfi_setup_mmap() 119 end = start + size; in sfi_setup_mmap() 137 if (sfi_add_e820_entry(bp, mb_mmap, start, size, type) != 0) in sfi_setup_mmap()
|
/hardware/qcom/bt/msm8996/libbt-vendor/src/ |
D | hw_rome.c | 69 int read_vs_hci_event(int fd, unsigned char* buf, int size); 321 int read_vs_hci_event(int fd, unsigned char* buf, int size) in read_vs_hci_event() argument 326 if (size <= 0) { in read_vs_hci_event() 356 if (buf[2] < (size - 3)) in read_vs_hci_event() 359 remain = size - 3; in read_vs_hci_event() 380 int hci_send_wipower_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) in hci_send_wipower_vs_cmd() argument 386 ret = do_write(fd, cmd, size); in hci_send_wipower_vs_cmd() 387 if (ret != size) { in hci_send_wipower_vs_cmd() 405 int hci_send_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) in hci_send_vs_cmd() argument 410 ret = do_write(fd, cmd, size); in hci_send_vs_cmd() [all …]
|
/hardware/qcom/display/msm8960/libgralloc/ |
D | alloc_controller.cpp | 259 size_t size; in getBufferSizeAndDimensions() local 267 size = alignedw * alignedh * 4; in getBufferSizeAndDimensions() 270 size = alignedw * alignedh * 3; in getBufferSizeAndDimensions() 274 size = alignedw * alignedh * 2; in getBufferSizeAndDimensions() 279 size = ALIGN(alignedw*alignedh, 4096); in getBufferSizeAndDimensions() 280 size += ALIGN(2 * ALIGN(width/2, 32) * ALIGN(height/2, 32), 4096); in getBufferSizeAndDimensions() 287 size = ALIGN( alignedw * alignedh, 8192); in getBufferSizeAndDimensions() 288 size += ALIGN( alignedw * ALIGN(height/2, 32), 8192); in getBufferSizeAndDimensions() 293 size = ALIGN( ALIGN(width, 128) * ALIGN(height, 32), 8192); in getBufferSizeAndDimensions() 294 size += ALIGN( ALIGN(width, 128) * ALIGN(height/2, 32), 8192); in getBufferSizeAndDimensions() [all …]
|
/hardware/qcom/display/msm8909/libmemtrack/ |
D | kgsl.c | 75 unsigned long size, mapsize; in kgsl_memtrack_get_memory() local 90 &size, flags, line_type, line_usage, &mapsize, in kgsl_memtrack_get_memory() 96 if (size == 0) { in kgsl_memtrack_get_memory() 101 if (unaccounted_size + size < size) { in kgsl_memtrack_get_memory() 115 if (mapsize > size) { in kgsl_memtrack_get_memory() 119 unaccounted_size += size - mapsize; in kgsl_memtrack_get_memory() 121 unaccounted_size += size; in kgsl_memtrack_get_memory() 125 unaccounted_size += size; in kgsl_memtrack_get_memory() 128 unaccounted_size += size / (egl_image_count ? egl_image_count : 1); in kgsl_memtrack_get_memory()
|
/hardware/qcom/display/msm8998/libmemtrack/ |
D | kgsl.c | 75 unsigned long size, mapsize; in kgsl_memtrack_get_memory() local 90 &size, flags, line_type, line_usage, &mapsize, in kgsl_memtrack_get_memory() 96 if (size == 0) { in kgsl_memtrack_get_memory() 101 if (unaccounted_size + size < size) { in kgsl_memtrack_get_memory() 116 if (mapsize > size) { in kgsl_memtrack_get_memory() 120 unaccounted_size += size - mapsize; in kgsl_memtrack_get_memory() 122 unaccounted_size += size; in kgsl_memtrack_get_memory() 126 unaccounted_size += size; in kgsl_memtrack_get_memory() 129 unaccounted_size += size / (egl_image_count ? egl_image_count : 1); in kgsl_memtrack_get_memory()
|
/hardware/qcom/display/sdm845/libmemtrack/ |
D | kgsl.c | 75 unsigned long size, mapsize; in kgsl_memtrack_get_memory() local 90 &size, flags, line_type, line_usage, &mapsize, in kgsl_memtrack_get_memory() 96 if (size == 0) { in kgsl_memtrack_get_memory() 101 if (unaccounted_size + size < size) { in kgsl_memtrack_get_memory() 116 if (mapsize > size) { in kgsl_memtrack_get_memory() 120 unaccounted_size += size - mapsize; in kgsl_memtrack_get_memory() 122 unaccounted_size += size; in kgsl_memtrack_get_memory() 126 unaccounted_size += size; in kgsl_memtrack_get_memory() 129 unaccounted_size += size / (egl_image_count ? egl_image_count : 1); in kgsl_memtrack_get_memory()
|
/hardware/qcom/display/msm8996/sdm/libs/hwc2/ |
D | hwc_color_manager.cpp | 64 uint32_t size(0); in CreatePayloadFromParcel() local 67 size = UINT32(in.readInt32()); in CreatePayloadFromParcel() 68 if (size > 0 && size == in.dataAvail()) { in CreatePayloadFromParcel() 69 const void *data = in.readInplace(size); in CreatePayloadFromParcel() 72 sink->size = size; in CreatePayloadFromParcel() 76 DLOGW("Failing size checking, size = %d", size); in CreatePayloadFromParcel() 85 out_parcel->writeInt32(INT32(data.size)); in MarshallStructIntoParcel() 87 out_parcel->write(data.payload, data.size); in MarshallStructIntoParcel() 222 buffer_info.alloc_buffer_info.size = 0; in SetFrameCapture() 229 void *buffer = mmap(NULL, buffer_info.alloc_buffer_info.size, PROT_READ | PROT_WRITE, in SetFrameCapture() [all …]
|
/hardware/qcom/display/msm8994/libgralloc/ |
D | alloc_controller.cpp | 493 unsigned int size = 0; in getSize() local 496 size = alignedw * alignedh * 8; in getSize() 502 size = alignedw * alignedh * 4; in getSize() 505 size = alignedw * alignedh * 3; in getSize() 511 size = alignedw * alignedh * 2; in getSize() 514 size = ALIGN(alignedw * alignedh, 4096); in getSize() 518 size = ALIGN(alignedw*alignedh, 4096); in getSize() 519 size += ALIGN(2 * ALIGN(width/2, 32) * ALIGN(height/2, 32), 4096); in getSize() 525 size = ALIGN( alignedw * alignedh, 8192); in getSize() 526 size += ALIGN( alignedw * ALIGN(height/2, 32), 8192); in getSize() [all …]
|
/hardware/intel/img/psb_video/fw/topazhp/ |
D | topazhp_bin.c | 161 int size = 0; in create_firmware_A0() local 165 size = SECURE_VRL_HEADER + SECURE_FIP_HEADER; in create_firmware_A0() 167 for (iter = 0; iter < size; iter++) { in create_firmware_A0() 203 size = tng_fw_table[iter].header.text_size * 4; in create_firmware_A0() 204 fwrite(tng_fw_table[iter].fw_text, 1, size, fp); in create_firmware_A0() 205 for (i = 0; i < (sec_t[iter].text_size_bytes - size); i++) in create_firmware_A0() 210 size = tng_fw_table[iter].header.data_size * 4; in create_firmware_A0() 211 fwrite(tng_fw_table[iter].fw_data, 1, size, fp); in create_firmware_A0() 212 for (i = 0; i < (sec_t[iter].data_size_bytes - size); i++) in create_firmware_A0() 244 int size = 0; in create_firmware_B0() local [all …]
|
/hardware/qcom/display/msm8996/libgralloc1/ |
D | gr_allocator.cpp | 124 int Allocator::MapBuffer(void **base, unsigned int size, unsigned int offset, int fd) { in MapBuffer() argument 126 return ion_allocator_->MapBuffer(base, size, offset, fd); in MapBuffer() 139 int Allocator::FreeBuffer(void *base, unsigned int size, unsigned int offset, int fd, in FreeBuffer() argument 142 return ion_allocator_->FreeBuffer(base, size, offset, fd, handle); in FreeBuffer() 148 int Allocator::CleanBuffer(void *base, unsigned int size, unsigned int offset, int handle, int op) { in CleanBuffer() argument 150 return ion_allocator_->CleanBuffer(base, size, offset, handle, op); in CleanBuffer() 181 unsigned int size = GetSize(*descriptors[i], alignedw, alignedh); in CheckForBufferSharing() local 182 if (max_size < size) { in CheckForBufferSharing() 184 max_size = size; in CheckForBufferSharing() 199 unsigned int size = 0; in GetSize() local [all …]
|
/hardware/qcom/display/msm8998/libgralloc1/ |
D | gr_allocator.cpp | 122 int Allocator::MapBuffer(void **base, unsigned int size, unsigned int offset, int fd) { in MapBuffer() argument 124 return ion_allocator_->MapBuffer(base, size, offset, fd); in MapBuffer() 137 int Allocator::FreeBuffer(void *base, unsigned int size, unsigned int offset, int fd, in FreeBuffer() argument 140 return ion_allocator_->FreeBuffer(base, size, offset, fd, handle); in FreeBuffer() 146 int Allocator::CleanBuffer(void *base, unsigned int size, unsigned int offset, int handle, int op) { in CleanBuffer() argument 148 return ion_allocator_->CleanBuffer(base, size, offset, handle, op); in CleanBuffer() 179 unsigned int size = GetSize(*descriptors[i], alignedw, alignedh); in CheckForBufferSharing() local 180 if (max_size < size) { in CheckForBufferSharing() 182 max_size = size; in CheckForBufferSharing() 197 unsigned int size = 0; in GetSize() local [all …]
|
/hardware/interfaces/thermal/1.0/vts/functional/ |
D | VtsHalThermalV1_0TargetTest.cpp | 63 size_t size = temperatures.size(); in checkTemperatures() local 64 EXPECT_LE(baseSize_, size); in checkTemperatures() 66 for (size_t i = 0; i < size; ++i) { in checkTemperatures() 79 baseSize_ = size; in checkTemperatures() 84 size_t size = cpuUsages.size(); in checkCpuUsages() local 86 if (baseSize_ != 0) EXPECT_EQ(baseSize_, size); in checkCpuUsages() 88 for (size_t i = 0; i < size; ++i) { in checkCpuUsages() 98 baseSize_ = size; in checkCpuUsages() 103 size_t size = coolingDevices.size(); in checkCoolingDevices() local 104 EXPECT_LE(baseSize_, size); in checkCoolingDevices() [all …]
|
/hardware/intel/common/omx-components/videocodec/securevideo/moorefield/ |
D | LogDumpHelper.h | 58 static void DumpBufferToString(char* str, uint32_t strSize, const uint8_t* start, uint32_t size) in DumpBufferToString() argument 60 if (str == NULL || strSize == 0 || start == NULL || size == 0) in DumpBufferToString() 70 const uint8_t* end = start + size ; in DumpBufferToString() 80 static void DumpNaluDataBuffer(uint32_t nalu, const uint8_t* start, uint32_t size) in DumpNaluDataBuffer() argument 82 if (start == NULL || size == 0) in DumpNaluDataBuffer() 91 DumpBufferToString(str, STR_SIZE, start, size) ; in DumpNaluDataBuffer() 97 static void DumpBuffer(const char* prefix, const uint8_t* start, uint32_t size) in DumpBuffer() argument 99 if (start == NULL || size == 0) in DumpBuffer() 113 DumpBufferToString(str, STR_SIZE, start, size) ; in DumpBuffer() 115 LOGV("%s: ptr=%p, size=%u, data=%s" DUMP_EOL, prefix, start, size, str) ; in DumpBuffer() [all …]
|