Searched refs:counter (Results 1 – 10 of 10) sorted by relevance
41 #define OsalAtomicReadWrapper(v) ((v)->counter)42 #define OsalAtomicSetWrapper(v, value) (v)->counter = (value)43 #define OsalAtomicIncWrapper(v) ((v)->counter)++44 #define OsalAtomicIncRetWrapper(v) (++((v)->counter))45 #define OsalAtomicDecWrapper(v) (((v)->counter)--)46 #define OsalAtomicDecRetWrapper(v) (--((v)->counter))
41 #define OsalAtomicReadWrapper(v) LOS_AtomicRead((const Atomic *)&(v)->counter)42 #define OsalAtomicSetWrapper(v, value) LOS_AtomicSet((Atomic *)&(v)->counter, value)43 #define OsalAtomicIncWrapper(v) LOS_AtomicInc((Atomic *)&(v)->counter)44 #define OsalAtomicIncRetWrapper(v) LOS_AtomicIncRet((Atomic *)&(v)->counter)45 #define OsalAtomicDecWrapper(v) LOS_AtomicDec((Atomic *)&(v)->counter)46 #define OsalAtomicDecRetWrapper(v) LOS_AtomicDecRet((Atomic *)&(v)->counter)
25 #define OsalAtomicReadWrapper(v) (*(volatile int *)&(v)->counter)26 #define OsalAtomicSetWrapper(v, value) ((v)->counter = (value))27 #define OsalAtomicIncWrapper(v) __sync_fetch_and_add(&(v)->counter, 1)28 #define OsalAtomicDecWrapper(v) __sync_sub_and_fetch(&(v)->counter, 1)
52 uint16_t counter = 0; in TimeCounter() local61 counter++; in TimeCounter()63 if (counter >= MAX_TIME_LIMIT) { in TimeCounter()64 return counter; in TimeCounter()72 return counter; in TimeCounter()99 uint16_t counter = 0; in EventHandle() local109 counter = TimeCounter(infraredDrv->infraredCfg->gpioNum); in EventHandle()110 if (counter >= MAX_TIME_LIMIT) { in EventHandle()113 if ((counter >= PILOT_CODE - AVERAGE_ERROR) && (counter < MAX_TIME_LIMIT)) { in EventHandle()115 … } else if ((counter >= LOGIC_1 - AVERAGE_ERROR) && (counter < LOGIC_1 + AVERAGE_ERROR)) { in EventHandle()[all …]
53 volatile int32_t counter;/**< Counter (an atomic variable). member79 #define OsalAtomicSet(v, counter) OsalAtomicSetWrapper(v, counter) argument
152 int counter = 0; in HdfSListCount() local154 return counter; in HdfSListCount()158 counter++; in HdfSListCount()160 return counter; in HdfSListCount()
86 /** Step counter */
70 /** Step counter */
1478 p = (Atomic *)&(v)->counter; in AdapterAtomicInc()1498 return LOS_AtomicDecRet((Atomic *)&(v)->counter); in AdapterAtomicDec()