Home
last modified time | relevance | path

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

12

/drivers/hdf_core/adapter/khdf/linux/osal/src/
Dosal_timer.c37 struct timer_list timer; member
57 ktimer = from_timer(ktimer, arg, timer); in osal_timer_callback()
70 ktimer->timer.expires = jiffies + msecs_to_jiffies(msec); in osal_timer_callback()
71 mod_timer(&ktimer->timer, ktimer->timer.expires); in osal_timer_callback()
74 del_timer(&ktimer->timer); in osal_timer_callback()
81 int32_t OsalTimerCreate(OsalTimer *timer, uint32_t interval, OsalTimerFunc func, uintptr_t arg) in OsalTimerCreate() argument
85 if (func == NULL || timer == NULL || interval == 0) { in OsalTimerCreate()
93 timer->realTimer = NULL; in OsalTimerCreate()
102 timer->realTimer = (void *)ktimer; in OsalTimerCreate()
108 static int32_t OsalTimerStart(OsalTimer *timer, OsalTimerMode mode) in OsalTimerStart() argument
[all …]
/drivers/hdf_core/adapter/khdf/uniproton/osal/src/
Dosal_timer.c46 int32_t OsalTimerCreate(OsalTimer *timer, uint32_t interval, OsalTimerFunc func, uintptr_t arg) in OsalTimerCreate() argument
50 if (func == NULL || timer == NULL || interval == 0) { in OsalTimerCreate()
55 timer->realTimer = NULL; in OsalTimerCreate()
66 timer->realTimer = (void *)liteTimer; in OsalTimerCreate()
70 static int32_t OsalStartTimer(OsalTimer *timer, U8 mode) in OsalStartTimer() argument
77 if (timer == NULL || timer->realTimer == NULL) { in OsalStartTimer()
82 liteTimer = (struct OsalLitetimer *)timer->realTimer; in OsalStartTimer()
110 int32_t OsalTimerStartLoop(OsalTimer *timer) in OsalTimerStartLoop() argument
112 return OsalStartTimer(timer, OS_TIMER_LOOP); in OsalTimerStartLoop()
115 int32_t OsalTimerStartOnce(OsalTimer *timer) in OsalTimerStartOnce() argument
[all …]
/drivers/hdf_core/adapter/khdf/liteos/osal/src/
Dosal_timer.c47 int32_t OsalTimerCreate(OsalTimer *timer, uint32_t interval, OsalTimerFunc func, uintptr_t arg) in OsalTimerCreate() argument
51 if (func == NULL || timer == NULL || interval == 0) { in OsalTimerCreate()
56 timer->realTimer = NULL; in OsalTimerCreate()
67 timer->realTimer = (void *)liteTimer; in OsalTimerCreate()
72 static int32_t OsalStartTimer(OsalTimer *timer, UINT8 mode) in OsalStartTimer() argument
80 if (timer == NULL || timer->realTimer == NULL) { in OsalStartTimer()
85 liteTimer = (struct OsalLitetimer *)timer->realTimer; in OsalStartTimer()
113 int32_t OsalTimerStartLoop(OsalTimer *timer) in OsalTimerStartLoop() argument
115 return OsalStartTimer(timer, LOS_SWTMR_MODE_PERIOD); in OsalTimerStartLoop()
118 int32_t OsalTimerStartOnce(OsalTimer *timer) in OsalTimerStartOnce() argument
[all …]
/drivers/hdf_core/adapter/khdf/liteos_m/osal/src/
Dosal_timer.c47 int32_t OsalTimerCreate(OsalTimer *timer, uint32_t interval, OsalTimerFunc func, uintptr_t arg) in OsalTimerCreate() argument
51 if (func == NULL || timer == NULL || interval == 0) { in OsalTimerCreate()
56 timer->realTimer = NULL; in OsalTimerCreate()
67 timer->realTimer = (void *)liteTimer; in OsalTimerCreate()
71 static int32_t OsalStartTimer(OsalTimer *timer, UINT8 mode) in OsalStartTimer() argument
79 if (timer == NULL || timer->realTimer == NULL) { in OsalStartTimer()
84 liteTimer = (struct OsalLitetimer *)timer->realTimer; in OsalStartTimer()
117 int32_t OsalTimerStartLoop(OsalTimer *timer) in OsalTimerStartLoop() argument
119 return OsalStartTimer(timer, LOS_SWTMR_MODE_PERIOD); in OsalTimerStartLoop()
122 int32_t OsalTimerStartOnce(OsalTimer *timer) in OsalTimerStartOnce() argument
[all …]
/drivers/hdf_core/interfaces/inner_api/osal/shared/
Dosal_timer.h55 #define OSAL_DECLARE_TIMER(timer) OsalTimer timer argument
76 int32_t OsalTimerCreate(OsalTimer *timer, uint32_t interval, OsalTimerFunc func, uintptr_t arg);
93 int32_t OsalTimerDelete(OsalTimer *timer);
110 int32_t OsalTimerStartOnce(OsalTimer *timer);
128 int32_t OsalTimerStartLoop(OsalTimer *timer);
146 int32_t OsalTimerSetTimeout(OsalTimer *timer, uint32_t interval);
/drivers/hdf_core/framework/test/unittest/sensor/
Dhdf_sensor_test.c69 if (OsalTimerSetTimeout(&drvData->timer, interval) != HDF_SUCCESS) { in SensorTestTimerEntry()
104 …ret = OsalTimerCreate(&drvData->timer, SENSOR_TIMER_MIN_TIME, SensorTestTimerEntry, (uintptr_t)drv… in SensorEnableTest()
110 ret = OsalTimerStartLoop(&drvData->timer); in SensorEnableTest()
130 if (drvData->timer.realTimer != NULL) { in SensorDisableTest()
131 ret = OsalTimerDelete(&drvData->timer); in SensorDisableTest()
252 if (drvData->timer.realTimer != NULL) { in ReleaseSensorDriverTest()
253 ret = OsalTimerDelete(&drvData->timer); in ReleaseSensorDriverTest()
Dhdf_sensor_test.h22 OsalTimer timer; member
/drivers/hdf_core/framework/support/platform/src/fwk/
Dplatform_listener_u.c93 struct PlatformUserListenerTimerParam *timer = NULL; in TimerOnDevEventReceive() local
103 timer = (struct PlatformUserListenerTimerParam *)userListener->data; in TimerOnDevEventReceive()
104 if (timer == NULL || timer->func == NULL) { in TimerOnDevEventReceive()
114 HDF_LOGD("TimerOnDevEventReceive: event %d handle:%d == handle:%d!", id, handle, timer->handle); in TimerOnDevEventReceive()
115 if ((id == PLATFORM_LISTENER_EVENT_TIMER_NOTIFY) && (handle == timer->handle)) { in TimerOnDevEventReceive()
116 timer->func(handle); in TimerOnDevEventReceive()
/drivers/hdf_core/framework/model/misc/vibrator/driver/src/
Dvibrator_haptic.c230 if ((duration > 0) && (OsalTimerSetTimeout(&hapticData->timer, duration) == HDF_SUCCESS)) { in HapticTimerEntry()
234 if (hapticData->timer.realTimer != NULL) { in HapticTimerEntry()
235 ret = OsalTimerDelete(&hapticData->timer); in HapticTimerEntry()
314 …if (OsalTimerCreate(&hapticData->timer, duration, HapticTimerEntry, (uintptr_t)hapticData) != HDF_… in StartHaptic()
319 if (OsalTimerStartLoop(&hapticData->timer) != HDF_SUCCESS) { in StartHaptic()
334 if (hapticData->timer.realTimer != NULL) { in StopHaptic()
337 ret = OsalTimerDelete(&hapticData->timer); in StopHaptic()
/drivers/hdf_core/framework/model/input/driver/
Dhdf_encoder.h23 OsalTimer timer; member
Dhdf_encoder.c121 ret = OsalTimerCreate(&EncoderDrv->timer, TIMER_INTERVAL_ENCODER, EncoderTimerFunc, EncoderDrv); in EncoderInit()
126 ret = OsalTimerStartLoop(&EncoderDrv->timer); in EncoderInit()
/drivers/hdf_core/framework/model/display/driver/
Dhdf_disp.c452 OsalTimerDelete(disp->esd->timer[devId]); in EsdWorkHandler()
473 OsalTimerCreate(esd->timer[devId], esd->panelEsd[devId]->interval, in EsdCheckStartUp()
475 OsalTimerStartLoop(esd->timer[devId]); in EsdCheckStartUp()
492 OsalTimerDelete(esd->timer[devId]); in EsdCheckEnd()
518 esd->timer = (OsalTimer **)OsalMemCalloc(sizeof(OsalTimer *) * panelNum); in EsdResMalloc()
519 if (esd->timer == NULL) { in EsdResMalloc()
531 OsalMemFree(esd->timer); in EsdResMalloc()
551 OsalMemFree(esd->timer[i]); in EsdMemFree()
555 OsalMemFree(esd->timer); in EsdMemFree()
573 esd->timer[i] = (OsalTimer *)OsalMemCalloc(sizeof(OsalTimer)); in EsdResInit()
[all …]
Dhdf_disp.h159 OsalTimer **timer; member
/drivers/hdf_core/framework/model/input/driver/touchscreen/
Dtouch_ft5406.h55 struct timer_list timer; member
Dtouch_ft5406.c205 FT5406TouchData *touchData = from_timer(touchData, t, timer); in ChipTimer()
208 mod_timer(&touchData->timer, jiffies + msecs_to_jiffies(POLL_INTERVAL_MS)); in ChipTimer()
342 timer_setup(&g_touchData->timer, ChipTimer, 0); in HdfFocalChipInit()
343 g_touchData->timer.expires = jiffies + msecs_to_jiffies(POLL_INTERVAL_MS); in HdfFocalChipInit()
344 add_timer(&g_touchData->timer); in HdfFocalChipInit()
359 del_timer_sync(&g_touchData->timer); in HdfFocalChipRelease()
/drivers/hdf_core/framework/model/misc/vibrator/driver/include/
Dvibrator_haptic.h50 OsalTimer timer; member
/drivers/hdf_core/framework/model/misc/light/driver/src/
Dlight_driver.c174 if ((OsalTimerSetTimeout(&drvData->timer, duration) == HDF_SUCCESS)) { in LightTimerEntry()
178 if (drvData->timer.realTimer != NULL) { in LightTimerEntry()
179 if (OsalTimerDelete(&drvData->timer) != HDF_SUCCESS) { in LightTimerEntry()
229 …if (OsalTimerCreate(&drvData->timer, LIGHT_WAIT_TIME, LightTimerEntry, (uintptr_t)lightId) != HDF_… in TurnOnLight()
234 if (OsalTimerStartLoop(&drvData->timer) != HDF_SUCCESS) { in TurnOnLight()
274 if (drvData->timer.realTimer != NULL) { in TurnOffLight()
275 if (OsalTimerDelete(&drvData->timer) != HDF_SUCCESS) { in TurnOffLight()
/drivers/hdf_core/adapter/uhdf/platform/
DBUILD.gn44 "$hdf_framework_path/support/platform/include/timer",
70 "$hdf_framework_path/support/platform/src/timer/timer_if_u.c",
/drivers/hdf_core/framework/model/misc/light/driver/include/
Dlight_driver.h152 OsalTimer timer; member
/drivers/peripheral/vibrator/
DREADME_zh.md72 const char *g_timeSequence = "haptic.clock.timer";
DREADME.md68 const char *g_timeSequence = "haptic.clock.timer";
/drivers/hdf_core/adapter/uhdf2/platform/
DBUILD.gn46 "$HDF_FRAMEWORKS/support/platform/src/timer/timer_if_u.c",
/drivers/hdf_core/adapter/khdf/liteos/platform/
DBUILD.gn214 "$HDF_FRAMEWORKS_PATH/support/platform/src/timer/timer_core.c",
215 "$HDF_FRAMEWORKS_PATH/support/platform/src/timer/timer_if.c",
260 "$HDF_FRAMEWORKS_PATH/support/platform/include/timer",
DMakefile176 LOCAL_SRCS += $(HDF_FRAMEWORKS)/support/platform/src/timer/timer_if.c \
177 $(HDF_FRAMEWORKS)/support/platform/src/timer/timer_core.c
/drivers/hdf_core/adapter/khdf/liteos/
Dlite.mk80 HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/support/platform/include/timer

12