/drivers/hdf_core/adapter/khdf/linux/osal/src/ |
D | osal_timer.c | 37 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/ |
D | osal_timer.c | 46 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/ |
D | osal_timer.c | 47 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/ |
D | osal_timer.c | 47 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/ |
D | osal_timer.h | 55 #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/ |
D | hdf_sensor_test.c | 69 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()
|
D | hdf_sensor_test.h | 22 OsalTimer timer; member
|
/drivers/hdf_core/framework/support/platform/src/fwk/ |
D | platform_listener_u.c | 93 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/ |
D | vibrator_haptic.c | 230 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/ |
D | hdf_encoder.h | 23 OsalTimer timer; member
|
D | hdf_encoder.c | 121 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/ |
D | hdf_disp.c | 452 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 …]
|
D | hdf_disp.h | 159 OsalTimer **timer; member
|
/drivers/hdf_core/framework/model/input/driver/touchscreen/ |
D | touch_ft5406.h | 55 struct timer_list timer; member
|
D | touch_ft5406.c | 205 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/ |
D | vibrator_haptic.h | 50 OsalTimer timer; member
|
/drivers/hdf_core/framework/model/misc/light/driver/src/ |
D | light_driver.c | 174 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/ |
D | BUILD.gn | 44 "$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/ |
D | light_driver.h | 152 OsalTimer timer; member
|
/drivers/peripheral/vibrator/ |
D | README_zh.md | 72 const char *g_timeSequence = "haptic.clock.timer";
|
D | README.md | 68 const char *g_timeSequence = "haptic.clock.timer";
|
/drivers/hdf_core/adapter/uhdf2/platform/ |
D | BUILD.gn | 46 "$HDF_FRAMEWORKS/support/platform/src/timer/timer_if_u.c",
|
/drivers/hdf_core/adapter/khdf/liteos/platform/ |
D | BUILD.gn | 214 "$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",
|
D | Makefile | 176 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/ |
D | lite.mk | 80 HDF_INCLUDE += -I $(HDF_ROOT_DIR)/framework/support/platform/include/timer
|