Home
last modified time | relevance | path

Searched refs:i (Results 1 – 25 of 464) sorted by relevance

12345678910>>...19

/device/google/contexthub/firmware/lib/libm/
Dkf_rem_pio2.c62 __int32_t jz,jx,jv,jp,jk,carry,n,iq[20],i,j,k,m,q0,ih; local
76 for(i=0;i<=m;i++,j++) f[i] = (j<0)? zero : (float) ipio2[j];
79 for (i=0;i<=jk;i++) {
80 for(j=0,fw=0.0;j<=jx;j++) fw += x[j]*f[jx+i-j];
81 q[i] = fw;
87 for(i=0,j=jz,z=q[jz];j>0;i++,j--) {
89 iq[i] = (__int32_t)(z-two8*fw);
100 i = (iq[jz-1]>>(8-q0)); n += i;
101 iq[jz-1] -= i<<(8-q0);
109 for(i=0;i<jz ;i++) { /* compute 1-q */
[all …]
/device/google/contexthub/firmware/os/algos/common/math/
Dmat.c39 static void mat33SwapRows(struct Mat33 *A, uint32_t i, uint32_t j);
42 uint32_t l, uint32_t i, uint32_t j);
44 static void mat44SwapRows(struct Mat44 *A, uint32_t i, uint32_t j);
56 uint32_t i; in initDiagonalMatrix() local
57 for (i = 0; i < 3; ++i) { in initDiagonalMatrix()
58 A->elem[i][i] = x; in initDiagonalMatrix()
99 uint32_t i; in mat33Multiply() local
100 for (i = 0; i < 3; ++i) { in mat33Multiply()
106 sum += A->elem[i][k] * B->elem[k][j]; in mat33Multiply()
109 out->elem[i][j] = sum; in mat33Multiply()
[all …]
Dvec.c58 size_t i; in vecAdd() local
59 for (i = 0; i < dim; i++) { in vecAdd()
60 u[i] = v[i] + w[i]; in vecAdd()
67 size_t i; in vecAddInPlace() local
68 for (i = 0; i < dim; i++) { in vecAddInPlace()
69 v[i] += w[i]; in vecAddInPlace()
77 size_t i; in vecSub() local
78 for (i = 0; i < dim; i++) { in vecSub()
79 u[i] = v[i] - w[i]; in vecSub()
86 size_t i; in vecScalarMul() local
[all …]
/device/google/contexthub/firmware/os/cpu/cortexm4/
Dpendsv.c26 int32_t i, free = -1; in pendsvSubscribe() local
29 for (i = 0; i < MAX_PENDSV_SUBSCRIBERS; i++) { in pendsvSubscribe()
30 if (!mSubscribers[i]) in pendsvSubscribe()
31 free = i; in pendsvSubscribe()
32 if (mSubscribers[i] == cbk) in pendsvSubscribe()
46 uint32_t i; in pendsvUnsubscribe() local
48 for (i = 0; i < MAX_PENDSV_SUBSCRIBERS; i++) { in pendsvUnsubscribe()
49 if (mSubscribers[i] == cbk) { in pendsvUnsubscribe()
50 mSubscribers[i] = NULL; in pendsvUnsubscribe()
75 uint32_t i; in pendSvHandleC() local
[all …]
/device/linaro/hikey/hifi/xaf/host-apf/utest/
Dxaf-dec-mix-test.c220 int i, j; in main() local
261 for (i=0; i<argc; i++) in main()
263 ext = strrchr(argv[i+1], '.'); in main()
271 dec_id[i] = "audio-decoder/pcm"; in main()
272 dec_setup[i] = pcm_setup; in main()
275 dec_id[i] = "audio-decoder/vorbis"; in main()
276 dec_setup[i] = vorbis_setup; in main()
284 if ((fp = fopen(argv[i+1], "rb")) == NULL) in main()
286 TRACE(ERROR, _x("Failed to open '%s': %d"), argv[i+1], errno); in main()
289 p_input[i] = fp; in main()
[all …]
/device/google/contexthub/util/sensortest/
Dsensortest.cpp54 for (int i = 0; i < mNumSensors; i++) { in printSensorList() local
73 for (int i = 0; i < mNumSensors; i++) { in findSensorTypeInSensorList() local
74 if (ASensor_getType(mSensorList[i]) == type) { in findSensorTypeInSensorList()
75 return i; in findSensorTypeInSensorList()
84 for (int i = 0; i < mNumSensorConfigs; i++) { in findSensorTypeInConfigList() local
85 if (mSensorConfigList[i].type == type) { in findSensorTypeInConfigList()
86 return i; in findSensorTypeInConfigList()
187 for (int i = 0; i < mNumSensorConfigs; i++) { in hasReceivedAllEvents() local
188 if (!mSensorConfigList[i].receivedEvent) { in hasReceivedAllEvents()
215 for (int i = 0; i < mNumSensorConfigs; i++) { in main() local
[all …]
/device/linaro/hikey/hifi/xaf/hifi-dpf/audio/
Dxa-class-base.c87 WORD32 n, i; in xa_base_postinit() local
99 for (i = 0; i < n; i++) in xa_base_postinit()
103 TRACE(1, _b("i = %u (of %u)"), (u32)i, (u32)n); in xa_base_postinit()
106 XA_API(base, XA_API_CMD_GET_MEM_INFO_TYPE, i, &type); in xa_base_postinit()
109 XA_API(base, XA_API_CMD_GET_MEM_INFO_SIZE, i, &size); in xa_base_postinit()
112 XA_API(base, XA_API_CMD_GET_MEM_INFO_ALIGNMENT, i, &align); in xa_base_postinit()
125 XA_API(base, XA_API_CMD_SET_MEM_PTR, i, base->scratch); in xa_base_postinit()
127 …TRACE(INIT, _b("Mem tab %d: sz=%d al=%d ty=%d Scratch memory (%p)"), i, size, align, type, base->s… in xa_base_postinit()
136 XA_API(base, XA_API_CMD_SET_MEM_PTR, i, base->persist.addr); in xa_base_postinit()
138 …TRACE(INIT, _b("Mem tab %d: sz=%d al=%d ty=%d Persistent memory (%p)"), i, size, align, type, base… in xa_base_postinit()
[all …]
/device/linaro/poplar/wifi/wifi_hal/
Dcommon.cpp132 for (int i = 0; i < info->num_event_cb; i++) { in wifi_unregister_handler() local
133 if (info->event_cb[i].nl_cmd == cmd) { in wifi_unregister_handler()
135 info->event_cb[i].cb_arg, info->event_cb[i].cb_func, cmd, i); in wifi_unregister_handler()
137 memmove(&info->event_cb[i], &info->event_cb[i+1], in wifi_unregister_handler()
138 (info->num_event_cb - i - 1) * sizeof(cb_info)); in wifi_unregister_handler()
153 for (int i = 0; i < info->num_event_cb; i++) { in wifi_unregister_vendor_handler() local
155 if (info->event_cb[i].nl_cmd == NL80211_CMD_VENDOR in wifi_unregister_vendor_handler()
156 && info->event_cb[i].vendor_id == id in wifi_unregister_vendor_handler()
157 && info->event_cb[i].vendor_subcmd == subcmd) { in wifi_unregister_vendor_handler()
159 info->event_cb[i].cb_arg, info->event_cb[i].cb_func, id, subcmd, i); in wifi_unregister_vendor_handler()
[all …]
/device/google/crosshatch/audio/
Dconvert_config_string.py11 for i in range(len(inlist)-1):
12 crc = crc ^ (int(inlist[i]&0xffffffff))
42 for i in ilist:
43 if (binarydata[i]==2):
44 binarydata[i]=4
52 for i in range(21,len(binarydata)-1):
53 if (binarydata[i]==17):
54 if (binarydata[i+1]==0):
55 binarydata[i]=53
56 if (binarydata[i+1]==1):
[all …]
/device/google/bonito/audio/
Dconvert_config_string.py11 for i in range(len(inlist)-1):
12 crc = crc ^ (int(inlist[i]&0xffffffff))
42 for i in ilist:
43 if (binarydata[i]==2):
44 binarydata[i]=4
52 for i in range(21,len(binarydata)-1):
53 if (binarydata[i]==17):
54 if (binarydata[i+1]==0):
55 binarydata[i]=53
56 if (binarydata[i+1]==1):
[all …]
/device/generic/goldfish-opengl/android-emu/android/base/
Daddress_space.h110 int i; in address_space_allocator_find_available_block() local
114 for (i = 0; i < n_blocks; ++i, ++block) { in address_space_allocator_find_available_block()
120 index = i; in address_space_allocator_find_available_block()
148 int i, in address_space_allocator_split_block() argument
154 address_space_assert(i >= 0); in address_space_allocator_split_block()
155 address_space_assert(i < allocator->size); in address_space_allocator_split_block()
156 address_space_assert(size < allocator->blocks[i].size); in address_space_allocator_split_block()
175 memmove(&blocks[i + 2], &blocks[i + 1], in address_space_allocator_split_block()
176 sizeof(struct address_block) * (allocator->size - i - 1)); in address_space_allocator_split_block()
178 struct address_block *to_borrow_from = &blocks[i]; in address_space_allocator_split_block()
[all …]
/device/linaro/dragonboard/qcom/qrtr/src/
Dmap.c44 int i; in map_clear() local
46 for (i = 0; i < map->size; ++i){ in map_clear()
47 if (!map->data[i].item) in map_clear()
49 if (map->data[i].item != &deleted) in map_clear()
50 (* release)(map->data[i].item); in map_clear()
51 map->data[i].item = NULL; in map_clear()
67 int idx, i; in map_hash() local
74 for (i = 0; i < map->size; ++i) { in map_hash()
122 int o_size, i; in map_rehash() local
136 for (i = 0; i < o_size; ++i){ in map_rehash()
[all …]
/device/google/contexthub/lib/nanohub/
Drsa.c30 int32_t i; in biModIterative() local
45 for (i = RSA_LIMBS; i > 0; i--) { in biModIterative()
46 tmp[i] <<= 1; in biModIterative()
47 if (tmp[i - 1] & 0x80000000) in biModIterative()
48 tmp[i]++; in biModIterative()
59 for (i = RSA_LIMBS; i >= 0; i--) { in biModIterative()
60 if (num[limbsh + i] < tmp[i]) in biModIterative()
62 if (num[limbsh + i] > tmp[i]) in biModIterative()
68 for (i = 0; i <= RSA_LIMBS; i++) { in biModIterative()
69 t += (uint64_t)num[limbsh + i]; in biModIterative()
[all …]
Dsha2.c68 uint32_t i, a, b, c, d, e, f, g, h; in sha2processBlock() local
71 for (i = 0; i < SHA2_BLOCK_SIZE / sizeof(uint32_t); i++) in sha2processBlock()
72 state->w[i] = __builtin_bswap32(state->w[i]); in sha2processBlock()
75 for (;i < SHA2_WORDS_STATE_SIZE; i++) { in sha2processBlock()
76 uint32_t s0 = ror(state->w[i-15], 7) ^ ror(state->w[i-15], 18) ^ (state->w[i-15] >> 3); in sha2processBlock()
77 uint32_t s1 = ror(state->w[i-2], 17) ^ ror(state->w[i-2], 19) ^ (state->w[i-2] >> 10); in sha2processBlock()
78 state->w[i] = state->w[i - 16] + s0 + state->w[i - 7] + s1; in sha2processBlock()
92 for (i = 0; i < 64; i++) { in sha2processBlock()
95 uint32_t temp1 = h + s1 + ch + k[i] + state->w[i]; in sha2processBlock()
150 uint32_t i; in sha2finish() local
[all …]
Dsoftcrc.c32 int i; in crcOneWord() local
35 for (i = 0; i < cnt; i++) in crcOneWord()
46 size_t i; in soft_crc32() local
49 for (i = 0; i < size / 4; i++) in soft_crc32()
56 for (i *= 4, word = 0; i < size; i++) in soft_crc32()
57 word |= (*data8++) << ((i & 0x3) * 8); in soft_crc32()
/device/google/contexthub/firmware/os/core/
Dbl.c131 uint32_t offset, i, j = 0; in blProgramFlash() local
143 for (i = 0; i < sector_cnt; i++) { in blProgramFlash()
144 if (dst >= mBlFlashTable[i].address && in blProgramFlash()
145 dst < (mBlFlashTable[i].address + mBlFlashTable[i].length)) { in blProgramFlash()
153 offset = (uint32_t)(dst - mBlFlashTable[i].address); in blProgramFlash()
154 ptr = mBlFlashTable[i].address; in blProgramFlash()
155 while (j < length && i < sector_cnt) { in blProgramFlash()
156 if (offset == mBlFlashTable[i].length) { in blProgramFlash()
157 i++; in blProgramFlash()
159 ptr = mBlFlashTable[i].address; in blProgramFlash()
[all …]
/device/google/contexthub/util/nanoapp_sign/
Dnanoapp_sign.c33 for (int i=0; i < 4; ++i, x >>= 8) in bswap32() local
49 int c, i; in getHexEncodedByte() local
54 for (i = 0; i < 2; i++) { in getHexEncodedByte()
68 … else if (i) //disallow everything between first and second nibble in getHexEncodedByte()
86 uint32_t i, v; in rand32_no_zero_bytes() local
97 for (v = 0, i = 0; i < 4; i++) { in rand32_no_zero_bytes()
126 int i; in validateSignature() local
130 for (i = 0; i < RSA_LIMBS; i++) in validateSignature()
131 rsa->num[i] = le32toh(le32SigPack[i]); in validateSignature()
164 for (i = 9; i < RSA_LIMBS - 1; i++) { in validateSignature()
[all …]
/device/generic/goldfish-opengl/system/OpenglSystemCommon/
DFormatConversions.cpp108 for (int i = left; i <= right; ++i) { in rgb565_to_yv12() local
109 uint8_t r = ((rgb_ptr[i]) >> 11) & 0x01f; in rgb565_to_yv12()
110 uint8_t g = ((rgb_ptr[i]) >> 5) & 0x03f; in rgb565_to_yv12()
111 uint8_t b = (rgb_ptr[i]) & 0x01f; in rgb565_to_yv12()
119 yv12_y[i] = clamp_rgb((77 * R + 150 * G + 29 * B) >> 8); in rgb565_to_yv12()
120 bool ieven = (i & 1) == 0; in rgb565_to_yv12()
122 yv12_u[i] = clamp_rgb((( -43 * R - 85 * G + 128 * B) >> 8) + 128); in rgb565_to_yv12()
123 yv12_v[i] = clamp_rgb((( 128 * R - 107 * G - 21 * B) >> 8) + 128); in rgb565_to_yv12()
164 for (int i = left; i <= right; ++i) { in rgb888_to_yv12() local
165 uint8_t R = rgb_ptr[i*rgb_stride]; in rgb888_to_yv12()
[all …]
/device/google/contexthub/util/nanotool/
Dnanopacket.cpp36 for (int i = 0; i < cnt; i++) { in Crc32Word() local
45 int i; in Crc32() local
49 for (i = 0; i < (length >> 2); i++) { in Crc32()
50 crc = Crc32Word(crc, ((uint32_t *)buffer)[i], 8); in Crc32()
57 for (i*=4; i<length; i++) { in Crc32()
58 word |= buffer[i] << ((i & 0x3) * 8); in Crc32()
147 for (size_t i = 0; i < length; i++) { in Parse() local
151 packet_buffer_.push_back(buffer[i]); in Parse()
155 if (parsing_state_ == ParsingState::Idle && buffer[i] == kSyncByte) { in Parse()
156 packet_buffer_.push_back(buffer[i]); in Parse()
[all …]
/device/linaro/dragonboard/qcom/rmtfs/
Dstorage.c53 int i; in storage_init() local
66 for (i = 0; i < MAX_CALLERS; i++) { in storage_init()
67 rmtfds[i].id = i; in storage_init()
68 rmtfds[i].fd = -1; in storage_init()
69 rmtfds[i].shadow_buf = NULL; in storage_init()
85 int i; in storage_open() local
97 for (i = 0; i < MAX_CALLERS; i++) { in storage_open()
98 if ((rmtfds[i].fd != -1 || rmtfds[i].shadow_buf) && in storage_open()
99 rmtfds[i].node == node && in storage_open()
100 rmtfds[i].partition == part) in storage_open()
[all …]
/device/google/contexthub/firmware/os/algos/calibration/over_temp/
Dover_temp_cal.c323 for (size_t i = 0; i < 3; i++) { in overTempCalSetModel() local
324 if (isValidOtcLinearModel(over_temp_cal, temp_sensitivity[i], in overTempCalSetModel()
325 sensor_intercept[i])) { in overTempCalSetModel()
326 over_temp_cal->temp_sensitivity[i] = temp_sensitivity[i]; in overTempCalSetModel()
327 over_temp_cal->sensor_intercept[i] = sensor_intercept[i]; in overTempCalSetModel()
442 for (size_t i = 0; i < over_temp_cal->num_model_pts; i++) { in overTempCalSetModelData() local
443 if (isValidOtcOffset(model_data[i].offset, in overTempCalSetModelData()
444 model_data[i].offset_temp_celsius)) { in overTempCalSetModelData()
445 memcpy(&over_temp_cal->model_data[i], &model_data[i], in overTempCalSetModelData()
621 for (size_t i = 0; i < over_temp_cal->num_model_pts; i++) { in overTempCalUpdateSensorEstimate() local
[all …]
/device/generic/goldfish-opengl/system/codecs/omx/plugin/
DGoldfishOMXPlugin.cpp93 for (int i = 0; i < kNumComponents; ++i) { in GoldfishOMXPlugin() local
94 if ( !strncmp("OMX.google", kComponents[i].mName, 10) && in GoldfishOMXPlugin()
95 useGoogleGoldfishComponentInstance(kComponents[i].mLibNameSuffix)) { in GoldfishOMXPlugin()
96 ALOGD("found and use kComponents[i].name %s", kComponents[i].mName); in GoldfishOMXPlugin()
97 kActiveComponents.push_back(kComponents[i]); in GoldfishOMXPlugin()
98 } else if (!strncmp("OMX.android", kComponents[i].mName, 11) && in GoldfishOMXPlugin()
99 useAndroidGoldfishComponentInstance(kComponents[i].mLibNameSuffix)) { in GoldfishOMXPlugin()
100 ALOGD("found and use kComponents[i].name %s", kComponents[i].mName); in GoldfishOMXPlugin()
101 kActiveComponents.push_back(kComponents[i]); in GoldfishOMXPlugin()
113 for (size_t i = 0; i < kActiveComponents.size(); ++i) { in makeComponentInstance() local
[all …]
/device/google/contexthub/firmware/os/algos/
Dtime_sync.c23 sync->i = 0; in time_sync_reset()
41 size_t bidx = (sync->i >= sync->n) ? (sync->i - sync->n) in time_sync_truncate()
42 : (sync->i + NUM_TIME_SYNC_DATAPOINTS - sync->n); in time_sync_truncate()
57 sync->i = (sync->n < NUM_TIME_SYNC_DATAPOINTS) ? sync->n : 0; in time_sync_truncate()
61 size_t i = sync->i; in time_sync_add() local
63 sync->time1[i] = time1; in time_sync_add()
64 sync->time2[i] = time2; in time_sync_add()
66 if (++i == NUM_TIME_SYNC_DATAPOINTS) { in time_sync_add()
67 i = 0; in time_sync_add()
70 sync->i = i; in time_sync_add()
[all …]
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/
DglUtils.h71 GLenum glUtilsColorAttachmentName(int i);
86 for (int i = 0; i < count; i++) { in minmax() local
102 for (int i = 0; i < count; i++) { in minmaxExcept() local
113 for (int i = 0; i < count; i++) { in shiftIndices() local
122 for (int i = 0; i < count; i++) { in shiftIndices() local
136 for (int i = 0; i < count; i++) { in shiftIndicesExcept() local
150 for (int i = 0; i < count; i++) { in shiftIndicesExcept() local
/device/google/contexthub/util/
Dnanoapp_prepare.sh73 i=1
74 while [ $i -lt ${#args[@]} ]
76 if [ ! -f "${args[$i]}" ]; then
79 i=$[$i+1]
85 i=3
86 while [ $i -lt ${#args[@]} ]
88 cat "${args[$i]}" >> "${app}.sign.napp"
89 i=$[$i+1]

12345678910>>...19