Home
last modified time | relevance | path

Searched refs:cnt (Results 1 – 25 of 35) sorted by relevance

12

/device/google/contexthub/firmware/app/test0.app/
Dtest_app0.c25 static int cnt; variable
37 cnt = 100; in start_task()
55 timerId = eOsTimTimerSet(1000000000ULL, 50, 50, mMyTid, (void *)&cnt, false); in handle_event()
67 if (cnt-- <= 0) in handle_event()
/device/google/contexthub/sensorhal/
Dhubconnection.cpp602 int cnt = 0; in processSample() local
606 initEv(&nev[cnt++], timestamp, type, sensor)->pressure = sample->fdata; in processSample()
609 initEv(&nev[cnt++], timestamp, type, sensor)->relative_humidity = sample->fdata; in processSample()
612 initEv(&nev[cnt++], timestamp, type, sensor)->temperature = sample->fdata; in processSample()
615 initEv(&nev[cnt++], timestamp, type, sensor)->temperature = sample->fdata; in processSample()
618 initEv(&nev[cnt++], timestamp, type, sensor)->distance = sample->fdata; in processSample()
621 initEv(&nev[cnt++], timestamp, type, sensor)->light = sample->fdata; in processSample()
627 initEv(&nev[cnt++], timestamp, type, sensor)->u64.step_counter = mLastStepCount; in processSample()
634 initEv(&nev[cnt++], timestamp, type, sensor)->data[0] = 1.0f; in processSample()
641 initEv(&nev[cnt++], timestamp, type, sensor)->data[0] = sample->idata; in processSample()
[all …]
/device/google/contexthub/lib/nanohub/
Dsoftcrc.c30 static uint32_t crcOneWord(uint32_t crc, uint32_t data, int cnt) in crcOneWord() argument
35 for (i = 0; i < cnt; i++) in crcOneWord()
/device/google/contexthub/firmware/os/platform/stm32/
Dcrc.c40 static uint32_t revCrc32Word(uint32_t crc, uint32_t data, uint32_t cnt) in revCrc32Word() argument
44 for (i = 0; i < cnt; i++) in revCrc32Word()
Dplatform.c468 uint32_t cnt; in sleepClockTmrWake() local
484 cnt = tim->CNT; in sleepClockTmrWake()
485 } while (sr != tim->SR || cnt != tim->CNT); in sleepClockTmrWake()
487 …leftTicks = cnt; //if we wake NOT from timer, only count the ticks that actually ticked as "time p… in sleepClockTmrWake()
Di2c.c794 int cnt = 0; in i2cMasterReset() local
818 cnt ++; in i2cMasterReset()
819 } while (gpioGet(sda) == 0 && cnt < 9); in i2cMasterReset()
831 return cnt; in i2cMasterReset()
/device/amlogic/yukawa/hal/gralloc/
Dmali_gralloc_ion.cpp110 int i, ret, cnt, heap_id = -1; in find_heap_id() local
113 ret = ion_query_heap_cnt(ion_client, &cnt); in find_heap_id()
121 data = (struct ion_heap_data *)malloc(cnt * sizeof(*data)); in find_heap_id()
128 ret = ion_query_get_heaps(ion_client, cnt, data); in find_heap_id()
135 for (i = 0; i < cnt; i++) { in find_heap_id()
142 if (i == cnt) in find_heap_id()
144 AERR("No %s Heap Found amongst %d heaps\n", name, cnt); in find_heap_id()
Dion_4.12.h75 __u32 cnt; /* Total number of heaps to be copied */ member
/device/google/cuttlefish/common/libs/utils/
Dfiles.cpp64 int cnt {0}; in IsDirectoryEmpty() local
66 cnt++; in IsDirectoryEmpty()
67 if (cnt > 2) { in IsDirectoryEmpty()
/device/google/contexthub/util/stm32_flash/
Dstm32_bl.c52 static uint8_t write_cnt(handle_t *handle, uint16_t cnt) in write_cnt() argument
56 buffer[0] = (cnt >> 8) & 0xFF; in write_cnt()
57 buffer[1] = (cnt ) & 0xFF; in write_cnt()
/device/linaro/hikey/gralloc/
Dalloc_device.cpp733 int i, ret, cnt, heap_id = -1; in find_heap_id() local
736 ret = ion_query_heap_cnt(ion_client, &cnt); in find_heap_id()
744 data = (struct ion_heap_data *)malloc(cnt * sizeof(*data)); in find_heap_id()
751 ret = ion_query_get_heaps(ion_client, cnt, data); in find_heap_id()
758 for (i = 0; i < cnt; i++) { in find_heap_id()
766 if (i > cnt) in find_heap_id()
768 AERR("No System Heap Found amongst %d heaps\n", cnt); in find_heap_id()
Dion_4.12.h75 __u32 cnt; /* Total number of heaps to be copied */ member
/device/linaro/hikey/gralloc960/
Dmali_gralloc_ion.cpp119 int i, ret, cnt, heap_id = -1; in find_heap_id() local
122 ret = ion_query_heap_cnt(ion_client, &cnt); in find_heap_id()
130 data = (struct ion_heap_data *)malloc(cnt * sizeof(*data)); in find_heap_id()
137 ret = ion_query_get_heaps(ion_client, cnt, data); in find_heap_id()
144 for (i = 0; i < cnt; i++) { in find_heap_id()
151 if (i == cnt) in find_heap_id()
153 AERR("No %s Heap Found amongst %d heaps\n", name, cnt); in find_heap_id()
Dion_4.12.h75 __u32 cnt; /* Total number of heaps to be copied */ member
/device/google/coral-kernel/sm8150/original-kernel-headers/linux/
Dion.h109 __u32 cnt; /* Total number of heaps to be copied */ member
/device/google/coral-kernel/sm8150/kernel-headers/linux/
Dion.h50 __u32 cnt; member
/device/google/contexthub/util/nanotool/
Dnanopacket.cpp33 uint32_t Crc32Word(uint32_t crc, uint32_t data, int cnt) { in Crc32Word() argument
36 for (int i = 0; i < cnt; i++) { in Crc32Word()
/device/google/crosshatch/sdm845/original-kernel-headers/media/
Dmsmb_generic_buf_mgr.h33 uint32_t cnt; member
/device/google/crosshatch/sdm845/kernel-headers/media/
Dmsmb_generic_buf_mgr.h46 uint32_t cnt; member
/device/google/bonito/sdm710/original-kernel-headers/media/
Dmsmb_generic_buf_mgr.h33 uint32_t cnt; member
/device/google/bonito/sdm710/kernel-headers/media/
Dmsmb_generic_buf_mgr.h46 uint32_t cnt; member
/device/linaro/hikey/hifi/xaf/hifi-dpf/audio/
Dxa-class-mixer.c164 UWORD32 cnt = 0; in xa_mixer_check_active() local
169 cnt++; in xa_mixer_check_active()
171 return cnt; in xa_mixer_check_active()
/device/google/coral-sepolicy/vendor/qcom/common/
Dproperty_contexts33 persist.vendor.bluetooth.csoc.cnt u:object_r:vendor_bluetooth_prop:s0
/device/google/contexthub/firmware/os/core/
DhostIntf.c1288 uint32_t i, cnt; in onEvtLatencyTimer() local
1290 for (i = 0, cnt = 0; i < mNumSensors && cnt < mLatencyCnt; i++) { in onEvtLatencyTimer()
1292 cnt++; in onEvtLatencyTimer()
/device/google/contexthub/contexthubhal/
Dsystem_comms.cpp1351 int cnt = 0; in getAppsToStart() local
1361 cnt++; in getAppsToStart()
1365 return cnt; in getAppsToStart()

12