Home
last modified time | relevance | path

Searched refs:wdt (Results 1 – 3 of 3) sorted by relevance

/drivers/hdf_core/framework/test/unittest/platform/virtual/
Dwatchdog_virtual.c16 struct WatchdogCntlr wdt; member
26 static int32_t VirtualWatchdogGetStatus(struct WatchdogCntlr *wdt, int32_t *status) in VirtualWatchdogGetStatus() argument
30 if (wdt == NULL) { in VirtualWatchdogGetStatus()
34 virtual = (struct VirtualWatchdogCntlr *)wdt; in VirtualWatchdogGetStatus()
45 static int32_t VirtualWatchdogStart(struct WatchdogCntlr *wdt) in VirtualWatchdogStart() argument
49 if (wdt == NULL) { in VirtualWatchdogStart()
53 virtual = (struct VirtualWatchdogCntlr *)wdt; in VirtualWatchdogStart()
59 static int32_t VirtualWatchdogStop(struct WatchdogCntlr *wdt) in VirtualWatchdogStop() argument
63 if (wdt == NULL) { in VirtualWatchdogStop()
67 virtual = (struct VirtualWatchdogCntlr *)wdt; in VirtualWatchdogStop()
[all …]
/drivers/hdf_core/adapter/khdf/linux/platform/watchdog/
Dwatchdog_adapter.c51 static int32_t WdtOpenFile(struct WatchdogCntlr *wdt) in WdtOpenFile() argument
57 if (wdt == NULL) { in WdtOpenFile()
61 if (sprintf_s(name, WATCHDOG_NAME_LEN - 1, "/dev/watchdog%d", wdt->wdtId) < 0) { in WdtOpenFile()
78 wdt->priv = fp; in WdtOpenFile()
82 static void WdtAdapterClose(struct WatchdogCntlr *wdt) in WdtAdapterClose() argument
85 struct file *fp = (struct file *)wdt->priv; in WdtAdapterClose()
93 wdt->priv = NULL; in WdtAdapterClose()
96 static int32_t WdtAdapterStart(struct WatchdogCntlr *wdt) in WdtAdapterStart() argument
101 if (wdt == NULL) { in WdtAdapterStart()
105 if (wdt->priv == NULL) { in WdtAdapterStart()
[all …]
/drivers/hdf_core/framework/support/platform/include/watchdog/
Dwatchdog_core.h35 int32_t (*getStatus)(struct WatchdogCntlr *wdt, int32_t *status);
36 int32_t (*setTimeout)(struct WatchdogCntlr *wdt, uint32_t seconds);
37 int32_t (*getTimeout)(struct WatchdogCntlr *wdt, uint32_t *seconds);
38 int32_t (*start)(struct WatchdogCntlr *wdt);
39 int32_t (*stop)(struct WatchdogCntlr *wdt);
40 int32_t (*feed)(struct WatchdogCntlr *wdt);
41 int32_t (*getPriv)(struct WatchdogCntlr *wdt);
42 void (*releasePriv)(struct WatchdogCntlr *wdt);
86 static inline struct HdfDeviceObject *WatchdogCntlrToDevice(const struct WatchdogCntlr *wdt) in WatchdogCntlrToDevice() argument
88 return (wdt == NULL) ? NULL : wdt->device; in WatchdogCntlrToDevice()