Home
last modified time | relevance | path

Searched refs:val (Results 1 – 25 of 87) sorted by relevance

1234

/device/google/contexthub/util/common/
DJSONObject.h167 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 …]
DJSONObject.cpp83 JSONValue val; in Parse() local
84 ssize_t n = Parse(&data[offset], size - offset, &val); in Parse()
90 array->addValue(val); in Parse()
153 JSONValue val; in Parse() local
154 n = Parse(&data[offset], size - offset, &val); in Parse()
163 obj->setValue(keyVal.c_str(), val); in Parse()
652 JSONValue val; in toString() local
654 val.setObject((JSONObject *)this); in toString()
656 val.setArray((JSONArray *)this); in toString()
659 return val.toString(depth, indentFirstLine); in toString()
/device/google/contexthub/contexthubhal/
Dmessage_buf.h82 void writeU8(uint8_t val) { in writeU8() argument
85 data[pos++] = val; in writeU8()
91 uint16_t val; in readU16() local
92 memcpy(&val, &data[pos], sizeof(val)); in readU16()
93 pos += sizeof(val); in readU16()
94 return le16toh(val); in readU16()
96 void writeU16(uint16_t val) { in writeU16() argument
100 uint16_t tmp = htole16(val); in writeU16()
108 uint32_t val; in readU32() local
109 memcpy(&val, &data[pos], sizeof(val)); in readU32()
[all …]
/device/google/contexthub/firmware/inc/cpu/cortexm4f/
DcpuMath.h6 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 …]
Dnanohub_math.h29 static inline float arm_sqrtf(float val) in arm_sqrtf() argument
36 :"w" (val) in arm_sqrtf()
/device/google/dragon/audio/hal/
Ddictionary.c128 d->val = (char **)calloc(size, sizeof(char*)); in dictionary_new()
151 if (d->val[i]!=NULL) in dictionary_del()
152 free(d->val[i]); in dictionary_del()
154 free(d->val); in dictionary_del()
188 return d->val[i] ; in dictionary_get()
221 int dictionary_set(dictionary * d, const char * key, const char * val) in dictionary_set() argument
238 if (d->val[i]!=NULL) in dictionary_set()
239 free(d->val[i]); in dictionary_set()
240 d->val[i] = val ? xstrdup(val) : NULL ; in dictionary_set()
252 d->val = (char **)mem_double(d->val, d->size * sizeof(char*)) ; in dictionary_set()
[all …]
Diniparser.c186 if (d->val[i]!=NULL) { in iniparser_dump()
187 fprintf(f, "[%s]=[%s]\n", d->key[i], d->val[i]); in iniparser_dump()
220 fprintf(f, "%s = %s\n", d->key[i], d->val[i]); in iniparser_dump_ini()
263 d->val[j] ? d->val[j] : ""); in iniparser_dumpsection_ini()
525 int iniparser_set(dictionary * ini, const char * entry, const char * val) in iniparser_set() argument
527 return dictionary_set(ini, strlwc(entry), val) ; in iniparser_set()
637 char val [ASCIILINESZ+1] ; in iniparser_load() local
660 memset(val, 0, ASCIILINESZ); in iniparser_load()
692 switch (iniparser_line(line, section, key, val)) { in iniparser_load()
703 errs = dictionary_set(dict, tmp, val) ; in iniparser_load()
Ddictionary.h44 char ** val ; /** List of string values */ member
135 int dictionary_set(dictionary * vd, const char * key, const char * val);
Dutlist.h116 #define LL_SEARCH_SCALAR(head, out, field, val) \ argument
119 if ((out)->field == (val)) \
123 #define LL_SEARCH_SCALAR_WITH_CAST(head, out, nout, field, val) \ argument
127 if ((nout)->field == (val)) \
/device/huawei/angler/camera/QCamera2/stack/common/
Dcam_semaphore.h43 int val; member
52 s->val = n; in cam_sem_init()
58 s->val++; in cam_sem_post()
67 while (s->val == 0) in cam_sem_wait()
69 s->val--; in cam_sem_wait()
78 s->val = 0; in cam_sem_destroy()
/device/moto/shamu/camera/QCamera2/stack/common/
Dcam_semaphore.h43 int val; member
52 s->val = n; in cam_sem_init()
58 s->val++; in cam_sem_post()
67 while (s->val == 0) in cam_sem_wait()
69 s->val--; in cam_sem_wait()
78 s->val = 0; in cam_sem_destroy()
/device/lge/bullhead/camera/QCamera2/stack/common/
Dcam_semaphore.h43 int val; member
52 s->val = n; in cam_sem_init()
58 s->val++; in cam_sem_post()
67 while (s->val == 0) in cam_sem_wait()
69 s->val--; in cam_sem_wait()
78 s->val = 0; in cam_sem_destroy()
/device/generic/goldfish/opengl/shared/OpenglCodecCommon/
DChecksumCalculator.cpp103 uint32_t val = computeV1Checksum(); in writeChecksum() local
104 memcpy(checksumPtr, &val, sizeof(val)); in writeChecksum()
105 memcpy(checksumPtr+sizeof(val), &m_numWrite, sizeof(m_numWrite)); in writeChecksum()
134 uint32_t val = computeV1Checksum(); in validate() local
135 memcpy(sChecksumBuffer, &val, sizeof(val)); in validate()
136 memcpy(sChecksumBuffer+sizeof(val), &m_numRead, sizeof(m_numRead)); in validate()
DGLSharedGroup.h85 GLint getNextSamplerUniform(GLint index, GLint* val, GLenum* target);
86 bool setSamplerUniform(GLint appLoc, GLint val, GLenum* target);
133 GLint getNextSamplerUniform(GLuint program, GLint index, GLint* val, GLenum* target) const;
134 bool setSamplerUniform(GLuint program, GLint appLoc, GLint val, GLenum* target);
/device/google/dragon/recovery/updater/
Ddebug_ec.c56 uint8_t val; in ec_readmem8() local
58 ret = ec_readmem(offset, sizeof(val), &val); in ec_readmem8()
59 return ret ? 0 : val; in ec_readmem8()
64 uint32_t val; in ec_readmem32() local
66 ret = ec_readmem(offset, sizeof(val), &val); in ec_readmem32()
67 return ret ? 0 : val; in ec_readmem32()
73 uint32_t val; in cmd_ec_battery() local
80 val = ec_readmem8(EC_MEMMAP_BATTERY_VERSION); in cmd_ec_battery()
81 if (val < 1) { in cmd_ec_battery()
82 fprintf(stderr, "Battery version %d is not supported\n", val); in cmd_ec_battery()
[all …]
/device/google/contexthub/firmware/src/cpu/x86/
Datomic.c19 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/asus/fugu/recovery/
Drecovery_updater.cpp107 uint32_t val = 0; in xor_compute() local
111 val = val ^ *(uint32_t *)(ptr + i); in xor_compute()
113 return val; in xor_compute()
116 static uint8_t xor_factorize(uint32_t val) in xor_factorize() argument
118 return (uint8_t)((val & 0xff) ^ ((val >> 8) & 0xff) ^ ((val >> 16) & 0xff) ^ ((val >> 24) & 0xff)); in xor_factorize()
124 uint32_t val; in xor_update() local
128 val = xor_compute(ptr + i * BOOT_UMIP_SECTOR_SIZE, BOOT_UMIP_SECTOR_SIZE); in xor_update()
129 *(uint32_t *)(ptr + 4 * i) = val; in xor_update()
134 val= xor_compute(ptr, BOOT_UMIP_SIZE); in xor_update()
135 *(ptr + BOOT_UMIP_XOR_OFFSET) = xor_factorize(val); in xor_update()
[all …]
/device/google/contexthub/firmware/src/cpu/cortexm4f/
DcpuMath.c3 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/google/accessory/arduino/USB_Host_Shield/
DMax3421e.cpp55 void MAX3421E::setRST(uint8_t val) in setRST() argument
57 if (val == LOW) in setRST()
120 void MAX3421E::regWr( byte reg, byte val) in regWr() argument
125 SPDR = val; in regWr()
148 void MAX3421E::gpioWr( byte val ) in gpioWr() argument
150 regWr( rIOPINS1, val ); in gpioWr()
151 val = val >>4; in gpioWr()
152 regWr( rIOPINS2, val ); in gpioWr()
/device/google/contexthub/firmware/inc/
Datomic.h51 static inline void atomicWriteByte(volatile uint8_t *byte, uint32_t val) in atomicWriteByte() argument
53 *byte = val; in atomicWriteByte()
57 static inline void atomicWrite32bits(volatile uint32_t *word, uint32_t val) in atomicWrite32bits() argument
59 *word = val; in atomicWrite32bits()
/device/google/contexthub/lib/nanohub/
Dsha2.c43 inline static uint32_t ror(uint32_t val, uint32_t by) in ror() argument
46 return val; in ror()
48 val = (val >> by) | (val << (32 - by)); in ror()
50 return val; in ror()
/device/lge/bullhead/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_interface.c302 int val = atoi(prop); in jpeg_open() local
303 if (0 <= val) { in jpeg_open()
304 gMmJpegIntfLogLevel = (uint32_t)val; in jpeg_open()
307 val = atoi(prop); in jpeg_open()
308 if (0 <= val) { in jpeg_open()
309 globalLogLevel = (uint32_t)val; in jpeg_open()
/device/huawei/angler/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_interface.c302 int val = atoi(prop); in jpeg_open() local
303 if (0 <= val) { in jpeg_open()
304 gMmJpegIntfLogLevel = (uint32_t)val; in jpeg_open()
307 val = atoi(prop); in jpeg_open()
308 if (0 <= val) { in jpeg_open()
309 globalLogLevel = (uint32_t)val; in jpeg_open()
/device/google/accessory/demokit/firmware/demokit/
Ddemokit.pde151 uint16_t val;
226 val = analogRead(TEMP_SENSOR);
228 msg[1] = val >> 8;
229 msg[2] = val & 0xff;
234 val = analogRead(LIGHT_SENSOR);
236 msg[1] = val >> 8;
237 msg[2] = val & 0xff;
388 void write_joy_reg(char reg_addr, char val)
392 Wire.write(val);
/device/google/contexthub/util/stm32_flash/
Dflash.c84 int val; in main() local
165 val = spi_init(handle); in main()
171 val = i2c_init(handle); in main()
174 if (val < 0) in main()
175 return val; in main()

1234