Searched refs:wdt (Results 1 – 3 of 3) sorted by relevance
16 struct WatchdogCntlr wdt; member26 static int32_t VirtualWatchdogGetStatus(struct WatchdogCntlr *wdt, int32_t *status) in VirtualWatchdogGetStatus() argument30 if (wdt == NULL) { in VirtualWatchdogGetStatus()34 virtual = (struct VirtualWatchdogCntlr *)wdt; in VirtualWatchdogGetStatus()45 static int32_t VirtualWatchdogStart(struct WatchdogCntlr *wdt) in VirtualWatchdogStart() argument49 if (wdt == NULL) { in VirtualWatchdogStart()53 virtual = (struct VirtualWatchdogCntlr *)wdt; in VirtualWatchdogStart()59 static int32_t VirtualWatchdogStop(struct WatchdogCntlr *wdt) in VirtualWatchdogStop() argument63 if (wdt == NULL) { in VirtualWatchdogStop()67 virtual = (struct VirtualWatchdogCntlr *)wdt; in VirtualWatchdogStop()[all …]
51 static int32_t WdtOpenFile(struct WatchdogCntlr *wdt) in WdtOpenFile() argument57 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() argument85 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() argument101 if (wdt == NULL) { in WdtAdapterStart()105 if (wdt->priv == NULL) { in WdtAdapterStart()[all …]
35 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() argument88 return (wdt == NULL) ? NULL : wdt->device; in WatchdogCntlrToDevice()