Home
last modified time | relevance | path

Searched refs:counter (Results 1 – 10 of 10) sorted by relevance

/drivers/hdf_core/adapter/khdf/liteos_m/osal/include/
Dosal_atomic_def.h41 #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))
/drivers/hdf_core/adapter/khdf/uniproton/osal/include/
Dosal_atomic_def.h41 #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))
/drivers/hdf_core/adapter/khdf/liteos/osal/include/
Dosal_atomic_def.h41 #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)
/drivers/hdf_core/interfaces/inner_api/osal/uhdf/
Dosal_atomic_def.h25 #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)
/drivers/hdf_core/framework/model/input/driver/
Dhdf_infrared.c52 uint16_t counter = 0; in TimeCounter() local
61 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() local
109 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 …]
/drivers/hdf_core/interfaces/inner_api/osal/shared/
Dosal_atomic.h53 volatile int32_t counter;/**< Counter (an atomic variable). member
79 #define OsalAtomicSet(v, counter) OsalAtomicSetWrapper(v, counter) argument
/drivers/hdf_core/framework/utils/src/
Dhdf_slist.c152 int counter = 0; in HdfSListCount() local
154 return counter; in HdfSListCount()
158 counter++; in HdfSListCount()
160 return counter; in HdfSListCount()
/drivers/interface/motion/v1_1/
DMotionTypes.idl86 /** Step counter */
/drivers/interface/motion/v1_0/
DMotionTypes.idl70 /** Step counter */
/drivers/peripheral/usb/ddk/host/src/
Dliteos_adapter.c1478 p = (Atomic *)&(v)->counter; in AdapterAtomicInc()
1498 return LOS_AtomicDecRet((Atomic *)&(v)->counter); in AdapterAtomicDec()