/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/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/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/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/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/contexthub/firmware/os/cpu/x86/ |
D | atomic.c | 19 uint32_t atomicAdd32bits(volatile uint32_t *val, uint32_t addend) in atomicAdd32bits() argument 24 old = *val; in atomicAdd32bits() 25 } while (!atomicCmpXchg32bits(val, old, old + addend)); in atomicAdd32bits() 30 uint32_t atomicAddByte(volatile uint8_t *val, uint32_t addend) in atomicAddByte() argument 35 old = *val; in atomicAddByte() 36 } while (!atomicCmpXchgByte(val, old, old + addend)); in atomicAddByte()
|
/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/linaro/hikey/hifi/xaf/hifi-dpf/include/ |
D | xa_timer.h | 80 static __inline__ void set_ccompare1(int val) in set_ccompare1() argument 86 : "a" (val) in set_ccompare1() 90 static __inline__ void set_ccompare0(int val) in set_ccompare0() argument 96 : "a" (val) in set_ccompare0() 102 static __inline__ void set_ccount(int val) in set_ccount() argument 108 : "a" (val) in set_ccount()
|
/device/google/bonito/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/google/crosshatch/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/goldfish-opengl/android-emu/android/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/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/google/contexthub/firmware/os/cpu/cortexm4/ |
D | cpuMath.c | 3 uint32_t cpuMathUint44Div1000ToUint32_slow_path(uint64_t val) in cpuMathUint44Div1000ToUint32_slow_path() argument 10 ret = val * multLo; in cpuMathUint44Div1000ToUint32_slow_path() 12 ret += val * multHi; in cpuMathUint44Div1000ToUint32_slow_path() 17 uint64_t cpuMathU64DivByU16(uint64_t val, uint32_t divBy_ /* 16 bits max*/) in cpuMathU64DivByU16() argument 20 return U64_DIV_BY_CONST_U16(val, divBy_); in cpuMathU64DivByU16()
|
/device/linaro/hikey/hifi/xaf/hifi-dpf/ipc/xt-shmem/hikey/ |
D | dsp_debug.c | 339 unsigned int val = 0; in dsp_om_read_mem() local 348 val = *(unsigned int*)addr; in dsp_om_read_mem() 352 DSP_LOGI("read addr:0x%x value:0x%x\n", addr, val); in dsp_om_read_mem() 361 unsigned int val = 0; in dsp_om_write_mem() local 374 val= strtoul(str_val, 0, 16); in dsp_om_write_mem() 375 …addr:%x str_val:%s val:%x\n", str_addr ? str_addr : "null", addr, str_val ? str_val : "null", val); in dsp_om_write_mem() 377 *(unsigned int *)addr = val; in dsp_om_write_mem() 388 unsigned int val = 0; in dsp_om_pcm_gain() local 399 val= strtoul(str_val, 0, 16); in dsp_om_pcm_gain() 400 …addr:%x str_val:%s val:%x\n", str_addr ? str_addr : "null", addr, str_val ? str_val : "null", val); in dsp_om_pcm_gain() [all …]
|
/device/google/contexthub/firmware/os/inc/ |
D | atomic.h | 54 static inline void atomicWriteByte(volatile uint8_t *byte, uint32_t val) in atomicWriteByte() argument 56 *byte = val; in atomicWriteByte() 60 static inline void atomicWrite32bits(volatile uint32_t *word, uint32_t val) in atomicWrite32bits() argument 62 *word = val; in atomicWrite32bits()
|
/device/google/crosshatch/sdm845/kernel-headers/linux/mfd/ |
D | msm-adie-codec.h | 35 #define ADIE_CODEC_PACK_ENTRY(reg,mask,val) ((val) | (mask << 8) | (reg << 16)) argument 36 …EC_UNPACK_ENTRY(packed,reg,mask,val) do { ((reg) = ((packed >> 16) & (0xff))); ((mask) = ((packed … argument 55 u8 val; member
|
/device/google/bonito/sdm710/kernel-headers/linux/mfd/ |
D | msm-adie-codec.h | 35 #define ADIE_CODEC_PACK_ENTRY(reg,mask,val) ((val) | (mask << 8) | (reg << 16)) argument 36 …EC_UNPACK_ENTRY(packed,reg,mask,val) do { ((reg) = ((packed >> 16) & (0xff))); ((mask) = ((packed … argument 55 u8 val; member
|
/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/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/google/bonito/sdm710/original-kernel-headers/linux/mfd/ |
D | msm-adie-codec.h | 52 #define ADIE_CODEC_PACK_ENTRY(reg, mask, val) ((val)|(mask << 8)|(reg << 16)) argument 54 #define ADIE_CODEC_UNPACK_ENTRY(packed, reg, mask, val) \ argument 58 ((val) = ((packed) & (0xff))); \ 85 u8 val; member
|
/device/google/crosshatch/sdm845/original-kernel-headers/linux/mfd/ |
D | msm-adie-codec.h | 52 #define ADIE_CODEC_PACK_ENTRY(reg, mask, val) ((val)|(mask << 8)|(reg << 16)) argument 54 #define ADIE_CODEC_UNPACK_ENTRY(packed, reg, mask, val) \ argument 58 ((val) = ((packed) & (0xff))); \ 85 u8 val; member
|
/device/google/contexthub/firmware/os/drivers/leds/ |
D | leds_gpio.c | 48 uint8_t val; member 119 mTask.leds[lcfg->led_num].val = lcfg->value ? 1 : 0; in sensorConfigLedsGpio() 120 gpioSet(mTask.leds[lcfg->led_num].ledid, mTask.leds[lcfg->led_num].val); in sensorConfigLedsGpio() 131 gpioSet(mTask.leds[i].ledid, flag ? mTask.leds[i].val : 0); in sensorLedsOnOff() 154 mTask.leds[0].val = 1; in handleEvent() 186 mTask.leds[mTask.num].val = 0; in startTask()
|
/device/google/wahoo/health/ |
D | HealthService.cpp | 125 uint16_t val; in get_storage_info() local 129 token, &val)) < 2) { in get_storage_info() 134 storage_info.eol = val; in get_storage_info() 136 storage_info.lifetimeA = val; in get_storage_info() 138 storage_info.lifetimeB = val; in get_storage_info()
|