Home
last modified time | relevance | path

Searched refs:kk (Results 1 – 25 of 26) sorted by relevance

12

/hardware/invensense/60xx/mlsdk/mllite/
DmlFIFO.c197 uint_fast8_t kk; in inv_set_fifo_reference() local
200 for (kk = 0; kk < len; ++kk) { in inv_set_fifo_reference()
202 && (fifo_obj.reference_count[kk + refOffset] > 0)) { in inv_set_fifo_reference()
203 fifo_obj.reference_count[kk + refOffset]--; in inv_set_fifo_reference()
208 for (kk = 0; kk < len; ++kk) { in inv_set_fifo_reference()
210 fifo_obj.reference_count[kk + refOffset]++; in inv_set_fifo_reference()
215 for (kk = 0; kk < len; ++kk) { in inv_set_fifo_reference()
216 if (fifo_obj.reference_count[kk + refOffset] > 0) in inv_set_fifo_reference()
217 elements |= (1 << kk); in inv_set_fifo_reference()
233 int_fast8_t kk; in inv_construct3_fifo() local
[all …]
Dml.c396 int kk; in inv_register_dmp_interupt_cb() local
398 for (kk = 0; kk < mlxCallbackInterrupt.numInterruptProcesses; ++kk) { in inv_register_dmp_interupt_cb()
399 if (mlxCallbackInterrupt.processInterruptCb[kk] == func) { in inv_register_dmp_interupt_cb()
420 int kk, jj; in inv_unregister_dmp_interupt_cb() local
422 for (kk = 0; kk < mlxCallbackInterrupt.numInterruptProcesses; ++kk) { in inv_unregister_dmp_interupt_cb()
423 if (mlxCallbackInterrupt.processInterruptCb[kk] == func) { in inv_unregister_dmp_interupt_cb()
425 for (jj = kk + 1; jj < mlxCallbackInterrupt.numInterruptProcesses; in inv_unregister_dmp_interupt_cb()
444 int kk; in inv_run_dmp_interupt_cb() local
445 for (kk = 0; kk < mlxCallbackInterrupt.numInterruptProcesses; ++kk) { in inv_run_dmp_interupt_cb()
446 if (mlxCallbackInterrupt.processInterruptCb[kk]) in inv_run_dmp_interupt_cb()
[all …]
Dmlstates.c178 int kk; in inv_register_state_callback() local
189 for (kk = 0; kk < sStateChangeCallbacks.numStateChangeCallbacks; ++kk) { in inv_register_state_callback()
190 if (sStateChangeCallbacks.stateChangeCallbacks[kk] == callback) { in inv_register_state_callback()
221 int kk, jj; in inv_unregister_state_callback() local
230 for (kk = 0; kk < sStateChangeCallbacks.numStateChangeCallbacks; ++kk) { in inv_unregister_state_callback()
231 if (sStateChangeCallbacks.stateChangeCallbacks[kk] == callback) { in inv_unregister_state_callback()
232 for (jj = kk + 1; in inv_unregister_state_callback()
249 int kk; in inv_run_state_callbacks() local
258 for (kk = 0; kk < sStateChangeCallbacks.numStateChangeCallbacks; ++kk) { in inv_run_state_callbacks()
259 if (sStateChangeCallbacks.stateChangeCallbacks[kk]) { in inv_run_state_callbacks()
[all …]
DmlFIFOHW.c117 int_fast8_t kk; in inv_get_fifo() local
162 for (kk = 0; kk < fifo_objHW.fifoCount; ++kk) { in inv_get_fifo()
163 if (buffer[kk] != gFifoFooter[kk]) { in inv_get_fifo()
169 for (kk = 0; kk < (int)toRead; kk++) { in inv_get_fifo()
170 sprintf(out, "%s%02X", out, buffer[kk]);} in inv_get_fifo()
DdmpDefaultMantis.c412 int kk; in inv_setup_dmpGetAddress() local
413 for (kk=0; kk<NUM_KEYS; ++kk) { in inv_setup_dmpGetAddress()
414 keys[ kk ].addr = 0xffff; in inv_setup_dmpGetAddress()
415 keys[ kk ].key = kk; in inv_setup_dmpGetAddress()
417 for (kk=0; kk<NUM_LOCAL_KEYS; ++kk) { in inv_setup_dmpGetAddress()
418 keys[ dmpTConfig[kk].key ].addr = dmpTConfig[kk].addr; in inv_setup_dmpGetAddress()
DdmpDefault.c309 int kk; in inv_setup_dmpGetAddress() local
310 for (kk=0; kk<NUM_KEYS; ++kk) { in inv_setup_dmpGetAddress()
311 keys[ kk ].addr = 0xffff; in inv_setup_dmpGetAddress()
312 keys[ kk ].key = kk; in inv_setup_dmpGetAddress()
314 for (kk=0; kk<NUM_LOCAL_KEYS; ++kk) { in inv_setup_dmpGetAddress()
315 keys[ dmpTConfig[kk].key ].addr = dmpTConfig[kk].addr; in inv_setup_dmpGetAddress()
DmlBiasNoMotion.c163 int kk; in MLAccelMotionDetection() local
186 for (kk = 0; kk < ACCEL_NUM_AXES; ++kk) { in MLAccelMotionDetection()
187 inv_obj->accel_lpf[kk] = in MLAccelMotionDetection()
188 inv_q30_mult(((1L << 30) - gain), inv_obj->accel_lpf[kk]); in MLAccelMotionDetection()
189 inv_obj->accel_lpf[kk] += inv_q30_mult(gain, accel[kk]); in MLAccelMotionDetection()
/hardware/invensense/60xx/libsensors_iio/software/core/mllite/
Dstart_manager.c51 int kk; in inv_unregister_mpl_start_notification() local
53 for (kk=0; kk<inv_start_cb.num_cb; ++kk) { in inv_unregister_mpl_start_notification()
54 if (inv_start_cb.start_cb[kk] == start_cb) { in inv_unregister_mpl_start_notification()
56 if (kk != (inv_start_cb.num_cb-1)) { in inv_unregister_mpl_start_notification()
57 memmove(&inv_start_cb.start_cb[kk], in inv_unregister_mpl_start_notification()
58 &inv_start_cb.start_cb[kk+1], in inv_unregister_mpl_start_notification()
59 (inv_start_cb.num_cb-kk-1)*sizeof(inv_start_cb_func)); in inv_unregister_mpl_start_notification()
90 int kk; in inv_execute_mpl_start_notification() local
94 for (kk = 0; kk < inv_start_cb.num_cb; ++kk) { in inv_execute_mpl_start_notification()
95 result = inv_start_cb.start_cb[kk](); in inv_execute_mpl_start_notification()
Dstorage_manager.c69 int kk; in inv_register_load_store() local
71 for (kk=0; kk<ds.num; ++kk) { in inv_register_load_store()
72 if (key == ds.hd[kk].key) { in inv_register_load_store()
107 int kk; in inv_find_entry() local
108 for (kk=0; kk<ds.num; ++kk) { in inv_find_entry()
109 if (key == ds.hd[kk].key) { in inv_find_entry()
110 return kk; in inv_find_entry()
175 int kk; in inv_save_mpl_states() local
180 for (kk = 0; kk < ds.num; ++kk) { in inv_save_mpl_states()
183 ds.save[kk](cur); in inv_save_mpl_states()
[all …]
Ddata_builder.c816 int kk, nn; in inv_register_data_cb() local
820 for (kk = 0; kk < inv_data_builder.num_cb; ++kk) { in inv_register_data_cb()
821 if ((inv_data_builder.process[kk].func == func) || in inv_register_data_cb()
822 (inv_data_builder.process[kk].priority == priority)) { in inv_register_data_cb()
829 kk = 0; in inv_register_data_cb()
832 while ((kk < inv_data_builder.num_cb) && in inv_register_data_cb()
833 (inv_data_builder.process[kk].priority < priority)) { in inv_register_data_cb()
834 kk++; in inv_register_data_cb()
836 if (kk != inv_data_builder.num_cb) { in inv_register_data_cb()
838 for (nn = inv_data_builder.num_cb; nn > kk; --nn) { in inv_register_data_cb()
[all …]
Dml_math_func.c74 int kk; in inv_get_gyro_sum_of_sqr() local
76 for (kk = 0; kk < 3; ++kk) { in inv_get_gyro_sum_of_sqr()
77 temp = gyro[kk] >> (16 - (GYRO_MAG_SQR_SHIFT / 2)); in inv_get_gyro_sum_of_sqr()
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/
Dstart_manager.c51 int kk; in inv_unregister_mpl_start_notification() local
53 for (kk=0; kk<inv_start_cb.num_cb; ++kk) { in inv_unregister_mpl_start_notification()
54 if (inv_start_cb.start_cb[kk] == start_cb) { in inv_unregister_mpl_start_notification()
56 if (kk != (inv_start_cb.num_cb-1)) { in inv_unregister_mpl_start_notification()
57 memmove(&inv_start_cb.start_cb[kk], in inv_unregister_mpl_start_notification()
58 &inv_start_cb.start_cb[kk+1], in inv_unregister_mpl_start_notification()
59 (inv_start_cb.num_cb-kk-1)*sizeof(inv_start_cb_func)); in inv_unregister_mpl_start_notification()
90 int kk; in inv_execute_mpl_start_notification() local
94 for (kk = 0; kk < inv_start_cb.num_cb; ++kk) { in inv_execute_mpl_start_notification()
95 result = inv_start_cb.start_cb[kk](); in inv_execute_mpl_start_notification()
Dstorage_manager.c73 int kk; in inv_register_load_store() local
75 for (kk=0; kk<ds.num; ++kk) { in inv_register_load_store()
76 if (key == ds.hd[kk].key) { in inv_register_load_store()
111 int kk; in inv_find_entry() local
112 for (kk=0; kk<ds.num; ++kk) { in inv_find_entry()
113 if (key == ds.hd[kk].key) { in inv_find_entry()
114 return kk; in inv_find_entry()
179 int kk; in inv_save_mpl_states() local
186 for (kk = 0; kk < ds.num; ++kk) { in inv_save_mpl_states()
189 ds.save[kk](cur); in inv_save_mpl_states()
[all …]
Ddata_builder.c1050 int kk, nn; in inv_register_data_cb() local
1054 for (kk = 0; kk < inv_data_builder.num_cb; ++kk) { in inv_register_data_cb()
1055 if ((inv_data_builder.process[kk].func == func) || in inv_register_data_cb()
1056 (inv_data_builder.process[kk].priority == priority)) { in inv_register_data_cb()
1063 kk = 0; in inv_register_data_cb()
1066 while ((kk < inv_data_builder.num_cb) && in inv_register_data_cb()
1067 (inv_data_builder.process[kk].priority < priority)) { in inv_register_data_cb()
1068 kk++; in inv_register_data_cb()
1070 if (kk != inv_data_builder.num_cb) { in inv_register_data_cb()
1072 for (nn = inv_data_builder.num_cb; nn > kk; --nn) { in inv_register_data_cb()
[all …]
Dml_math_func.c74 int kk; in inv_get_gyro_sum_of_sqr() local
76 for (kk = 0; kk < 3; ++kk) { in inv_get_gyro_sum_of_sqr()
77 temp = gyro[kk] >> (16 - (GYRO_MAG_SQR_SHIFT / 2)); in inv_get_gyro_sum_of_sqr()
/hardware/invensense/6515/libsensors_iio/software/core/mllite/
Dstart_manager.c51 int kk; in inv_unregister_mpl_start_notification() local
53 for (kk=0; kk<inv_start_cb.num_cb; ++kk) { in inv_unregister_mpl_start_notification()
54 if (inv_start_cb.start_cb[kk] == start_cb) { in inv_unregister_mpl_start_notification()
56 if (kk != (inv_start_cb.num_cb-1)) { in inv_unregister_mpl_start_notification()
57 memmove(&inv_start_cb.start_cb[kk], in inv_unregister_mpl_start_notification()
58 &inv_start_cb.start_cb[kk+1], in inv_unregister_mpl_start_notification()
59 (inv_start_cb.num_cb-kk-1)*sizeof(inv_start_cb_func)); in inv_unregister_mpl_start_notification()
90 int kk; in inv_execute_mpl_start_notification() local
94 for (kk = 0; kk < inv_start_cb.num_cb; ++kk) { in inv_execute_mpl_start_notification()
95 result = inv_start_cb.start_cb[kk](); in inv_execute_mpl_start_notification()
Dstorage_manager.c73 int kk; in inv_register_load_store() local
75 for (kk=0; kk<ds.num; ++kk) { in inv_register_load_store()
76 if (key == ds.hd[kk].key) { in inv_register_load_store()
111 int kk; in inv_find_entry() local
112 for (kk=0; kk<ds.num; ++kk) { in inv_find_entry()
113 if (key == ds.hd[kk].key) { in inv_find_entry()
114 return kk; in inv_find_entry()
179 int kk; in inv_save_mpl_states() local
186 for (kk = 0; kk < ds.num; ++kk) { in inv_save_mpl_states()
189 ds.save[kk](cur); in inv_save_mpl_states()
[all …]
Ddata_builder.c1278 int kk, nn; in inv_register_data_cb() local
1282 for (kk = 0; kk < inv_data_builder.num_cb; ++kk) { in inv_register_data_cb()
1283 if ((inv_data_builder.process[kk].func == func) || in inv_register_data_cb()
1284 (inv_data_builder.process[kk].priority == priority)) { in inv_register_data_cb()
1291 kk = 0; in inv_register_data_cb()
1294 while ((kk < inv_data_builder.num_cb) && in inv_register_data_cb()
1295 (inv_data_builder.process[kk].priority < priority)) { in inv_register_data_cb()
1296 kk++; in inv_register_data_cb()
1298 if (kk != inv_data_builder.num_cb) { in inv_register_data_cb()
1300 for (nn = inv_data_builder.num_cb; nn > kk; --nn) { in inv_register_data_cb()
[all …]
Dml_math_func.c74 int kk; in inv_get_gyro_sum_of_sqr() local
76 for (kk = 0; kk < 3; ++kk) { in inv_get_gyro_sum_of_sqr()
77 temp = gyro[kk] >> (16 - (GYRO_MAG_SQR_SHIFT / 2)); in inv_get_gyro_sum_of_sqr()
/hardware/ti/omap3/omx/audio/src/openmax_il/g711_enc/tests/
DG711EncTest.c422 int retval= 0, i= 0, j= 0, k= 0, kk= 0, tcID = 0; in main() local
979 for (kk = 0; kk < audioinfo->nOpBufs; kk++) { in main()
982 if (kk==0){ in main()
987 OMX_FillThisBuffer(pHandle, pOutputBufferHeader[kk]); in main()
/hardware/ti/omap3/omx/audio/src/openmax_il/g729_enc/tests/
DG729EncTest.c384 int retval = 0, i = 0, j = 0, k = 0, kk = 0; in main() local
960 for (kk = 0; kk < audioinfo->nOpBufs; kk++) { in main()
962 if (kk==0) in main()
968 OMX_FillThisBuffer(pHandle, pOutputBufferHeader[kk]); in main()
/hardware/ti/omap3/omx/audio/src/openmax_il/g726_enc/tests/
DG726EncTest.c471 int retval, i = 0, j = 0, k = 0, kk = 0, tcID = 0; local
1079 for (kk = 0; kk < numOutputBuffers; kk++) {
1083 if (kk==0)
1089 OMX_FillThisBuffer(pHandle, pOutputBufferHeader[kk]);
/hardware/ti/omap3/omx/audio/src/openmax_il/aac_enc/tests/
DAacEncTest.c534 int status,fdmax,jj,kk,k; local
1338 kk = 0;
1339 for(kk=0; kk<testcnt; kk++)
1341 APP_DPRINT ("%d :: APP: Test counter = %d \n",__LINE__,kk);
1342 if(kk > 0)
1383 APP_IPRINT ("%d :: APP: Encoding the file [%d] Time\n",__LINE__, kk+1);
/hardware/ti/omap3/omx/audio/src/openmax_il/nbamr_enc/tests/
DAmrEncTest.c536 int retval, i, j, k, kk, tcID = 0; local
1264 for (kk = 0; kk < numOutputBuffers; kk++) {
1267 if (kk==0)
1273 pComponent->FillThisBuffer(pHandle, pOutputBufferHeader[kk]);
/hardware/ti/omap3/omx/audio/src/openmax_il/wbamr_enc/tests/
DWbAmrEncTest.c514 int retval, i, j, k, kk, tcID = 0; local
1286 for (kk = 0; kk < numOfOutputBuffer; kk++) {
1290 if (kk == 0) {
1297 pComponent->FillThisBuffer(pHandle, pOutputBufferHeader[kk]);

12