/device/generic/vulkan-cereal/stream-servers/apigen-codec-common/X11/ |
D | Xmd.h | 149 # define cvtINT8toInt(val) (((val) & 0x00000080) ? ((val) | 0xffffffffffffff00) : (val)) argument 150 # define cvtINT16toInt(val) (((val) & 0x00008000) ? ((val) | 0xffffffffffff0000) : (val)) argument 151 # define cvtINT32toInt(val) (((val) & 0x80000000) ? ((val) | 0xffffffff00000000) : (val)) argument 152 # define cvtINT8toShort(val) cvtINT8toInt(val) argument 153 # define cvtINT16toShort(val) cvtINT16toInt(val) argument 154 # define cvtINT32toShort(val) cvtINT32toInt(val) argument 155 # define cvtINT8toLong(val) cvtINT8toInt(val) argument 156 # define cvtINT16toLong(val) cvtINT16toInt(val) argument 157 # define cvtINT32toLong(val) cvtINT32toInt(val) argument 159 # define cvtINT8toInt(val) (val) argument [all …]
|
/device/google/contexthub/util/common/ |
D | JSONObject.h | 167 JSONValue val; in setInt32() local 168 val.setInt32(in); in setInt32() 169 setValue(key, val); in setInt32() 173 JSONValue val; in setFloat() local 174 val.setFloat(in); in setFloat() 175 setValue(key, val); in setFloat() 179 JSONValue val; in setString() local 180 val.setString(in); in setString() 181 setValue(key, val); in setString() 185 JSONValue val; in setBoolean() local [all …]
|
/device/generic/vulkan-cereal/stream-servers/gl/glestranslator/EGL/ |
D | EglPbufferSurface.cpp | 18 bool EglPbufferSurface::setAttrib(EGLint attrib,EGLint val) { in setAttrib() argument 21 if(val < 0) return false; in setAttrib() 22 m_width = val; in setAttrib() 25 if(val < 0) return false; in setAttrib() 26 m_height = val; in setAttrib() 29 m_largest = val; in setAttrib() 32 if(val != EGL_NO_TEXTURE && val != EGL_TEXTURE_RGB && val != EGL_TEXTURE_RGBA) return false; in setAttrib() 33 m_texFormat = val; in setAttrib() 36 if(val != EGL_NO_TEXTURE && val != EGL_TEXTURE_2D) return false; in setAttrib() 37 m_texTarget = val; in setAttrib() [all …]
|
D | EglConfig.cpp | 226 bool EglConfig::getConfAttrib(EGLint attrib,EGLint* val) const { in getConfAttrib() 229 *val = m_buffer_size; in getConfAttrib() 232 *val = m_red_size; in getConfAttrib() 235 *val = m_green_size; in getConfAttrib() 238 *val = m_blue_size; in getConfAttrib() 241 *val = m_luminance_size; in getConfAttrib() 244 *val = m_alpha_size; in getConfAttrib() 247 *val = m_bind_to_tex_rgb; in getConfAttrib() 250 *val = m_bind_to_tex_rgba; in getConfAttrib() 253 *val = m_caveat; in getConfAttrib() [all …]
|
/device/google/contexthub/contexthubhal/ |
D | message_buf.h | 69 void writeU8(uint8_t val) { in writeU8() argument 72 data[pos++] = val; in writeU8() 78 uint16_t val; in readU16() local 79 memcpy(&val, &data[pos], sizeof(val)); in readU16() 80 pos += sizeof(val); in readU16() 81 return le16toh(val); in readU16() 83 void writeU16(uint16_t val) { in writeU16() argument 87 uint16_t tmp = htole16(val); in writeU16() 95 uint32_t val; in readU32() local 96 memcpy(&val, &data[pos], sizeof(val)); in readU32() [all …]
|
/device/google/contexthub/firmware/os/cpu/cortexm4/inc/cpu/ |
D | cpuMath.h | 6 uint32_t cpuMathUint44Div1000ToUint32_slow_path(uint64_t val); 8 static inline uint32_t cpuMathUint44Div1000ToUint32(uint64_t val) in cpuMathUint44Div1000ToUint32() argument 10 if (val >> 32) in cpuMathUint44Div1000ToUint32() 11 return cpuMathUint44Div1000ToUint32_slow_path(val); in cpuMathUint44Div1000ToUint32() 13 return (uint32_t)val / 1000; in cpuMathUint44Div1000ToUint32() 16 uint64_t cpuMathU64DivByU16(uint64_t val, uint32_t divBy /* 16 bits max*/); 42 …ALCULATE(val) ((val) & ((val) - 1)) ? (0xffffffffffffffffull / (val)) : (((val) <= 1) ? 0xfffffff… argument 47 #define U64_DIV_BY_U64_CONSTANT(val, constantVal) cpuMathRecipAssistedUdiv64by64((val), (constantV… argument 48 #define I64_DIV_BY_I64_CONSTANT(val, constantVal) \ argument 50 char neg = ((uint32_t)((val) >> 32) ^ (uint32_t)(((uint64_t)(constantVal)) >> 32)) >> 31; \ [all …]
|
/device/generic/car/emulator/vhal_aidl/VehicleEmulator/ |
D | VehicleEmulator.cpp | 76 vhal_proto::VehiclePropValue* val = msg.add_value(); in doSetValueFromClient() local 77 populateProtoVehiclePropValue(propValue, val); in doSetValueFromClient() 188 VehiclePropValue val = { in doSetProperty() local 199 val.value.stringValue = protoVal.string_value().c_str(); in doSetProperty() 203 val.value.byteValues = std::vector<uint8_t> { protoVal.bytes_value().begin(), in doSetProperty() 208 val.value.int32Values = std::vector<int32_t> { protoVal.int32_values().begin(), in doSetProperty() 213 val.value.int64Values = std::vector<int64_t> { protoVal.int64_values().begin(), in doSetProperty() 218 val.value.floatValues = std::vector<float> { protoVal.float_values().begin(), in doSetProperty() 222 auto result = mHal->setValue(val); in doSetProperty() 318 void VehicleEmulator::populateProtoVehiclePropValue(const VehiclePropValue& val, in populateProtoVehiclePropValue() argument [all …]
|
/device/linaro/hikey/gralloc960/ |
D | gralloc_buffer_priv.h | 132 static inline int gralloc_buffer_attr_write(struct private_handle_t *hnd, buf_attr attr, int *val) in gralloc_buffer_attr_write() argument 136 if (!hnd || !val || attr >= GRALLOC_ARM_BUFFER_ATTR_LAST) in gralloc_buffer_attr_write() 148 memcpy(®ion->crop_top, val, sizeof(int) * 4); in gralloc_buffer_attr_write() 153 region->use_yuv_transform = *val; in gralloc_buffer_attr_write() 158 region->use_sparse_alloc = *val; in gralloc_buffer_attr_write() 163 memcpy(®ion->hdr_info, val, sizeof(mali_hdr_info)); in gralloc_buffer_attr_write() 173 static inline int gralloc_buffer_attr_read(struct private_handle_t *hnd, buf_attr attr, int *val) in gralloc_buffer_attr_read() argument 177 if (!hnd || !val || attr >= GRALLOC_ARM_BUFFER_ATTR_LAST) in gralloc_buffer_attr_read() 189 memcpy(val, ®ion->crop_top, sizeof(int) * 4); in gralloc_buffer_attr_read() 194 *val = region->use_yuv_transform; in gralloc_buffer_attr_read() [all …]
|
/device/generic/vulkan-cereal/stream-servers/gl/glestranslator/GLES_CM/ |
D | GLEScmContext.cpp | 64 mColor.val.ubyteVal[0] = 255; in init() 65 mColor.val.ubyteVal[1] = 255; in init() 66 mColor.val.ubyteVal[2] = 255; in init() 67 mColor.val.ubyteVal[3] = 255; in init() 69 mNormal.val.floatVal[0] = 0.0f; in init() 70 mNormal.val.floatVal[1] = 0.0f; in init() 71 mNormal.val.floatVal[2] = 1.0f; in init() 119 GLValTyped val; in GLEScmContext() local 120 stream->read(&val, sizeof(GLValTyped)); in GLEScmContext() 121 return std::make_pair(idx, val); in GLEScmContext() [all …]
|
/device/amlogic/yukawa/hal/gralloc/ |
D | gralloc_buffer_priv.h | 131 static inline int gralloc_buffer_attr_write(struct private_handle_t *hnd, buf_attr attr, int *val) in gralloc_buffer_attr_write() argument 135 if (!hnd || !val || attr >= GRALLOC_ARM_BUFFER_ATTR_LAST) in gralloc_buffer_attr_write() 147 memcpy(®ion->crop_top, val, sizeof(int) * 4); in gralloc_buffer_attr_write() 152 region->use_yuv_transform = *val; in gralloc_buffer_attr_write() 157 region->use_sparse_alloc = *val; in gralloc_buffer_attr_write() 167 static inline int gralloc_buffer_attr_read(struct private_handle_t *hnd, buf_attr attr, int *val) in gralloc_buffer_attr_read() argument 171 if (!hnd || !val || attr >= GRALLOC_ARM_BUFFER_ATTR_LAST) in gralloc_buffer_attr_read() 183 memcpy(val, ®ion->crop_top, sizeof(int) * 4); in gralloc_buffer_attr_read() 188 *val = region->use_yuv_transform; in gralloc_buffer_attr_read() 193 *val = region->use_sparse_alloc; in gralloc_buffer_attr_read()
|
/device/generic/car/emulator/vhal_v2_0/ |
D | VehicleEmulator.cpp | 68 vhal_proto::VehiclePropValue* val = msg.add_value(); in doSetValueFromClient() local 69 populateProtoVehiclePropValue(val, &propValue); in doSetValueFromClient() 130 auto val = mHal->get(request, &halStatus); in doGetProperty() local 131 if (val != nullptr) { in doGetProperty() 133 populateProtoVehiclePropValue(protoVal, val.get()); in doGetProperty() 157 VehiclePropValue val = { in doSetProperty() local 168 val.value.stringValue = protoVal.string_value().c_str(); in doSetProperty() 172 val.value.bytes = std::vector<uint8_t> { protoVal.bytes_value().begin(), in doSetProperty() 177 val.value.int32Values = std::vector<int32_t> { protoVal.int32_values().begin(), in doSetProperty() 182 val.value.int64Values = std::vector<int64_t> { protoVal.int64_values().begin(), in doSetProperty() [all …]
|
/device/google/contexthub/firmware/os/drivers/invensense_icm40600/ |
D | invensense_icm40600.c | 935 uint8_t val; local 945 val = (-gyr_offset[0]) & 0xff; 946 SPI_WRITE(REG_GOS_USER0, val); 948 val = (-gyr_offset[1] >> 4) & 0xf0; 949 val |= ((-gyr_offset[0] >> 8) & 0x0f); 950 SPI_WRITE(REG_GOS_USER1, val); 952 val = (-gyr_offset[1]) & 0xff; 953 SPI_WRITE(REG_GOS_USER2, val); 955 val = (-gyr_offset[2]) & 0xff; 956 SPI_WRITE(REG_GOS_USER3, val); [all …]
|
/device/generic/car/emulator/usbpt/protocan/protocanbus/ |
D | ExtraCanClient.cpp | 81 std::set<int> decodeButtons(uint16_t val) { in decodeButtons() argument 84 if (val & (1 << 0)) buttons.insert(AKEYCODE_BUTTON_A); // NAV in decodeButtons() 85 if (val & (1 << 1)) buttons.insert(AKEYCODE_BUTTON_B); // TEL in decodeButtons() 86 if (val & (1 << 2)) buttons.insert(AKEYCODE_MUSIC); // MEDIA in decodeButtons() 87 if (val & (1 << 3)) buttons.insert(AKEYCODE_MENU); // MENU in decodeButtons() 88 if (val & (1 << 4)) buttons.insert(AKEYCODE_BACK); // BACK in decodeButtons() 89 if (val & (1 << 5)) buttons.insert(AKEYCODE_ENTER); // ENC-PUSH in decodeButtons() 90 if (val & (1 << 8)) buttons.insert(AKEYCODE_DPAD_UP); // DPAD-UP in decodeButtons() 91 if (val & (1 << 9)) buttons.insert(AKEYCODE_DPAD_DOWN); // DPAD-DOWN in decodeButtons() 92 if (val & (1 << 10)) buttons.insert(AKEYCODE_DPAD_LEFT); // DPAD-LEFT in decodeButtons() [all …]
|
/device/generic/opengl-transport/host/libs/virglrenderer/ |
D | ChecksumCalculator.cpp | 83 uint32_t val = computeV1Checksum(); in writeChecksum() local 84 memcpy(checksumPtr, &val, sizeof(val)); in writeChecksum() 85 memcpy(checksumPtr+sizeof(val), &m_numWrite, sizeof(m_numWrite)); in writeChecksum() 114 const uint32_t val = computeV1Checksum(); in validate() local 115 assert(checksumSize == sizeof(val) + sizeof(m_numRead)); in validate() 116 isValid = 0 == memcmp(&val, expectedChecksum, sizeof(val)) && in validate() 119 sizeof(val), in validate()
|
/device/google/sunfish/json-c/ |
D | json_object.h | 71 struct json_object *val; member 276 struct json_object *val); 346 # define json_object_object_foreach(obj,key,val) \ argument 348 struct json_object *val __attribute__((__unused__)); \ 352 val = (struct json_object*)entry ## key->v; \ 359 # define json_object_object_foreach(obj,key,val) \ argument 361 struct json_object *val; \ 367 val = (struct json_object*)entry ## key->v, \ 379 …et_object(obj)->head; (iter.entry ? (iter.key = (char*)iter.entry->k, iter.val = (struct json_obje… 420 struct json_object *val); [all …]
|
/device/google/redbull/json-c/ |
D | json_object.h | 71 struct json_object *val; member 276 struct json_object *val); 346 # define json_object_object_foreach(obj,key,val) \ argument 348 struct json_object *val __attribute__((__unused__)); \ 352 val = (struct json_object*)entry ## key->v; \ 359 # define json_object_object_foreach(obj,key,val) \ argument 361 struct json_object *val; \ 367 val = (struct json_object*)entry ## key->v, \ 379 …et_object(obj)->head; (iter.entry ? (iter.key = (char*)iter.entry->k, iter.val = (struct json_obje… 420 struct json_object *val); [all …]
|
/device/google/coral/json-c/ |
D | json_object.h | 71 struct json_object *val; member 276 struct json_object *val); 346 # define json_object_object_foreach(obj,key,val) \ argument 348 struct json_object *val __attribute__((__unused__)); \ 352 val = (struct json_object*)entry ## key->v; \ 359 # define json_object_object_foreach(obj,key,val) \ argument 361 struct json_object *val; \ 367 val = (struct json_object*)entry ## key->v, \ 379 …et_object(obj)->head; (iter.entry ? (iter.key = (char*)iter.entry->k, iter.val = (struct json_obje… 420 struct json_object *val); [all …]
|
/device/generic/vulkan-cereal/stream-servers/apigen-codec-common/ |
D | ChecksumCalculator.cpp | 85 uint32_t val = computeV1Checksum(); in writeChecksum() local 86 memcpy(checksumPtr, &val, sizeof(val)); in writeChecksum() 87 memcpy(checksumPtr+sizeof(val), &m_numWrite, sizeof(m_numWrite)); in writeChecksum() 116 const uint32_t val = computeV1Checksum(); in validate() local 117 assert(checksumSize == sizeof(val) + sizeof(m_numRead)); in validate() 118 isValid = 0 == memcmp(&val, expectedChecksum, sizeof(val)) && in validate() 121 sizeof(val), in validate()
|
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/ |
D | ChecksumCalculator.cpp | 99 uint32_t val = computeV1Checksum(); in writeChecksum() local 100 memcpy(checksumPtr, &val, sizeof(val)); in writeChecksum() 101 memcpy(checksumPtr+sizeof(val), &m_numWrite, sizeof(m_numWrite)); in writeChecksum() 129 const uint32_t val = computeV1Checksum(); in validate() local 130 isValid = 0 == memcmp(&val, expectedChecksum, sizeof(val)) && in validate() 133 sizeof(val), in validate()
|
/device/generic/vulkan-cereal/gl-host-common/opengl/ |
D | NativeGpuInfo_windows.cpp | 43 static void parse_windows_gpu_ids(const std::string& val, in parse_windows_gpu_ids() argument 49 key_start = val.find("VEN_", key_start); in parse_windows_gpu_ids() 53 key_end = val.find("&", key_start); in parse_windows_gpu_ids() 57 result = val.substr(key_start + 4, key_end - key_start - 4); in parse_windows_gpu_ids() 60 key_start = val.find("DEV_", key_start); in parse_windows_gpu_ids() 64 key_end = val.find("&", key_start); in parse_windows_gpu_ids() 68 result = val.substr(key_start + 4, key_end - key_start - 4); in parse_windows_gpu_ids() 221 std::string val; in parse_gpu_info_list_windows() local 232 val = contents.substr(val_pos, line_loc - val_pos); in parse_gpu_info_list_windows() 241 gpulist->currGpu().make = val; in parse_gpu_info_list_windows() [all …]
|
/device/generic/goldfish-opengl/system/vulkan_enc/ |
D | Resources.cpp | 188 void appendObject(struct goldfish_vk_object_list** begin, void* val) { in appendObject() argument 189 D("for %p", val); in appendObject() 192 o->obj = val; in appendObject() 208 void eraseObject(struct goldfish_vk_object_list** begin, void* val) { in eraseObject() argument 209 D("for val %p", val); in eraseObject() 211 D("val %p notfound", val); in eraseObject() 220 if (val == q->obj) { in eraseObject() 221 D("val %p found, delete", val); in eraseObject() 224 D("val %p set begin to %p:", val, n); in eraseObject() 227 D("val %p set pnext to %p:", val, n); in eraseObject() [all …]
|
/device/linaro/dragonboard/qcom/rmtfs/ |
D | sharedmem.c | 34 unsigned long long val; in parse_hex_sysattr() local 43 val = strtoull(buf, &endptr, 16); in parse_hex_sysattr() 44 if ((val == ULLONG_MAX && errno == ERANGE) || endptr == buf) { in parse_hex_sysattr() 48 *value = val; in parse_hex_sysattr() 209 char val[PAGE_SIZE]; in rmtfs_mem_open_rfsa() local 229 read(fd, val, sizeof(val)); in rmtfs_mem_open_rfsa() 230 rmem->address = strtoull(val, &endptr, 16); in rmtfs_mem_open_rfsa() 231 if ((rmem->address == ULLONG_MAX && errno == ERANGE) || endptr == val) { in rmtfs_mem_open_rfsa() 244 read(fd, val, sizeof(val)); in rmtfs_mem_open_rfsa() 245 rmem->size = strtoull(val, &endptr, 16); in rmtfs_mem_open_rfsa() [all …]
|
/device/generic/opengl-transport/host/commands/emugen/android/base/ |
D | EnumFlags.h | 78 enable_if_scoped_enum<E, bool> operator!=(E e, int val) { 80 static_cast<underlying_enum_type<E>>(val); 84 enable_if_scoped_enum<E, bool> operator!=(int val, E e) { 85 return e != val; 89 enable_if_scoped_enum<E, bool> operator==(E e, int val) { 91 static_cast<underlying_enum_type<E>>(val); 95 enable_if_scoped_enum<E, bool> operator==(int val, E e) { 96 return e == val;
|
/device/generic/goldfish-opengl/android-emu/aemu/base/ |
D | EnumFlags.h | 81 enable_if_scoped_enum<E, bool> operator!=(E e, int val) { 83 static_cast<underlying_enum_type<E>>(val); 87 enable_if_scoped_enum<E, bool> operator!=(int val, E e) { 88 return e != val; 92 enable_if_scoped_enum<E, bool> operator==(E e, int val) { 94 static_cast<underlying_enum_type<E>>(val); 98 enable_if_scoped_enum<E, bool> operator==(int val, E e) { 99 return e == val;
|
/device/google/trout/tests/hal/vehicle/2.0/ |
D | GrpcServer_test.cpp | 74 void WriteToPowerStateSocket(const std::string& val); 107 void GrpcServerTest::WriteToPowerStateSocket(const std::string& val) { in WriteToPowerStateSocket() argument 120 EXPECT_EQ(write(power_socket_fd, val.c_str(), val.length()), in WriteToPowerStateSocket() 121 static_cast<ssize_t>(val.length())); in WriteToPowerStateSocket() 127 std::string val; in ReadFromPowerStateMarkerFile() local 128 stream >> val; in ReadFromPowerStateMarkerFile() 129 return val; in ReadFromPowerStateMarkerFile()
|